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

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

Issue 1257633002: Componentize VersionInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments by brettw Created 5 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
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 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
7 import("//chrome/version.gni")
7 8
8 gypi_values = exec_script("//build/gypi_to_gn.py", 9 gypi_values = exec_script("//build/gypi_to_gn.py",
9 [ rebase_path("../chrome_common.gypi") ], 10 [ rebase_path("../chrome_common.gypi") ],
10 "scope", 11 "scope",
11 [ "../chrome_common.gypi" ]) 12 [ "../chrome_common.gypi" ])
12 13
13 # GYP version: chrome/chrome_resources.gyp:chrome_resources 14 # GYP version: chrome/chrome_resources.gyp:chrome_resources
14 # (generate_common_resources action) 15 # (generate_common_resources action)
15 grit("resources") { 16 grit("resources") {
16 source = "common_resources.grd" 17 source = "common_resources.grd"
(...skipping 24 matching lines...) Expand all
41 defines = [] 42 defines = []
42 43
43 configs += [ "//build/config/compiler:wexit_time_destructors" ] 44 configs += [ "//build/config/compiler:wexit_time_destructors" ]
44 45
45 public_deps = [ 46 public_deps = [
46 "//chrome/common:constants", 47 "//chrome/common:constants",
47 "//chrome/common/net", 48 "//chrome/common/net",
48 "//chrome/common/safe_browsing:proto", 49 "//chrome/common/safe_browsing:proto",
49 ] 50 ]
50 deps = [ 51 deps = [
51 ":version",
52 "//base:base", 52 "//base:base",
53 "//base:i18n", 53 "//base:i18n",
54 "//base:prefs", 54 "//base:prefs",
55 "//base:base_static", 55 "//base:base_static",
56 "//chrome:resources", 56 "//chrome:resources",
57 "//chrome:strings", 57 "//chrome:strings",
58 "//chrome/app/theme:theme_resources", 58 "//chrome/app/theme:theme_resources",
59 "//chrome/common/variations:fieldtrial_testing_config", 59 "//chrome/common/variations:fieldtrial_testing_config",
60 "//chrome/installer/util", 60 "//chrome/installer/util",
61 "//components/cloud_devices/common", 61 "//components/cloud_devices/common",
62 "//components/component_updater", 62 "//components/component_updater",
63 "//components/content_settings/core/common", 63 "//components/content_settings/core/common",
64 "//components/favicon_base", 64 "//components/favicon_base",
65 "//components/gcm_driver/common", 65 "//components/gcm_driver/common",
66 "//components/json_schema", 66 "//components/json_schema",
67 "//components/metrics", 67 "//components/metrics",
68 "//components/omnibox/common", 68 "//components/omnibox/common",
69 "//components/policy:policy_component_common", 69 "//components/policy:policy_component_common",
70 "//components/translate/core/common", 70 "//components/translate/core/common",
71 "//components/variations", 71 "//components/variations",
72 "//components/version_info",
72 "//content/public/common", 73 "//content/public/common",
73 "//crypto", 74 "//crypto",
74 "//extensions/common:common_constants", 75 "//extensions/common:common_constants",
75 "//net", 76 "//net",
76 "//skia", 77 "//skia",
77 "//third_party/icu", 78 "//third_party/icu",
78 "//third_party/zlib:zip", 79 "//third_party/zlib:zip",
79 "//ui/resources:resources", 80 "//ui/resources:resources",
80 "//url", 81 "//url",
81 ] 82 ]
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 253 }
253 254
254 # This target allows other targets to depend on result_codes.h which is a 255 # This target allows other targets to depend on result_codes.h which is a
255 # header-only dependency, without bringing in all of content. 256 # header-only dependency, without bringing in all of content.
256 source_set("result_codes") { 257 source_set("result_codes") {
257 sources = [ 258 sources = [
258 "chrome_result_codes.h", 259 "chrome_result_codes.h",
259 ] 260 ]
260 } 261 }
261 262
262 import("//chrome/version.gni")
263 process_version("version") {
264 visibility = [ ":common" ]
265 template_file = "chrome_version_info_values.h.version"
266 output = "$target_gen_dir/chrome_version_info_values.h"
267 }
268
269 process_version("make_chrome_version") { 263 process_version("make_chrome_version") {
270 template_file = "chrome_version.cc.version" 264 template_file = "chrome_version.cc.version"
271 output = "$target_gen_dir/chrome_version.cc" 265 output = "$target_gen_dir/chrome_version.cc"
272 } 266 }
273 267
274 # GN version: chrome/common_constants.gyp:common_constants 268 # GN version: chrome/common_constants.gyp:common_constants
275 static_library("constants") { 269 static_library("constants") {
276 sources = [ 270 sources = [
277 "chrome_constants.cc", 271 "chrome_constants.cc",
278 "chrome_constants.h", 272 "chrome_constants.h",
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 ":constants", 350 ":constants",
357 "//base", 351 "//base",
358 ] 352 ]
359 } 353 }
360 354
361 mojom("mojo_bindings") { 355 mojom("mojo_bindings") {
362 sources = [ 356 sources = [
363 "resource_usage_reporter.mojom", 357 "resource_usage_reporter.mojom",
364 ] 358 ]
365 } 359 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698