mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 08:39:01 +08:00
Librealsense2 android build (#15608)
* [realsense2] options for android build * bump port version * update baseline Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
This commit is contained in:
parent
ab077c4e55
commit
2f542209ce
@ -4998,7 +4998,7 @@
|
||||
},
|
||||
"realsense2": {
|
||||
"baseline": "2.40.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"recast": {
|
||||
"baseline": "1.5.1-3",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "7a17b91ddec89be9345ca08ba098ffec3ee4618d",
|
||||
"version-string": "2.40.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "c3d32b35fd3a11aec9bd32f3f458ea4b099816f7",
|
||||
"version-string": "2.40.0",
|
||||
|
@ -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)
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user