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/grit_rule.gni") |
7 import("//tools/grit/repack.gni") | 7 import("//tools/grit/repack.gni") |
8 | 8 |
9 group("headless") { | 9 group("headless") { |
10 deps = [ | 10 deps = [ |
(...skipping 28 matching lines...) Expand all Loading... | |
39 "//net:net_resources", | 39 "//net:net_resources", |
40 "//third_party/WebKit/public:image_resources", | 40 "//third_party/WebKit/public:image_resources", |
41 "//third_party/WebKit/public:resources", | 41 "//third_party/WebKit/public:resources", |
42 "//ui/resources", | 42 "//ui/resources", |
43 "//ui/strings", | 43 "//ui/strings", |
44 ] | 44 ] |
45 | 45 |
46 output = "$root_out_dir/headless_lib.pak" | 46 output = "$root_out_dir/headless_lib.pak" |
47 } | 47 } |
48 | 48 |
49 action("embed_resources") { | |
50 # Consider zipping file here, it can reduce size up to 80%. | |
Sami
2016/05/16 10:00:20
TODO(altimin):
altimin
2016/05/16 14:32:50
Done.
| |
51 script = "//headless/lib/embed_data.py" | |
52 | |
53 inputs = [ | |
54 "$root_out_dir/headless_lib.pak", | |
55 ] | |
56 | |
57 outputs = [ | |
58 "$root_gen_dir/headless/embedded_resource_pak.cc", | |
59 "$root_gen_dir/headless/embedded_resource_pak.h", | |
60 ] | |
61 | |
62 args = [ | |
63 "--data_file", | |
64 rebase_path("$root_out_dir/headless_lib.pak"), | |
65 "--gendir", | |
66 rebase_path("$root_gen_dir"), | |
67 "--header_file", | |
68 "headless/embedded_resource_pak.h", | |
69 "--source_file", | |
70 "headless/embedded_resource_pak.cc", | |
71 "--namespace", | |
72 "headless", | |
73 "--variable_name", | |
74 "kHeadlessResourcePak", | |
75 ] | |
76 | |
77 deps = [ | |
78 ":pak", | |
79 ] | |
80 } | |
81 | |
49 grit("headless_lib_resources_grit") { | 82 grit("headless_lib_resources_grit") { |
50 source = "lib/resources/headless_lib_resources.grd" | 83 source = "lib/resources/headless_lib_resources.grd" |
51 outputs = [ | 84 outputs = [ |
52 "grit/headless_lib_resources.h", | 85 "grit/headless_lib_resources.h", |
53 "$root_gen_dir/headless/headless_lib_resources.pak", | 86 "$root_gen_dir/headless/headless_lib_resources.pak", |
54 ] | 87 ] |
55 } | 88 } |
56 | 89 |
57 action("gen_devtools_client_api") { | 90 action("gen_devtools_client_api") { |
58 script = "//headless/lib/browser/client_api_generator.py" | 91 script = "//headless/lib/browser/client_api_generator.py" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 args = [ | 169 args = [ |
137 "--protocol", | 170 "--protocol", |
138 rebase_path(inputs[0], root_build_dir), | 171 rebase_path(inputs[0], root_build_dir), |
139 "--output_dir", | 172 "--output_dir", |
140 rebase_path(target_gen_dir) + "/public/domains", | 173 rebase_path(target_gen_dir) + "/public/domains", |
141 ] | 174 ] |
142 } | 175 } |
143 | 176 |
144 static_library("headless_lib") { | 177 static_library("headless_lib") { |
145 sources = [ | 178 sources = [ |
179 "$root_gen_dir/headless/embedded_resource_pak.cc", | |
180 "$root_gen_dir/headless/embedded_resource_pak.h", | |
146 "$target_gen_dir/public/domains/accessibility.cc", | 181 "$target_gen_dir/public/domains/accessibility.cc", |
147 "$target_gen_dir/public/domains/accessibility.h", | 182 "$target_gen_dir/public/domains/accessibility.h", |
148 "$target_gen_dir/public/domains/animation.cc", | 183 "$target_gen_dir/public/domains/animation.cc", |
149 "$target_gen_dir/public/domains/animation.h", | 184 "$target_gen_dir/public/domains/animation.h", |
150 "$target_gen_dir/public/domains/application_cache.cc", | 185 "$target_gen_dir/public/domains/application_cache.cc", |
151 "$target_gen_dir/public/domains/application_cache.h", | 186 "$target_gen_dir/public/domains/application_cache.h", |
152 "$target_gen_dir/public/domains/cache_storage.cc", | 187 "$target_gen_dir/public/domains/cache_storage.cc", |
153 "$target_gen_dir/public/domains/cache_storage.h", | 188 "$target_gen_dir/public/domains/cache_storage.h", |
154 "$target_gen_dir/public/domains/console.cc", | 189 "$target_gen_dir/public/domains/console.cc", |
155 "$target_gen_dir/public/domains/console.h", | 190 "$target_gen_dir/public/domains/console.h", |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
223 "lib/browser/headless_web_contents_impl.cc", | 258 "lib/browser/headless_web_contents_impl.cc", |
224 "lib/browser/headless_web_contents_impl.h", | 259 "lib/browser/headless_web_contents_impl.h", |
225 "lib/browser/headless_window_tree_client.cc", | 260 "lib/browser/headless_window_tree_client.cc", |
226 "lib/browser/headless_window_tree_client.h", | 261 "lib/browser/headless_window_tree_client.h", |
227 "lib/headless_content_client.cc", | 262 "lib/headless_content_client.cc", |
228 "lib/headless_content_client.h", | 263 "lib/headless_content_client.h", |
229 "lib/headless_content_main_delegate.cc", | 264 "lib/headless_content_main_delegate.cc", |
230 "lib/headless_content_main_delegate.h", | 265 "lib/headless_content_main_delegate.h", |
231 "lib/renderer/headless_content_renderer_client.cc", | 266 "lib/renderer/headless_content_renderer_client.cc", |
232 "lib/renderer/headless_content_renderer_client.h", | 267 "lib/renderer/headless_content_renderer_client.h", |
268 "lib/util/embedded_file.h", | |
233 "lib/utility/headless_content_utility_client.cc", | 269 "lib/utility/headless_content_utility_client.cc", |
234 "lib/utility/headless_content_utility_client.h", | 270 "lib/utility/headless_content_utility_client.h", |
235 "public/headless_browser.cc", | 271 "public/headless_browser.cc", |
236 "public/headless_browser.h", | 272 "public/headless_browser.h", |
237 "public/headless_devtools_client.h", | 273 "public/headless_devtools_client.h", |
238 "public/headless_devtools_host.h", | 274 "public/headless_devtools_host.h", |
239 "public/headless_devtools_target.h", | 275 "public/headless_devtools_target.h", |
240 "public/headless_export.h", | 276 "public/headless_export.h", |
241 "public/headless_web_contents.h", | 277 "public/headless_web_contents.h", |
242 "public/internal/message_dispatcher.h", | 278 "public/internal/message_dispatcher.h", |
243 "public/internal/value_conversions.h", | 279 "public/internal/value_conversions.h", |
244 "public/util/error_reporter.cc", | 280 "public/util/error_reporter.cc", |
245 "public/util/error_reporter.h", | 281 "public/util/error_reporter.h", |
246 ] | 282 ] |
247 | 283 |
248 deps = [ | 284 deps = [ |
285 ":embed_resources", | |
249 ":gen_devtools_client_api", | 286 ":gen_devtools_client_api", |
250 ":pak", | 287 ":pak", |
251 "//base", | 288 "//base", |
252 "//components/devtools_http_handler", | 289 "//components/devtools_http_handler", |
253 "//content/public/app:both", | 290 "//content/public/app:both", |
254 "//content/public/browser", | 291 "//content/public/browser", |
255 "//content/public/child", | 292 "//content/public/child", |
256 "//content/public/common", | 293 "//content/public/common", |
257 "//content/public/renderer", | 294 "//content/public/renderer", |
258 "//content/public/utility", | 295 "//content/public/utility", |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
333 sources = [ | 370 sources = [ |
334 "app/headless_shell.cc", | 371 "app/headless_shell.cc", |
335 "app/headless_shell_switches.cc", | 372 "app/headless_shell_switches.cc", |
336 "app/headless_shell_switches.h", | 373 "app/headless_shell_switches.h", |
337 ] | 374 ] |
338 | 375 |
339 deps = [ | 376 deps = [ |
340 "//headless:headless_lib", | 377 "//headless:headless_lib", |
341 ] | 378 ] |
342 } | 379 } |
OLD | NEW |