Index: headless/BUILD.gn |
diff --git a/headless/BUILD.gn b/headless/BUILD.gn |
index e67fbfb4ba0df6a63f88b45e0aee8cc9541e78d3..d46d16dd9b96a1e1751d51f18cf6c10151d4fbdc 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" ] |
+ } |
} |
mojom("embedder_mojo_for_testing") { |
@@ -495,6 +505,10 @@ test("headless_browsertests") { |
"//testing/gmock", |
"//testing/gtest", |
] |
+ |
+ if (enable_basic_printing) { |
+ deps += [ "//pdf" ] |
+ } |
} |
static_library("headless_shell_lib") { |