Add option to set webrtc location
This commit is contained in:
parent
b372364a2c
commit
3ec8ccaa4f
2 changed files with 7 additions and 1 deletions
7
external/webrtc/CMakeLists.txt
vendored
7
external/webrtc/CMakeLists.txt
vendored
|
|
@ -7,7 +7,12 @@
|
|||
add_library(external_webrtc INTERFACE IMPORTED GLOBAL)
|
||||
add_library(desktop-app::external_webrtc ALIAS external_webrtc)
|
||||
|
||||
set(webrtc_loc ${libs_loc}/webrtc/src)
|
||||
if (DESKTOP_APP_WEBRTC_LOCATION)
|
||||
set(webrtc_loc ${DESKTOP_APP_WEBRTC_LOCATION})
|
||||
else()
|
||||
set(webrtc_loc ${libs_loc}/webrtc/src)
|
||||
endif()
|
||||
|
||||
set(webrtc_build_loc ${webrtc_loc}/out/$<CONFIG>/obj)
|
||||
|
||||
target_compile_definitions(external_webrtc
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ option(DESKTOP_APP_DISABLE_CRASH_REPORTS "Disable crash report generation." ${no
|
|||
option(DESKTOP_APP_USE_PACKAGED_FFMPEG_STATIC "Link found ffmpeg statically." OFF)
|
||||
option(DESKTOP_APP_USE_HUNSPELL_ONLY "Disable system spellchecker and use bundled Hunspell only. (For debugging purposes)" OFF)
|
||||
option(DESKTOP_APP_USE_ENCHANT "Use Enchant instead of bundled Hunspell. (Linux only)" OFF)
|
||||
set(DESKTOP_APP_WEBRTC_LOCATION "" CACHE STRING "WebRTC source root location.")
|
||||
|
||||
option(DESKTOP_APP_ENABLE_IPO_OPTIMIZATIONS "Enable IPO build optimizations." ${WIN32})
|
||||
if (DESKTOP_APP_ENABLE_IPO_OPTIMIZATIONS AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue