mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 12:40:05 +08:00
e71ff78f7f
CMake: Building Dynamic Framework on iOS (#8009) * Updated python script with dynamic parameter Updated python script to build static library by default Updated python script to include bitcode flag Added bitcode flag to c flags Fixed directories and targets with static Bitcode parameter fixed Fixed script for static library Fixed parameters in build function Updated cmake common toolchain Added changes to OpenCV Utils Updates to cmake Added cache internal Updates to common toolchain Fixed path in framework destination and added UIKit dependency Dynamic plist for framework Lib version removed hardcoded value Removed trailing whitespace in toolchain * Removed trailing whitespace * Fixed typo in comment * Renamed bitcode variable to bitcodedisabled * Fixed target device family
16 lines
560 B
CMake
16 lines
560 B
CMake
set(OPENCV_APPLE_BUNDLE_NAME "OpenCV")
|
|
set(OPENCV_APPLE_BUNDLE_ID "org.opencv")
|
|
|
|
if(IOS)
|
|
if (APPLE_FRAMEWORK AND BUILD_SHARED_LIBS)
|
|
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(APPLE)
|
|
configure_file("${OpenCV_SOURCE_DIR}/platforms/osx/Info.plist.in"
|
|
"${CMAKE_BINARY_DIR}/osx/Info.plist")
|
|
endif()
|