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

Side by Side Diff: chrome/tools/disable_outdated_build_detector/BUILD.gn

Issue 2308313003: gn: Generalize process_version() and move it to build/util (Closed)
Patch Set: Fix chromecast 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
OLDNEW
1 # Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2016 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("//chrome/version.gni") 5 import("//build/util/process_version.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 if (is_win) { 8 if (is_win) {
9 config("xp") { 9 config("xp") {
10 # Target low-end CPUs on XP. 10 # Target low-end CPUs on XP.
11 cflags = [ "/arch:IA32" ] 11 cflags = [ "/arch:IA32" ]
12 defines = [ 12 defines = [
13 "NTDDI_VERSION=0x05010200", 13 "NTDDI_VERSION=0x05010200",
14 "WINVER=0x0501", 14 "WINVER=0x0501",
15 "_WIN32_WINNT=0x0501", 15 "_WIN32_WINNT=0x0501",
(...skipping 14 matching lines...) Expand all
30 ":xp", 30 ":xp",
31 ] 31 ]
32 32
33 deps = [ 33 deps = [
34 ":disable_outdated_build_detector_exe_version", 34 ":disable_outdated_build_detector_exe_version",
35 ":lib", 35 ":lib",
36 "//build/win:default_exe_manifest", 36 "//build/win:default_exe_manifest",
37 ] 37 ]
38 } 38 }
39 39
40 process_version("disable_outdated_build_detector_exe_version") { 40 process_version_rc_template("disable_outdated_build_detector_exe_version") {
41 template_file = "disable_outdated_build_detector_exe_version.rc.version" 41 template_file = "disable_outdated_build_detector_exe_version.rc.version"
42 output = "$target_gen_dir/disable_outdated_build_detector_exe_version.rc" 42 output = "$target_gen_dir/disable_outdated_build_detector_exe_version.rc"
43 } 43 }
44 44
45 source_set("lib") { 45 source_set("lib") {
46 sources = [ 46 sources = [
47 "constants.cc", 47 "constants.cc",
48 "constants.h", 48 "constants.h",
49 "disable_outdated_build_detector.cc", 49 "disable_outdated_build_detector.cc",
50 "disable_outdated_build_detector.h", 50 "disable_outdated_build_detector.h",
(...skipping 14 matching lines...) Expand all
65 deps = [ 65 deps = [
66 ":lib", 66 ":lib",
67 "//base", 67 "//base",
68 "//base/test:test_support", 68 "//base/test:test_support",
69 "//chrome/installer/util:with_no_strings", 69 "//chrome/installer/util:with_no_strings",
70 "//testing/gmock", 70 "//testing/gmock",
71 "//testing/gtest", 71 "//testing/gtest",
72 ] 72 ]
73 } 73 }
74 } 74 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698