1
0
Fork 0

Link webrtc with more Xlib libraries.

This commit is contained in:
John Preston 2021-05-10 10:53:30 +04:00
parent 1720a174c4
commit c8341354e1
4 changed files with 23 additions and 49 deletions

View file

@ -65,7 +65,6 @@ endif()
add_checked_subdirectory(ton)
add_checked_subdirectory(variant)
add_checked_subdirectory(webrtc)
add_checked_subdirectory(webview)
if (LINUX AND NOT DESKTOP_APP_DISABLE_X11_INTEGRATION)
add_checked_subdirectory(xcb)
endif()

View file

@ -34,7 +34,7 @@ else()
)
find_package(PkgConfig REQUIRED)
pkg_search_module(GTK REQUIRED gtk+-2.0 gtk+-3.0)
pkg_search_module(GTK REQUIRED gtk+-3.0)
target_include_directories(external_hime_im_client
PUBLIC

View file

@ -21,6 +21,7 @@ else()
RTC_ENABLE_VP9
HAVE_SCTP
WEBRTC_USE_H264
WEBRTC_USE_BUILTIN_ISAC_FLOAT
WEBRTC_LIBRARY_IMPL
WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1
ABSL_ALLOCATOR_NOTHROW=1
@ -47,6 +48,7 @@ else()
target_compile_definitions(external_webrtc
INTERFACE
WEBRTC_LINUX
WEBRTC_USE_X11
)
endif()
@ -78,6 +80,14 @@ else()
list(APPEND webrtc_libs_list "${webrtc_build_loc}/${lib}${webrtc_lib_suffix}")
endforeach()
target_link_libraries(external_webrtc
INTERFACE
${webrtc_libs_list}
desktop-app::external_openssl
desktop-app::external_jpeg
desktop-app::external_opus
)
if (WIN32)
target_link_libraries(external_webrtc
INTERFACE
@ -92,13 +102,17 @@ else()
INTERFACE
-ObjC
)
else()
# Required for desktop_capture
target_link_static_libraries(external_webrtc
INTERFACE
Xcomposite
Xdamage
Xext
Xfixes
Xrandr
Xrender
Xtst
)
endif()
target_link_libraries(external_webrtc
INTERFACE
${webrtc_libs_list}
desktop-app::external_openssl
desktop-app::external_jpeg
desktop-app::external_opus
)
endif()

View file

@ -1,39 +0,0 @@
# This file is part of Desktop App Toolkit,
# a set of libraries for developing nice desktop applications.
#
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL
add_library(external_webview INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_webview ALIAS external_webview)
add_library(external_webview_bundled INTERFACE)
set(webview_loc ${third_party_loc}/webview)
if (WIN32)
target_include_directories(external_webview_bundled
INTERFACE
${webview_loc}/script/microsoft.web.webview2.1.0.664.37/build/native/include
)
if (build_win64)
set(webview_arch x64)
else()
set(webview_arch x86)
endif()
target_link_libraries(external_webview_bundled
INTERFACE
${webview_loc}/script/microsoft.web.webview2.1.0.664.37/build/native/${webview_arch}/WebView2LoaderStatic.lib
)
endif()
target_include_directories(external_webview_bundled
INTERFACE
${webview_loc}
)
target_link_libraries(external_webview
INTERFACE
external_webview_bundled
)