| 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 | 9 |
| 10 visibility = [ "//third_party/WebKit/*" ] | 10 visibility = [ "//third_party/WebKit/*" ] |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } else if (is_mac) { | 72 } else if (is_mac) { |
| 73 precompiled_source = "//third_party/WebKit/Source/build/mac/Prefix.h" | 73 precompiled_source = "//third_party/WebKit/Source/build/mac/Prefix.h" |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 | 77 |
| 78 # config ----------------------------------------------------------------------- | 78 # config ----------------------------------------------------------------------- |
| 79 | 79 |
| 80 config("config") { | 80 config("config") { |
| 81 include_dirs = [ | 81 include_dirs = [ |
| 82 # crbug.com/691465: Temporary solution to fix an issue related to MSVC- | |
| 83 # specific #include search order. This essentially lets | |
| 84 # #include "wtf/Foo.h" actually include "platform/wtf/Foo.h". This is okay | |
| 85 # because these files are equivalent if both exist. | |
| 86 "platform", | |
| 87 ".", | 82 ".", |
| 88 "..", | 83 "..", |
| 89 "$root_gen_dir/blink", | 84 "$root_gen_dir/blink", |
| 90 "$root_gen_dir/third_party/WebKit", | 85 "$root_gen_dir/third_party/WebKit", |
| 91 ] | 86 ] |
| 92 | 87 |
| 93 cflags = [] | 88 cflags = [] |
| 94 defines = [] | 89 defines = [] |
| 95 | 90 |
| 96 if (is_win) { | 91 if (is_win) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 158 |
| 164 # The follow configs apply to all targets except for unit tests, which rely on | 159 # The follow configs apply to all targets except for unit tests, which rely on |
| 165 # static initializers. | 160 # static initializers. |
| 166 config("non_test_config") { | 161 config("non_test_config") { |
| 167 cflags = [] | 162 cflags = [] |
| 168 | 163 |
| 169 if (is_clang) { | 164 if (is_clang) { |
| 170 cflags += [ "-Wglobal-constructors" ] | 165 cflags += [ "-Wglobal-constructors" ] |
| 171 } | 166 } |
| 172 } | 167 } |
| OLD | NEW |