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

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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
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", 93 "//extensions/common",
94 "//extensions/common/api", 94 "//extensions/common/api",
95 "//ipc", 95 "//ipc",
96 "//third_party/adobe/flash:flapper_version_h",
97 "//third_party/re2", 96 "//third_party/re2",
98 "//third_party/widevine/cdm:version_h", 97 "//third_party/widevine/cdm:version_h",
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")
106 deps += [ 105 deps += [
(...skipping 96 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 "//components/bookmarks/common", 283 "//components/bookmarks/common",
281 "//third_party/widevine/cdm:version_h", 284 "//third_party/widevine/cdm:version_h",
282 ] 285 ]
283 286
284 if (enable_nacl) { 287 if (enable_nacl) {
285 deps += [ 288 deps += [
286 #'../components/nacl.gyp:nacl_switches', TODO(GYP) 289 #'../components/nacl.gyp:nacl_switches', TODO(GYP)
287 ] 290 ]
288 } 291 }
289 } 292 }
OLDNEW
« 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