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/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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 precompiled_header = rebase_path("win/Precompile-core.h", root_build_dir) | 59 precompiled_header = rebase_path("win/Precompile-core.h", root_build_dir) |
60 | 60 |
61 # This is a file that GN will compile with the above header. It will be | 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 | 62 # implicitly added to the sources (potentially multiple times, with one |
63 # variant for each language used in the target). | 63 # variant for each language used in the target). |
64 precompiled_source = | 64 precompiled_source = |
65 "//third_party/WebKit/Source/core/win/Precompile-core.cpp" | 65 "//third_party/WebKit/Source/core/win/Precompile-core.cpp" |
66 | 66 |
67 # Force include the header. | 67 # Force include the header. |
68 cflags = [ "/FI$precompiled_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 } | 69 } |
81 } | 70 } |
82 } | 71 } |
83 | 72 |
84 core_config_add += [ ":blink_core_pch" ] | 73 core_config_add += [ ":blink_core_pch" ] |
85 | 74 |
86 source_set("generated") { | 75 source_set("generated") { |
87 deps = [ | 76 deps = [ |
88 ":core_generated", | 77 ":core_generated", |
89 ":prerequisites", | 78 ":prerequisites", |
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 sources = [ | 1330 sources = [ |
1342 "frame/csp/ContentSecurityPolicyFuzzer.cpp", | 1331 "frame/csp/ContentSecurityPolicyFuzzer.cpp", |
1343 ] | 1332 ] |
1344 deps = [ | 1333 deps = [ |
1345 ":core", | 1334 ":core", |
1346 "//third_party/WebKit/Source/platform:blink_fuzzer_test_support", | 1335 "//third_party/WebKit/Source/platform:blink_fuzzer_test_support", |
1347 ] | 1336 ] |
1348 dict = "//testing/libfuzzer/fuzzers/dicts/content_security_policy.dict" | 1337 dict = "//testing/libfuzzer/fuzzers/dicts/content_security_policy.dict" |
1349 seed_corpus = "//testing/libfuzzer/fuzzers/content_security_policy_corpus" | 1338 seed_corpus = "//testing/libfuzzer/fuzzers/content_security_policy_corpus" |
1350 } | 1339 } |
OLD | NEW |