Commit 2fc5ca67 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Do not build sqlite3, xml2 and zlib on IOS.

parent 0e703903
......@@ -114,7 +114,10 @@ else()
endif()
if(ENABLE_ZRTP)
linphone_builder_add_builder_to_target(TARGET_ms2 polarssl)
linphone_builder_add_builder_to_target(TARGET_ms2 xml2)
if(NOT IOS)
# Do not build xml2 on IOS, it is provided by the system
linphone_builder_add_builder_to_target(TARGET_ms2 xml2)
endif()
endif()
endif()
if(ENABLE_ZRTP)
......@@ -176,9 +179,12 @@ else()
add_dependencies(TARGET_linphone_builder TARGET_linphone)
add_dependencies(TARGET_linphone TARGET_bellesip TARGET_ortp TARGET_ms2)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
linphone_builder_add_builder_to_target(TARGET_linphone sqlite3)
linphone_builder_add_builder_to_target(TARGET_linphone xml2)
linphone_builder_add_builder_to_target(TARGET_linphone zlib)
if(NOT IOS)
# Do not build sqlite3, xml2 and zlib on IOS, they are provided by the system
linphone_builder_add_builder_to_target(TARGET_linphone sqlite3)
linphone_builder_add_builder_to_target(TARGET_linphone xml2)
linphone_builder_add_builder_to_target(TARGET_linphone zlib)
endif()
if(ENABLE_UNIT_TESTS)
linphone_builder_add_builder_to_target(TARGET_linphone cunit)
endif()
......
......@@ -28,7 +28,11 @@ set(EP_bzrtp_CMAKE_OPTIONS )
set(EP_bzrtp_LINKING_TYPE "-DENABLE_STATIC=0")
set(EP_bzrtp_DEPENDENCIES )
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
list(APPEND EP_bzrtp_DEPENDENCIES EP_polarssl EP_xml2)
list(APPEND EP_bzrtp_DEPENDENCIES EP_polarssl)
if(NOT IOS)
# Do not build xml2 on IOS, it is provided by the system
list(APPEND EP_bzrtp_DEPENDENCIES EP_xml2)
endif()
endif()
if(MSVC)
set(EP_bzrtp_EXTRA_LDFLAGS "/SAFESEH:NO")
......
......@@ -28,7 +28,8 @@ set(EP_linphone_EXTERNAL_SOURCE_PATHS "linphone")
set(EP_linphone_CMAKE_OPTIONS )
set(EP_linphone_LINKING_TYPE "-DENABLE_STATIC=NO")
set(EP_linphone_DEPENDENCIES EP_bellesip EP_ortp EP_ms2)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT IOS)
# Do not build sqlite3 and xml2 on IOS, they are provided by the system
list(APPEND EP_linphone_DEPENDENCIES EP_sqlite3 EP_xml2)
endif()
if(ENABLE_VIDEO)
......@@ -50,7 +51,8 @@ if(ENABLE_UNIT_TESTS)
else()
list(APPEND EP_linphone_CMAKE_OPTIONS "-DENABLE_UNIT_TESTS=NO")
endif()
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES)
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT IOS)
# Do not build zlib on IOS, it is provided by the system
list(APPEND EP_linphone_DEPENDENCIES EP_zlib)
endif()
if(MSVC)
......
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