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

Unified Diff: headless/BUILD.gn

Issue 2829973002: add customized printing setting for headless (Closed)
Patch Set: nit Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: headless/BUILD.gn
diff --git a/headless/BUILD.gn b/headless/BUILD.gn
index 7ac3268ceaf24c0486ae0bc8e42c299d2a66c750..d221c57f111adac2fa6849385822ab162ff4d553 100644
--- a/headless/BUILD.gn
+++ b/headless/BUILD.gn
@@ -29,6 +29,7 @@ repack("pak") {
sources = [
"$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak",
"$root_gen_dir/blink/public/resources/blink_resources.pak",
+ "$root_gen_dir/components/components_resources.pak",
"$root_gen_dir/components/strings/components_strings_en-US.pak",
"$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
"$root_gen_dir/content/app/strings/content_strings_en-US.pak",
@@ -51,6 +52,7 @@ repack("pak") {
deps = [
":resources",
+ "//components/resources:components_resources",
"//components/strings",
"//content:resources",
"//content/app/resources",
@@ -394,6 +396,10 @@ test("headless_unittests") {
"public/util/testing/fake_managed_dispatch_url_request_job.h",
]
+ if (enable_basic_printing) {
+ sources += [ "lib/browser/headless_printing_unittest.cc" ]
+ }
+
deps = [
":headless_lib",
"//base/test:run_all_unittests",
@@ -401,6 +407,10 @@ test("headless_unittests") {
"//testing/gmock",
"//testing/gtest",
]
+
+ if (enable_basic_printing) {
+ 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,
+ }
}
mojom("embedder_mojo_for_testing") {
@@ -496,6 +506,10 @@ test("headless_browsertests") {
"//testing/gmock",
"//testing/gtest",
]
+
+ if (enable_basic_printing) {
+ deps += [ "//pdf" ]
+ }
}
static_library("headless_shell_lib") {

Powered by Google App Engine
This is Rietveld 408576698