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

Side by Side Diff: third_party/WebKit/Source/core/BUILD.gn

Issue 2520863002: Enable precompiled headers for Blink on Windows. (Closed)
Patch Set: rebased Created 4 years 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 | « third_party/WebKit/Source/build/win/Precompile.cpp ('k') | third_party/WebKit/Source/core/DEPS » ('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 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/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 import("//build/toolchain/toolchain.gni") 6 import("//build/toolchain/toolchain.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//build/split_static_library.gni") 8 import("//build/split_static_library.gni")
9 import("//testing/libfuzzer/fuzzer_test.gni") 9 import("//testing/libfuzzer/fuzzer_test.gni")
10 import("//third_party/WebKit/Source/bindings/bindings.gni") 10 import("//third_party/WebKit/Source/bindings/bindings.gni")
(...skipping 30 matching lines...) Expand all
41 config("core_include_dirs") { 41 config("core_include_dirs") {
42 include_dirs = [ 42 include_dirs = [
43 "..", 43 "..",
44 "$root_gen_dir/blink", 44 "$root_gen_dir/blink",
45 ] 45 ]
46 if (is_android && use_openmax_dl_fft) { 46 if (is_android && use_openmax_dl_fft) {
47 include_dirs += [ "//third_party/openmax_dl" ] 47 include_dirs += [ "//third_party/openmax_dl" ]
48 } 48 }
49 } 49 }
50 50
51 import("//build/config/pch.gni")
52
53 config("blink_core_pch") {
54 if (enable_precompiled_headers) {
55 if (is_win) {
56 # This is a string rather than a file GN knows about. It has to match
57 # exactly what's in the /FI flag below, and what might appear in the
58 # source code in quotes for an #include directive.
59 precompiled_header = rebase_path("win/Precompile-core.h", root_build_dir)
60
61 # This is a file that GN will compile with the above header. It will be
62 # implicitly added to the sources (potentially multiple times, with one
63 # variant for each language used in the target).
64 precompiled_source =
65 "//third_party/WebKit/Source/core/win/Precompile-core.cpp"
66
67 # Force include the header.
68 cflags = [ "/FI$precompiled_header" ]
69
70 # Disable warning for "this file was empty after preprocessing". This
71 # error is generated only in C mode for ANSI compatibility. It conflicts
72 # with precompiled headers since the source file that's "compiled" for
73 # making the precompiled header is empty.
74 #
75 # This error doesn't happen every time. In VS2013, it seems if the .pch
76 # file doesn't exist, no error will be generated (probably MS tested this
77 # case but forgot the other one?). To reproduce this error, do a build,
78 # then delete the precompile.c.obj file, then build again.
79 cflags_c = [ "/wd4206" ]
80 }
81 }
82 }
83
84 core_config_add += [ ":blink_core_pch" ]
85
51 source_set("generated") { 86 source_set("generated") {
52 deps = [ 87 deps = [
53 ":core_generated", 88 ":core_generated",
54 ":prerequisites", 89 ":prerequisites",
55 "//gin", 90 "//gin",
56 "//skia", 91 "//skia",
57 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", 92 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
58 "//third_party/WebKit/Source/core/inspector:generated", 93 "//third_party/WebKit/Source/core/inspector:generated",
59 "//third_party/iccjpeg", 94 "//third_party/iccjpeg",
60 "//third_party/libpng", 95 "//third_party/libpng",
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 if (is_mac) { 229 if (is_mac) {
195 libs = [ 230 libs = [
196 "AppKit.framework", 231 "AppKit.framework",
197 "Carbon.framework", 232 "Carbon.framework",
198 ] 233 ]
199 } 234 }
200 } 235 }
201 236
202 source_set("testing") { 237 source_set("testing") {
203 configs += [ 238 configs += [
239 ":blink_core_pch",
240 "//third_party/WebKit/Source:config",
204 "//third_party/WebKit/Source:inside_blink", 241 "//third_party/WebKit/Source:inside_blink",
205 "//third_party/WebKit/Source:config",
206 ] 242 ]
207 243
208 deps = [ 244 deps = [
209 ":core", 245 ":core",
210 ":generated_testing_idls", 246 ":generated_testing_idls",
211 "//third_party/WebKit/Source/bindings/core/v8:testing", 247 "//third_party/WebKit/Source/bindings/core/v8:testing",
212 ] 248 ]
213 249
214 sources = [ 250 sources = [
215 "$blink_core_output_dir/testing/InternalSettingsGenerated.cpp", 251 "$blink_core_output_dir/testing/InternalSettingsGenerated.cpp",
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
1309 "timing/PerformanceObserverTest.cpp", 1345 "timing/PerformanceObserverTest.cpp",
1310 "timing/PerformanceTest.cpp", 1346 "timing/PerformanceTest.cpp",
1311 "workers/DedicatedWorkerTest.cpp", 1347 "workers/DedicatedWorkerTest.cpp",
1312 "workers/WorkerThreadTest.cpp", 1348 "workers/WorkerThreadTest.cpp",
1313 "workers/WorkerThreadTestHelper.h", 1349 "workers/WorkerThreadTestHelper.h",
1314 "xml/XPathFunctionsTest.cpp", 1350 "xml/XPathFunctionsTest.cpp",
1315 "xml/parser/SharedBufferReaderTest.cpp", 1351 "xml/parser/SharedBufferReaderTest.cpp",
1316 ] 1352 ]
1317 1353
1318 configs += [ 1354 configs += [
1355 ":blink_core_pch",
1319 "//third_party/WebKit/Source:config", 1356 "//third_party/WebKit/Source:config",
1320 "//third_party/WebKit/Source:inside_blink", 1357 "//third_party/WebKit/Source:inside_blink",
1321 ] 1358 ]
1322 1359
1323 deps = [ 1360 deps = [
1324 ":core", 1361 ":core",
1325 "//testing/gmock", 1362 "//testing/gmock",
1326 "//testing/gtest", 1363 "//testing/gtest",
1327 ] 1364 ]
1328 } 1365 }
(...skipping 29 matching lines...) Expand all
1358 sources = [ 1395 sources = [
1359 "frame/csp/ContentSecurityPolicyFuzzer.cpp", 1396 "frame/csp/ContentSecurityPolicyFuzzer.cpp",
1360 ] 1397 ]
1361 deps = [ 1398 deps = [
1362 ":core", 1399 ":core",
1363 "//third_party/WebKit/Source/platform:blink_fuzzer_test_support", 1400 "//third_party/WebKit/Source/platform:blink_fuzzer_test_support",
1364 ] 1401 ]
1365 dict = "//testing/libfuzzer/fuzzers/dicts/content_security_policy.dict" 1402 dict = "//testing/libfuzzer/fuzzers/dicts/content_security_policy.dict"
1366 seed_corpus = "//testing/libfuzzer/fuzzers/content_security_policy_corpus" 1403 seed_corpus = "//testing/libfuzzer/fuzzers/content_security_policy_corpus"
1367 } 1404 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/win/Precompile.cpp ('k') | third_party/WebKit/Source/core/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698