mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
ios: Remove the support for bitcode
This commit is contained in:
parent
b35128118e
commit
ec6d5ac6d5
1 changed files with 2 additions and 15 deletions
|
@ -17,8 +17,6 @@
|
|||
# By default this location is automatcially chosen based on the CMAKE_IOS_DEVELOPER_ROOT value.
|
||||
# In this case it will always be the most up-to-date SDK found in the CMAKE_IOS_DEVELOPER_ROOT path.
|
||||
# If set manually, this will force the use of a specific SDK version
|
||||
#
|
||||
# IOS_BITCODE = 1/0: Enable bitcode or not. Only iOS >= 6.0 device build can enable bitcode. Default is enabled.
|
||||
|
||||
# Macros:
|
||||
#
|
||||
|
@ -38,11 +36,6 @@ set (UNIX TRUE)
|
|||
set (APPLE TRUE)
|
||||
set (IOS TRUE)
|
||||
|
||||
if(NOT DEFINED IOS_BITCODE) # check xcode/clang version? since xcode 7
|
||||
set(IOS_BITCODE 1)
|
||||
endif()
|
||||
set(IOS_BITCODE_MARKER 0)
|
||||
|
||||
# Required as of cmake 2.8.10
|
||||
set (CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Force unset of the deployment target for iOS" FORCE)
|
||||
|
||||
|
@ -71,20 +64,14 @@ set (CMAKE_SHARED_MODULE_SUFFIX ".so")
|
|||
set (CMAKE_MODULE_EXISTS 1)
|
||||
set (CMAKE_DL_LIBS "")
|
||||
|
||||
if(IOS_BITCODE)
|
||||
set(BITCODE_FLAGS "-fembed-bitcode")
|
||||
elseif(IOS_BITCODE_MARKER)
|
||||
set(BITCODE_FLAGS "-fembed-bitcode-marker")
|
||||
endif()
|
||||
|
||||
set (CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ")
|
||||
set (CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version ")
|
||||
set (CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG}")
|
||||
set (CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}")
|
||||
|
||||
# Hidden visibilty is required for cxx on iOS
|
||||
set (CMAKE_C_FLAGS_INIT "${BITCODE_FLAGS}")
|
||||
set (CMAKE_CXX_FLAGS_INIT "-fvisibility=hidden -fvisibility-inlines-hidden ${BITCODE_FLAGS}")
|
||||
set (CMAKE_C_FLAGS_INIT)
|
||||
set (CMAKE_CXX_FLAGS_INIT "-fvisibility=hidden -fvisibility-inlines-hidden")
|
||||
|
||||
set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}")
|
||||
set (CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_CXX_LINK_FLAGS}")
|
||||
|
|
Loading…
Add table
Reference in a new issue