mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[anari] Added ANARI port. (#33213)
* Added ANARI port. * Modifications according to code review. * Correct the versioning SHA. * Disabled CTS and Helide. Added glm dependency. * Correct formatting. * Updated version SHA. * Formatting fixes. * Updated version. * Correct dependency. * Update version. * Attempt enabling Helide. * Update version. * Add Python3 dependency. * Updated version. * Added pthreads dependency. * Updated version. * Attempt using Python3 as a tool to fix CI issues. * Updated version. * Revert Python dependency change. * Updated version. * Obtain Python3 executable via find_acquire_program. * Updated version. * Revert removing python3 dependency. Quote python3 directory. * Updated version. * Remove unused option, remove bin directory in static builds. * Updated version. * Disable on ARM64 Windows. * Updated formatting. * Updated version. * Disable Android. * Updated version. * Re-enable Android. * Updated version. * Updates according to code review. * Updated version.
This commit is contained in:
parent
57d42f6296
commit
6dce771695
43
ports/anari/portfile.cmake
Normal file
43
ports/anari/portfile.cmake
Normal file
@ -0,0 +1,43 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO KhronosGroup/ANARI-SDK
|
||||
REF "v${VERSION}"
|
||||
SHA512 51937d160a9508c56cf123eda13002c705acff501366710f83da1c62d875f8427cec27f10ea2d05f4637be141fb9a87935f4b0b9f0fabb6bd6a7cca6a4f48ee1
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
vcpkg_find_acquire_program(PYTHON3)
|
||||
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
||||
vcpkg_add_to_path("${PYTHON3_DIR}")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_CTS=OFF
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_TESTING=OFF
|
||||
-DBUILD_VIEWER=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(
|
||||
CONFIG_PATH "lib/cmake/${PORT}-${VERSION}"
|
||||
)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/bin"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
||||
)
|
||||
endif()
|
||||
|
||||
vcpkg_install_copyright(
|
||||
FILE_LIST "${SOURCE_PATH}/LICENSE"
|
||||
)
|
19
ports/anari/vcpkg.json
Normal file
19
ports/anari/vcpkg.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "anari",
|
||||
"version": "0.7.0",
|
||||
"description": "Cross-Platform 3D Rendering Engine API.",
|
||||
"homepage": "https://www.khronos.org/anari",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": [
|
||||
"glm",
|
||||
"python3",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -46,6 +46,7 @@ allegro5:arm-neon-android=fail
|
||||
allegro5:arm64-android=fail
|
||||
allegro5:x64-android=fail
|
||||
ampl-asl:x64-android=fail
|
||||
anari:arm64-windows=fail
|
||||
apr:arm-neon-android=fail
|
||||
apr:arm64-android=fail
|
||||
apr:x64-android=fail
|
||||
|
9
versions/a-/anari.json
Normal file
9
versions/a-/anari.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "cf756ca650e9d72324024441ad48b760fb587f86",
|
||||
"version": "0.7.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
@ -116,6 +116,10 @@
|
||||
"baseline": "4.3.23",
|
||||
"port-version": 0
|
||||
},
|
||||
"anari": {
|
||||
"baseline": "0.7.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"anax": {
|
||||
"baseline": "2.1.0",
|
||||
"port-version": 8
|
||||
|
Loading…
x
Reference in New Issue
Block a user