OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |