blob: e12ee811abc3f7d38ffc1effb0590656169db492 [file] [log] [blame]
[email protected]6b9028ab2014-07-23 17:15:381# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/config/features.gni")
brettw4cab0f12015-09-14 21:40:016import("//build/config/sanitizers/sanitizers.gni")
[email protected]6b9028ab2014-07-23 17:15:387import("//build/config/ui.gni")
skobes502412ae2016-01-19 17:40:438import("//build/config/win/console_app.gni")
brettw2e2220c2015-07-21 18:56:359import("//build/config/win/manifest.gni")
alokpaa2fdfb72016-02-03 22:55:5410import("//media/media_options.gni")
ortunof78c8412016-03-31 18:59:5911import("//mojo/public/tools/bindings/mojom.gni")
[email protected]6b9028ab2014-07-23 17:15:3812import("//tools/grit/repack.gni")
cjhopmancd7694af2014-09-08 00:00:0413import("//tools/grit/grit_rule.gni")
[email protected]6b9028ab2014-07-23 17:15:3814if (is_android) {
15 import("//build/config/android/config.gni")
16}
17
18declare_args() {
19 content_shell_product_name = "Content Shell"
esprehnb3789092015-11-24 19:46:0320 content_shell_version = "99.77.34.5"
[email protected]6b9028ab2014-07-23 17:15:3821}
22
thakisff2eab9c2015-11-13 00:29:5823config("content_shell_lib_warnings") {
24 if (is_clang) {
25 # TODO(thakis): Remove this once http://crbug.com/383820 is figured out
26 cflags = [ "-Wno-nonnull" ]
27 }
28}
29
[email protected]6b9028ab2014-07-23 17:15:3830static_library("content_shell_lib") {
Brett Wilson8f80ad0b2014-09-08 19:50:2431 testonly = true
[email protected]6b9028ab2014-07-23 17:15:3832 sources = [
dprankec6beb8392015-10-30 23:44:2133 "android/shell_descriptors.h",
[email protected]6b9028ab2014-07-23 17:15:3834 "android/shell_jni_registrar.cc",
35 "android/shell_jni_registrar.h",
36 "android/shell_manager.cc",
37 "android/shell_manager.h",
lukasza88e4b0b42016-02-25 21:42:1038 "app/blink_test_platform_support.h",
39 "app/blink_test_platform_support_android.cc",
40 "app/blink_test_platform_support_linux.cc",
41 "app/blink_test_platform_support_mac.mm",
42 "app/blink_test_platform_support_win.cc",
[email protected]6b9028ab2014-07-23 17:15:3843 "app/paths_mac.h",
44 "app/paths_mac.mm",
rseseka0a7a042014-09-18 23:59:2045 "app/shell_crash_reporter_client.cc",
46 "app/shell_crash_reporter_client.h",
[email protected]6b9028ab2014-07-23 17:15:3847 "app/shell_main_delegate.cc",
48 "app/shell_main_delegate.h",
49 "app/shell_main_delegate_mac.h",
50 "app/shell_main_delegate_mac.mm",
jochen5ce1af92016-02-17 20:39:4551 "browser/layout_test/blink_test_controller.cc",
52 "browser/layout_test/blink_test_controller.h",
mkwstd6805d0d2014-10-16 14:44:3753 "browser/layout_test/layout_test_android.cc",
54 "browser/layout_test/layout_test_android.h",
ortunofd24faa2015-05-20 16:34:3755 "browser/layout_test/layout_test_bluetooth_adapter_provider.cc",
56 "browser/layout_test/layout_test_bluetooth_adapter_provider.h",
jyasskin8057c002015-09-10 19:09:5357 "browser/layout_test/layout_test_bluetooth_chooser_factory.cc",
58 "browser/layout_test/layout_test_bluetooth_chooser_factory.h",
ortunof78c8412016-03-31 18:59:5959 "browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc",
60 "browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h",
mkwstd993d06a2014-10-10 11:44:3861 "browser/layout_test/layout_test_browser_context.cc",
62 "browser/layout_test/layout_test_browser_context.h",
mkwst88e23182014-10-16 12:08:5863 "browser/layout_test/layout_test_browser_main.cc",
64 "browser/layout_test/layout_test_browser_main.h",
mkwst36b11b6f2014-10-15 16:18:5665 "browser/layout_test/layout_test_browser_main_parts.cc",
66 "browser/layout_test/layout_test_browser_main_parts.h",
petercd7abb42014-10-17 13:34:0167 "browser/layout_test/layout_test_content_browser_client.cc",
68 "browser/layout_test/layout_test_content_browser_client.h",
mkwst30d20d52014-10-09 13:33:1469 "browser/layout_test/layout_test_devtools_frontend.cc",
70 "browser/layout_test/layout_test_devtools_frontend.h",
mkwst94388f792014-10-16 07:36:5271 "browser/layout_test/layout_test_download_manager_delegate.cc",
72 "browser/layout_test/layout_test_download_manager_delegate.h",
mkwst6efe7f2e62014-10-08 15:09:0173 "browser/layout_test/layout_test_javascript_dialog_manager.cc",
74 "browser/layout_test/layout_test_javascript_dialog_manager.h",
Peter Beverlooe8f2f9d2014-10-20 16:47:4975 "browser/layout_test/layout_test_message_filter.cc",
76 "browser/layout_test/layout_test_message_filter.h",
petercd7abb42014-10-17 13:34:0177 "browser/layout_test/layout_test_notification_manager.cc",
78 "browser/layout_test/layout_test_notification_manager.h",
mlamouri4e372022015-03-29 14:51:0679 "browser/layout_test/layout_test_permission_manager.cc",
80 "browser/layout_test/layout_test_permission_manager.h",
mvanouwerkerkde895c9c2014-12-06 12:17:3281 "browser/layout_test/layout_test_push_messaging_service.cc",
82 "browser/layout_test/layout_test_push_messaging_service.h",
mkwst002d02902014-10-09 10:17:0083 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc",
84 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.h",
mkwst94388f792014-10-16 07:36:5285 "browser/layout_test/layout_test_url_request_context_getter.cc",
86 "browser/layout_test/layout_test_url_request_context_getter.h",
jochen5ce1af92016-02-17 20:39:4587 "browser/layout_test/notify_done_forwarder.cc",
88 "browser/layout_test/notify_done_forwarder.h",
jochene9ba6dd2016-02-23 17:20:4989 "browser/layout_test/test_info_extractor.cc",
90 "browser/layout_test/test_info_extractor.h",
peter11d5f562014-10-23 23:12:2591 "browser/shell.cc",
92 "browser/shell.h",
93 "browser/shell_access_token_store.cc",
94 "browser/shell_access_token_store.h",
[email protected]6b9028ab2014-07-23 17:15:3895 "browser/shell_android.cc",
96 "browser/shell_application_mac.h",
97 "browser/shell_application_mac.mm",
98 "browser/shell_browser_context.cc",
99 "browser/shell_browser_context.h",
100 "browser/shell_browser_main.cc",
101 "browser/shell_browser_main.h",
102 "browser/shell_browser_main_parts.cc",
103 "browser/shell_browser_main_parts.h",
104 "browser/shell_browser_main_parts_mac.mm",
[email protected]6b9028ab2014-07-23 17:15:38105 "browser/shell_content_browser_client.cc",
106 "browser/shell_content_browser_client.h",
[email protected]6b9028ab2014-07-23 17:15:38107 "browser/shell_devtools_frontend.cc",
108 "browser/shell_devtools_frontend.h",
satorux7fa9d302015-02-16 00:44:52109 "browser/shell_devtools_manager_delegate.cc",
110 "browser/shell_devtools_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38111 "browser/shell_download_manager_delegate.cc",
112 "browser/shell_download_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38113 "browser/shell_javascript_dialog.h",
114 "browser/shell_javascript_dialog_mac.mm",
115 "browser/shell_javascript_dialog_manager.cc",
116 "browser/shell_javascript_dialog_manager.h",
117 "browser/shell_javascript_dialog_win.cc",
[email protected]6b9028ab2014-07-23 17:15:38118 "browser/shell_login_dialog.cc",
119 "browser/shell_login_dialog.h",
120 "browser/shell_login_dialog_mac.mm",
121 "browser/shell_mac.mm",
satorux7fa9d302015-02-16 00:44:52122 "browser/shell_mojo_test_utils_android.cc",
123 "browser/shell_mojo_test_utils_android.h",
[email protected]6b9028ab2014-07-23 17:15:38124 "browser/shell_net_log.cc",
125 "browser/shell_net_log.h",
126 "browser/shell_network_delegate.cc",
127 "browser/shell_network_delegate.h",
mlamouri4e372022015-03-29 14:51:06128 "browser/shell_permission_manager.cc",
129 "browser/shell_permission_manager.h",
[email protected]6b9028ab2014-07-23 17:15:38130 "browser/shell_platform_data_aura.cc",
131 "browser/shell_platform_data_aura.h",
132 "browser/shell_plugin_service_filter.cc",
133 "browser/shell_plugin_service_filter.h",
134 "browser/shell_quota_permission_context.cc",
135 "browser/shell_quota_permission_context.h",
136 "browser/shell_resource_dispatcher_host_delegate.cc",
137 "browser/shell_resource_dispatcher_host_delegate.h",
138 "browser/shell_speech_recognition_manager_delegate.cc",
139 "browser/shell_speech_recognition_manager_delegate.h",
140 "browser/shell_url_request_context_getter.cc",
141 "browser/shell_url_request_context_getter.h",
satorux7fa9d302015-02-16 00:44:52142 "browser/shell_web_contents_view_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38143 "browser/shell_web_contents_view_delegate_android.cc",
144 "browser/shell_web_contents_view_delegate_creator.h",
[email protected]6b9028ab2014-07-23 17:15:38145 "browser/shell_web_contents_view_delegate_mac.mm",
146 "browser/shell_web_contents_view_delegate_win.cc",
lukasza80f7f602016-03-22 23:13:19147 "common/layout_test/layout_test_content_client.cc",
148 "common/layout_test/layout_test_content_client.h",
petere04203592014-10-27 17:57:35149 "common/layout_test/layout_test_messages.cc",
150 "common/layout_test/layout_test_messages.h",
lukasza381b0492016-03-10 16:48:43151 "common/layout_test/layout_test_switches.cc",
152 "common/layout_test/layout_test_switches.h",
[email protected]6b9028ab2014-07-23 17:15:38153 "common/leak_detection_result.h",
154 "common/shell_content_client.cc",
155 "common/shell_content_client.h",
156 "common/shell_messages.cc",
157 "common/shell_messages.h",
158 "common/shell_switches.cc",
159 "common/shell_switches.h",
160 "common/shell_test_configuration.cc",
161 "common/shell_test_configuration.h",
tfarina685c39802015-05-04 22:11:22162 "renderer/layout_test/blink_test_helpers.cc",
163 "renderer/layout_test/blink_test_helpers.h",
tfarina8e08285f2015-05-02 03:17:39164 "renderer/layout_test/blink_test_runner.cc",
165 "renderer/layout_test/blink_test_runner.h",
mkwst02ec0d62014-10-07 22:07:29166 "renderer/layout_test/layout_test_content_renderer_client.cc",
167 "renderer/layout_test/layout_test_content_renderer_client.h",
mkwst3e72c1f2014-10-08 05:02:36168 "renderer/layout_test/layout_test_render_frame_observer.cc",
169 "renderer/layout_test/layout_test_render_frame_observer.h",
mkwst99069fc2014-10-08 06:13:28170 "renderer/layout_test/layout_test_render_process_observer.cc",
171 "renderer/layout_test/layout_test_render_process_observer.h",
mkwst04b72d12014-10-08 15:52:55172 "renderer/layout_test/leak_detector.cc",
173 "renderer/layout_test/leak_detector.h",
jochen51265132015-05-28 07:33:45174 "renderer/layout_test/test_media_stream_renderer_factory.cc",
175 "renderer/layout_test/test_media_stream_renderer_factory.h",
176 "renderer/layout_test/test_video_frame_provider.cc",
177 "renderer/layout_test/test_video_frame_provider.h",
[email protected]6b9028ab2014-07-23 17:15:38178 "renderer/shell_content_renderer_client.cc",
179 "renderer/shell_content_renderer_client.h",
[email protected]6b9028ab2014-07-23 17:15:38180 "renderer/shell_render_view_observer.cc",
181 "renderer/shell_render_view_observer.h",
rockotb814a582015-06-05 00:30:52182 "utility/shell_content_utility_client.cc",
183 "utility/shell_content_utility_client.h",
[email protected]6b9028ab2014-07-23 17:15:38184 ]
185
brettwbc8b2a22015-07-28 18:24:42186 configs += [
thakisff2eab9c2015-11-13 00:29:58187 ":content_shell_lib_warnings",
brettwbc8b2a22015-07-28 18:24:42188 "//build/config:precompiled_headers",
189
190 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
191 "//build/config/compiler:no_size_t_to_int_warning",
kozyatinskiy6adbc802016-01-28 00:16:16192
193 "//third_party/WebKit/public:debug_devtools",
brettwbc8b2a22015-07-28 18:24:42194 ]
brettwd1c719a2015-02-19 23:17:04195
[email protected]6b9028ab2014-07-23 17:15:38196 defines = [ "CONTENT_SHELL_VERSION=\"$content_shell_version\"" ]
197
Brett Wilson0380637c2014-09-19 21:24:40198 public_deps = [
199 # This exposes all public content APIs.
200 "//content/public/app:both",
201 "//content/public/browser",
202 "//content/public/common",
Brett Wilson0380637c2014-09-19 21:24:40203 "//content/public/renderer",
204 "//content/public/utility",
205 ]
[email protected]6b9028ab2014-07-23 17:15:38206 deps = [
ortunof78c8412016-03-31 18:59:59207 ":mojo_bindings",
[email protected]6b9028ab2014-07-23 17:15:38208 ":resources",
209 "//base",
210 "//base:base_static",
[email protected]6b9028ab2014-07-23 17:15:38211 "//base/third_party/dynamic_annotations",
212 "//cc",
scottmgcfa5b01b2015-11-30 23:13:46213 "//components/crash/content/app:app_breakpad_mac_win_to_be_deleted",
dgozmanf7200152015-04-22 17:48:21214 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46215 "//components/devtools_http_handler",
chrishtr8a377e62015-06-01 19:20:08216 "//components/plugins/renderer",
jochen73e711c2015-06-03 10:01:46217 "//components/test_runner:test_runner",
rsleevi24f64dc22015-08-07 21:39:21218 "//components/url_formatter",
hanxi149b92d2014-09-11 21:57:18219 "//components/web_cache/renderer",
[email protected]6b9028ab2014-07-23 17:15:38220 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08221 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12222 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38223 "//content/gpu",
[email protected]6b9028ab2014-07-23 17:15:38224 "//content/test:layouttest_support",
brettwb78fc9e2016-03-25 21:02:51225 "//content/test:test_support",
dpranke93211fc2015-04-29 04:59:42226 "//device/bluetooth",
ortunofd24faa2015-05-20 16:34:37227 "//device/bluetooth:mocks",
[email protected]6b9028ab2014-07-23 17:15:38228 "//gin",
229 "//gpu",
230 "//ipc",
231 "//media",
brettwb78fc9e2016-03-25 21:02:51232 "//media/mojo/services:application_factory",
[email protected]6b9028ab2014-07-23 17:15:38233 "//net",
234 "//net:net_resources",
235 "//skia",
pilgrim4af8c212014-09-05 17:30:15236 "//storage/browser",
ortunofd24faa2015-05-20 16:34:37237 "//testing/gmock",
238 "//testing/gtest",
[email protected]6b9028ab2014-07-23 17:15:38239 "//third_party/WebKit/public:blink",
erga3c614c92015-04-03 17:47:51240 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46241 "//third_party/WebKit/public:resources",
[email protected]0e043592014-07-28 19:47:04242 "//third_party/WebKit/public:test_support",
[email protected]4eebe74d2014-08-13 02:54:46243 "//third_party/icu",
[email protected]6b9028ab2014-07-23 17:15:38244 "//ui/base",
spang1c36fac2015-02-05 19:55:12245 "//ui/base/ime",
[email protected]6b9028ab2014-07-23 17:15:38246 "//ui/events:events_base",
247 "//ui/gfx",
248 "//ui/gfx/geometry",
249 "//ui/gfx/ipc",
markdittmer99d77bf2016-03-31 19:03:24250 "//ui/gfx/ipc/skia",
[email protected]6b9028ab2014-07-23 17:15:38251 "//ui/gl",
252 "//url",
253 "//v8",
[email protected]6b9028ab2014-07-23 17:15:38254 ]
jamesr50081742014-09-09 07:52:22255 if (enable_plugins) {
dcheng0d93c1a2015-12-03 02:46:41256 deps += [
257 "//content/ppapi_plugin",
dchengc70b36e2016-03-02 02:36:10258 "//ppapi:blink_deprecated_test_plugin",
dcheng0d93c1a2015-12-03 02:46:41259 "//ppapi:blink_test_plugin",
brettwb78fc9e2016-03-25 21:02:51260 "//ppapi/shared_impl",
dcheng0d93c1a2015-12-03 02:46:41261 ]
jamesr50081742014-09-09 07:52:22262 }
xhwangbe720032016-02-19 18:45:31263 if (mojo_media_host == "browser") {
xhwang755165d2016-02-18 17:29:58264 deps += [ "//media/mojo/services:application_factory" ]
alokpaa2fdfb72016-02-03 22:55:54265 }
[email protected]6b9028ab2014-07-23 17:15:38266
267 if (is_win) {
[email protected]6b9028ab2014-07-23 17:15:38268 #'LinkIncremental': '<(msvs_large_module_debug_link_mode)', TODO(GYP)
vchigrin61944ae2015-01-30 23:51:32269 sources += [
270 "common/v8_breakpad_support_win.cc",
271 "common/v8_breakpad_support_win.h",
272 ]
[email protected]6b9028ab2014-07-23 17:15:38273 }
274
275 if (is_linux) {
brettwb78fc9e2016-03-25 21:02:51276 deps += [
277 "//build/linux:fontconfig",
278 "//ui/gfx:test_support",
279 ]
[email protected]6b9028ab2014-07-23 17:15:38280 }
281
282 if (use_x11) {
[email protected]c7990dbf2014-07-23 22:35:10283 # Some tests rely on this tool at runtime. Note: it might be better if
284 # the tests that needed it had this as a dep instead of adding it here.
sadrul1f7fa9f2015-10-06 17:14:57285 data_deps = [
286 "//tools/xdisplaycheck",
287 ]
dnicoara78a734702014-11-04 19:54:38288
289 deps += [ "//ui/events/devices" ]
[email protected]6b9028ab2014-07-23 17:15:38290 }
291
292 if (is_android) {
James Robinson060f2e32014-09-10 22:31:37293 deps += [ "//content/shell/android:content_shell_jni_headers" ]
[email protected]6b9028ab2014-07-23 17:15:38294 }
295
torne1b1c9782015-03-30 20:49:00296 if (is_posix && !is_mac) {
brettwb78fc9e2016-03-25 21:02:51297 deps += [
298 "//components/crash/content/app",
299 "//components/crash/content/browser",
300 ]
[email protected]6b9028ab2014-07-23 17:15:38301 }
302
303 if (use_aura) {
304 deps += [
305 "//ui/aura",
306 "//ui/aura:test_support",
307 "//ui/events",
308 "//ui/strings",
309 "//ui/wm",
310 ]
311
312 if (toolkit_views) {
313 sources += [ "browser/shell_views.cc" ]
314 deps += [
315 "//ui/resources",
[email protected]6b9028ab2014-07-23 17:15:38316 "//ui/views",
317 "//ui/views:test_support",
agrieved7a71c882015-11-20 19:53:28318 "//ui/views/controls/webview",
brettwb78fc9e2016-03-25 21:02:51319 "//ui/wm:test_support",
[email protected]6b9028ab2014-07-23 17:15:38320 ]
321 } else {
322 sources += [ "browser/shell_aura.cc" ]
323 }
James Robinson060f2e32014-09-10 22:31:37324 } else {
325 sources -= [
326 "browser/shell_platform_data_aura.cc",
327 "browser/shell_platform_data_aura.h",
328 ]
[email protected]6b9028ab2014-07-23 17:15:38329 }
330
[email protected]6b9028ab2014-07-23 17:15:38331 if (is_chromeos) {
332 deps += [
mukai6ba73552014-10-09 19:05:17333 "//chromeos",
[email protected]6b9028ab2014-07-23 17:15:38334 "//ui/wm:test_support",
[email protected]6b9028ab2014-07-23 17:15:38335 ]
336 }
337
bcf0ddf78a2016-02-02 18:52:21338 if (is_linux) {
[email protected]6b9028ab2014-07-23 17:15:38339 deps += [ "//third_party/freetype2" ]
340 }
341
342 if (!enable_plugins) {
343 sources -= [
344 "browser/shell_plugin_service_filter.cc",
345 "browser/shell_plugin_service_filter.h",
346 ]
347 }
348}
349
350grit("content_shell_resources_grit") {
brettwb78fc9e2016-03-25 21:02:51351 # External code should depend on ":resources" instead.
brettw9af42622014-09-06 21:21:02352 visibility = [ ":*" ]
[email protected]6b9028ab2014-07-23 17:15:38353 source = "shell_resources.grd"
354 outputs = [
355 "grit/shell_resources.h",
356 "shell_resources.pak",
[email protected]6b9028ab2014-07-23 17:15:38357 ]
358}
359
360copy("copy_shell_resources") {
scottmg7afc4092014-12-03 19:22:42361 sources = [
362 "$target_gen_dir/shell_resources.pak",
363 ]
scottmg34fb7e52014-12-03 23:27:24364 outputs = [
365 "$root_out_dir/shell_resources.pak",
366 ]
[email protected]6b9028ab2014-07-23 17:15:38367
scottmg7afc4092014-12-03 19:22:42368 public_deps = [
369 ":content_shell_resources_grit",
370 ]
[email protected]6b9028ab2014-07-23 17:15:38371}
372
[email protected]6b9028ab2014-07-23 17:15:38373group("resources") {
Brett Wilsone53895272014-09-23 23:41:46374 public_deps = [
[email protected]6b9028ab2014-07-23 17:15:38375 ":copy_shell_resources",
376 ]
jochen73e711c2015-06-03 10:01:46377 deps = [
378 "//components/test_runner:resources",
379 ]
[email protected]6b9028ab2014-07-23 17:15:38380}
381
382repack("pak") {
383 sources = [
erga3c614c92015-04-03 17:47:51384 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak",
385 "$root_gen_dir/blink/public/resources/blink_resources.pak",
[email protected]a9ca8d52014-08-22 10:21:08386 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
[email protected]6586a2e32014-08-09 19:24:12387 "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38388 "$root_gen_dir/content/browser/tracing/tracing_resources.pak",
[email protected]6586a2e32014-08-09 19:24:12389 "$root_gen_dir/content/content_resources.pak",
[email protected]6b9028ab2014-07-23 17:15:38390 "$root_gen_dir/content/shell/shell_resources.pak",
391 "$root_gen_dir/net/net_resources.pak",
392 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
393 "$root_gen_dir/ui/resources/webui_resources.pak",
394 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
395 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38396 ]
397
398 deps = [
399 ":resources",
400 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08401 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12402 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38403 "//content/browser/tracing:resources",
404 "//net:net_resources",
erga3c614c92015-04-03 17:47:51405 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46406 "//third_party/WebKit/public:resources",
[email protected]6b9028ab2014-07-23 17:15:38407 "//ui/resources",
408 "//ui/strings",
[email protected]6b9028ab2014-07-23 17:15:38409 ]
410
sadrul7bd20c92015-06-24 16:45:44411 if (toolkit_views) {
412 deps += [ "//ui/views/resources" ]
413 sources +=
414 [ "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak" ]
415 }
416
vivek.vg77816a12014-12-18 14:28:20417 sources += [ "$root_gen_dir/blink/devtools_resources.pak" ]
cjhopman2fd48fd2014-09-24 00:52:56418 deps += [ "//content/browser/devtools:resources" ]
419 output = "$root_out_dir/content_shell.pak"
[email protected]6b9028ab2014-07-23 17:15:38420}
421
agrieve993374cf2016-04-13 00:05:39422if (is_android) {
423 group("content_shell") {
424 testonly = true
425 deps = [
426 "//content/shell/android:content_shell_apk",
427 ]
428 }
429} else if (is_mac) {
430 group("content_shell") {
431 testonly = true
432 deps = [
433 ":content_shell_lib",
434 ]
435 }
436} else {
brettw2e2220c2015-07-21 18:56:35437 # TODO(brettw) when GYP is no longer necessary, delete
438 # content/shell/app/shell.exe.manifest. This file is not used in GN.
scottmg7afc4092014-12-03 19:22:42439 executable("content_shell") {
440 testonly = true
James Robinson060f2e32014-09-10 22:31:37441
scottmg7afc4092014-12-03 19:22:42442 # TODO(GYP) mac resource bundle stuff for this target.
443 # TODO(GYP) Windows content shell settings:
scottmg7afc4092014-12-03 19:22:42444 # - RC file.
445 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
446 sources = [
scottmg7afc4092014-12-03 19:22:42447 "app/shell_main.cc",
448 ]
[email protected]6b9028ab2014-07-23 17:15:38449
skobes502412ae2016-01-19 17:40:43450 defines = []
451
scottmg7afc4092014-12-03 19:22:42452 deps = [
453 ":content_shell_lib",
454 ":pak",
brettwba7a73d2015-08-31 22:17:39455 "//build/config/sanitizers:deps",
brettw2e2220c2015-07-21 18:56:35456 "//build/win:default_exe_manifest",
scottmg7afc4092014-12-03 19:22:42457 ]
[email protected]6b9028ab2014-07-23 17:15:38458
scottmg7afc4092014-12-03 19:22:42459 if (is_win) {
460 deps += [ "//sandbox" ]
skobes502412ae2016-01-19 17:40:43461 if (win_console_app) {
462 defines += [ "WIN_CONSOLE_APP" ]
463 } else {
464 # Set /SUBSYSTEM:WINDOWS unless a console build has been requested.
scottmg7afc4092014-12-03 19:22:42465 configs -= [ "//build/config/win:console" ]
466 configs += [ "//build/config/win:windowed" ]
467 }
468 }
469
470 if (is_mac) {
brettwe1d40652015-10-23 23:06:10471 # TODO(GYP) lots of stuff from GYP file here including helper_app and
472 # postbuilds.
473 output_name = content_shell_product_name
474 deps = [
475 ":framework",
476 ]
scottmg7afc4092014-12-03 19:22:42477 }
478
wangxianzhu1a34fa32016-03-10 21:03:00479 if (is_linux && !is_component_build) {
480 # Set rpath to find our own libfreetype even in a non-component build.
481 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
482 }
[email protected]6b9028ab2014-07-23 17:15:38483 }
James Robinson060f2e32014-09-10 22:31:37484}
tfarina10ae51f62015-05-13 03:35:57485
tfarina795e01a2015-05-15 19:29:57486if (is_win) {
487 # GYP version: content/content_shell_and_tests.gyp:content_shell_crash_service
brettw0d3b1df2015-12-03 00:10:01488 executable("content_shell_crash_service") {
tfarina795e01a2015-05-15 19:29:57489 sources = [
490 "tools/content_shell_crash_service.cc",
491 ]
492
493 deps = [
494 "//base",
brettwba7a73d2015-08-31 22:17:39495 "//build/config/sanitizers:deps",
sdefresne8ba0b88c2015-09-18 10:33:13496 "//components/crash/content/tools:crash_service",
tfarina795e01a2015-05-15 19:29:57497 ]
498
499 configs -= [ "//build/config/win:console" ]
500 configs += [ "//build/config/win:windowed" ]
501 }
502}
brettwe1d40652015-10-23 23:06:10503
504if (is_mac) {
505 # TODO(GYP) this should be a bundle. Lots of other stuff in this target.
506 # GYP version: content/content_shell.gypi:content_shell_framework
507 shared_library("framework") {
508 testonly = true
509
510 # TODO(GYP) bug 546894: Fix GN and toolchains to handle spaces here.
511 #output_name = "$content_shell_product_name Framework"
512 output_name = "content_shell_framework" # Temporary one with no spaces.
513
514 sources = [
tfarinac708f3972015-10-25 17:42:50515 "app/shell_content_main.cc",
516 "app/shell_content_main.h",
brettwe1d40652015-10-23 23:06:10517 ]
518
519 deps = [
520 ":content_shell_lib",
521 ]
522 }
523}
ortunof78c8412016-03-31 18:59:59524
525mojom("mojo_bindings") {
526 sources = [
527 "common/layout_test/layout_test_bluetooth_fake_adapter_setter.mojom",
528 ]
529}