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

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

Issue 2152783002: Enable precompiled headers for Blink on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaning up comments Created 4 years, 5 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 | « third_party/WebKit/Source/BUILD.gn ('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/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//third_party/WebKit/Source/bindings/bindings.gni") 7 import("//third_party/WebKit/Source/bindings/bindings.gni")
8 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni") 8 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni")
9 import("//third_party/WebKit/Source/bindings/modules/modules.gni") 9 import("//third_party/WebKit/Source/bindings/modules/modules.gni")
10 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") 10 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni")
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 config("core_include_dirs") { 57 config("core_include_dirs") {
58 include_dirs = [ 58 include_dirs = [
59 "..", 59 "..",
60 "$root_gen_dir/blink", 60 "$root_gen_dir/blink",
61 ] 61 ]
62 if (is_android && use_openmax_dl_fft) { 62 if (is_android && use_openmax_dl_fft) {
63 include_dirs += [ "//third_party/openmax_dl" ] 63 include_dirs += [ "//third_party/openmax_dl" ]
64 } 64 }
65 } 65 }
66 66
67 import("//build/config/pch.gni")
68
69 config("blink_core_pch") {
70 if (!disable_precompiled_headers) {
71 if (is_win) {
72 # This is a string rather than a file GN knows about. It has to match
73 # exactly what's in the /FI flag below, and what might appear in the
74 # source code in quotes for an #include directive.
75 precompiled_header = rebase_path("win/Precompile-core.h", root_build_dir)
76
77 # This is a file that GN will compile with the above header. It will be
78 # implicitly added to the sources (potentially multiple times, with one
79 # variant for each language used in the target).
80 precompiled_source =
81 "//third_party/WebKit/Source/core/win/Precompile-core.cpp"
82
83 # Force include the header.
84 cflags = [ "/FI$precompiled_header" ]
85
86 # Disable warning for "this file was empty after preprocessing". This
87 # error is generated only in C mode for ANSI compatibility. It conflicts
88 # with precompiled headers since the source file that's "compiled" for
89 # making the precompiled header is empty.
90 #
91 # This error doesn't happen every time. In VS2013, it seems if the .pch
92 # file doesn't exist, no error will be generated (probably MS tested this
93 # case but forgot the other one?). To reproduce this error, do a build,
94 # then delete the precompile.c.obj file, then build again.
95 cflags_c = [ "/wd4206" ]
96 }
97 }
98 }
99
100 core_config_add += [ ":blink_core_pch" ]
101
67 # GYP version: WebKit/Source/core/core.gyp:webcore_generated 102 # GYP version: WebKit/Source/core/core.gyp:webcore_generated
68 source_set("generated") { 103 source_set("generated") {
69 deps = [ 104 deps = [
70 ":make_core_generated", 105 ":make_core_generated",
71 ":prerequisites", 106 ":prerequisites",
72 "inspector:instrumentation_sources", 107 "inspector:instrumentation_sources",
73 "inspector:protocol_sources", 108 "inspector:protocol_sources",
74 "//gin", 109 "//gin",
75 "//skia", 110 "//skia",
76 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", 111 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated",
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_rendering 316 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_rendering
282 source_set("rendering") { 317 source_set("rendering") {
283 # The files that go here are currently in "remaining". 318 # The files that go here are currently in "remaining".
284 } 319 }
285 320
286 # GYP version: WebKit/Source/core/core.gyp:webcore_testing 321 # GYP version: WebKit/Source/core/core.gyp:webcore_testing
287 source_set("testing") { 322 source_set("testing") {
288 configs += [ 323 configs += [
289 "//third_party/WebKit/Source:inside_blink", 324 "//third_party/WebKit/Source:inside_blink",
290 "//third_party/WebKit/Source:config", 325 "//third_party/WebKit/Source:config",
326 ":blink_core_pch",
291 ] 327 ]
292 328
293 deps = [ 329 deps = [
294 ":core", 330 ":core",
295 ":generated_testing_idls", 331 ":generated_testing_idls",
296 ] 332 ]
297 333
298 sources = generated_core_testing_dictionary_files + webcore_testing_files 334 sources = generated_core_testing_dictionary_files + webcore_testing_files
299 sources += [ 335 sources += [
300 "$bindings_core_v8_output_dir/V8DictionaryTest.cpp", 336 "$bindings_core_v8_output_dir/V8DictionaryTest.cpp",
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 "$blink_core_output_dir/{{source_name_part}}.h", 1114 "$blink_core_output_dir/{{source_name_part}}.h",
1079 ] 1115 ]
1080 args = [ 1116 args = [
1081 "{{source}}", 1117 "{{source}}",
1082 rel_blink_core_gen_dir, 1118 rel_blink_core_gen_dir,
1083 bison_exe, 1119 bison_exe,
1084 ] 1120 ]
1085 1121
1086 deps = make_core_generated_deps 1122 deps = make_core_generated_deps
1087 } 1123 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/BUILD.gn ('k') | third_party/WebKit/Source/core/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698