blob: caf5ad90d9234a222de8b06bf3929afc15069b75 [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")
rsesek20a58a62016-04-15 20:59:2316} else if (is_mac) {
17 import("//build/config/mac/rules.gni")
[email protected]6b9028ab2014-07-23 17:15:3818}
19
20declare_args() {
21 content_shell_product_name = "Content Shell"
esprehnb3789092015-11-24 19:46:0322 content_shell_version = "99.77.34.5"
[email protected]6b9028ab2014-07-23 17:15:3823}
24
thakisff2eab9c2015-11-13 00:29:5825config("content_shell_lib_warnings") {
26 if (is_clang) {
27 # TODO(thakis): Remove this once http://crbug.com/383820 is figured out
28 cflags = [ "-Wno-nonnull" ]
29 }
30}
31
[email protected]6b9028ab2014-07-23 17:15:3832static_library("content_shell_lib") {
Brett Wilson8f80ad0b2014-09-08 19:50:2433 testonly = true
[email protected]6b9028ab2014-07-23 17:15:3834 sources = [
dprankec6beb8392015-10-30 23:44:2135 "android/shell_descriptors.h",
[email protected]6b9028ab2014-07-23 17:15:3836 "android/shell_jni_registrar.cc",
37 "android/shell_jni_registrar.h",
38 "android/shell_manager.cc",
39 "android/shell_manager.h",
lukasza88e4b0b42016-02-25 21:42:1040 "app/blink_test_platform_support.h",
41 "app/blink_test_platform_support_android.cc",
42 "app/blink_test_platform_support_linux.cc",
43 "app/blink_test_platform_support_mac.mm",
44 "app/blink_test_platform_support_win.cc",
[email protected]6b9028ab2014-07-23 17:15:3845 "app/paths_mac.h",
46 "app/paths_mac.mm",
rseseka0a7a042014-09-18 23:59:2047 "app/shell_crash_reporter_client.cc",
48 "app/shell_crash_reporter_client.h",
[email protected]6b9028ab2014-07-23 17:15:3849 "app/shell_main_delegate.cc",
50 "app/shell_main_delegate.h",
51 "app/shell_main_delegate_mac.h",
52 "app/shell_main_delegate_mac.mm",
jochen5ce1af92016-02-17 20:39:4553 "browser/layout_test/blink_test_controller.cc",
54 "browser/layout_test/blink_test_controller.h",
mkwstd6805d0d2014-10-16 14:44:3755 "browser/layout_test/layout_test_android.cc",
56 "browser/layout_test/layout_test_android.h",
ortunofd24faa2015-05-20 16:34:3757 "browser/layout_test/layout_test_bluetooth_adapter_provider.cc",
58 "browser/layout_test/layout_test_bluetooth_adapter_provider.h",
jyasskin8057c002015-09-10 19:09:5359 "browser/layout_test/layout_test_bluetooth_chooser_factory.cc",
60 "browser/layout_test/layout_test_bluetooth_chooser_factory.h",
ortunof78c8412016-03-31 18:59:5961 "browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.cc",
62 "browser/layout_test/layout_test_bluetooth_fake_adapter_setter_impl.h",
mkwstd993d06a2014-10-10 11:44:3863 "browser/layout_test/layout_test_browser_context.cc",
64 "browser/layout_test/layout_test_browser_context.h",
mkwst88e23182014-10-16 12:08:5865 "browser/layout_test/layout_test_browser_main.cc",
66 "browser/layout_test/layout_test_browser_main.h",
mkwst36b11b6f2014-10-15 16:18:5667 "browser/layout_test/layout_test_browser_main_parts.cc",
68 "browser/layout_test/layout_test_browser_main_parts.h",
petercd7abb42014-10-17 13:34:0169 "browser/layout_test/layout_test_content_browser_client.cc",
70 "browser/layout_test/layout_test_content_browser_client.h",
mkwst30d20d52014-10-09 13:33:1471 "browser/layout_test/layout_test_devtools_frontend.cc",
72 "browser/layout_test/layout_test_devtools_frontend.h",
mkwst94388f792014-10-16 07:36:5273 "browser/layout_test/layout_test_download_manager_delegate.cc",
74 "browser/layout_test/layout_test_download_manager_delegate.h",
mkwst6efe7f2e62014-10-08 15:09:0175 "browser/layout_test/layout_test_javascript_dialog_manager.cc",
76 "browser/layout_test/layout_test_javascript_dialog_manager.h",
Peter Beverlooe8f2f9d2014-10-20 16:47:4977 "browser/layout_test/layout_test_message_filter.cc",
78 "browser/layout_test/layout_test_message_filter.h",
petercd7abb42014-10-17 13:34:0179 "browser/layout_test/layout_test_notification_manager.cc",
80 "browser/layout_test/layout_test_notification_manager.h",
mlamouri4e372022015-03-29 14:51:0681 "browser/layout_test/layout_test_permission_manager.cc",
82 "browser/layout_test/layout_test_permission_manager.h",
mvanouwerkerkde895c9c2014-12-06 12:17:3283 "browser/layout_test/layout_test_push_messaging_service.cc",
84 "browser/layout_test/layout_test_push_messaging_service.h",
mkwst002d02902014-10-09 10:17:0085 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc",
86 "browser/layout_test/layout_test_resource_dispatcher_host_delegate.h",
mkwst94388f792014-10-16 07:36:5287 "browser/layout_test/layout_test_url_request_context_getter.cc",
88 "browser/layout_test/layout_test_url_request_context_getter.h",
lukasza8e550a02016-04-18 18:34:1789 "browser/layout_test/secondary_test_window_observer.cc",
90 "browser/layout_test/secondary_test_window_observer.h",
jochene9ba6dd2016-02-23 17:20:4991 "browser/layout_test/test_info_extractor.cc",
92 "browser/layout_test/test_info_extractor.h",
peter11d5f562014-10-23 23:12:2593 "browser/shell.cc",
94 "browser/shell.h",
95 "browser/shell_access_token_store.cc",
96 "browser/shell_access_token_store.h",
[email protected]6b9028ab2014-07-23 17:15:3897 "browser/shell_android.cc",
98 "browser/shell_application_mac.h",
99 "browser/shell_application_mac.mm",
100 "browser/shell_browser_context.cc",
101 "browser/shell_browser_context.h",
102 "browser/shell_browser_main.cc",
103 "browser/shell_browser_main.h",
104 "browser/shell_browser_main_parts.cc",
105 "browser/shell_browser_main_parts.h",
106 "browser/shell_browser_main_parts_mac.mm",
[email protected]6b9028ab2014-07-23 17:15:38107 "browser/shell_content_browser_client.cc",
108 "browser/shell_content_browser_client.h",
[email protected]6b9028ab2014-07-23 17:15:38109 "browser/shell_devtools_frontend.cc",
110 "browser/shell_devtools_frontend.h",
satorux7fa9d302015-02-16 00:44:52111 "browser/shell_devtools_manager_delegate.cc",
112 "browser/shell_devtools_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38113 "browser/shell_download_manager_delegate.cc",
114 "browser/shell_download_manager_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38115 "browser/shell_javascript_dialog.h",
116 "browser/shell_javascript_dialog_mac.mm",
117 "browser/shell_javascript_dialog_manager.cc",
118 "browser/shell_javascript_dialog_manager.h",
119 "browser/shell_javascript_dialog_win.cc",
[email protected]6b9028ab2014-07-23 17:15:38120 "browser/shell_login_dialog.cc",
121 "browser/shell_login_dialog.h",
122 "browser/shell_login_dialog_mac.mm",
123 "browser/shell_mac.mm",
satorux7fa9d302015-02-16 00:44:52124 "browser/shell_mojo_test_utils_android.cc",
125 "browser/shell_mojo_test_utils_android.h",
[email protected]6b9028ab2014-07-23 17:15:38126 "browser/shell_net_log.cc",
127 "browser/shell_net_log.h",
128 "browser/shell_network_delegate.cc",
129 "browser/shell_network_delegate.h",
mlamouri4e372022015-03-29 14:51:06130 "browser/shell_permission_manager.cc",
131 "browser/shell_permission_manager.h",
[email protected]6b9028ab2014-07-23 17:15:38132 "browser/shell_platform_data_aura.cc",
133 "browser/shell_platform_data_aura.h",
134 "browser/shell_plugin_service_filter.cc",
135 "browser/shell_plugin_service_filter.h",
136 "browser/shell_quota_permission_context.cc",
137 "browser/shell_quota_permission_context.h",
138 "browser/shell_resource_dispatcher_host_delegate.cc",
139 "browser/shell_resource_dispatcher_host_delegate.h",
140 "browser/shell_speech_recognition_manager_delegate.cc",
141 "browser/shell_speech_recognition_manager_delegate.h",
142 "browser/shell_url_request_context_getter.cc",
143 "browser/shell_url_request_context_getter.h",
satorux7fa9d302015-02-16 00:44:52144 "browser/shell_web_contents_view_delegate.h",
[email protected]6b9028ab2014-07-23 17:15:38145 "browser/shell_web_contents_view_delegate_android.cc",
146 "browser/shell_web_contents_view_delegate_creator.h",
[email protected]6b9028ab2014-07-23 17:15:38147 "browser/shell_web_contents_view_delegate_mac.mm",
148 "browser/shell_web_contents_view_delegate_win.cc",
lukasza80f7f602016-03-22 23:13:19149 "common/layout_test/layout_test_content_client.cc",
150 "common/layout_test/layout_test_content_client.h",
petere04203592014-10-27 17:57:35151 "common/layout_test/layout_test_messages.cc",
152 "common/layout_test/layout_test_messages.h",
lukasza381b0492016-03-10 16:48:43153 "common/layout_test/layout_test_switches.cc",
154 "common/layout_test/layout_test_switches.h",
[email protected]6b9028ab2014-07-23 17:15:38155 "common/leak_detection_result.h",
156 "common/shell_content_client.cc",
157 "common/shell_content_client.h",
158 "common/shell_messages.cc",
159 "common/shell_messages.h",
160 "common/shell_switches.cc",
161 "common/shell_switches.h",
162 "common/shell_test_configuration.cc",
163 "common/shell_test_configuration.h",
tfarina685c39802015-05-04 22:11:22164 "renderer/layout_test/blink_test_helpers.cc",
165 "renderer/layout_test/blink_test_helpers.h",
tfarina8e08285f2015-05-02 03:17:39166 "renderer/layout_test/blink_test_runner.cc",
167 "renderer/layout_test/blink_test_runner.h",
mkwst02ec0d62014-10-07 22:07:29168 "renderer/layout_test/layout_test_content_renderer_client.cc",
169 "renderer/layout_test/layout_test_content_renderer_client.h",
mkwst3e72c1f2014-10-08 05:02:36170 "renderer/layout_test/layout_test_render_frame_observer.cc",
171 "renderer/layout_test/layout_test_render_frame_observer.h",
tyoshino832a58a2016-04-18 08:14:08172 "renderer/layout_test/layout_test_render_thread_observer.cc",
173 "renderer/layout_test/layout_test_render_thread_observer.h",
mkwst04b72d12014-10-08 15:52:55174 "renderer/layout_test/leak_detector.cc",
175 "renderer/layout_test/leak_detector.h",
jochen51265132015-05-28 07:33:45176 "renderer/layout_test/test_media_stream_renderer_factory.cc",
177 "renderer/layout_test/test_media_stream_renderer_factory.h",
178 "renderer/layout_test/test_video_frame_provider.cc",
179 "renderer/layout_test/test_video_frame_provider.h",
[email protected]6b9028ab2014-07-23 17:15:38180 "renderer/shell_content_renderer_client.cc",
181 "renderer/shell_content_renderer_client.h",
[email protected]6b9028ab2014-07-23 17:15:38182 "renderer/shell_render_view_observer.cc",
183 "renderer/shell_render_view_observer.h",
rockotb814a582015-06-05 00:30:52184 "utility/shell_content_utility_client.cc",
185 "utility/shell_content_utility_client.h",
[email protected]6b9028ab2014-07-23 17:15:38186 ]
187
brettwbc8b2a22015-07-28 18:24:42188 configs += [
thakisff2eab9c2015-11-13 00:29:58189 ":content_shell_lib_warnings",
brettwbc8b2a22015-07-28 18:24:42190 "//build/config:precompiled_headers",
191
192 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
193 "//build/config/compiler:no_size_t_to_int_warning",
kozyatinskiy6adbc802016-01-28 00:16:16194
195 "//third_party/WebKit/public:debug_devtools",
brettwbc8b2a22015-07-28 18:24:42196 ]
brettwd1c719a2015-02-19 23:17:04197
[email protected]6b9028ab2014-07-23 17:15:38198 defines = [ "CONTENT_SHELL_VERSION=\"$content_shell_version\"" ]
199
Brett Wilson0380637c2014-09-19 21:24:40200 public_deps = [
201 # This exposes all public content APIs.
202 "//content/public/app:both",
203 "//content/public/browser",
204 "//content/public/common",
Brett Wilson0380637c2014-09-19 21:24:40205 "//content/public/renderer",
206 "//content/public/utility",
207 ]
[email protected]6b9028ab2014-07-23 17:15:38208 deps = [
ortunof78c8412016-03-31 18:59:59209 ":mojo_bindings",
[email protected]6b9028ab2014-07-23 17:15:38210 ":resources",
211 "//base",
212 "//base:base_static",
[email protected]6b9028ab2014-07-23 17:15:38213 "//base/third_party/dynamic_annotations",
214 "//cc",
scottmgcfa5b01b2015-11-30 23:13:46215 "//components/crash/content/app:app_breakpad_mac_win_to_be_deleted",
dgozmanf7200152015-04-22 17:48:21216 "//components/devtools_discovery",
dgozman102fee92015-04-20 15:45:46217 "//components/devtools_http_handler",
chrishtr8a377e62015-06-01 19:20:08218 "//components/plugins/renderer",
jochen73e711c2015-06-03 10:01:46219 "//components/test_runner:test_runner",
rsleevi24f64dc22015-08-07 21:39:21220 "//components/url_formatter",
hanxi149b92d2014-09-11 21:57:18221 "//components/web_cache/renderer",
[email protected]6b9028ab2014-07-23 17:15:38222 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08223 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12224 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38225 "//content/gpu",
[email protected]6b9028ab2014-07-23 17:15:38226 "//content/test:layouttest_support",
brettwb78fc9e2016-03-25 21:02:51227 "//content/test:test_support",
dpranke93211fc2015-04-29 04:59:42228 "//device/bluetooth",
ortunofd24faa2015-05-20 16:34:37229 "//device/bluetooth:mocks",
[email protected]6b9028ab2014-07-23 17:15:38230 "//gin",
231 "//gpu",
232 "//ipc",
233 "//media",
brettwb78fc9e2016-03-25 21:02:51234 "//media/mojo/services:application_factory",
[email protected]6b9028ab2014-07-23 17:15:38235 "//net",
236 "//net:net_resources",
237 "//skia",
pilgrim4af8c212014-09-05 17:30:15238 "//storage/browser",
ortunofd24faa2015-05-20 16:34:37239 "//testing/gmock",
240 "//testing/gtest",
[email protected]6b9028ab2014-07-23 17:15:38241 "//third_party/WebKit/public:blink",
erga3c614c92015-04-03 17:47:51242 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46243 "//third_party/WebKit/public:resources",
[email protected]0e043592014-07-28 19:47:04244 "//third_party/WebKit/public:test_support",
[email protected]4eebe74d2014-08-13 02:54:46245 "//third_party/icu",
[email protected]6b9028ab2014-07-23 17:15:38246 "//ui/base",
spang1c36fac2015-02-05 19:55:12247 "//ui/base/ime",
[email protected]6b9028ab2014-07-23 17:15:38248 "//ui/events:events_base",
249 "//ui/gfx",
250 "//ui/gfx/geometry",
251 "//ui/gfx/ipc",
fsamuel6b98cf92016-04-28 05:42:24252 "//ui/gfx/ipc/geometry",
markdittmer99d77bf2016-03-31 19:03:24253 "//ui/gfx/ipc/skia",
[email protected]6b9028ab2014-07-23 17:15:38254 "//ui/gl",
255 "//url",
256 "//v8",
[email protected]6b9028ab2014-07-23 17:15:38257 ]
jamesr50081742014-09-09 07:52:22258 if (enable_plugins) {
dcheng0d93c1a2015-12-03 02:46:41259 deps += [
260 "//content/ppapi_plugin",
dchengc70b36e2016-03-02 02:36:10261 "//ppapi:blink_deprecated_test_plugin",
dcheng0d93c1a2015-12-03 02:46:41262 "//ppapi:blink_test_plugin",
brettwb78fc9e2016-03-25 21:02:51263 "//ppapi/shared_impl",
dcheng0d93c1a2015-12-03 02:46:41264 ]
jamesr50081742014-09-09 07:52:22265 }
xhwangbe720032016-02-19 18:45:31266 if (mojo_media_host == "browser") {
xhwang755165d2016-02-18 17:29:58267 deps += [ "//media/mojo/services:application_factory" ]
alokpaa2fdfb72016-02-03 22:55:54268 }
[email protected]6b9028ab2014-07-23 17:15:38269
270 if (is_win) {
[email protected]6b9028ab2014-07-23 17:15:38271 #'LinkIncremental': '<(msvs_large_module_debug_link_mode)', TODO(GYP)
vchigrin61944ae2015-01-30 23:51:32272 sources += [
273 "common/v8_breakpad_support_win.cc",
274 "common/v8_breakpad_support_win.h",
275 ]
[email protected]6b9028ab2014-07-23 17:15:38276 }
277
278 if (is_linux) {
brettwb78fc9e2016-03-25 21:02:51279 deps += [
280 "//build/linux:fontconfig",
281 "//ui/gfx:test_support",
282 ]
[email protected]6b9028ab2014-07-23 17:15:38283 }
284
285 if (use_x11) {
[email protected]c7990dbf2014-07-23 22:35:10286 # Some tests rely on this tool at runtime. Note: it might be better if
287 # the tests that needed it had this as a dep instead of adding it here.
sadrul1f7fa9f2015-10-06 17:14:57288 data_deps = [
289 "//tools/xdisplaycheck",
290 ]
dnicoara78a734702014-11-04 19:54:38291
kylecharad714872016-04-20 16:09:52292 deps += [ "//ui/events/devices/x11" ]
[email protected]6b9028ab2014-07-23 17:15:38293 }
294
295 if (is_android) {
James Robinson060f2e32014-09-10 22:31:37296 deps += [ "//content/shell/android:content_shell_jni_headers" ]
[email protected]6b9028ab2014-07-23 17:15:38297 }
298
torne1b1c9782015-03-30 20:49:00299 if (is_posix && !is_mac) {
brettwb78fc9e2016-03-25 21:02:51300 deps += [
301 "//components/crash/content/app",
302 "//components/crash/content/browser",
303 ]
[email protected]6b9028ab2014-07-23 17:15:38304 }
305
306 if (use_aura) {
307 deps += [
308 "//ui/aura",
309 "//ui/aura:test_support",
310 "//ui/events",
311 "//ui/strings",
312 "//ui/wm",
313 ]
314
315 if (toolkit_views) {
316 sources += [ "browser/shell_views.cc" ]
317 deps += [
318 "//ui/resources",
[email protected]6b9028ab2014-07-23 17:15:38319 "//ui/views",
320 "//ui/views:test_support",
agrieved7a71c882015-11-20 19:53:28321 "//ui/views/controls/webview",
brettwb78fc9e2016-03-25 21:02:51322 "//ui/wm:test_support",
[email protected]6b9028ab2014-07-23 17:15:38323 ]
324 } else {
325 sources += [ "browser/shell_aura.cc" ]
326 }
James Robinson060f2e32014-09-10 22:31:37327 } else {
328 sources -= [
329 "browser/shell_platform_data_aura.cc",
330 "browser/shell_platform_data_aura.h",
331 ]
[email protected]6b9028ab2014-07-23 17:15:38332 }
333
[email protected]6b9028ab2014-07-23 17:15:38334 if (is_chromeos) {
335 deps += [
mukai6ba73552014-10-09 19:05:17336 "//chromeos",
[email protected]6b9028ab2014-07-23 17:15:38337 "//ui/wm:test_support",
[email protected]6b9028ab2014-07-23 17:15:38338 ]
339 }
340
bcf0ddf78a2016-02-02 18:52:21341 if (is_linux) {
[email protected]6b9028ab2014-07-23 17:15:38342 deps += [ "//third_party/freetype2" ]
343 }
344
345 if (!enable_plugins) {
346 sources -= [
347 "browser/shell_plugin_service_filter.cc",
348 "browser/shell_plugin_service_filter.h",
349 ]
350 }
351}
352
353grit("content_shell_resources_grit") {
brettwb78fc9e2016-03-25 21:02:51354 # External code should depend on ":resources" instead.
brettw9af42622014-09-06 21:21:02355 visibility = [ ":*" ]
[email protected]6b9028ab2014-07-23 17:15:38356 source = "shell_resources.grd"
357 outputs = [
358 "grit/shell_resources.h",
359 "shell_resources.pak",
[email protected]6b9028ab2014-07-23 17:15:38360 ]
361}
362
363copy("copy_shell_resources") {
scottmg7afc4092014-12-03 19:22:42364 sources = [
365 "$target_gen_dir/shell_resources.pak",
366 ]
scottmg34fb7e52014-12-03 23:27:24367 outputs = [
368 "$root_out_dir/shell_resources.pak",
369 ]
[email protected]6b9028ab2014-07-23 17:15:38370
scottmg7afc4092014-12-03 19:22:42371 public_deps = [
372 ":content_shell_resources_grit",
373 ]
[email protected]6b9028ab2014-07-23 17:15:38374}
375
[email protected]6b9028ab2014-07-23 17:15:38376group("resources") {
Brett Wilsone53895272014-09-23 23:41:46377 public_deps = [
[email protected]6b9028ab2014-07-23 17:15:38378 ":copy_shell_resources",
379 ]
jochen73e711c2015-06-03 10:01:46380 deps = [
381 "//components/test_runner:resources",
382 ]
[email protected]6b9028ab2014-07-23 17:15:38383}
384
385repack("pak") {
386 sources = [
erga3c614c92015-04-03 17:47:51387 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak",
388 "$root_gen_dir/blink/public/resources/blink_resources.pak",
[email protected]a9ca8d52014-08-22 10:21:08389 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
[email protected]6586a2e32014-08-09 19:24:12390 "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38391 "$root_gen_dir/content/browser/tracing/tracing_resources.pak",
[email protected]6586a2e32014-08-09 19:24:12392 "$root_gen_dir/content/content_resources.pak",
[email protected]6b9028ab2014-07-23 17:15:38393 "$root_gen_dir/content/shell/shell_resources.pak",
394 "$root_gen_dir/net/net_resources.pak",
395 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
396 "$root_gen_dir/ui/resources/webui_resources.pak",
397 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
398 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
[email protected]6b9028ab2014-07-23 17:15:38399 ]
400
401 deps = [
402 ":resources",
403 "//content:resources",
[email protected]a9ca8d52014-08-22 10:21:08404 "//content/app/resources",
[email protected]6586a2e32014-08-09 19:24:12405 "//content/app/strings",
[email protected]6b9028ab2014-07-23 17:15:38406 "//content/browser/tracing:resources",
407 "//net:net_resources",
erga3c614c92015-04-03 17:47:51408 "//third_party/WebKit/public:image_resources",
[email protected]4eebe74d2014-08-13 02:54:46409 "//third_party/WebKit/public:resources",
[email protected]6b9028ab2014-07-23 17:15:38410 "//ui/resources",
411 "//ui/strings",
[email protected]6b9028ab2014-07-23 17:15:38412 ]
413
sadrul7bd20c92015-06-24 16:45:44414 if (toolkit_views) {
415 deps += [ "//ui/views/resources" ]
416 sources +=
417 [ "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak" ]
418 }
419
vivek.vg77816a12014-12-18 14:28:20420 sources += [ "$root_gen_dir/blink/devtools_resources.pak" ]
cjhopman2fd48fd2014-09-24 00:52:56421 deps += [ "//content/browser/devtools:resources" ]
422 output = "$root_out_dir/content_shell.pak"
[email protected]6b9028ab2014-07-23 17:15:38423}
424
agrieve993374cf2016-04-13 00:05:39425if (is_android) {
426 group("content_shell") {
427 testonly = true
428 deps = [
429 "//content/shell/android:content_shell_apk",
430 ]
431 }
432} else if (is_mac) {
433 group("content_shell") {
434 testonly = true
435 deps = [
436 ":content_shell_lib",
437 ]
438 }
439} else {
brettw2e2220c2015-07-21 18:56:35440 # TODO(brettw) when GYP is no longer necessary, delete
441 # content/shell/app/shell.exe.manifest. This file is not used in GN.
scottmg7afc4092014-12-03 19:22:42442 executable("content_shell") {
443 testonly = true
James Robinson060f2e32014-09-10 22:31:37444
scottmg7afc4092014-12-03 19:22:42445 # TODO(GYP) mac resource bundle stuff for this target.
446 # TODO(GYP) Windows content shell settings:
scottmg7afc4092014-12-03 19:22:42447 # - RC file.
448 # - 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
449 sources = [
scottmg7afc4092014-12-03 19:22:42450 "app/shell_main.cc",
451 ]
[email protected]6b9028ab2014-07-23 17:15:38452
skobes502412ae2016-01-19 17:40:43453 defines = []
454
scottmg7afc4092014-12-03 19:22:42455 deps = [
456 ":content_shell_lib",
457 ":pak",
brettwba7a73d2015-08-31 22:17:39458 "//build/config/sanitizers:deps",
brettw2e2220c2015-07-21 18:56:35459 "//build/win:default_exe_manifest",
scottmg7afc4092014-12-03 19:22:42460 ]
[email protected]6b9028ab2014-07-23 17:15:38461
scottmg7afc4092014-12-03 19:22:42462 if (is_win) {
463 deps += [ "//sandbox" ]
skobes502412ae2016-01-19 17:40:43464 if (win_console_app) {
465 defines += [ "WIN_CONSOLE_APP" ]
466 } else {
467 # Set /SUBSYSTEM:WINDOWS unless a console build has been requested.
scottmg7afc4092014-12-03 19:22:42468 configs -= [ "//build/config/win:console" ]
469 configs += [ "//build/config/win:windowed" ]
470 }
471 }
472
473 if (is_mac) {
brettwe1d40652015-10-23 23:06:10474 # TODO(GYP) lots of stuff from GYP file here including helper_app and
475 # postbuilds.
476 output_name = content_shell_product_name
477 deps = [
478 ":framework",
479 ]
scottmg7afc4092014-12-03 19:22:42480 }
481
wangxianzhu1a34fa32016-03-10 21:03:00482 if (is_linux && !is_component_build) {
483 # Set rpath to find our own libfreetype even in a non-component build.
484 configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
485 }
[email protected]6b9028ab2014-07-23 17:15:38486 }
James Robinson060f2e32014-09-10 22:31:37487}
tfarina10ae51f62015-05-13 03:35:57488
tfarina795e01a2015-05-15 19:29:57489if (is_win) {
490 # GYP version: content/content_shell_and_tests.gyp:content_shell_crash_service
brettw0d3b1df2015-12-03 00:10:01491 executable("content_shell_crash_service") {
tfarina795e01a2015-05-15 19:29:57492 sources = [
493 "tools/content_shell_crash_service.cc",
494 ]
495
496 deps = [
497 "//base",
brettwba7a73d2015-08-31 22:17:39498 "//build/config/sanitizers:deps",
brucedawsonf9f7d6292016-04-27 19:11:07499 "//build/win:default_exe_manifest",
sdefresne8ba0b88c2015-09-18 10:33:13500 "//components/crash/content/tools:crash_service",
tfarina795e01a2015-05-15 19:29:57501 ]
502
503 configs -= [ "//build/config/win:console" ]
504 configs += [ "//build/config/win:windowed" ]
505 }
506}
brettwe1d40652015-10-23 23:06:10507
508if (is_mac) {
509 # TODO(GYP) this should be a bundle. Lots of other stuff in this target.
510 # GYP version: content/content_shell.gypi:content_shell_framework
511 shared_library("framework") {
512 testonly = true
513
514 # TODO(GYP) bug 546894: Fix GN and toolchains to handle spaces here.
515 #output_name = "$content_shell_product_name Framework"
516 output_name = "content_shell_framework" # Temporary one with no spaces.
517
518 sources = [
tfarinac708f3972015-10-25 17:42:50519 "app/shell_content_main.cc",
520 "app/shell_content_main.h",
brettwe1d40652015-10-23 23:06:10521 ]
522
523 deps = [
524 ":content_shell_lib",
525 ]
526 }
rsesek20a58a62016-04-15 20:59:23527
528 mac_app_bundle("content_shell_helper_app") {
529 testonly = true
530 output_name = "$content_shell_product_name Helper"
531 sources = [
532 "app/shell_main.cc",
533 ]
534 deps = [
535 ":framework",
536 ]
537 info_plist = "app/helper-Info.plist"
538 }
brettwe1d40652015-10-23 23:06:10539}
ortunof78c8412016-03-31 18:59:59540
541mojom("mojo_bindings") {
542 sources = [
543 "common/layout_test/layout_test_bluetooth_fake_adapter_setter.mojom",
544 ]
545}