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

Unified Diff: components/BUILD.gn

Issue 477263003: pdf: Create a separate component for using the pdf pepper plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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: components/BUILD.gn
diff --git a/components/BUILD.gn b/components/BUILD.gn
index afb2e63ccea2be2b10faece08e3acf7b37c5b847..3f05d349f1d65c1488d9aae54d56a1e05db105bf 100644
--- a/components/BUILD.gn
+++ b/components/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/features.gni")
+
# Collection of all components. You wouldn't link to this, but this is rather
# to reference the files so they can be compiled by the build system.
group("all_components") {
@@ -56,6 +58,9 @@ group("all_components") {
"//components/password_manager/content/browser",
"//components/password_manager/core/browser",
"//components/password_manager/core/common",
+ "//components/pdf/browser",
+ "//components/pdf/common",
+ "//components/pdf/renderer",
"//components/plugins/renderer",
"//components/policy",
"//components/power",
@@ -105,6 +110,14 @@ group("all_components") {
deps -= [ "//components/keyed_service/content" ]
}
+ if (!enable_plugins) {
+ deps -= [
+ "//components/pdf/browser",
+ "//components/pdf/common",
+ "//components/pdf/renderer",
+ ]
+ }
+
if (is_android) {
deps -= [
"//components/autofill/content/browser", # Blocked on content/blink.

Powered by Google App Engine
This is Rietveld 408576698