Updated cmake sources to TDesktop version 2.7.2
This commit is contained in:
commit
c2a0ebf0fc
2 changed files with 40 additions and 0 deletions
1
external/CMakeLists.txt
vendored
1
external/CMakeLists.txt
vendored
|
|
@ -64,6 +64,7 @@ endif()
|
||||||
add_checked_subdirectory(ton)
|
add_checked_subdirectory(ton)
|
||||||
add_checked_subdirectory(variant)
|
add_checked_subdirectory(variant)
|
||||||
add_checked_subdirectory(webrtc)
|
add_checked_subdirectory(webrtc)
|
||||||
|
add_checked_subdirectory(webview)
|
||||||
if (LINUX AND NOT DESKTOP_APP_DISABLE_X11_INTEGRATION)
|
if (LINUX AND NOT DESKTOP_APP_DISABLE_X11_INTEGRATION)
|
||||||
add_checked_subdirectory(xcb)
|
add_checked_subdirectory(xcb)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
39
external/webview/CMakeLists.txt
vendored
Normal file
39
external/webview/CMakeLists.txt
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# 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
|
||||||
|
)
|
||||||
Loading…
Add table
Reference in a new issue