summaryrefslogtreecommitdiffstats
path: root/src/core/generator.cmake
blob: 160275fc7660b146255995deb4f077f164a77251 (plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
set(GN_DEFINES QT_NO_KEYWORDS
      QT_USE_QSTRINGBUILDER
      QTWEBENGINECORE_VERSION_STR=\\\"${QT_REPO_MODULE_VERSION}\\\"
      QTWEBENGINEPROCESS_NAME=\\\"${qtWebEngineProcessName}\\\"
      BUILDING_CHROMIUM)

set(GN_SOURCES_IN
      accessibility_activation_observer.cpp
      accessibility_tree_formatter_qt.cpp
      authentication_dialog_controller.cpp
      browser_accessibility_manager_qt.cpp
      browser_accessibility_qt.cpp
      browsing_data_remover_delegate_qt.cpp
      browser_main_parts_qt.cpp
      browser_message_filter_qt.cpp
      certificate_error_controller.cpp
      chromium_overrides.cpp
      client_cert_select_controller.cpp
      clipboard_qt.cpp
      color_chooser_qt.cpp
      color_chooser_controller.cpp
      common/qt_ipc_logging.cpp
      common/qt_messages.cpp
      compositor/compositor.cpp
      compositor/content_gpu_client_qt.cpp
      compositor/display_overrides.cpp
      compositor/display_software_output_surface.cpp
      content_client_qt.cpp
      content_browser_client_qt.cpp
      content_main_delegate_qt.cpp
      content_utility_client_qt.cpp
      delegated_frame_host_client_qt.cpp
      desktop_screen_qt.cpp
      devtools_frontend_qt.cpp
      devtools_manager_delegate_qt.cpp
      download_manager_delegate_qt.cpp
      favicon_manager.cpp
      file_picker_controller.cpp
      find_text_helper.cpp
      javascript_dialog_controller.cpp
      javascript_dialog_manager_qt.cpp
      login_delegate_qt.cpp
      media_capture_devices_dispatcher.cpp
      native_web_keyboard_event_qt.cpp
      net/client_cert_override.cpp
      net/client_cert_store_data.cpp
      net/cookie_monster_delegate_qt.cpp
      net/custom_url_loader_factory.cpp
      net/proxy_config_monitor.cpp
      net/proxy_config_service_qt.cpp
      net/proxying_url_loader_factory_qt.cpp
      net/proxying_restricted_cookie_manager_qt.cpp
      net/qrc_url_scheme_handler.cpp
      net/ssl_host_state_delegate_qt.cpp
      net/system_network_context_manager.cpp
      net/url_request_custom_job_delegate.cpp
      net/url_request_custom_job_proxy.cpp
      net/webui_controller_factory_qt.cpp
      ozone/gl_context_qt.cpp
      ozone/gl_share_context_qt.cpp
      ozone/gl_ozone_egl_qt.cpp
      ozone/gl_surface_qt.cpp
      ozone/gl_surface_egl_qt.cpp
      ozone/gl_surface_wgl_qt.cpp
      ozone/platform_window_qt.cpp
      ozone/surface_factory_qt.cpp
      permission_manager_qt.cpp
      platform_notification_service_qt.cpp
      process_main.cpp
      profile_adapter.cpp
      profile_adapter_client.cpp
      profile_qt.cpp
      profile_io_data_qt.cpp
      quota_permission_context_qt.cpp
      quota_request_controller_impl.cpp
      pref_service_adapter.cpp
      register_protocol_handler_request_controller_impl.cpp
      render_view_context_menu_qt.cpp
      render_widget_host_view_qt.cpp
      render_widget_host_view_qt_delegate_client.cpp
      renderer/content_renderer_client_qt.cpp
      renderer/content_settings_observer_qt.cpp
      renderer/render_frame_observer_qt.cpp
      renderer/web_engine_page_render_frame.cpp
      renderer/render_configuration.cpp
      renderer/user_resource_controller.cpp
      renderer/plugins/plugin_placeholder_qt.cpp
      renderer_host/web_engine_page_host.cpp
      renderer_host/user_resource_controller_host.cpp
      resource_bundle_qt.cpp
      resource_context_qt.cpp
      touch_handle_drawable_qt.cpp
      touch_selection_controller_client_qt.cpp
      touch_selection_menu_controller.cpp
      type_conversion.cpp
      user_notification_controller.cpp
      user_script.cpp
      visited_links_manager_qt.cpp
      web_contents_adapter.cpp
      web_contents_delegate_qt.cpp
      web_contents_view_qt.cpp
      web_engine_context.cpp
      web_engine_context_threads.cpp
      web_engine_error.cpp
      web_engine_library_info.cpp
      web_engine_settings.cpp
      web_event_factory.cpp
      ozone/gl_surface_glx_qt.cpp
      ozone/gl_ozone_glx_qt.cpp
      compositor/compositor_resource_fence.cpp
      compositor/display_gl_output_surface.cpp)

set(GN_HEADERS_IN
      accessibility_activation_observer.h
      authentication_dialog_controller_p.h
      authentication_dialog_controller.h
      build_config_qt.h
      browser_accessibility_manager_qt.h
      browser_accessibility_qt.h
      browsing_data_remover_delegate_qt.h
      browser_main_parts_qt.h
      browser_message_filter_qt.h
      certificate_error_controller.h
      client_cert_select_controller.h
      clipboard_change_observer.h
      clipboard_qt.h
      color_chooser_qt.h
      color_chooser_controller_p.h
      color_chooser_controller.h
      common/qt_messages.h
      compositor/compositor.h
      compositor/content_gpu_client_qt.h
      compositor/display_software_output_surface.h
      content_client_qt.h
      content_browser_client_qt.h
      content_main_delegate_qt.h
      content_utility_client_qt.h
      delegated_frame_host_client_qt.h
      desktop_screen_qt.h
      devtools_frontend_qt.h
      devtools_manager_delegate_qt.h
      download_manager_delegate_qt.h
      favicon_manager.h
      file_picker_controller.h
      find_text_helper.h
      global_descriptors_qt.h
      javascript_dialog_controller_p.h
      javascript_dialog_controller.h
      javascript_dialog_manager_qt.h
      login_delegate_qt.h
      media_capture_devices_dispatcher.h
      net/client_cert_override.h
      net/client_cert_store_data.h
      net/cookie_monster_delegate_qt.h
      net/custom_url_loader_factory.h
      net/proxying_url_loader_factory_qt.h
      net/proxying_restricted_cookie_manager_qt.h
      net/qrc_url_scheme_handler.h
      net/ssl_host_state_delegate_qt.h
      net/system_network_context_manager.h
      net/url_request_custom_job_delegate.h
      net/url_request_custom_job_proxy.h
      net/webui_controller_factory_qt.h
      ozone/gl_context_qt.h
      ozone/gl_share_context_qt.h
      ozone/gl_ozone_egl_qt.h
      ozone/gl_surface_qt.h
      ozone/gl_surface_egl_qt.h
      ozone/gl_surface_wgl_qt.h
      ozone/platform_window_qt.h
      ozone/surface_factory_qt.h
      permission_manager_qt.h
      platform_notification_service_qt.h
      pref_service_adapter.h
      process_main.h
      profile_adapter.h
      profile_adapter_client.h
      profile_qt.h
      profile_io_data_qt.h
      proxy_config_monitor.h
      proxy_config_service_qt.h
      quota_permission_context_qt.h
      quota_request_controller.h
      quota_request_controller_impl.h
      register_protocol_handler_request_controller.h
      register_protocol_handler_request_controller_impl.h
      render_view_context_menu_qt.h
      render_widget_host_view_qt.h
      render_widget_host_view_qt_delegate.h
      render_widget_host_view_qt_delegate_client.h
      renderer/content_renderer_client_qt.h
      renderer/content_settings_observer_qt.h
      renderer/render_frame_observer_qt.h
      renderer/web_engine_page_render_frame.h
      renderer/render_configuration.h
      renderer/user_resource_controller.h
      renderer/plugins/plugin_placeholder_qt.h
      renderer_host/web_engine_page_host.h
      renderer_host/user_resource_controller_host.h
      request_controller.h
      resource_context_qt.h
      touch_handle_drawable_client.h
      touch_handle_drawable_qt.h
      touch_selection_controller_client_qt.h
      touch_selection_menu_controller.h
      type_conversion.h
      user_notification_controller.h
      user_script.h
      visited_links_manager_qt.h
      web_contents_adapter.h
      web_contents_adapter_client.h
      web_contents_delegate_qt.h
      web_contents_view_qt.h
      web_engine_context.h
      web_engine_error.h
      web_engine_library_info.h
      web_engine_settings.h
      web_event_factory.h
      ozone/gl_ozone_glx_qt.h
      ozone/gl_surface_glx_qt.h
      compositor/compositor_resource_fence.h
      compositor/display_gl_output_surface.h)

foreach(GN_HEADER_FILE ${GN_HEADERS_IN})
    get_filename_component(GN_HEADER_PATH ${GN_HEADER_FILE} ABSOLUTE)
    list(APPEND GN_HEADERS \"${GN_HEADER_PATH}\")
endforeach()
string(REPLACE ";" ",\n  " GN_HEADERS "${GN_HEADERS}")
foreach(GN_SOURCE_FILE ${GN_SOURCES_IN})
    get_filename_component(GN_SOURCE_PATH ${GN_SOURCE_FILE} ABSOLUTE)
    list(APPEND GN_SOURCES \"${GN_SOURCE_PATH}\")
endforeach()
string(REPLACE ";" ",\n  " GN_SOURCES "${GN_SOURCES}")
include(${CMAKE_WEBENGINE_ROOT_BUILD_PATH}/src/core/api/gn_config.cxx.cmake)
include(${CMAKE_WEBENGINE_ROOT_BUILD_PATH}/src/core/api/gn_config.c.cmake)
list(APPEND GN_DEFINES_IN ${GN_DEFINES})
list(REMOVE_DUPLICATES GN_DEFINES_IN)
unset(GN_DEFINES)
foreach(GN_DEFINE ${GN_DEFINES_IN})
    list(APPEND GN_ARGS_DEFINES \"-D${GN_DEFINE}\")
    list(APPEND GN_DEFINES \"${GN_DEFINE}\")
endforeach()
string(REPLACE ";" ",\n  " GN_ARGS_DEFINES "${GN_ARGS_DEFINES}")
string(REPLACE ";" ",\n  " GN_DEFINES "${GN_DEFINES}")
# we had no qtsync on headers during configure, so take current interface from expression generator
get_target_property(moduleIncludes WebEngineCore INCLUDE_DIRECTORIES)
foreach(moduleInclude  ${moduleIncludes})
    if (moduleInclude MATCHES "\\$<BUILD_INTERFACE:([^,>]+)>")
        list(APPEND GN_INCLUDES_IN ${CMAKE_MATCH_1})
    endif()
endforeach()
list(REMOVE_DUPLICATES GN_INCLUDES_IN)
foreach(GN_INCLUDE ${GN_INCLUDES_IN})
    list(APPEND GN_ARGS_INCLUDES \"-I${GN_INCLUDE}\")
    list(APPEND GN_INCLUDE_DIRS \"${GN_INCLUDE}\")
endforeach()
string(REPLACE ";" ",\n  " GN_ARGS_INCLUDES "${GN_ARGS_INCLUDES}")
string(REPLACE ";" ",\n  " GN_INCLUDE_DIRS "${GN_INCLUDE_DIRS}")
get_target_property(GN_MOC_BIN_IN Qt6::moc IMPORTED_LOCATION)
set(GN_ARGS_MOC_BIN \"${GN_MOC_BIN_IN}\")
foreach(GN_CXX_COMPILE_OPTION ${GN_CXX_COMPILE_OPTIONS_IN})
    list(APPEND GN_CFLAGS_CC \"${GN_CXX_COMPILE_OPTION}\")
endforeach()
list(REMOVE_DUPLICATES GN_CFLAGS_CC)
string(REPLACE ";" ",\n  " GN_CFLAGS_CC "${GN_CFLAGS_CC}")
foreach(GN_C_COMPILE_OPTION ${GN_C_COMPILE_OPTIONS_IN})
    list(APPEND GN_CFLAGS_C \"${GN_C_COMPILE_OPTION}\")
endforeach()
list(REMOVE_DUPLICATES GN_CFLAGS_C)
string(REPLACE ";" ",\n  " GN_CFLAGS_C "${GN_CFLAGS_C}")