diff --git a/external/webrtc/CMakeLists.txt b/external/webrtc/CMakeLists.txt index 6b32f41..2a09508 100644 --- a/external/webrtc/CMakeLists.txt +++ b/external/webrtc/CMakeLists.txt @@ -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/$/obj) target_compile_definitions(external_webrtc diff --git a/variables.cmake b/variables.cmake index eb913e6..94a7244 100644 --- a/variables.cmake +++ b/variables.cmake @@ -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")