Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hlslpp] Add new port #40400

Merged
merged 32 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b205e86
Add hlslpp to vcpkg
plekakis Aug 11, 2024
2254f79
version database update
plekakis Aug 11, 2024
4b64316
Update to restrict to x64 only
plekakis Aug 12, 2024
602eee9
formatted manifest
plekakis Aug 12, 2024
90f0163
updated version database
plekakis Aug 12, 2024
c7e461d
Update ports/hlslpp/hlslpp-config.cmake
plekakis Aug 13, 2024
2e9f9b8
Update ports/hlslpp/portfile.cmake
plekakis Aug 13, 2024
7a45208
Update ports/hlslpp/usage
plekakis Aug 13, 2024
ca7e956
Update version database
plekakis Aug 13, 2024
bc96b1d
Merge branch 'hlslpp-port' of https://github.com/plekakis/vcpkg into …
plekakis Aug 13, 2024
e8c4746
Update version database
plekakis Aug 13, 2024
6e81808
Update ports/hlslpp/portfile.cmake
plekakis Aug 15, 2024
4d19e30
Update versions/h-/hlslpp.json
plekakis Aug 15, 2024
689dbca
Update ports/hlslpp/vcpkg.json
plekakis Aug 15, 2024
4140689
Update ports/hlslpp/usage
plekakis Aug 15, 2024
1df0f40
Update ports/hlslpp/usage
plekakis Aug 15, 2024
aa70b50
Update ports/hlslpp/portfile.cmake
plekakis Aug 15, 2024
48db382
Update ports/hlslpp/hlslpp-config.cmake
plekakis Aug 15, 2024
f3c111b
Update ports/hlslpp/hlslpp-config.cmake
plekakis Aug 15, 2024
0875967
updated include directory
plekakis Aug 15, 2024
45863d9
updated version database
plekakis Aug 15, 2024
971b183
imported target support and update version database
plekakis Aug 15, 2024
c6d1252
updated comments and version database
plekakis Aug 15, 2024
ccf4cbd
Update version database again
plekakis Aug 15, 2024
a70904e
Update ports/hlslpp/hlslpp-config.cmake
plekakis Aug 16, 2024
a779c64
Merge branch 'microsoft:master' into hlslpp-port
plekakis Aug 16, 2024
6769182
updated version database
plekakis Aug 16, 2024
eb13bc5
Fixed cmake config so the library name is created correctly, as previ…
plekakis Aug 17, 2024
821668e
Update version database
plekakis Aug 17, 2024
27d0716
Update ports/hlslpp/hlslpp-config.cmake
plekakis Aug 19, 2024
f74f4ec
Update ports/hlslpp/usage
plekakis Aug 19, 2024
3421c28
Updated version database
plekakis Aug 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ports/hlslpp/hlslpp-config.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_library(unofficial::hlslpp::hlslpp INTERACE IMPORTED)
target_include_directories(unofficial::hlslpp::hlslpp INTERFACE "${CMAKE_CURRENT_LIST_DIR}/../../include/hlslpp")
19 changes: 19 additions & 0 deletions ports/hlslpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO redorav/hlslpp
REF "${VERSION}"
SHA512 79b1464eb6441ec720b9952e80d7fbdb67852f7770fbe6ec2c67736627e62292f9d23dfcc9b1d548b6c33b75a7b2e911fa757fe087d7360bc7e72867d7f2c7a8
HEAD_REF master
)

file(INSTALL "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}/include/")
file(RENAME "${CURRENT_PACKAGES_DIR}/include/include" "${CURRENT_PACKAGES_DIR}/include/hlslpp")

# Copy and rename License -> copyright.
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

# Copy the cmake config file, which is used to setup the imported target.
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/${PORT}-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

# Copy and show the usage.
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
4 changes: 4 additions & 0 deletions ports/hlslpp/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
hlslpp provides a CMake package:

find_package(unofficial-hlslpp CONFIG REQUIRED)
target_link_libraries(main PUBLIC unofficial::hlslpp::hlslpp)
18 changes: 18 additions & 0 deletions ports/hlslpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "hlslpp",
"version": "3.5",
"description": "Math library using HLSL syntax with multiplatform SIMD support.",
"homepage": "https://github.com/redorav/hlslpp",
"license": "MIT",
"supports": "!x86",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3464,6 +3464,10 @@
"baseline": "2.4.1",
"port-version": 0
},
"hlslpp": {
"baseline": "3.5",
"port-version": 0
},
"hnswlib": {
"baseline": "0.8.0",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/h-/hlslpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "441df83e907bfc42eedda5b2e502e627519b3a8a",
"version": "3.5",
"port-version": 0
}
]
}