-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
69 lines (59 loc) · 2.18 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# 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(lib_webview STATIC)
add_library(desktop-app::lib_webview ALIAS lib_webview)
init_target(lib_webview)
get_filename_component(src_loc . REALPATH)
nice_target_sources(lib_webview ${src_loc}
PRIVATE
webview/webview_common.h
webview/webview_data_stream.h
webview/webview_data_stream_memory.cpp
webview/webview_data_stream_memory.h
webview/webview_dialog.cpp
webview/webview_dialog.h
webview/webview_embed.cpp
webview/webview_embed.h
webview/webview_interface.h
webview/platform/mac/webview_mac.h
webview/platform/mac/webview_mac.mm
webview/platform/linux/webview_linux.h
webview/platform/linux/webview_linux.cpp
webview/platform/linux/webview_linux_compositor.cpp
webview/platform/linux/webview_linux_compositor.h
webview/platform/linux/webview_linux_webkitgtk_library.cpp
webview/platform/linux/webview_linux_webkitgtk_library.h
webview/platform/linux/webview_linux_webkitgtk.cpp
webview/platform/linux/webview_linux_webkitgtk.h
webview/platform/win/webview_win.cpp
webview/platform/win/webview_win.h
webview/platform/win/webview_windows_data_stream.cpp
webview/platform/win/webview_windows_data_stream.h
webview/platform/win/webview_windows_edge_chromium.cpp
webview/platform/win/webview_windows_edge_chromium.h
webview/platform/win/webview_windows_edge_html.cpp
webview/platform/win/webview_windows_edge_html.h
)
target_include_directories(lib_webview
PUBLIC
${src_loc}
)
target_link_libraries(lib_webview
PUBLIC
desktop-app::lib_ui
desktop-app::lib_base
)
if (WIN32)
nuget_add_webview(lib_webview)
nuget_add_winrt(lib_webview)
elseif (LINUX)
include(${cmake_helpers_loc}/external/glib/generate_dbus.cmake)
generate_dbus(lib_webview org.desktop_app.GtkIntegration.Webview. Webview ${src_loc}/webview/platform/linux/webview_linux_interface.xml)
target_compile_definitions(lib_webview
PRIVATE
G_LOG_DOMAIN="WebView"
)
endif()