aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/realsense2/CONTROL1
-rw-r--r--ports/realsense2/portfile.cmake6
2 files changed, 7 insertions, 0 deletions
diff --git a/ports/realsense2/CONTROL b/ports/realsense2/CONTROL
index 3b4228326..84af14d20 100644
--- a/ports/realsense2/CONTROL
+++ b/ports/realsense2/CONTROL
@@ -1,5 +1,6 @@
Source: realsense2
Version: 2.40.0
+Port-Version: 1
Homepage: https://github.com/IntelRealSense/librealsense
Description: Intel® RealSense™ SDK 2.0 is a cross-platform library for Intel® RealSense™ depth cameras (D400 series and the SR300).
Build-Depends: libusb(linux)
diff --git a/ports/realsense2/portfile.cmake b/ports/realsense2/portfile.cmake
index fc218d279..d7208ec1b 100644
--- a/ports/realsense2/portfile.cmake
+++ b/ports/realsense2/portfile.cmake
@@ -26,6 +26,11 @@ if(("openni2" IN_LIST FEATURES) AND (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic"))
set(BUILD_OPENNI2_BINDINGS ON)
endif()
+set(PLATFORM_OPTIONS)
+if (VCPKG_TARGET_IS_ANDROID)
+ list(APPEND PLATFORM_OPTIONS -DFORCE_RSUSB_BACKEND=ON)
+endif()
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@@ -36,6 +41,7 @@ vcpkg_configure_cmake(
-DBUILD_WITH_STATIC_CRT=${BUILD_CRT_LINKAGE}
-DBUILD_OPENNI2_BINDINGS=${BUILD_OPENNI2_BINDINGS}
-DOPENNI2_DIR=${CURRENT_INSTALLED_DIR}/include/openni2
+ ${PLATFORM_OPTIONS}
OPTIONS_RELEASE
-DBUILD_EXAMPLES=${BUILD_TOOLS}
-DBUILD_GRAPHICAL_EXAMPLES=${BUILD_TOOLS}