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

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

Issue 472213002: Mark some files/targets as compiled only when their associated feature is enabled. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/chrome_browser.gypi » ('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("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//components/nacl/nacl_defines.gni") 8 import("//components/nacl/nacl_defines.gni")
9 import("//tools/grit/grit_rule.gni") 9 import("//tools/grit/grit_rule.gni")
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/gener ated_resources_map.cc', 131 # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/gener ated_resources_map.cc',
132 132
133 defines = nacl_defines 133 defines = nacl_defines
134 134
135 # TODO(GYP) remove this when the real webrtc target is used below. 135 # TODO(GYP) remove this when the real webrtc target is used below.
136 configs += [ "//content:webrtc_stub_config" ] 136 configs += [ "//content:webrtc_stub_config" ]
137 137
138 deps += [ 138 deps += [
139 "//cc", 139 "//cc",
140 "//chrome/browser/performance_monitor", 140 "//chrome/browser/performance_monitor",
141 "//chrome/browser/sync_file_system:sync_file_system_proto",
142 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_pr oto",
143 "//chrome/common/extensions/api:api", 141 "//chrome/common/extensions/api:api",
144 "//components/autofill/content/browser", 142 "//components/autofill/content/browser",
145 "//components/dom_distiller/content", 143 "//components/dom_distiller/content",
146 "//components/keyed_service/content", 144 "//components/keyed_service/content",
147 "//components/storage_monitor", 145 "//components/storage_monitor",
148 "//components/translate/content/browser", 146 "//components/translate/content/browser",
149 "//components/url_matcher", 147 "//components/url_matcher",
150 "//components/usb_service", 148 "//components/usb_service",
151 "//components/visitedlink/browser", 149 "//components/visitedlink/browser",
152 "//components/visitedlink/common", 150 "//components/visitedlink/common",
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 #"app_shim" TODO(GYP) 223 #"app_shim" TODO(GYP)
226 ] 224 ]
227 } 225 }
228 if (cld2_data_source == "component") { 226 if (cld2_data_source == "component") {
229 sources += [ 227 sources += [
230 "component_updater/cld_component_installer.cc", 228 "component_updater/cld_component_installer.cc",
231 "component_updater/cld_component_installer.h", 229 "component_updater/cld_component_installer.h",
232 ] 230 ]
233 } 231 }
234 if (enable_extensions) { 232 if (enable_extensions) {
235 deps += [ "//chrome/browser/extensions" ] 233 deps += [
234 "//chrome/browser/extensions",
235 "//chrome/browser/sync_file_system:sync_file_system_proto",
236 "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_pr oto",
237 ]
236 sources += rebase_path(gypi_values.chrome_browser_extensions_sources, 238 sources += rebase_path(gypi_values.chrome_browser_extensions_sources,
237 ".", "//chrome") 239 ".", "//chrome")
238 } 240 }
239 if (enable_background) { 241 if (enable_background) {
240 sources += rebase_path(gypi_values.chrome_browser_background_sources, 242 sources += rebase_path(gypi_values.chrome_browser_background_sources,
241 ".", "//chrome") 243 ".", "//chrome")
242 if (!use_aura || is_win) { 244 if (!use_aura || is_win) {
243 sources -= [ "background/background_mode_manager_aura.cc" ] 245 sources -= [ "background/background_mode_manager_aura.cc" ]
244 } 246 }
245 } 247 }
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 # TODO(GYP) write internal action 660 # TODO(GYP) write internal action
659 if (false) { #if (is_chrome_branded) { 661 if (false) { #if (is_chrome_branded) {
660 action("chrome_internal_resources_gen") { 662 action("chrome_internal_resources_gen") {
661 # TODO(GYP) 663 # TODO(GYP)
662 } 664 }
663 } else { 665 } else {
664 group("chrome_internal_resources_gen") { 666 group("chrome_internal_resources_gen") {
665 # Empty placeholder. 667 # Empty placeholder.
666 } 668 }
667 } 669 }
OLDNEW
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698