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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 import("//third_party/WebKit/public/public_features.gni") | 9 import("//third_party/WebKit/public/public_features.gni") |
10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 rebase_path("win/Precompile-platform.h", root_build_dir) | 212 rebase_path("win/Precompile-platform.h", root_build_dir) |
213 | 213 |
214 # This is a file that GN will compile with the above header. It will be | 214 # This is a file that GN will compile with the above header. It will be |
215 # implicitly added to the sources (potentially multiple times, with one | 215 # implicitly added to the sources (potentially multiple times, with one |
216 # variant for each language used in the target). | 216 # variant for each language used in the target). |
217 precompiled_source = | 217 precompiled_source = |
218 "//third_party/WebKit/Source/platform/win/Precompile-platform.cpp" | 218 "//third_party/WebKit/Source/platform/win/Precompile-platform.cpp" |
219 | 219 |
220 # Force include the header. | 220 # Force include the header. |
221 cflags = [ "/FI$precompiled_header" ] | 221 cflags = [ "/FI$precompiled_header" ] |
222 | |
223 # Disable warning for "this file was empty after preprocessing". This | |
224 # error is generated only in C mode for ANSI compatibility. It conflicts | |
225 # with precompiled headers since the source file that's "compiled" for | |
226 # making the precompiled header is empty. | |
227 # | |
228 # This error doesn't happen every time. In VS2013, it seems if the .pch | |
229 # file doesn't exist, no error will be generated (probably MS tested this | |
230 # case but forgot the other one?). To reproduce this error, do a build, | |
231 # then delete the precompile.c.obj file, then build again. | |
232 cflags_c = [ "/wd4206" ] | |
233 } | 222 } |
234 } | 223 } |
235 } | 224 } |
236 | 225 |
237 component("platform") { | 226 component("platform") { |
238 visibility = [] # Allow re-assignment of list. | 227 visibility = [] # Allow re-assignment of list. |
239 visibility = [ | 228 visibility = [ |
240 "//third_party/WebKit/*", | 229 "//third_party/WebKit/*", |
241 "//url/mojo:url_mojom_origin_blink", | 230 "//url/mojo:url_mojom_origin_blink", |
242 "//url/mojo:url_mojom_gurl_blink", | 231 "//url/mojo:url_mojom_gurl_blink", |
(...skipping 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2102 "//third_party/WebKit/Source:config", | 2091 "//third_party/WebKit/Source:config", |
2103 "//third_party/WebKit/Source:inside_blink", | 2092 "//third_party/WebKit/Source:inside_blink", |
2104 ] | 2093 ] |
2105 | 2094 |
2106 deps = [ | 2095 deps = [ |
2107 ":test_support", | 2096 ":test_support", |
2108 "//testing/gmock", | 2097 "//testing/gmock", |
2109 "//testing/gtest", | 2098 "//testing/gtest", |
2110 ] | 2099 ] |
2111 } | 2100 } |
OLD | NEW |