mirror of
https://github.com/opencv/opencv.git
synced 2024-11-23 18:50:21 +08:00
3d9cb5329c
Add experimental support for Apple VisionOS platform #24136 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch This is dependent on cmake support for VisionOs which is currently in progress. Creating PR now to test that there are no regressions in iOS and macOS builds
28 lines
1.1 KiB
CMake
28 lines
1.1 KiB
CMake
set(OPENCV_APPLE_BUNDLE_NAME "OpenCV")
|
|
set(OPENCV_APPLE_BUNDLE_ID "org.opencv")
|
|
|
|
if(IOS)
|
|
if(MAC_CATALYST)
|
|
# Copy the iOS plist over to the OSX directory if building iOS library for Catalyst
|
|
configure_file("${OpenCV_SOURCE_DIR}/platforms/ios/Info.plist.in"
|
|
"${CMAKE_BINARY_DIR}/osx/Info.plist")
|
|
elseif(APPLE_FRAMEWORK AND DYNAMIC_PLIST)
|
|
configure_file("${OpenCV_SOURCE_DIR}/platforms/ios/Info.Dynamic.plist.in"
|
|
"${CMAKE_BINARY_DIR}/ios/Info.plist")
|
|
else()
|
|
configure_file("${OpenCV_SOURCE_DIR}/platforms/ios/Info.plist.in"
|
|
"${CMAKE_BINARY_DIR}/ios/Info.plist")
|
|
endif()
|
|
elseif(XROS)
|
|
if(APPLE_FRAMEWORK AND DYNAMIC_PLIST)
|
|
configure_file("${OpenCV_SOURCE_DIR}/platforms/ios/Info.Dynamic.plist.in"
|
|
"${CMAKE_BINARY_DIR}/visionos/Info.plist")
|
|
else()
|
|
configure_file("${OpenCV_SOURCE_DIR}/platforms/ios/Info.plist.in"
|
|
"${CMAKE_BINARY_DIR}/visionos/Info.plist")
|
|
endif()
|
|
elseif(APPLE)
|
|
configure_file("${OpenCV_SOURCE_DIR}/platforms/osx/Info.plist.in"
|
|
"${CMAKE_BINARY_DIR}/osx/Info.plist")
|
|
endif()
|