mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 03:09:00 +08:00
[level-zero] added new port (#40498)
This commit is contained in:
parent
abe69d7c9f
commit
624007c5e6
116
ports/level-zero/001-patch-install-rules.patch
Normal file
116
ports/level-zero/001-patch-install-rules.patch
Normal file
@ -0,0 +1,116 @@
|
||||
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
|
||||
index 5ef252c..c9d05dd 100644
|
||||
--- a/source/CMakeLists.txt
|
||||
+++ b/source/CMakeLists.txt
|
||||
@@ -49,21 +49,10 @@ endif()
|
||||
target_link_libraries(${TARGET_LOADER_NAME} utils)
|
||||
|
||||
install(TARGETS ze_loader
|
||||
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
- LIBRARY
|
||||
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- COMPONENT level-zero
|
||||
- NAMELINK_SKIP
|
||||
-)
|
||||
-
|
||||
-install(TARGETS ze_loader
|
||||
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
- LIBRARY
|
||||
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- COMPONENT level-zero-devel
|
||||
- NAMELINK_ONLY
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero-devel
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT level-zero
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero
|
||||
+ NAMELINK_COMPONENT level-zero-devel
|
||||
)
|
||||
|
||||
if(UNIX)
|
||||
diff --git a/source/drivers/null/CMakeLists.txt b/source/drivers/null/CMakeLists.txt
|
||||
index b384434..0cb8801 100644
|
||||
--- a/source/drivers/null/CMakeLists.txt
|
||||
+++ b/source/drivers/null/CMakeLists.txt
|
||||
@@ -21,18 +21,10 @@ target_include_directories(${TARGET_NAME}
|
||||
|
||||
if(INSTALL_NULL_DRIVER)
|
||||
install(TARGETS ze_null
|
||||
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- LIBRARY
|
||||
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- COMPONENT level-zero
|
||||
- NAMELINK_SKIP
|
||||
- )
|
||||
- install(TARGETS ze_null
|
||||
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- LIBRARY
|
||||
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- COMPONENT level-zero-devel
|
||||
- NAMELINK_ONLY
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero-devel
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT level-zero
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero
|
||||
+ NAMELINK_COMPONENT level-zero-devel
|
||||
)
|
||||
endif()
|
||||
|
||||
diff --git a/source/layers/tracing/CMakeLists.txt b/source/layers/tracing/CMakeLists.txt
|
||||
index 1dde028..63e0b20 100644
|
||||
--- a/source/layers/tracing/CMakeLists.txt
|
||||
+++ b/source/layers/tracing/CMakeLists.txt
|
||||
@@ -49,20 +49,8 @@ set_target_properties(${TARGET_NAME} PROPERTIES
|
||||
)
|
||||
|
||||
install(TARGETS ze_tracing_layer
|
||||
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- LIBRARY
|
||||
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- COMPONENT level-zero
|
||||
- NAMELINK_SKIP
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero-devel
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT level-zero
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero
|
||||
+ NAMELINK_COMPONENT level-zero-devel
|
||||
)
|
||||
-
|
||||
-install(TARGETS ze_tracing_layer
|
||||
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- LIBRARY
|
||||
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- COMPONENT level-zero-devel
|
||||
- NAMELINK_ONLY
|
||||
-)
|
||||
-
|
||||
diff --git a/source/layers/validation/CMakeLists.txt b/source/layers/validation/CMakeLists.txt
|
||||
index 3a4162c..ced5f21 100644
|
||||
--- a/source/layers/validation/CMakeLists.txt
|
||||
+++ b/source/layers/validation/CMakeLists.txt
|
||||
@@ -37,21 +37,10 @@ set_target_properties(${TARGET_NAME} PROPERTIES
|
||||
)
|
||||
|
||||
install(TARGETS ze_validation_layer
|
||||
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- LIBRARY
|
||||
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- COMPONENT level-zero
|
||||
- NAMELINK_SKIP
|
||||
-)
|
||||
-
|
||||
-install(TARGETS ze_validation_layer
|
||||
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- LIBRARY
|
||||
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
- COMPONENT level-zero-devel
|
||||
- NAMELINK_ONLY
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero-devel
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT level-zero
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero
|
||||
+ NAMELINK_COMPONENT level-zero-devel
|
||||
)
|
||||
|
||||
add_subdirectory(handle_lifetime_tracking)
|
25
ports/level-zero/portfile.cmake
Normal file
25
ports/level-zero/portfile.cmake
Normal file
@ -0,0 +1,25 @@
|
||||
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO oneapi-src/level-zero
|
||||
REF "v${VERSION}"
|
||||
SHA512 0498ec279ab73a61ccd4a2c27a8c3837090004e0730c01e92ef6e91f32000ca9e91167b87fbec66668674d86b5dede51470ce4c77dafb58f8b4d982db8b6e490
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
001-patch-install-rules.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DSYSTEM_SPDLOG=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
19
ports/level-zero/vcpkg.json
Normal file
19
ports/level-zero/vcpkg.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "level-zero",
|
||||
"version": "1.17.28",
|
||||
"description": "oneAPI Level Zero Specification Headers and Loader.",
|
||||
"homepage": "https://github.com/oneapi-src/level-zero",
|
||||
"license": "MIT",
|
||||
"supports": "x64 & !static & (linux | (windows & !uwp))",
|
||||
"dependencies": [
|
||||
"spdlog",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -4184,6 +4184,10 @@
|
||||
"baseline": "1.35.1",
|
||||
"port-version": 3
|
||||
},
|
||||
"level-zero": {
|
||||
"baseline": "1.17.28",
|
||||
"port-version": 0
|
||||
},
|
||||
"leveldb": {
|
||||
"baseline": "1.23",
|
||||
"port-version": 0
|
||||
|
9
versions/l-/level-zero.json
Normal file
9
versions/l-/level-zero.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "ce4627310deb48fe8c5e30d69862c69039c31a98",
|
||||
"version": "1.17.28",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user