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

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

Issue 1140183002: Revert of Media Router GYP/GN cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/test/BUILD.gn » ('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("//build/gypi_to_gn.py", 7 gypi_values = exec_script("//build/gypi_to_gn.py",
8 [ rebase_path("../chrome_common.gypi") ], 8 [ rebase_path("../chrome_common.gypi") ],
9 "scope", 9 "scope",
10 [ "../chrome_common.gypi" ]) 10 [ "../chrome_common.gypi" ])
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 "//chrome") 103 "//chrome")
104 deps += [ 104 deps += [
105 "//device/usb", 105 "//device/usb",
106 "//chrome/common/extensions/api", 106 "//chrome/common/extensions/api",
107 "//extensions/common", 107 "//extensions/common",
108 "//extensions/common/api", 108 "//extensions/common/api",
109 "//extensions:extensions_resources", 109 "//extensions:extensions_resources",
110 "//extensions/strings", 110 "//extensions/strings",
111 "//media/cast:net", 111 "//media/cast:net",
112 ] 112 ]
113 if (enable_media_router) {
114 defines += [ "ENABLE_MEDIA_ROUTER=1" ]
115 }
113 if (is_chromeos) { 116 if (is_chromeos) {
114 sources += 117 sources +=
115 rebase_path(gypi_values.chrome_common_extensions_chromeos_sources, 118 rebase_path(gypi_values.chrome_common_extensions_chromeos_sources,
116 ".", 119 ".",
117 "//chrome") 120 "//chrome")
118 } 121 }
119 } 122 }
120 123
121 if (is_win || is_mac) { 124 if (is_win || is_mac) {
122 sources += 125 sources +=
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } 236 }
234 if (enable_configuration_policy) { 237 if (enable_configuration_policy) {
235 deps += [ "//components/policy" ] 238 deps += [ "//components/policy" ]
236 } 239 }
237 240
238 if (safe_browsing_mode == 1) { 241 if (safe_browsing_mode == 1) {
239 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, 242 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources,
240 ".", 243 ".",
241 "//chrome") 244 "//chrome")
242 } 245 }
246 if (enable_media_router) {
247 defines += [ "ENABLE_MEDIA_ROUTER=1" ]
248 }
243 } 249 }
244 250
245 import("//chrome/version.gni") 251 import("//chrome/version.gni")
246 process_version("version") { 252 process_version("version") {
247 visibility = [ ":common" ] 253 visibility = [ ":common" ]
248 template_file = "chrome_version_info_values.h.version" 254 template_file = "chrome_version_info_values.h.version"
249 output = "$target_gen_dir/chrome_version_info_values.h" 255 output = "$target_gen_dir/chrome_version_info_values.h"
250 } 256 }
251 257
252 process_version("make_chrome_version") { 258 process_version("make_chrome_version") {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 "mac/app_mode_chrome_locator.mm", 339 "mac/app_mode_chrome_locator.mm",
334 "mac/app_mode_common.h", 340 "mac/app_mode_common.h",
335 "mac/app_mode_common.mm", 341 "mac/app_mode_common.mm",
336 ] 342 ]
337 343
338 deps = [ 344 deps = [
339 ":constants", 345 ":constants",
340 "//base", 346 "//base",
341 ] 347 ]
342 } 348 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698