Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Side by Side Diff: headless/BUILD.gn

Issue 2829973002: add customized printing setting for headless (Closed)
Patch Set: polish code Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 sources = [ 383 sources = [
382 "public/domains/types_unittest.cc", 384 "public/domains/types_unittest.cc",
383 "public/util/deterministic_dispatcher_test.cc", 385 "public/util/deterministic_dispatcher_test.cc",
384 "public/util/error_reporter_unittest.cc", 386 "public/util/error_reporter_unittest.cc",
385 "public/util/expedited_dispatcher_test.cc", 387 "public/util/expedited_dispatcher_test.cc",
386 "public/util/generic_url_request_job_test.cc", 388 "public/util/generic_url_request_job_test.cc",
387 "public/util/testing/fake_managed_dispatch_url_request_job.cc", 389 "public/util/testing/fake_managed_dispatch_url_request_job.cc",
388 "public/util/testing/fake_managed_dispatch_url_request_job.h", 390 "public/util/testing/fake_managed_dispatch_url_request_job.h",
389 ] 391 ]
390 392
393 if (enable_basic_printing) {
394 sources += [ "lib/browser/headless_printing_unittest.cc" ]
395 }
396
391 deps = [ 397 deps = [
392 ":headless_lib", 398 ":headless_lib",
393 "//base/test:run_all_unittests", 399 "//base/test:run_all_unittests",
394 "//base/test:test_support", 400 "//base/test:test_support",
395 "//testing/gmock", 401 "//testing/gmock",
396 "//testing/gtest", 402 "//testing/gtest",
397 ] 403 ]
404
405 if (enable_basic_printing) {
406 deps += [ "//content/public/common" ]
407 }
398 } 408 }
399 409
400 mojom("embedder_mojo_for_testing") { 410 mojom("embedder_mojo_for_testing") {
401 sources = [ 411 sources = [
402 "lib/embedder_test.mojom", 412 "lib/embedder_test.mojom",
403 ] 413 ]
404 } 414 }
405 415
406 grit("headless_browsertest_resources_grit") { 416 grit("headless_browsertest_resources_grit") {
407 source = "lib/headless_browsertest_resources.grd" 417 source = "lib/headless_browsertest_resources.grd"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698