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("//build/config/chrome_build.gni") |
6 import("//headless/headless.gni") | 6 import("//headless/headless.gni") |
7 import("//build/util/process_version.gni") | 7 import("//build/util/process_version.gni") |
8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
9 import("//printing/features/features.gni") | 9 import("//printing/features/features.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 11 matching lines...) Expand all Loading... | |
22 group("headless") { | 22 group("headless") { |
23 deps = [ | 23 deps = [ |
24 "//headless:headless_lib", | 24 "//headless:headless_lib", |
25 ] | 25 ] |
26 } | 26 } |
27 | 27 |
28 repack("pak") { | 28 repack("pak") { |
29 sources = [ | 29 sources = [ |
30 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak" , | 30 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak" , |
31 "$root_gen_dir/blink/public/resources/blink_resources.pak", | 31 "$root_gen_dir/blink/public/resources/blink_resources.pak", |
32 "$root_gen_dir/components/components_resources.pak", | |
32 "$root_gen_dir/components/strings/components_strings_en-US.pak", | 33 "$root_gen_dir/components/strings/components_strings_en-US.pak", |
33 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", | 34 "$root_gen_dir/content/app/resources/content_resources_100_percent.pak", |
34 "$root_gen_dir/content/app/strings/content_strings_en-US.pak", | 35 "$root_gen_dir/content/app/strings/content_strings_en-US.pak", |
35 "$root_gen_dir/content/browser/devtools/devtools_resources.pak", | 36 "$root_gen_dir/content/browser/devtools/devtools_resources.pak", |
36 "$root_gen_dir/content/browser/tracing/tracing_resources.pak", | 37 "$root_gen_dir/content/browser/tracing/tracing_resources.pak", |
37 "$root_gen_dir/content/content_resources.pak", | 38 "$root_gen_dir/content/content_resources.pak", |
38 "$root_gen_dir/headless/headless_lib_resources.pak", | 39 "$root_gen_dir/headless/headless_lib_resources.pak", |
39 "$root_gen_dir/net/net_resources.pak", | 40 "$root_gen_dir/net/net_resources.pak", |
40 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", | 41 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
41 "$root_gen_dir/ui/resources/webui_resources.pak", | 42 "$root_gen_dir/ui/resources/webui_resources.pak", |
42 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 43 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
43 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 44 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
44 ] | 45 ] |
45 | 46 |
46 if (is_chrome_branded) { | 47 if (is_chrome_branded) { |
47 sources += [ "${root_gen_dir}/components/strings/components_google_chrome_st rings_en-US.pak" ] | 48 sources += [ "${root_gen_dir}/components/strings/components_google_chrome_st rings_en-US.pak" ] |
48 } else { | 49 } else { |
49 sources += [ "${root_gen_dir}/components/strings/components_chromium_strings _en-US.pak" ] | 50 sources += [ "${root_gen_dir}/components/strings/components_chromium_strings _en-US.pak" ] |
50 } | 51 } |
51 | 52 |
52 deps = [ | 53 deps = [ |
53 ":resources", | 54 ":resources", |
55 "//components/resources:components_resources", | |
54 "//components/strings", | 56 "//components/strings", |
55 "//content:resources", | 57 "//content:resources", |
56 "//content/app/resources", | 58 "//content/app/resources", |
57 "//content/app/strings", | 59 "//content/app/strings", |
58 "//content/browser/devtools:resources", | 60 "//content/browser/devtools:resources", |
59 "//content/browser/tracing:resources", | 61 "//content/browser/tracing:resources", |
60 "//net:net_resources", | 62 "//net:net_resources", |
61 "//third_party/WebKit/public:image_resources", | 63 "//third_party/WebKit/public:image_resources", |
62 "//third_party/WebKit/public:resources", | 64 "//third_party/WebKit/public:resources", |
63 "//ui/resources", | 65 "//ui/resources", |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
309 "lib/renderer/headless_print_web_view_helper_delegate.cc", | 311 "lib/renderer/headless_print_web_view_helper_delegate.cc", |
310 "lib/renderer/headless_print_web_view_helper_delegate.h", | 312 "lib/renderer/headless_print_web_view_helper_delegate.h", |
311 ] | 313 ] |
312 } | 314 } |
313 | 315 |
314 public_deps = [ | 316 public_deps = [ |
315 "//base", | 317 "//base", |
316 "//net", | 318 "//net", |
317 ] | 319 ] |
318 | 320 |
321 if (enable_basic_printing) { | |
322 public_deps += [ "//skia" ] | |
Sami
2017/05/05 16:54:12
This is probably fine if it's needed to fix a buil
Wei Li
2017/05/05 17:18:28
drive-by: Should this be a deps instead? I don't s
Lei Zhang
2017/05/05 21:39:28
It's not a deps entry because it is no the headles
blundell
2017/05/09 15:34:04
I've been following this discussion, and I still d
jzfeng
2017/05/10 06:55:09
headless_lib need to expose //skia to make the tar
| |
323 } | |
324 | |
319 deps = [ | 325 deps = [ |
320 ":gen_devtools_client_api", | 326 ":gen_devtools_client_api", |
321 ":tab_socket", | 327 ":tab_socket", |
322 ":version_header", | 328 ":version_header", |
323 "//components/crash/content/browser", | 329 "//components/crash/content/browser", |
324 "//components/security_state/content", | 330 "//components/security_state/content", |
325 "//components/security_state/core", | 331 "//components/security_state/core", |
326 "//content/public/app:both", | 332 "//content/public/app:both", |
327 "//content/public/browser", | 333 "//content/public/browser", |
328 "//content/public/child:child", | 334 "//content/public/child:child", |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
381 sources = [ | 387 sources = [ |
382 "public/domains/types_unittest.cc", | 388 "public/domains/types_unittest.cc", |
383 "public/util/deterministic_dispatcher_test.cc", | 389 "public/util/deterministic_dispatcher_test.cc", |
384 "public/util/error_reporter_unittest.cc", | 390 "public/util/error_reporter_unittest.cc", |
385 "public/util/expedited_dispatcher_test.cc", | 391 "public/util/expedited_dispatcher_test.cc", |
386 "public/util/generic_url_request_job_test.cc", | 392 "public/util/generic_url_request_job_test.cc", |
387 "public/util/testing/fake_managed_dispatch_url_request_job.cc", | 393 "public/util/testing/fake_managed_dispatch_url_request_job.cc", |
388 "public/util/testing/fake_managed_dispatch_url_request_job.h", | 394 "public/util/testing/fake_managed_dispatch_url_request_job.h", |
389 ] | 395 ] |
390 | 396 |
397 if (enable_basic_printing) { | |
398 sources += [ "lib/browser/headless_printing_unittest.cc" ] | |
399 } | |
400 | |
391 deps = [ | 401 deps = [ |
392 ":headless_lib", | 402 ":headless_lib", |
393 "//base/test:run_all_unittests", | 403 "//base/test:run_all_unittests", |
394 "//base/test:test_support", | 404 "//base/test:test_support", |
395 "//testing/gmock", | 405 "//testing/gmock", |
396 "//testing/gtest", | 406 "//testing/gtest", |
397 ] | 407 ] |
398 } | 408 } |
399 | 409 |
400 mojom("embedder_mojo_for_testing") { | 410 mojom("embedder_mojo_for_testing") { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
483 | 493 |
484 deps = [ | 494 deps = [ |
485 ":embedder_mojo_for_testing", | 495 ":embedder_mojo_for_testing", |
486 ":headless_browser_tests_pak", | 496 ":headless_browser_tests_pak", |
487 "//base", | 497 "//base", |
488 "//content/test:test_support", | 498 "//content/test:test_support", |
489 "//headless:headless_lib", | 499 "//headless:headless_lib", |
490 "//testing/gmock", | 500 "//testing/gmock", |
491 "//testing/gtest", | 501 "//testing/gtest", |
492 ] | 502 ] |
503 | |
504 if (enable_basic_printing) { | |
505 deps += [ "//pdf" ] | |
506 } | |
493 } | 507 } |
494 | 508 |
495 static_library("headless_shell_lib") { | 509 static_library("headless_shell_lib") { |
496 sources = [ | 510 sources = [ |
497 "app/headless_shell.cc", | 511 "app/headless_shell.cc", |
498 "app/headless_shell.h", | 512 "app/headless_shell.h", |
499 "app/headless_shell_switches.cc", | 513 "app/headless_shell_switches.cc", |
500 "app/headless_shell_switches.h", | 514 "app/headless_shell_switches.h", |
501 "app/shell_navigation_request.cc", | 515 "app/shell_navigation_request.cc", |
502 "app/shell_navigation_request.h", | 516 "app/shell_navigation_request.h", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
541 | 555 |
542 executable("headless_example") { | 556 executable("headless_example") { |
543 sources = [ | 557 sources = [ |
544 "app/headless_example.cc", | 558 "app/headless_example.cc", |
545 ] | 559 ] |
546 | 560 |
547 deps = [ | 561 deps = [ |
548 "//headless:headless_shell_lib", | 562 "//headless:headless_shell_lib", |
549 ] | 563 ] |
550 } | 564 } |
OLD | NEW |