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("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//tools/grit/grit_rule.gni") |
6 import("//tools/grit/repack.gni") | 7 import("//tools/grit/repack.gni") |
7 | 8 |
8 group("headless") { | 9 group("headless") { |
9 deps = [ | 10 deps = [ |
10 "//headless:headless_lib", | 11 "//headless:headless_lib", |
11 ] | 12 ] |
12 } | 13 } |
13 | 14 |
14 repack("pak") { | 15 repack("pak") { |
15 sources = [ | 16 sources = [ |
16 "$root_gen_dir/blink/devtools_resources.pak", | 17 "$root_gen_dir/blink/devtools_resources.pak", |
17 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak"
, | 18 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak"
, |
18 "$root_gen_dir/blink/public/resources/blink_resources.pak", | 19 "$root_gen_dir/blink/public/resources/blink_resources.pak", |
19 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", | 20 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", |
20 "$root_gen_dir/content/app/strings/content_strings_en-US.pak", | 21 "$root_gen_dir/content/app/strings/content_strings_en-US.pak", |
21 "$root_gen_dir/content/browser/tracing/tracing_resources.pak", | 22 "$root_gen_dir/content/browser/tracing/tracing_resources.pak", |
22 "$root_gen_dir/content/content_resources.pak", | 23 "$root_gen_dir/content/content_resources.pak", |
| 24 "$root_gen_dir/headless/headless_lib_resources.pak", |
23 "$root_gen_dir/net/net_resources.pak", | 25 "$root_gen_dir/net/net_resources.pak", |
24 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", | 26 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
25 "$root_gen_dir/ui/resources/webui_resources.pak", | 27 "$root_gen_dir/ui/resources/webui_resources.pak", |
26 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 28 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
27 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 29 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
28 ] | 30 ] |
29 | 31 |
30 deps = [ | 32 deps = [ |
| 33 ":headless_lib_resources_grit", |
31 "//content:resources", | 34 "//content:resources", |
32 "//content/app/resources", | 35 "//content/app/resources", |
33 "//content/app/strings", | 36 "//content/app/strings", |
34 "//content/browser/devtools:resources", | 37 "//content/browser/devtools:resources", |
35 "//content/browser/tracing:resources", | 38 "//content/browser/tracing:resources", |
36 "//net:net_resources", | 39 "//net:net_resources", |
37 "//third_party/WebKit/public:image_resources", | 40 "//third_party/WebKit/public:image_resources", |
38 "//third_party/WebKit/public:resources", | 41 "//third_party/WebKit/public:resources", |
39 "//ui/resources", | 42 "//ui/resources", |
40 "//ui/strings", | 43 "//ui/strings", |
41 ] | 44 ] |
42 | 45 |
43 output = "$root_out_dir/headless_lib.pak" | 46 output = "$root_out_dir/headless_lib.pak" |
44 } | 47 } |
45 | 48 |
| 49 grit("headless_lib_resources_grit") { |
| 50 source = "lib/resources/headless_lib_resources.grd" |
| 51 outputs = [ |
| 52 "grit/headless_lib_resources.h", |
| 53 "$root_gen_dir/headless/headless_lib_resources.pak", |
| 54 ] |
| 55 } |
| 56 |
46 static_library("headless_lib") { | 57 static_library("headless_lib") { |
47 sources = [ | 58 sources = [ |
48 "lib/browser/headless_browser_context.cc", | 59 "lib/browser/headless_browser_context.cc", |
49 "lib/browser/headless_browser_context.h", | 60 "lib/browser/headless_browser_context.h", |
50 "lib/browser/headless_browser_impl.cc", | 61 "lib/browser/headless_browser_impl.cc", |
51 "lib/browser/headless_browser_impl.h", | 62 "lib/browser/headless_browser_impl.h", |
52 "lib/browser/headless_browser_main_parts.cc", | 63 "lib/browser/headless_browser_main_parts.cc", |
53 "lib/browser/headless_browser_main_parts.h", | 64 "lib/browser/headless_browser_main_parts.h", |
54 "lib/browser/headless_content_browser_client.cc", | 65 "lib/browser/headless_content_browser_client.cc", |
55 "lib/browser/headless_content_browser_client.h", | 66 "lib/browser/headless_content_browser_client.h", |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 testonly = true | 136 testonly = true |
126 | 137 |
127 sources = [ | 138 sources = [ |
128 "app/headless_shell.cc", | 139 "app/headless_shell.cc", |
129 ] | 140 ] |
130 | 141 |
131 deps = [ | 142 deps = [ |
132 "//headless:headless_lib", | 143 "//headless:headless_lib", |
133 ] | 144 ] |
134 } | 145 } |
OLD | NEW |