parent
43dfd3e21f
commit
7ce8c9778b
|
@ -0,0 +1,17 @@
|
||||||
|
INCLUDE(CMakeForceCompiler)
|
||||||
|
|
||||||
|
SET (CMAKE_CROSSCOMPILING TRUE)
|
||||||
|
SET (CMAKE_SYSTEM_NAME "Darwin")
|
||||||
|
SET (CMAKE_SYSTEM_PROCESSOR "arm64e")
|
||||||
|
SET (IOS TRUE)
|
||||||
|
|
||||||
|
SET (IOS_SDK_DEVICE iPhoneOS)
|
||||||
|
|
||||||
|
SET (SDKVER "${IOS_SDK_VERSION}")
|
||||||
|
SET (DEVROOT "${XCODE_ROOT_DIR}/Platforms/${IOS_SDK_DEVICE}.platform/Developer")
|
||||||
|
|
||||||
|
|
||||||
|
SET (CMAKE_FIND_ROOT_PATH "${SDKROOT}" "${DEVROOT}")
|
||||||
|
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
|
SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
|
SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
@ -31,7 +31,7 @@ TOOLCHAIN=$XCODE_ROOT_DIR/Toolchains/XcodeDefault.xctoolchain
|
||||||
CMAKE_C_COMPILER=$(xcrun -find cc)
|
CMAKE_C_COMPILER=$(xcrun -find cc)
|
||||||
CMAKE_CXX_COMPILER=$(xcrun -find c++)
|
CMAKE_CXX_COMPILER=$(xcrun -find c++)
|
||||||
|
|
||||||
BUILD_ARCHS_DEVICE="arm64 armv7s armv7"
|
BUILD_ARCHS_DEVICE="arm64e arm64 armv7s armv7"
|
||||||
BUILD_ARCHS_SIMULATOR="x86_64 i386"
|
BUILD_ARCHS_SIMULATOR="x86_64 i386"
|
||||||
BUILD_ARCHS_ALL=($BUILD_ARCHS_DEVICE $BUILD_ARCHS_SIMULATOR)
|
BUILD_ARCHS_ALL=($BUILD_ARCHS_DEVICE $BUILD_ARCHS_SIMULATOR)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue