| OLD | NEW |
| 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("//build/util/process_version.gni") | 6 import("//chrome/version.gni") |
| 7 import("//chrome/process_version_rc_template.gni") # For branding_file_path. | |
| 8 | 7 |
| 9 declare_args() { | 8 declare_args() { |
| 10 use_unofficial_version_number = !is_chrome_branded | 9 use_unofficial_version_number = !is_chrome_branded |
| 11 } | 10 } |
| 12 | 11 |
| 13 static_library("version_info") { | 12 static_library("version_info") { |
| 14 sources = [ | 13 sources = [ |
| 15 "version_info.cc", | 14 "version_info.cc", |
| 16 "version_info.h", | 15 "version_info.h", |
| 17 ] | 16 ] |
| 18 | 17 |
| 19 deps = [ | 18 deps = [ |
| 20 ":generate_version_info", | 19 ":generate_version_info", |
| 21 "//base", | 20 "//base", |
| 22 "//components/strings", | 21 "//components/strings", |
| 23 ] | 22 ] |
| 24 | 23 |
| 25 if (use_unofficial_version_number) { | 24 if (use_unofficial_version_number) { |
| 26 defines = [ "USE_UNOFFICIAL_VERSION_NUMBER" ] | 25 defines = [ "USE_UNOFFICIAL_VERSION_NUMBER" ] |
| 27 deps += [ "//ui/base" ] | 26 deps += [ "//ui/base" ] |
| 28 } | 27 } |
| 29 } | 28 } |
| 30 | 29 |
| 31 process_version("generate_version_info") { | 30 process_version("generate_version_info") { |
| 32 template_file = "version_info_values.h.version" | 31 template_file = "version_info_values.h.version" |
| 33 sources = [ | |
| 34 "//build/util/LASTCHANGE", | |
| 35 "//chrome/VERSION", | |
| 36 branding_file_path, | |
| 37 ] | |
| 38 output = "$target_gen_dir/version_info_values.h" | 32 output = "$target_gen_dir/version_info_values.h" |
| 39 } | 33 } |
| OLD | NEW |