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

Side by Side Diff: chrome/common/BUILD.gn

Issue 471263003: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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("//tools/grit/grit_rule.gni") 5 import("//tools/grit/grit_rule.gni")
6 6
7 gypi_values = exec_script( 7 gypi_values = exec_script(
8 "//build/gypi_to_gn.py", 8 "//build/gypi_to_gn.py",
9 [ rebase_path("../chrome_common.gypi") ], 9 [ rebase_path("../chrome_common.gypi") ],
10 "scope", 10 "scope",
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 deps += [ 85 deps += [
86 "//chrome/common/extensions/api", 86 "//chrome/common/extensions/api",
87 "//components/visitedlink/common", 87 "//components/visitedlink/common",
88 "//components/autofill/content/common", 88 "//components/autofill/content/common",
89 "//components/autofill/core/common", 89 "//components/autofill/core/common",
90 "//components/password_manager/core/common", 90 "//components/password_manager/core/common",
91 "//components/signin/core/common", 91 "//components/signin/core/common",
92 "//components/translate/content/common", 92 "//components/translate/content/common",
93 "//extensions/common/api", 93 "//extensions/common/api",
94 "//ipc", 94 "//ipc",
95 "//third_party/adobe/flash:flapper_version_h",
96 "//third_party/re2", 95 "//third_party/re2",
97 "//third_party/widevine/cdm:version_h", 96 "//third_party/widevine/cdm:version_h",
98 #'<(DEPTH)/extensions/extensions.gyp:extensions_common', TODO(GYP) 97 #'<(DEPTH)/extensions/extensions.gyp:extensions_common', TODO(GYP)
99 ] 98 ]
100 } 99 }
101 100
102 if (enable_extensions) { 101 if (enable_extensions) {
103 sources += rebase_path( 102 sources += rebase_path(
104 gypi_values.chrome_common_extensions_sources, 103 gypi_values.chrome_common_extensions_sources,
105 ".", "//chrome") 104 ".", "//chrome")
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 ] 202 ]
204 deps += [ 203 deps += [
205 "//third_party/mach_override", 204 "//third_party/mach_override",
206 "//third_party/google_toolbox_for_mac", 205 "//third_party/google_toolbox_for_mac",
207 ] 206 ]
208 } 207 }
209 208
210 if (enable_remoting) { 209 if (enable_remoting) {
211 #deps += [ '../remoting/remoting.gyp:remoting_client_plugin' ] TODO(GYP) 210 #deps += [ '../remoting/remoting.gyp:remoting_client_plugin' ] TODO(GYP)
212 } 211 }
213 if (!enable_plugins) { 212 if (enable_plugins) {
213 deps += [
214 "//third_party/adobe/flash:flapper_version_h",
215 ]
216 } else {
214 sources -= [ "pepper_permission_util.cc" ] 217 sources -= [ "pepper_permission_util.cc" ]
215 } 218 }
216 if (!enable_webrtc) { 219 if (!enable_webrtc) {
217 sources -= [ "media/webrtc_logging_messages.h" ] 220 sources -= [ "media/webrtc_logging_messages.h" ]
218 } 221 }
219 if (enable_configuration_policy) { 222 if (enable_configuration_policy) {
220 deps += [ "//components/policy" ] 223 deps += [ "//components/policy" ]
221 } 224 }
222 225
223 if (safe_browsing_mode == 1) { 226 if (safe_browsing_mode == 1) {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 "//components/bookmarks/common", 306 "//components/bookmarks/common",
304 "//third_party/widevine/cdm:version_h", 307 "//third_party/widevine/cdm:version_h",
305 ] 308 ]
306 309
307 if (enable_nacl) { 310 if (enable_nacl) {
308 deps += [ 311 deps += [
309 #'../components/nacl.gyp:nacl_switches', TODO(GYP) 312 #'../components/nacl.gyp:nacl_switches', TODO(GYP)
310 ] 313 ]
311 } 314 }
312 } 315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698