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

Side by Side Diff: components/version_info/BUILD.gn

Issue 2308313003: gn: Generalize process_version() and move it to build/util (Closed)
Patch Set: Move branding_file_path to chrome/process_version_rc_template.gni Created 4 years, 3 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 | « components/data_reduction_proxy/core/common/BUILD.gn ('k') | extensions/shell/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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//chrome/version.gni") 6 import("//build/util/process_version.gni")
7 import("//chrome/process_version_rc_template.gni") # For branding_file_path.
7 8
8 declare_args() { 9 declare_args() {
9 use_unofficial_version_number = !is_chrome_branded 10 use_unofficial_version_number = !is_chrome_branded
10 } 11 }
11 12
12 static_library("version_info") { 13 static_library("version_info") {
13 sources = [ 14 sources = [
14 "version_info.cc", 15 "version_info.cc",
15 "version_info.h", 16 "version_info.h",
16 ] 17 ]
17 18
18 deps = [ 19 deps = [
19 ":generate_version_info", 20 ":generate_version_info",
20 "//base", 21 "//base",
21 "//components/strings", 22 "//components/strings",
22 ] 23 ]
23 24
24 if (use_unofficial_version_number) { 25 if (use_unofficial_version_number) {
25 defines = [ "USE_UNOFFICIAL_VERSION_NUMBER" ] 26 defines = [ "USE_UNOFFICIAL_VERSION_NUMBER" ]
26 deps += [ "//ui/base" ] 27 deps += [ "//ui/base" ]
27 } 28 }
28 } 29 }
29 30
30 process_version("generate_version_info") { 31 process_version("generate_version_info") {
31 template_file = "version_info_values.h.version" 32 template_file = "version_info_values.h.version"
33 sources = [
34 "//build/util/LASTCHANGE",
35 "//chrome/VERSION",
36 branding_file_path,
37 ]
32 output = "$target_gen_dir/version_info_values.h" 38 output = "$target_gen_dir/version_info_values.h"
33 } 39 }
OLDNEW
« no previous file with comments | « components/data_reduction_proxy/core/common/BUILD.gn ('k') | extensions/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698