mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Add GN_EXTRA_ARGS config variable
This commit is contained in:
parent
287d483478
commit
058d9e0da3
2 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
# Options, flags
|
# Options, flags
|
||||||
option(BUILD_TESTS "Build test binaries" OFF)
|
option(BUILD_TESTS "Build test binaries" OFF)
|
||||||
set(NINJA_ARGS "" CACHE STRING "Ninja arguments to pass before compiling WebRTC")
|
set(NINJA_ARGS "" CACHE STRING "Ninja arguments to pass before compiling WebRTC")
|
||||||
|
set(GN_EXTRA_ARGS "" CACHE STRING "Extra gn gen arguments to pass before generating build files")
|
||||||
option(BUILD_SHARED_LIB "Build WebRTC as a shared library" OFF)
|
option(BUILD_SHARED_LIB "Build WebRTC as a shared library" OFF)
|
||||||
set(WEBRTC_REVISION "" CACHE STRING "WebRTC commit hash to checkout")
|
set(WEBRTC_REVISION "" CACHE STRING "WebRTC commit hash to checkout")
|
||||||
set(WEBRTC_BRANCH_HEAD "${LIBWEBRTC_WEBRTC_HEAD}" CACHE STRING "WebRTC branch head to checkout")
|
set(WEBRTC_BRANCH_HEAD "${LIBWEBRTC_WEBRTC_HEAD}" CACHE STRING "WebRTC branch head to checkout")
|
||||||
|
|
|
||||||
|
|
@ -155,6 +155,8 @@ else (LIBRARY_TYPE STREQUAL STATIC)
|
||||||
set(_GEN_ARGS ${_GEN_ARGS} is_component_build=true)
|
set(_GEN_ARGS ${_GEN_ARGS} is_component_build=true)
|
||||||
endif (LIBRARY_TYPE STREQUAL STATIC)
|
endif (LIBRARY_TYPE STREQUAL STATIC)
|
||||||
|
|
||||||
|
set(_GEN_ARGS ${_GEN_ARGS} ${GN_EXTRA_ARGS})
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(_GEN_COMMAND gn gen out/Default --args="${_GEN_ARGS}")
|
set(_GEN_COMMAND gn gen out/Default --args="${_GEN_ARGS}")
|
||||||
elseif (UNIX)
|
elseif (UNIX)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue