Commit ad49a021 authored by Erwan Croze's avatar Erwan Croze 👋🏻
Browse files

Adding dependency option in linphone for sqlite3

parent 696e7362
......@@ -30,11 +30,14 @@ lcb_package_source(YES)
lcb_dependencies("bctoolbox" "bellesip" "ortp" "ms2" "belr")
if(LINPHONE_BUILDER_BUILD_DEPENDENCIES AND NOT APPLE)
# Do not build sqlite3, xml2 and zlib on Apple systems (Mac OS X and iOS), they are provided by the system
lcb_dependencies("sqlite3" "xml2")
lcb_dependencies("xml2")
if(NOT ANDROID AND NOT QNX)
lcb_dependencies("zlib")
endif()
endif()
if(ENABLE_SQLITE_BUILD)
lcb_dependencies("sqlite3")
endif()
if(ENABLE_TUNNEL)
lcb_dependencies("tunnel")
endif()
......
......@@ -34,7 +34,7 @@ set(DEFAULT_VALUE_ENABLE_CONFERENCE OFF)
set(DEFAULT_VALUE_ENABLE_SNMP ON)
set(DEFAULT_VALUE_ENABLE_POLARSSL ON)
set(DEFAULT_VALUE_ENABLE_PROTOBUF OFF)
set(DEFAULT_VALUE_ENABLE_SQLITE_BUILD OFF)
set(DEFAULT_VALUE_ENABLE_VIDEO OFF)
set(DEFAULT_VALUE_CMAKE_LINKING_TYPE "-DENABLE_STATIC=NO")
......
......@@ -30,6 +30,7 @@ lcb_add_option("LIME" "Enable Linphone IM Encryption support in Liblinphone." "
lcb_add_option("NLS" "Enable internationalization of Linphone and Liblinphone." "${DEFAULT_VALUE_ENABLE_NLS}")
lcb_add_option("Update Check" "Enable update check." "${DEFAULT_VALUE_ENABLE_UPDATE_CHECK}")
lcb_add_option("VCARD" "Enable vCard 4 support in Linphone and Liblinphone." "${DEFAULT_VALUE_ENABLE_VCARD}")
lcb_add_dependent_option("SQLite build" "Build SQLite from sources instead of taking the operating system version." "${DEFAULT_VALUE_ENABLE_SQLITE_BUILD}" "ENABLE_SQLITE" OFF)
if(UNIX AND NOT IOS)
lcb_add_option("Relative prefix" "liblinphone and mediastreamer will look for their respective ressources relatively to their location." OFF)
......
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