mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Enable BUILD_TESTS flag, check if we want to build a static library
This commit is contained in:
parent
11819b2917
commit
5281a34c37
1 changed files with 12 additions and 10 deletions
|
|
@ -105,16 +105,6 @@ endif (TARGET_OS STREQUAL "android")
|
|||
# Generate build files
|
||||
set(_GEN_ARGS use_gold=false target_cpu=\\"${TARGET_CPU}\\" target_os=\\"${TARGET_OS}\\")
|
||||
|
||||
if (NOT BUILD_TESTS)
|
||||
set(_GEN_ARGS ${_GEN_ARGS} rtc_include_tests=false)
|
||||
endif (NOT BUILD_TESTS)
|
||||
|
||||
if (LIBRARY_TYPE STREQUAL STATIC)
|
||||
set(_GEN_ARGS ${_GEN_ARGS} is_component_build=false)
|
||||
else (LIBRARY_TYPE STREQUAL STATIC)
|
||||
set(_GEN_ARGS ${_GEN_ARGS} is_component_build=true)
|
||||
endif (LIBRARY_TYPE STREQUAL STATIC)
|
||||
|
||||
if (MSVC OR XCODE)
|
||||
set(_GEN_ARGS ${_GEN_ARGS} is_debug=$<$<CONFIG:Debug>:true>$<$<CONFIG:Release>:false>)
|
||||
elseif (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
|
|
@ -123,6 +113,18 @@ else (MSVC OR XCODE)
|
|||
set(_GEN_ARGS ${_GEN_ARGS} is_debug=false)
|
||||
endif (MSVC OR XCODE)
|
||||
|
||||
if (BUILD_TESTS)
|
||||
set(_GEN_ARGS ${_GEN_ARGS} rtc_include_tests=true)
|
||||
elseif (BUILD_TESTS)
|
||||
set(_GEN_ARGS ${_GEN_ARGS} rtc_include_tests=false)
|
||||
endif (BUILD_TESTS)
|
||||
|
||||
if (LIBRARY_TYPE STREQUAL STATIC)
|
||||
set(_GEN_ARGS ${_GEN_ARGS} is_component_build=false)
|
||||
else (LIBRARY_TYPE STREQUAL STATIC)
|
||||
set(_GEN_ARGS ${_GEN_ARGS} is_component_build=true)
|
||||
endif (LIBRARY_TYPE STREQUAL STATIC)
|
||||
|
||||
if (WIN32)
|
||||
set(_GEN_COMMAND gn gen out/Default --args="${_GEN_ARGS}")
|
||||
elseif (UNIX)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue