From b57a098bf95ae96aa214ae6e05e5d9ae7fe9d2c2 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 5 Nov 2024 14:31:34 +0100 Subject: [PATCH] [ci,ios] add configuration for dynamic build * Add build configuration for shared libraries * Fix ENABLE_BITCONFIG setting for ci builds * Enable unit tests for iOS --- ci/cmake-preloads/config-ios-shared.txt | 18 ++++++++++++++++++ ci/cmake-preloads/config-ios.txt | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 ci/cmake-preloads/config-ios-shared.txt diff --git a/ci/cmake-preloads/config-ios-shared.txt b/ci/cmake-preloads/config-ios-shared.txt new file mode 100644 index 000000000..ad8919eee --- /dev/null +++ b/ci/cmake-preloads/config-ios-shared.txt @@ -0,0 +1,18 @@ +message("PRELOADING iOS cache") +set (CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "preload") +set (CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR}/cmake/ios.toolchain.cmake" CACHE PATH "cmake toolchain file") +set (CMAKE_BUILD_TYPE "Release" CACHE STRING "build type") +set (CMAKE_OSX_ARCHITECTURES "arm64" CACHE STRING "iOS platform to build") +set (CMAKE_OSX_DEPLOYMENT_TARGET "10.0" CACHE STRING "iOS minimum target") +set (ENABLE_BITCODE OFF CACHE BOOL "iOS default") +set (BUILD_TESTING ON CACHE BOOL "iOS default") +set (WITH_SANITIZE_ADDRESS ON CACHE BOOL "build with address sanitizer") +set (WITH_CLIENT OFF CACHE BOOL "disable iOS client") +set (WITH_SERVER OFF CACHE BOOL "disable iOS server") +set (WITH_KRB5 OFF CACHE BOOL "Kerberos support") +set (WITH_CLIENT_SDL OFF CACHE BOOL "iOS preload") +set (WITH_FFMPEG OFF CACHE BOOL "iOS preload") +set (WITH_SWSCALE OFF CACHE BOOL "iOS preload") +set (WITH_NEON ON CACHE BOOL "iOS preload") +set (WITH_OPUS OFF CACHE BOOL "iOS preload") +set (BUILD_SHARED_LIBS ON CACHE BOOL "iOS preload") diff --git a/ci/cmake-preloads/config-ios.txt b/ci/cmake-preloads/config-ios.txt index 15b55fbf1..acdfdad10 100644 --- a/ci/cmake-preloads/config-ios.txt +++ b/ci/cmake-preloads/config-ios.txt @@ -4,6 +4,8 @@ set (CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR}/cmake/ios.toolchain.cmake" CACHE set (CMAKE_BUILD_TYPE "Debug" CACHE STRING "build type") set (CMAKE_OSX_ARCHITECTURES "arm64" CACHE STRING "iOS platform to build") set (CMAKE_OSX_DEPLOYMENT_TARGET "10.0" CACHE STRING "iOS minimum target") +set (ENABLE_BITCODE OFF CACHE BOOL "iOS default") +set (BUILD_TESTING ON CACHE BOOL "iOS default") set (WITH_SANITIZE_ADDRESS ON CACHE BOOL "build with address sanitizer") set (WITH_CLIENT OFF CACHE BOOL "disable iOS client") set (WITH_SERVER OFF CACHE BOOL "disable iOS server")