mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 01:30:55 +08:00
[azure-kinect-sensor-sdk] fix single config builds (#42719)
This commit is contained in:
parent
78df9686ab
commit
3c24aa3516
@ -26,8 +26,8 @@ index 4f002b5..dd9b1df 100644
|
||||
+add_library(libjpeg-turbo::libjpeg-turbo UNKNOWN IMPORTED)
|
||||
+set_property(TARGET libjpeg-turbo::libjpeg-turbo PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${TURBOJPEG_INCLUDE_DIR})
|
||||
+set_property(TARGET libjpeg-turbo::libjpeg-turbo PROPERTY IMPORTED_LOCATION_RELEASE ${TURBOJPEG_LIBRARY_RELEASE})
|
||||
+if(EXISTS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib")
|
||||
+ find_library(TURBOJPEG_LIBRARY_DEBUG NAMES turbojpeg PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib" NO_DEFAULT_PATH REQUIRED)
|
||||
+find_library(TURBOJPEG_LIBRARY_DEBUG NAMES turbojpeg PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib" NO_DEFAULT_PATH)
|
||||
+if(TURBOJPEG_LIBRARY_DEBUG)
|
||||
+ set_property(TARGET libjpeg-turbo::libjpeg-turbo PROPERTY IMPORTED_LOCATION_DEBUG ${TURBOJPEG_LIBRARY_DEBUG})
|
||||
+endif()
|
||||
+find_package(Matroska CONFIG REQUIRED)
|
||||
|
@ -42,7 +42,9 @@ vcpkg_cmake_configure(
|
||||
vcpkg_cmake_install()
|
||||
|
||||
# Avoid deleting debug/lib/cmake when fixing the first cmake
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/cmake" "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
if(NOT VCPKG_BUILD_TYPE)
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/cmake" "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
endif()
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/cmake" "${CURRENT_PACKAGES_DIR}/share")
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME k4a CONFIG_PATH share/k4a)
|
||||
@ -83,12 +85,16 @@ endif ()
|
||||
|
||||
if (VCPKG_TARGET_IS_LINUX)
|
||||
file(COPY "${PACKAGE_PATH}/linux/lib/native/${VCPKG_TARGET_ARCHITECTURE}/release/libdepthengine.so.2.0" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
|
||||
file(COPY "${PACKAGE_PATH}/linux/lib/native/${VCPKG_TARGET_ARCHITECTURE}/release/libdepthengine.so.2.0" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
||||
if(NOT VCPKG_BUILD_TYPE)
|
||||
file(COPY "${PACKAGE_PATH}/linux/lib/native/${VCPKG_TARGET_ARCHITECTURE}/release/libdepthengine.so.2.0" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
||||
endif()
|
||||
else()
|
||||
file(COPY "${PACKAGE_PATH}/lib/native/${ARCHITECTURE}/release/depthengine_2_0.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/azure-kinect-sensor-sdk")
|
||||
file(COPY "${PACKAGE_PATH}/lib/native/${ARCHITECTURE}/release/depthengine_2_0.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/tools/azure-kinect-sensor-sdk")
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/k4adeploy.ps1" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/azure-kinect-sensor-sdk")
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/k4adeploy.ps1" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/tools/azure-kinect-sensor-sdk")
|
||||
if(NOT VCPKG_BUILD_TYPE)
|
||||
file(COPY "${PACKAGE_PATH}/lib/native/${ARCHITECTURE}/release/depthengine_2_0.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/tools/azure-kinect-sensor-sdk")
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/k4adeploy.ps1" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/tools/azure-kinect-sensor-sdk")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Handle copyright
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "azure-kinect-sensor-sdk",
|
||||
"version": "1.4.1",
|
||||
"port-version": 7,
|
||||
"port-version": 8,
|
||||
"description": "Azure Kinect SDK is a cross platform (Linux and Windows) user mode SDK to read data from your Azure Kinect device.",
|
||||
"homepage": "https://github.com/microsoft/Azure-Kinect-Sensor-SDK",
|
||||
"supports": "linux | windows",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "f19cdb3144d4296ac862b6e94c9967c056325476",
|
||||
"version": "1.4.1",
|
||||
"port-version": 8
|
||||
},
|
||||
{
|
||||
"git-tree": "a684e03aa0836ede2caba93683bee3fd3d1ed15f",
|
||||
"version": "1.4.1",
|
||||
|
@ -478,7 +478,7 @@
|
||||
},
|
||||
"azure-kinect-sensor-sdk": {
|
||||
"baseline": "1.4.1",
|
||||
"port-version": 7
|
||||
"port-version": 8
|
||||
},
|
||||
"azure-macro-utils-c": {
|
||||
"baseline": "2022-01-21",
|
||||
|
Loading…
x
Reference in New Issue
Block a user