OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("config.gni") | 5 import("config.gni") |
6 if (is_clang) { | 6 if (is_clang) { |
7 import("//build/config/clang/clang.gni") | 7 import("//build/config/clang/clang.gni") |
8 } | 8 } |
9 if (is_posix) { | 9 if (is_posix) { |
10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
(...skipping 22 matching lines...) Loading... |
33 include_dirs = [ | 33 include_dirs = [ |
34 ".", | 34 ".", |
35 "$root_gen_dir/sky", | 35 "$root_gen_dir/sky", |
36 ] | 36 ] |
37 | 37 |
38 cflags = [] | 38 cflags = [] |
39 defines = [] | 39 defines = [] |
40 | 40 |
41 if (is_win) { | 41 if (is_win) { |
42 cflags += [ | 42 cflags += [ |
| 43 "/wd4065", # Switch statement contains 'default' but no 'case' labels. |
| 44 # In generated parser code. |
43 "/wd4305", # Truncation from 'type1' to 'type2'. | 45 "/wd4305", # Truncation from 'type1' to 'type2'. |
44 "/wd4324", # Struct padded due to declspec(align). | 46 "/wd4324", # Struct padded due to declspec(align). |
| 47 "/wd4702", # Unreachable code, happens in bison-generated code. |
45 "/wd4714", # Function marked forceinline not inlined. | 48 "/wd4714", # Function marked forceinline not inlined. |
46 "/wd4800", # Value forced to bool. | 49 "/wd4800", # Value forced to bool. |
47 "/wd4996", # Deprecated function call. | 50 "/wd4996", # Deprecated function call. |
48 ] | 51 ] |
49 } | 52 } |
50 | 53 |
51 if (is_win) { | 54 if (is_win) { |
52 if (component_mode == "shared_library") { | 55 if (component_mode == "shared_library") { |
53 defines += [ "USING_V8_SHARED" ] | 56 defines += [ "USING_V8_SHARED" ] |
54 } | 57 } |
(...skipping 26 matching lines...) Loading... |
81 | 84 |
82 # The follow configs apply to all targets except for unit tests, which rely on | 85 # The follow configs apply to all targets except for unit tests, which rely on |
83 # static initializers. | 86 # static initializers. |
84 config("non_test_config") { | 87 config("non_test_config") { |
85 cflags = [] | 88 cflags = [] |
86 | 89 |
87 if (is_clang) { | 90 if (is_clang) { |
88 cflags += [ "-Wglobal-constructors" ] | 91 cflags += [ "-Wglobal-constructors" ] |
89 } | 92 } |
90 } | 93 } |
OLD | NEW |