Add DEPOT_TOOLS_PATH variable

This commit is contained in:
Axel Isouard 2017-03-17 18:40:07 +01:00
parent b565920acb
commit a750ea484d
No known key found for this signature in database
GPG key ID: 4E64BB3EAAF31C29
2 changed files with 6 additions and 1 deletions

View file

@ -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)

View file

@ -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