OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 import("//build/config/chrome_build.gni") |
5 import("//mojo/public/tools/bindings/mojom.gni") | 6 import("//mojo/public/tools/bindings/mojom.gni") |
6 import("//testing/test.gni") | 7 import("//testing/test.gni") |
7 import("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
8 import("//tools/grit/repack.gni") | 9 import("//tools/grit/repack.gni") |
9 | 10 |
10 config("headless_implementation") { | 11 config("headless_implementation") { |
11 defines = [ "HEADLESS_IMPLEMENTATION" ] | 12 defines = [ "HEADLESS_IMPLEMENTATION" ] |
12 } | 13 } |
13 | 14 |
14 group("headless") { | 15 group("headless") { |
15 deps = [ | 16 deps = [ |
16 "//headless:headless_lib", | 17 "//headless:headless_lib", |
17 ] | 18 ] |
18 } | 19 } |
19 | 20 |
20 repack("pak") { | 21 repack("pak") { |
21 sources = [ | 22 sources = [ |
22 "$root_gen_dir/blink/devtools_resources.pak", | 23 "$root_gen_dir/blink/devtools_resources.pak", |
23 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak"
, | 24 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak"
, |
24 "$root_gen_dir/blink/public/resources/blink_resources.pak", | 25 "$root_gen_dir/blink/public/resources/blink_resources.pak", |
| 26 "$root_gen_dir/components/strings/components_strings_en-US.pak", |
25 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", | 27 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", |
26 "$root_gen_dir/content/app/strings/content_strings_en-US.pak", | 28 "$root_gen_dir/content/app/strings/content_strings_en-US.pak", |
27 "$root_gen_dir/content/browser/tracing/tracing_resources.pak", | 29 "$root_gen_dir/content/browser/tracing/tracing_resources.pak", |
28 "$root_gen_dir/content/content_resources.pak", | 30 "$root_gen_dir/content/content_resources.pak", |
29 "$root_gen_dir/headless/headless_lib_resources.pak", | 31 "$root_gen_dir/headless/headless_lib_resources.pak", |
30 "$root_gen_dir/net/net_resources.pak", | 32 "$root_gen_dir/net/net_resources.pak", |
31 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", | 33 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
32 "$root_gen_dir/ui/resources/webui_resources.pak", | 34 "$root_gen_dir/ui/resources/webui_resources.pak", |
33 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 35 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
34 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 36 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
35 ] | 37 ] |
36 | 38 |
| 39 if (is_chrome_branded) { |
| 40 sources += [ "${root_gen_dir}/components/strings/components_google_chrome_st
rings_en-US.pak" ] |
| 41 } else { |
| 42 sources += [ "${root_gen_dir}/components/strings/components_chromium_strings
_en-US.pak" ] |
| 43 } |
| 44 |
37 deps = [ | 45 deps = [ |
38 ":headless_lib_resources_grit", | 46 ":headless_lib_resources_grit", |
| 47 "//components/strings", |
39 "//content:resources", | 48 "//content:resources", |
40 "//content/app/resources", | 49 "//content/app/resources", |
41 "//content/app/strings", | 50 "//content/app/strings", |
42 "//content/browser/devtools:resources", | 51 "//content/browser/devtools:resources", |
43 "//content/browser/tracing:resources", | 52 "//content/browser/tracing:resources", |
44 "//net:net_resources", | 53 "//net:net_resources", |
45 "//third_party/WebKit/public:image_resources", | 54 "//third_party/WebKit/public:image_resources", |
46 "//third_party/WebKit/public:resources", | 55 "//third_party/WebKit/public:resources", |
47 "//ui/resources", | 56 "//ui/resources", |
48 "//ui/strings", | 57 "//ui/strings", |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 "public/util/url_fetcher.h", | 221 "public/util/url_fetcher.h", |
213 "public/util/url_request_dispatcher.h", | 222 "public/util/url_request_dispatcher.h", |
214 "public/util/user_agent.cc", | 223 "public/util/user_agent.cc", |
215 "public/util/user_agent.h", | 224 "public/util/user_agent.h", |
216 ] | 225 ] |
217 | 226 |
218 deps = [ | 227 deps = [ |
219 ":gen_devtools_client_api", | 228 ":gen_devtools_client_api", |
220 ":pak", | 229 ":pak", |
221 "//base", | 230 "//base", |
| 231 "//components/security_state/content", |
| 232 "//components/security_state/core", |
222 "//content/public/app:both", | 233 "//content/public/app:both", |
223 "//content/public/browser", | 234 "//content/public/browser", |
224 "//content/public/child", | 235 "//content/public/child", |
225 "//content/public/common", | 236 "//content/public/common", |
226 "//content/public/renderer", | 237 "//content/public/renderer", |
227 "//content/public/utility", | 238 "//content/public/utility", |
228 "//net", | 239 "//net", |
229 "//services/service_manager/public/cpp", | 240 "//services/service_manager/public/cpp", |
230 "//third_party/mesa:osmesa", | 241 "//third_party/mesa:osmesa", |
231 "//ui/aura", | 242 "//ui/aura", |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 | 360 |
350 executable("headless_shell") { | 361 executable("headless_shell") { |
351 sources = [ | 362 sources = [ |
352 "app/headless_shell_main.cc", | 363 "app/headless_shell_main.cc", |
353 ] | 364 ] |
354 | 365 |
355 deps = [ | 366 deps = [ |
356 "//headless:headless_shell_lib", | 367 "//headless:headless_shell_lib", |
357 ] | 368 ] |
358 } | 369 } |
OLD | NEW |