mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Add GClientConfig cmake module
This commit is contained in:
parent
c3285ca001
commit
ea0b0de53b
1 changed files with 25 additions and 0 deletions
25
CMakeModules/GClientConfig.cmake
Normal file
25
CMakeModules/GClientConfig.cmake
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#
|
||||
# Retrieve WebRTC source code
|
||||
#
|
||||
file(WRITE ${CMAKE_BINARY_DIR}/.gclient "solutions = [
|
||||
{
|
||||
\"url\": \"https://chromium.googlesource.com/external/webrtc.git\",
|
||||
\"managed\": False,
|
||||
\"name\": \"src\",
|
||||
\"deps_file\": \"DEPS\",
|
||||
\"custom_deps\": {},
|
||||
},
|
||||
]
|
||||
")
|
||||
|
||||
if (TARGET_OS STREQUAL "android")
|
||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"android\", \"unix\"]")
|
||||
elseif (TARGET_OS STREQUAL "ios")
|
||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"ios\", \"mac\"]")
|
||||
elseif (TARGET_OS STREQUAL "linux")
|
||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"unix\"]")
|
||||
elseif (TARGET_OS STREQUAL "mac")
|
||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"mac\"]")
|
||||
elseif (TARGET_OS STREQUAL "win")
|
||||
file(APPEND ${CMAKE_BINARY_DIR}/.gclient "target_os = [\"win\"]")
|
||||
endif (TARGET_OS STREQUAL "android")
|
||||
Loading…
Add table
Reference in a new issue