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

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

Issue 874413003: Add targets for generating version files in Windows GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mistake after rebase. Created 5 years, 10 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
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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 "env_vars.cc", 259 "env_vars.cc",
260 "env_vars.h", 260 "env_vars.h",
261 "net/test_server_locations.cc", 261 "net/test_server_locations.cc",
262 "net/test_server_locations.h", 262 "net/test_server_locations.h",
263 "pref_font_script_names-inl.h", 263 "pref_font_script_names-inl.h",
264 "pref_font_webkit_names.h", 264 "pref_font_webkit_names.h",
265 "pref_names.cc", 265 "pref_names.cc",
266 "pref_names.h", 266 "pref_names.h",
267 "widevine_cdm_constants.cc", 267 "widevine_cdm_constants.cc",
268 "widevine_cdm_constants.h", 268 "widevine_cdm_constants.h",
269 "$target_gen_dir/chrome_version.cc",
brettw 2015/01/28 21:06:45 A slightly more robust way of doing this is to mov
Slava Chigrin 2015/01/29 13:13:22 Done. Added that as separate line since in other c
269 ] 270 ]
270 271
271 deps = [ 272 deps = [
273 ":make_chrome_version",
272 "//base", 274 "//base",
273 "//base/third_party/dynamic_annotations", 275 "//base/third_party/dynamic_annotations",
274 "//components/bookmarks/common", 276 "//components/bookmarks/common",
275 "//third_party/widevine/cdm:version_h", 277 "//third_party/widevine/cdm:version_h",
276 ] 278 ]
277 279
278 if (enable_nacl) { 280 if (enable_nacl) {
279 deps += [ 281 deps += [
280 #'../components/nacl.gyp:nacl_switches', TODO(GYP) 282 #'../components/nacl.gyp:nacl_switches', TODO(GYP)
281 ] 283 ]
282 } 284 }
283 } 285 }
284 286
287 process_version("make_chrome_version") {
288 source = "chrome_version.cc.version"
289 output = "$target_gen_dir/chrome_version.cc"
290 }
291
285 source_set("test_support") { 292 source_set("test_support") {
286 testonly = true 293 testonly = true
287 visibility = [ "//chrome/test:test_support" ] 294 visibility = [ "//chrome/test:test_support" ]
288 295
289 sources = [] 296 sources = []
290 297
291 deps = [ 298 deps = [
292 ":common", 299 ":common",
293 "//base", 300 "//base",
294 "//testing/gtest", 301 "//testing/gtest",
295 ] 302 ]
296 303
297 if (is_win || is_mac) { 304 if (is_win || is_mac) {
298 sources += [ 305 sources += [
299 "media_galleries/picasa_test_util.cc", 306 "media_galleries/picasa_test_util.cc",
300 "media_galleries/picasa_test_util.h", 307 "media_galleries/picasa_test_util.h",
301 "media_galleries/pmp_test_util.cc", 308 "media_galleries/pmp_test_util.cc",
302 "media_galleries/pmp_test_util.h", 309 "media_galleries/pmp_test_util.h",
303 ] 310 ]
304 } 311 }
305 312
306 if (enable_extensions) { 313 if (enable_extensions) {
307 sources += [ 314 sources += [
308 "extensions/extension_test_util.cc", 315 "extensions/extension_test_util.cc",
309 "extensions/extension_test_util.h", 316 "extensions/extension_test_util.h",
310 ] 317 ]
311 } 318 }
312 } 319 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698