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

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

Issue 1381473003: Revert of [GN]: BUILD file housecleaning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert DEPS as well Created 5 years, 2 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/mac/mac_sdk.gni ('k') | build/toolchain/gcc_toolchain.gni » ('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/compiler/compiler.gni") 5 import("//build/config/compiler/compiler.gni")
6 import("//build/config/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 import("//build/config/win/visual_studio_version.gni") 7 import("//build/config/win/visual_studio_version.gni")
8 8
9 assert(is_win) 9 assert(is_win)
10 10
11 # This is included by reference in the //build/config/compiler config that 11 # This is included by reference in the //build/config/compiler config that
12 # is applied to all targets. It is here to separate out the logic that is 12 # is applied to all targets. It is here to separate out the logic that is
13 # Windows-only. 13 # Windows-only.
14 config("compiler") { 14 config("compiler") {
15 asmflags = [
16 # When /SAFESEH is specified, the linker will only produce an image if it
17 # can also produce a table of the image's safe exception handlers. This
18 # table specifies for the operating system which exception handlers are
19 # valid for the image.
20 "/SAFESEH",
21 ]
22
23 cflags = [ 15 cflags = [
24 "/Gy", # Enable function-level linking. 16 "/Gy", # Enable function-level linking.
25 "/GS", # Enable buffer security checking. 17 "/GS", # Enable buffer security checking.
26 "/FS", # Preserve previous PDB behavior. 18 "/FS", # Preserve previous PDB behavior.
27 "/bigobj", # Some of our files are bigger than the regular limits. 19 "/bigobj", # Some of our files are bigger than the regular limits.
28 ] 20 ]
29 21
30 # Force C/C++ mode for the given GN detected file type. This is necessary 22 # Force C/C++ mode for the given GN detected file type. This is necessary
31 # for precompiled headers where the same source file is compiled in both 23 # for precompiled headers where the same source file is compiled in both
32 # modes. 24 # modes.
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 305
314 # Internal stuff -------------------------------------------------------------- 306 # Internal stuff --------------------------------------------------------------
315 307
316 # Config used by the MIDL template to disable warnings. 308 # Config used by the MIDL template to disable warnings.
317 config("midl_warnings") { 309 config("midl_warnings") {
318 if (is_clang) { 310 if (is_clang) {
319 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". 311 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_".
320 cflags = [ "-Wno-extra-tokens" ] 312 cflags = [ "-Wno-extra-tokens" ]
321 } 313 }
322 } 314 }
OLDNEW
« no previous file with comments | « build/config/mac/mac_sdk.gni ('k') | build/toolchain/gcc_toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698