Chromium Code Reviews| 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" ] | |
|
Lei Zhang
2017/05/04 07:29:37
Not obvious why headless_printing_unittest.cc need
jzfeng
2017/05/05 02:41:33
There will compile error if it is removed.
In fil
Lei Zhang
2017/05/05 03:53:00
I'm skeptical about this as the correct solution,
| |
| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 489 | 499 |
| 490 deps = [ | 500 deps = [ |
| 491 ":embedder_mojo_for_testing", | 501 ":embedder_mojo_for_testing", |
| 492 ":headless_browser_tests_pak", | 502 ":headless_browser_tests_pak", |
| 493 "//base", | 503 "//base", |
| 494 "//content/test:test_support", | 504 "//content/test:test_support", |
| 495 "//headless:headless_lib", | 505 "//headless:headless_lib", |
| 496 "//testing/gmock", | 506 "//testing/gmock", |
| 497 "//testing/gtest", | 507 "//testing/gtest", |
| 498 ] | 508 ] |
| 509 | |
| 510 if (enable_basic_printing) { | |
| 511 deps += [ "//pdf" ] | |
| 512 } | |
| 499 } | 513 } |
| 500 | 514 |
| 501 static_library("headless_shell_lib") { | 515 static_library("headless_shell_lib") { |
| 502 sources = [ | 516 sources = [ |
| 503 "app/headless_shell.cc", | 517 "app/headless_shell.cc", |
| 504 "app/headless_shell.h", | 518 "app/headless_shell.h", |
| 505 "app/headless_shell_switches.cc", | 519 "app/headless_shell_switches.cc", |
| 506 "app/headless_shell_switches.h", | 520 "app/headless_shell_switches.h", |
| 507 "app/shell_navigation_request.cc", | 521 "app/shell_navigation_request.cc", |
| 508 "app/shell_navigation_request.h", | 522 "app/shell_navigation_request.h", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 547 | 561 |
| 548 executable("headless_example") { | 562 executable("headless_example") { |
| 549 sources = [ | 563 sources = [ |
| 550 "app/headless_example.cc", | 564 "app/headless_example.cc", |
| 551 ] | 565 ] |
| 552 | 566 |
| 553 deps = [ | 567 deps = [ |
| 554 "//headless:headless_shell_lib", | 568 "//headless:headless_shell_lib", |
| 555 ] | 569 ] |
| 556 } | 570 } |
| OLD | NEW |