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

Unified Diff: chrome/common/BUILD.gn

Issue 494993005: Only build various flash/pnacl/ppapi code when they are enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/BUILD.gn
diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn
index d489c05c38d6bd34f50af52b6bfb07d53ba4f6aa..b99d3b03d2c0d5ede99bf5f1e19e33283ee8b041 100644
--- a/chrome/common/BUILD.gn
+++ b/chrome/common/BUILD.gn
@@ -94,7 +94,6 @@ static_library("common") {
"//extensions/common",
"//extensions/common/api",
"//ipc",
- "//third_party/adobe/flash:flapper_version_h",
"//third_party/re2",
"//third_party/widevine/cdm:version_h",
]
@@ -211,7 +210,11 @@ static_library("common") {
if (enable_remoting) {
#deps += [ '../remoting/remoting.gyp:remoting_client_plugin' ] TODO(GYP)
}
- if (!enable_plugins) {
+ if (enable_plugins) {
+ deps += [
+ "//third_party/adobe/flash:flapper_version_h",
+ ]
+ } else {
sources -= [ "pepper_permission_util.cc" ]
}
if (!enable_webrtc) {
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698