Skip to content

Commit 3508985

Browse files
plekakisjimwang118dg0yt
authored
[hlslpp] Add new port (#40400)
Co-authored-by: jim wang <[email protected]> Co-authored-by: Kai Pastor <[email protected]>
1 parent 7121755 commit 3508985

File tree

6 files changed

+56
-0
lines changed

6 files changed

+56
-0
lines changed

ports/hlslpp/hlslpp-config.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
add_library(unofficial::hlslpp::hlslpp INTERACE IMPORTED)
2+
target_include_directories(unofficial::hlslpp::hlslpp INTERFACE "${CMAKE_CURRENT_LIST_DIR}/../../include/hlslpp")

ports/hlslpp/portfile.cmake

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO redorav/hlslpp
4+
REF "${VERSION}"
5+
SHA512 79b1464eb6441ec720b9952e80d7fbdb67852f7770fbe6ec2c67736627e62292f9d23dfcc9b1d548b6c33b75a7b2e911fa757fe087d7360bc7e72867d7f2c7a8
6+
HEAD_REF master
7+
)
8+
9+
file(INSTALL "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}/include/")
10+
file(RENAME "${CURRENT_PACKAGES_DIR}/include/include" "${CURRENT_PACKAGES_DIR}/include/hlslpp")
11+
12+
# Copy and rename License -> copyright.
13+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
14+
15+
# Copy the cmake config file, which is used to setup the imported target.
16+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/${PORT}-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
17+
18+
# Copy and show the usage.
19+
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

ports/hlslpp/usage

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
hlslpp provides a CMake package:
2+
3+
find_package(unofficial-hlslpp CONFIG REQUIRED)
4+
target_link_libraries(main PUBLIC unofficial::hlslpp::hlslpp)

ports/hlslpp/vcpkg.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "hlslpp",
3+
"version": "3.5",
4+
"description": "Math library using HLSL syntax with multiplatform SIMD support.",
5+
"homepage": "https://github.com/redorav/hlslpp",
6+
"license": "MIT",
7+
"supports": "!x86",
8+
"dependencies": [
9+
{
10+
"name": "vcpkg-cmake",
11+
"host": true
12+
},
13+
{
14+
"name": "vcpkg-cmake-config",
15+
"host": true
16+
}
17+
]
18+
}

versions/baseline.json

+4
Original file line numberDiff line numberDiff line change
@@ -3464,6 +3464,10 @@
34643464
"baseline": "2.4.1",
34653465
"port-version": 0
34663466
},
3467+
"hlslpp": {
3468+
"baseline": "3.5",
3469+
"port-version": 0
3470+
},
34673471
"hnswlib": {
34683472
"baseline": "0.8.0",
34693473
"port-version": 0

versions/h-/hlslpp.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "441df83e907bfc42eedda5b2e502e627519b3a8a",
5+
"version": "3.5",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)