1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

squashme: macos.cmake only for mac build, not ios

This commit is contained in:
Thomas Winget 2022-12-12 19:16:58 -05:00
parent dd64c6f2a5
commit 9028dc7c03
3 changed files with 6 additions and 6 deletions

View file

@ -122,7 +122,11 @@ include(cmake/gui-option.cmake)
include(cmake/solaris.cmake)
include(cmake/win32.cmake)
include(cmake/macos.cmake)
option(APPLE_IOS "Set if building for iOS" OFF)
if (APPLE AND (NOT APPLE_IOS))
include(cmake/macos.cmake)
endif()
# No in-source building
include(MacroEnsureOutOfSourceBuild)

View file

@ -1,8 +1,3 @@
if(NOT APPLE)
return()
endif()
option(MACOS_SYSTEM_EXTENSION
"Build the network extension as a system extension rather than a plugin. This must be ON for non-app store release builds, and must be OFF for dev builds and Mac App Store distribution builds"
OFF)

View file

@ -19,6 +19,7 @@ mkdir -p $targ
cmake \
-G Ninja \
-DCMAKE_TOOLCHAIN_FILE="$root/external/ios-cmake/ios.toolchain.cmake" -DPLATFORM=$plat -DDEPLOYMENT_TARGET=13 -DENABLE_VISIBILITY=ON -DENABLE_BITCODE=OFF \
-DAPPLE_IOS=ON \
-DBUILD_STATIC_DEPS=ON \
-DBUILD_PACKAGE=OFF \
-DBUILD_SHARED_LIBS=OFF \