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

Side by Side Diff: build/config/win/BUILD.gn

Issue 1234033005: Add Syzygy support to Windows GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « build/config/sanitizers/sanitizers.gni ('k') | chrome/chrome_syzygy.gyp » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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/sanitizers/sanitizers.gni")
5 import("//build/config/win/visual_studio_version.gni") 6 import("//build/config/win/visual_studio_version.gni")
6 7
7 # Compiler setup for the Windows SDK. Applied to all targets. 8 # Compiler setup for the Windows SDK. Applied to all targets.
8 config("sdk") { 9 config("sdk") {
9 # The include path is the stuff returned by the script. 10 # The include path is the stuff returned by the script.
10 #include_dirs = msvc_config[0] TODO(brettw) make this work. 11 #include_dirs = msvc_config[0] TODO(brettw) make this work.
11 12
12 defines = [ 13 defines = [
13 "_ATL_NO_OPENGL", 14 "_ATL_NO_OPENGL",
14 "_WINDOWS", 15 "_WINDOWS",
(...skipping 29 matching lines...) Expand all
44 } else { 45 } else {
45 ldflags = [ 46 ldflags = [
46 "/MACHINE:X86", 47 "/MACHINE:X86",
47 "/SAFESEH", # Not compatible with x64 so use only for x86. 48 "/SAFESEH", # Not compatible with x64 so use only for x86.
48 ] 49 ]
49 lib_dirs = [ 50 lib_dirs = [
50 "$windows_sdk_path\Lib\winv6.3\um\x86", 51 "$windows_sdk_path\Lib\winv6.3\um\x86",
51 "$visual_studio_path\VC\lib", 52 "$visual_studio_path\VC\lib",
52 "$visual_studio_path\VC\atlmfc\lib", 53 "$visual_studio_path\VC\atlmfc\lib",
53 ] 54 ]
54 if (!is_asan) { 55 if (!is_syzyasan) {
55 ldflags += [ "/largeaddressaware" ] 56 ldflags += [ "/largeaddressaware" ]
56 } 57 }
57 } 58 }
58 } 59 }
59 60
60 # This default linker setup is provided separately from the SDK setup so 61 # This default linker setup is provided separately from the SDK setup so
61 # targets who want different library configurations can remove this and specify 62 # targets who want different library configurations can remove this and specify
62 # their own. 63 # their own.
63 config("common_linker_setup") { 64 config("common_linker_setup") {
64 ldflags = [ 65 ldflags = [
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 173
173 # Nominmax -------------------------------------------------------------------- 174 # Nominmax --------------------------------------------------------------------
174 175
175 # Some third party code defines NOMINMAX before including windows.h, which 176 # Some third party code defines NOMINMAX before including windows.h, which
176 # then causes warnings when it's been previously defined on the command line. 177 # then causes warnings when it's been previously defined on the command line.
177 # For such targets, this config can be removed. 178 # For such targets, this config can be removed.
178 179
179 config("nominmax") { 180 config("nominmax") {
180 defines = [ "NOMINMAX" ] 181 defines = [ "NOMINMAX" ]
181 } 182 }
OLDNEW
« no previous file with comments | « build/config/sanitizers/sanitizers.gni ('k') | chrome/chrome_syzygy.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698