Chromium Code Reviews| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 } | 49 } |
| 50 | 50 |
| 51 import("//build/config/pch.gni") | 51 import("//build/config/pch.gni") |
| 52 | 52 |
| 53 config("blink_core_pch") { | 53 config("blink_core_pch") { |
| 54 if (enable_precompiled_headers) { | 54 if (enable_precompiled_headers) { |
| 55 if (is_win) { | 55 if (is_win) { |
| 56 # This is a string rather than a file GN knows about. It has to match | 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 | 57 # exactly what's in the /FI flag below, and what might appear in the |
| 58 # source code in quotes for an #include directive. | 58 # source code in quotes for an #include directive. |
| 59 precompiled_header = rebase_path("win/Precompile-core.h", root_build_dir) | 59 precompiled_header = rebase_path("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/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 } else if (is_mac) { | |
| 70 precompiled_header = rebase_path("Precompile-core.h", root_build_dir) | |
|
Nico
2017/03/03 16:04:35
likewise
| |
| 71 precompiled_source = "//third_party/WebKit/Source/core/Precompile-core.h" | |
| 69 } | 72 } |
| 70 } | 73 } |
| 71 } | 74 } |
| 72 | 75 |
| 73 core_config_add += [ ":blink_core_pch" ] | 76 core_config_add += [ ":blink_core_pch" ] |
| 74 | 77 |
| 75 source_set("generated") { | 78 source_set("generated") { |
| 76 deps = [ | 79 deps = [ |
| 77 ":core_generated", | 80 ":core_generated", |
| 78 ":prerequisites", | 81 ":prerequisites", |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated" , | 128 "//third_party/WebKit/Source/bindings/modules/v8:bindings_modules_generated" , |
| 126 "//third_party/WebKit/Source/platform", | 129 "//third_party/WebKit/Source/platform", |
| 127 ] | 130 ] |
| 128 | 131 |
| 129 public_configs = [ | 132 public_configs = [ |
| 130 ":core_include_dirs", | 133 ":core_include_dirs", |
| 131 "//third_party/WebKit/Source:config", | 134 "//third_party/WebKit/Source:config", |
| 132 "//third_party/WebKit/Source:inside_blink", | 135 "//third_party/WebKit/Source:inside_blink", |
| 133 ] | 136 ] |
| 134 | 137 |
| 135 if (is_mac) { | |
| 136 public_configs += [ "//third_party/WebKit/Source:mac_precompiled_headers" ] | |
| 137 } | |
| 138 | |
| 139 if (use_openmax_dl_fft) { | 138 if (use_openmax_dl_fft) { |
| 140 deps += [ "//third_party/openmax_dl/dl" ] | 139 deps += [ "//third_party/openmax_dl/dl" ] |
| 141 } | 140 } |
| 142 } | 141 } |
| 143 | 142 |
| 144 # Note that this is a source set rather than a group, even though it has no | 143 # Note that this is a source set rather than a group, even though it has no |
| 145 # sources. A group would implicitly forward all direct dependent configs | 144 # sources. A group would implicitly forward all direct dependent configs |
| 146 # through it, but we want to keep our internal targets' public_configs private | 145 # through it, but we want to keep our internal targets' public_configs private |
| 147 # and only forward some of them. | 146 # and only forward some of them. |
| 148 component("core") { | 147 component("core") { |
| (...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1421 sources = [ | 1420 sources = [ |
| 1422 "frame/csp/ContentSecurityPolicyFuzzer.cpp", | 1421 "frame/csp/ContentSecurityPolicyFuzzer.cpp", |
| 1423 ] | 1422 ] |
| 1424 deps = [ | 1423 deps = [ |
| 1425 ":core", | 1424 ":core", |
| 1426 "//third_party/WebKit/Source/platform:blink_fuzzer_test_support", | 1425 "//third_party/WebKit/Source/platform:blink_fuzzer_test_support", |
| 1427 ] | 1426 ] |
| 1428 dict = "//testing/libfuzzer/fuzzers/dicts/content_security_policy.dict" | 1427 dict = "//testing/libfuzzer/fuzzers/dicts/content_security_policy.dict" |
| 1429 seed_corpus = "//testing/libfuzzer/fuzzers/content_security_policy_corpus" | 1428 seed_corpus = "//testing/libfuzzer/fuzzers/content_security_policy_corpus" |
| 1430 } | 1429 } |
| OLD | NEW |