Commit 5bff8269 authored by Paul Cartier's avatar Paul Cartier

Fix swift compilation

Add ENABLE_SWIFT_WRAPPER_COMPILATION cmake variable to activate swift
compilation
Package swift wrapper sources by default
Fix xcode 11 swift compilation
parent f56e8abe
......@@ -92,6 +92,7 @@ lcb_cmake_options(
"-DENABLE_CXX_WRAPPER=${ENABLE_CXX_WRAPPER}"
"-DENABLE_CSHARP_WRAPPER=${ENABLE_CSHARP_WRAPPER}"
"-DENABLE_SWIFT_WRAPPER=${ENABLE_SWIFT_WRAPPER}"
"-DENABLE_SWIFT_WRAPPER_COMPILATION=${ENABLE_SWIFT_WRAPPER_COMPILATION}"
"-DENABLE_JAZZY_DOC=${ENABLE_JAZZY_DOC}"
"-DENABLE_JAVA_WRAPPER=${ENABLE_JAVA_WRAPPER}"
"-DENABLE_QRCODE=${ENABLE_QRCODE}"
......
......@@ -48,6 +48,7 @@ set(DEFAULT_VALUE_ENABLE_TOOLS OFF)
set(DEFAULT_VALUE_ENABLE_UPDATE_CHECK ON)
set(DEFAULT_VALUE_ENABLE_ASSETS ON)
set(DEFAULT_VALUE_ENABLE_SWIFT_WRAPPER ON)
set(DEFAULT_VALUE_ENABLE_SWIFT_WRAPPER_COMPILATION OFF)
if ((NOT DEFINED CMAKE_INSTALL_PREFIX) OR CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/linphone-sdk" CACHE PATH "Default linphone-sdk installation prefix" FORCE)
......
......@@ -25,7 +25,8 @@
lcb_add_option("GTK UI" "Enable the GTK user interface of Linphone." "${DEFAULT_VALUE_ENABLE_GTK_UI}")
lcb_add_option("CXX wrapper" "Build the C++ wrapper for Liblinphone." "${DEFAULT_VALUE_ENABLE_CXX_WRAPPER}")
lcb_add_option("CSharp wrapper" "Build the C# wrapper from Liblinphone." "${DEFAULT_VALUE_ENABLE_CSHARP_WRAPPER}")
lcb_add_option("Swift wrapper" "Build the Swift wrapper from Liblinphone." "${DEFAULT_VALUE_ENABLE_SWIFT_WRAPPER}")
lcb_add_option("Swift wrapper" "Build the Swift wrapper sources from Liblinphone." "${DEFAULT_VALUE_ENABLE_SWIFT_WRAPPER}")
lcb_add_option("Swift wrapper compilation" "Compile and package the swift wrapper framework. Require at least cmake 3.16.3." "${DEFAULT_VALUE_ENABLE_SWIFT_WRAPPER_COMPILATION}")
lcb_add_option("Jazzy doc" "Build the Swift doc from Liblinphone." "${DEFAULT_VALUE_ENABLE_JAZZY_DOC}")
lcb_add_option("Java wrapper" "Build the Java wrapper from Liblinphone." "${DEFAULT_VALUE_ENABLE_JAVA_WRAPPER}")
lcb_add_option("LIME" "Enable Linphone IM Encryption support in Liblinphone." "${DEFAULT_VALUE_ENABLE_LIME}")
......
......@@ -94,6 +94,7 @@ if(CMAKE_GENERATOR STREQUAL "Xcode")
set(CMAKE_MACOSX_BUNDLE YES)
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED NO)
set(CMAKE_XCODE_ATTRIBUTE_BITCODE_GENERATION_MODE "bitcode")
set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "")
endif()
# Define the compiler
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment