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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/disable_outdated_build_detector/BUILD.gn
diff --git a/chrome/tools/disable_outdated_build_detector/BUILD.gn b/chrome/tools/disable_outdated_build_detector/BUILD.gn
index 4b4415ba487afaa3e080a89ea030a6bf963c4948..7a8eedb19d845b0cb95df5b992764057b96b97d8 100644
--- a/chrome/tools/disable_outdated_build_detector/BUILD.gn
+++ b/chrome/tools/disable_outdated_build_detector/BUILD.gn
@@ -6,18 +6,33 @@ import("//chrome/version.gni")
import("//testing/test.gni")
if (is_win) {
+ config("xp") {
+ # Target low-end CPUs on XP.
+ cflags = [ "/arch:IA32" ]
+ defines = [
+ "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
+ "WINVER=0x0501",
+ "_WIN32_WINNT=0x0501",
+ ]
+ }
+
executable("disable_outdated_build_detector") {
sources = [
"disable_outdated_build_detector_main.cc",
]
- configs -= [ "//build/config/win:console" ]
- configs += [ "//build/config/win:windowed" ]
+ configs -= [
+ "//build/config/win:console",
+ "//build/config/win:winver",
+ ]
+ configs += [
+ "//build/config/win:windowed",
+ ":xp",
+ ]
deps = [
":disable_outdated_build_detector_exe_version",
":lib",
- "//base",
"//build/win:default_exe_manifest",
]
}
@@ -36,10 +51,8 @@ if (is_win) {
"google_update_integration.cc",
"google_update_integration.h",
]
-
- public_deps = [
- "//base",
- ]
+ configs -= [ "//build/config/win:winver" ]
+ configs += [ ":xp" ]
}
test("disable_outdated_build_detector_unittests") {
« 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