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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 sources = [ | 389 sources = [ |
388 "public/domains/types_unittest.cc", | 390 "public/domains/types_unittest.cc", |
389 "public/util/deterministic_dispatcher_test.cc", | 391 "public/util/deterministic_dispatcher_test.cc", |
390 "public/util/error_reporter_unittest.cc", | 392 "public/util/error_reporter_unittest.cc", |
391 "public/util/expedited_dispatcher_test.cc", | 393 "public/util/expedited_dispatcher_test.cc", |
392 "public/util/generic_url_request_job_test.cc", | 394 "public/util/generic_url_request_job_test.cc", |
393 "public/util/testing/fake_managed_dispatch_url_request_job.cc", | 395 "public/util/testing/fake_managed_dispatch_url_request_job.cc", |
394 "public/util/testing/fake_managed_dispatch_url_request_job.h", | 396 "public/util/testing/fake_managed_dispatch_url_request_job.h", |
395 ] | 397 ] |
396 | 398 |
| 399 if (enable_basic_printing) { |
| 400 sources += [ "lib/browser/headless_printing_unittest.cc" ] |
| 401 } |
| 402 |
397 deps = [ | 403 deps = [ |
398 ":headless_lib", | 404 ":headless_lib", |
399 "//base/test:run_all_unittests", | 405 "//base/test:run_all_unittests", |
400 "//base/test:test_support", | 406 "//base/test:test_support", |
401 "//testing/gmock", | 407 "//testing/gmock", |
402 "//testing/gtest", | 408 "//testing/gtest", |
403 ] | 409 ] |
| 410 |
| 411 if (enable_basic_printing) { |
| 412 deps += [ "//content/public/common" ] |
| 413 } |
404 } | 414 } |
405 | 415 |
406 mojom("embedder_mojo_for_testing") { | 416 mojom("embedder_mojo_for_testing") { |
407 sources = [ | 417 sources = [ |
408 "lib/embedder_test.mojom", | 418 "lib/embedder_test.mojom", |
409 ] | 419 ] |
410 } | 420 } |
411 | 421 |
412 grit("headless_browsertest_resources_grit") { | 422 grit("headless_browsertest_resources_grit") { |
413 source = "lib/headless_browsertest_resources.grd" | 423 source = "lib/headless_browsertest_resources.grd" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 | 498 |
489 deps = [ | 499 deps = [ |
490 ":embedder_mojo_for_testing", | 500 ":embedder_mojo_for_testing", |
491 ":headless_browser_tests_pak", | 501 ":headless_browser_tests_pak", |
492 "//base", | 502 "//base", |
493 "//content/test:test_support", | 503 "//content/test:test_support", |
494 "//headless:headless_lib", | 504 "//headless:headless_lib", |
495 "//testing/gmock", | 505 "//testing/gmock", |
496 "//testing/gtest", | 506 "//testing/gtest", |
497 ] | 507 ] |
| 508 |
| 509 if (enable_basic_printing) { |
| 510 deps += [ "//pdf" ] |
| 511 } |
498 } | 512 } |
499 | 513 |
500 static_library("headless_shell_lib") { | 514 static_library("headless_shell_lib") { |
501 sources = [ | 515 sources = [ |
502 "app/headless_shell.cc", | 516 "app/headless_shell.cc", |
503 "app/headless_shell.h", | 517 "app/headless_shell.h", |
504 "app/headless_shell_switches.cc", | 518 "app/headless_shell_switches.cc", |
505 "app/headless_shell_switches.h", | 519 "app/headless_shell_switches.h", |
506 "app/shell_navigation_request.cc", | 520 "app/shell_navigation_request.cc", |
507 "app/shell_navigation_request.h", | 521 "app/shell_navigation_request.h", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 560 |
547 executable("headless_example") { | 561 executable("headless_example") { |
548 sources = [ | 562 sources = [ |
549 "app/headless_example.cc", | 563 "app/headless_example.cc", |
550 ] | 564 ] |
551 | 565 |
552 deps = [ | 566 deps = [ |
553 "//headless:headless_shell_lib", | 567 "//headless:headless_shell_lib", |
554 ] | 568 ] |
555 } | 569 } |
OLD | NEW |