mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Add DEPOT_TOOLS_PATH variable
This commit is contained in:
parent
b565920acb
commit
a750ea484d
2 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#
|
||||
# Options, flags
|
||||
option(BUILD_TESTS "Build test binaries" OFF)
|
||||
set(DEPOT_TOOLS_PATH "" CACHE STRING "Path to your own depot_tools directory")
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,11 @@
|
|||
#
|
||||
# Generate environment variables
|
||||
#
|
||||
set(WEBRTC_PATH ${CMAKE_SOURCE_DIR}/depot_tools)
|
||||
if (DEPOT_TOOLS_PATH)
|
||||
set(WEBRTC_PATH ${DEPOT_TOOLS_PATH})
|
||||
else (DEPOT_TOOLS_PATH)
|
||||
set(WEBRTC_PATH ${CMAKE_BINARY_DIR}/depot_tools)
|
||||
endif (DEPOT_TOOLS_PATH)
|
||||
|
||||
if (WIN32)
|
||||
get_filename_component(DEPOT_TOOLS_PYTHON_PATH
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue