mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2024-10-28 08:49:35 +01:00
cmake: update options (submodule on by default, option for libwrap)
Change-Id: I1b1d30da4c89af12f811075185095830a3a39157
This commit is contained in:
parent
428756e568
commit
a0f0dd132a
2 changed files with 8 additions and 10 deletions
|
@ -29,13 +29,19 @@ else()
|
|||
project(jami)
|
||||
endif()
|
||||
|
||||
option(WITH_DAEMON_SUBMODULE "Build with daemon submodule" OFF)
|
||||
option(WITH_DAEMON_SUBMODULE "Build with daemon submodule" ON)
|
||||
option(ENABLE_TESTS "Build with tests" OFF)
|
||||
option(WITH_WEBENGINE "Build with WebEngine" ON)
|
||||
if(WITH_WEBENGINE)
|
||||
add_definitions(-DWITH_WEBENGINE)
|
||||
endif()
|
||||
|
||||
option(ENABLE_LIBWRAP "Enable libwrap (single process mode)" ON)
|
||||
if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
OR ENABLE_LIBWRAP
|
||||
# because mocks use the same interface present in qtwrapper/
|
||||
OR ENABLE_TEST)
|
||||
set(ENABLE_LIBWRAP true)
|
||||
endif()
|
||||
option(ENABLE_ASAN "Enable address sanitization" OFF)
|
||||
if(ENABLE_ASAN AND NOT MSVC)
|
||||
message(STATUS "Address sanitization enabled for client")
|
||||
|
|
|
@ -158,14 +158,6 @@ if(NOT ENABLE_TEST)
|
|||
set(ENABLE_TEST false)
|
||||
endif()
|
||||
|
||||
if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
OR ENABLE_LIBWRAP
|
||||
# because mocks use the same interface present in qtwrapper/
|
||||
OR ENABLE_TEST)
|
||||
set(ENABLE_LIBWRAP true)
|
||||
set(ENABLE_LIBWRAP ${ENABLE_LIBWRAP} PARENT_SCOPE)
|
||||
endif()
|
||||
|
||||
if(NOT (${ENABLE_VIDEO} MATCHES false))
|
||||
message(STATUS "VIDEO enabled")
|
||||
set(ENABLE_VIDEO 1 CACHE BOOL "Enable video")
|
||||
|
|
Loading…
Reference in a new issue