| 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 win_sdk_dir = "C:\Program Files (x86)\Windows Kits\8.0" | 5 declare_args() { |
| 6 windows_sdk_path = "C:\Program Files (x86)\Windows Kits\8.0" |
| 7 } |
| 6 | 8 |
| 7 # Compiler setup for the Windows SDK. Applied to all targets. | 9 # Compiler setup for the Windows SDK. Applied to all targets. |
| 8 config("sdk") { | 10 config("sdk") { |
| 9 # The include path is the stuff returned by the script. | 11 # The include path is the stuff returned by the script. |
| 10 #include_dirs = msvc_config[0] TODO(brettw) make this work. | 12 #include_dirs = msvc_config[0] TODO(brettw) make this work. |
| 11 | 13 |
| 12 defines = [ | 14 defines = [ |
| 13 "_ATL_NO_OPENGL", | 15 "_ATL_NO_OPENGL", |
| 14 "_SECURE_ATL", | 16 "_SECURE_ATL", |
| 15 "_WIN32_WINNT=0x0602", | 17 "_WIN32_WINNT=0x0602", |
| 16 "_WINDOWS", | 18 "_WINDOWS", |
| 17 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", | 19 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", |
| 18 "NOMINMAX", | 20 "NOMINMAX", |
| 19 "NTDDI_VERSION=0x06020000", | 21 "NTDDI_VERSION=0x06020000", |
| 20 "PSAPI_VERSION=1", | 22 "PSAPI_VERSION=1", |
| 21 "WIN32", | 23 "WIN32", |
| 22 "WIN32_LEAN_AND_MEAN", | 24 "WIN32_LEAN_AND_MEAN", |
| 23 "WINVER=0x0602", | 25 "WINVER=0x0602", |
| 24 ] | 26 ] |
| 25 | 27 |
| 26 include_dirs = [ | 28 include_dirs = [ |
| 27 "$win_sdk_dir\Include\shared", | 29 "$windows_sdk_path\Include\shared", |
| 28 "$win_sdk_dir\Include\um", | 30 "$windows_sdk_path\Include\um", |
| 29 "$win_sdk_dir\Include\winrt", | 31 "$windows_sdk_path\Include\winrt", |
| 30 ] | 32 ] |
| 31 } | 33 } |
| 32 | 34 |
| 33 # Linker flags for Windows SDK setup, this is applied only to EXEs and DLLs. | 35 # Linker flags for Windows SDK setup, this is applied only to EXEs and DLLs. |
| 34 config("sdk_link") { | 36 config("sdk_link") { |
| 35 # TODO(brettw) 64-bit. | 37 # TODO(brettw) 64-bit. |
| 36 is_64bit = false | 38 is_64bit = false |
| 37 | 39 |
| 38 if (is_64bit) { | 40 if (is_64bit) { |
| 39 ldflags = [ "/MACHINE:X64" ] | 41 ldflags = [ "/MACHINE:X64" ] |
| 40 libs = [ "$win_sdk_dir\Lib\win8\um\x64" ] | 42 libs = [ "$windows_sdk_path\Lib\win8\um\x64" ] |
| 41 } else { | 43 } else { |
| 42 ldflags = [ | 44 ldflags = [ |
| 43 "/MACHINE:X86", | 45 "/MACHINE:X86", |
| 44 "/SAFESEH", # Not compatible with x64 so use only for x86. | 46 "/SAFESEH", # Not compatible with x64 so use only for x86. |
| 45 ] | 47 ] |
| 46 lib_dirs = [ "$win_sdk_dir\Lib\win8\um\x86" ] | 48 lib_dirs = [ "$windows_sdk_path\Lib\win8\um\x86" ] |
| 47 | 49 |
| 48 #if (!is_asan) { TODO(brettw) Address Sanitizer | 50 #if (!is_asan) { TODO(brettw) Address Sanitizer |
| 49 # ldflags += "/largeaddressaware" | 51 # ldflags += "/largeaddressaware" |
| 50 #} | 52 #} |
| 51 } | 53 } |
| 52 } | 54 } |
| 53 | 55 |
| 54 # This default linker setup is provided separately from the SDK setup so | 56 # This default linker setup is provided separately from the SDK setup so |
| 55 # targets who want different libraries linked can remove this and specify their | 57 # targets who want different libraries linked can remove this and specify their |
| 56 # own. | 58 # own. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 } | 122 } |
| 121 | 123 |
| 122 # Incremental linking ---------------------------------------------------------- | 124 # Incremental linking ---------------------------------------------------------- |
| 123 | 125 |
| 124 config("incremental_linking") { | 126 config("incremental_linking") { |
| 125 ldflags = [ "/INCREMENTAL" ] | 127 ldflags = [ "/INCREMENTAL" ] |
| 126 } | 128 } |
| 127 config("no_incremental_linking") { | 129 config("no_incremental_linking") { |
| 128 ldflags = [ "/INCREMENTAL:NO" ] | 130 ldflags = [ "/INCREMENTAL:NO" ] |
| 129 } | 131 } |
| OLD | NEW |