mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Add CMake option to disable rootca.pem download at build time.
This commit is contained in:
parent
e5e9055551
commit
4f912e5a71
2 changed files with 20 additions and 17 deletions
|
|
@ -59,6 +59,7 @@ cmake_dependent_option(ENABLE_ASSISTANT "Turn on assistant compiling." YES "ENAB
|
|||
option(ENABLE_DEBUG_LOGS "Turn on or off debug level logs." NO)
|
||||
option(ENABLE_NLS "Build with internationalisation support" YES)
|
||||
option(ENABLE_VCARD "Turn on compilation of vcard4 support." YES)
|
||||
option(ENABLE_ROOTCA_DOWNLOAD "Download rootca.pem at build time." YES)
|
||||
option(CXX_WRAPPER "Build the C++ wrapper for Liblinphone." OFF)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,26 +20,28 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
if(APPLE)
|
||||
find_program(OPENSSL_PROGRAM openssl)
|
||||
execute_process(
|
||||
COMMAND ${OPENSSL_PROGRAM} version -d
|
||||
OUTPUT_VARIABLE OPENSSL_VERSION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
if(ENABLE_ROOTCA_DOWNLOAD)
|
||||
if(APPLE)
|
||||
find_program(OPENSSL_PROGRAM openssl)
|
||||
execute_process(
|
||||
COMMAND ${OPENSSL_PROGRAM} version -d
|
||||
OUTPUT_VARIABLE OPENSSL_VERSION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
string(REGEX REPLACE "OPENSSLDIR: \"(.*)\"" "\\1" HTTPS_CA_DIR "${OPENSSL_VERSION}")
|
||||
endif()
|
||||
|
||||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/rootca.pem PROPERTIES GENERATED TRUE)
|
||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/rootca.pem
|
||||
COMMAND ${CMAKE_COMMAND} -DHTTPS_CA_DIR=${HTTPS_CA_DIR} -DWORK_DIR=${CMAKE_CURRENT_SOURCE_DIR} -DOUTPUT_DIR=${CMAKE_CURRENT_BINARY_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/rootca.cmake)
|
||||
add_custom_target(rootca ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/rootca.pem)
|
||||
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/rootca.pem
|
||||
DESTINATION ${PACKAGE_DATA_DIR}/linphone
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||
)
|
||||
string(REGEX REPLACE "OPENSSLDIR: \"(.*)\"" "\\1" HTTPS_CA_DIR "${OPENSSL_VERSION}")
|
||||
endif()
|
||||
|
||||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/rootca.pem PROPERTIES GENERATED TRUE)
|
||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/rootca.pem
|
||||
COMMAND ${CMAKE_COMMAND} -DHTTPS_CA_DIR=${HTTPS_CA_DIR} -DWORK_DIR=${CMAKE_CURRENT_SOURCE_DIR} -DOUTPUT_DIR=${CMAKE_CURRENT_BINARY_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/rootca.cmake)
|
||||
add_custom_target(rootca ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/rootca.pem)
|
||||
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/rootca.pem
|
||||
DESTINATION ${PACKAGE_DATA_DIR}/linphone
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
||||
)
|
||||
|
||||
set(SOUND_FILES
|
||||
hello16000.wav
|
||||
hello8000.wav
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue