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

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

Issue 2255783003: Make the outdated build detector disabler load and run on XP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: suppress wstring warnings Created 4 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 (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("//chrome/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") {
10 # Target low-end CPUs on XP.
11 cflags = [ "/arch:IA32" ]
12 defines = [
13 "NTDDI_VERSION=0x05010200",
Reid Kleckner 2016/08/20 15:30:45 This define conflicts with the global one: https:/
grt (UTC plus 2) 2016/08/20 15:43:59 I was afraid of that. There's no easy way around i
14 "WINVER=0x0501",
15 "_WIN32_WINNT=0x0501",
16 ]
17 }
18
9 executable("disable_outdated_build_detector") { 19 executable("disable_outdated_build_detector") {
10 sources = [ 20 sources = [
11 "disable_outdated_build_detector_main.cc", 21 "disable_outdated_build_detector_main.cc",
12 ] 22 ]
13 23
14 configs -= [ "//build/config/win:console" ] 24 configs -= [
15 configs += [ "//build/config/win:windowed" ] 25 "//build/config/win:console",
26 "//build/config/win:winver",
27 ]
28 configs += [
29 "//build/config/win:windowed",
30 ":xp",
31 ]
16 32
17 deps = [ 33 deps = [
18 ":disable_outdated_build_detector_exe_version", 34 ":disable_outdated_build_detector_exe_version",
19 ":lib", 35 ":lib",
20 "//base",
21 "//build/win:default_exe_manifest", 36 "//build/win:default_exe_manifest",
22 ] 37 ]
23 } 38 }
24 39
25 process_version("disable_outdated_build_detector_exe_version") { 40 process_version("disable_outdated_build_detector_exe_version") {
26 template_file = "disable_outdated_build_detector_exe_version.rc.version" 41 template_file = "disable_outdated_build_detector_exe_version.rc.version"
27 output = "$target_gen_dir/disable_outdated_build_detector_exe_version.rc" 42 output = "$target_gen_dir/disable_outdated_build_detector_exe_version.rc"
28 } 43 }
29 44
30 source_set("lib") { 45 source_set("lib") {
31 sources = [ 46 sources = [
32 "constants.cc", 47 "constants.cc",
33 "constants.h", 48 "constants.h",
34 "disable_outdated_build_detector.cc", 49 "disable_outdated_build_detector.cc",
35 "disable_outdated_build_detector.h", 50 "disable_outdated_build_detector.h",
36 "google_update_integration.cc", 51 "google_update_integration.cc",
37 "google_update_integration.h", 52 "google_update_integration.h",
38 ] 53 ]
39 54 configs -= [ "//build/config/win:winver" ]
40 public_deps = [ 55 configs += [ ":xp" ]
41 "//base",
42 ]
43 } 56 }
44 57
45 test("disable_outdated_build_detector_unittests") { 58 test("disable_outdated_build_detector_unittests") {
46 sources = [ 59 sources = [
47 "disable_outdated_build_detector_unittest.cc", 60 "disable_outdated_build_detector_unittest.cc",
48 "google_update_integration_unittest.cc", 61 "google_update_integration_unittest.cc",
49 "run_all_unittests.cc", 62 "run_all_unittests.cc",
50 ] 63 ]
51 64
52 deps = [ 65 deps = [
53 ":lib", 66 ":lib",
54 "//base", 67 "//base",
55 "//base/test:test_support", 68 "//base/test:test_support",
56 "//chrome/installer/util:with_no_strings", 69 "//chrome/installer/util:with_no_strings",
57 "//testing/gmock", 70 "//testing/gmock",
58 "//testing/gtest", 71 "//testing/gtest",
59 ] 72 ]
60 } 73 }
61 } 74 }
OLDNEW
« no previous file with comments | « chrome/tools/build/win/FILES.cfg ('k') | chrome/tools/disable_outdated_build_detector/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698