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

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

Issue 2970003002: Add code generation for ConditionalFeatures bindings code (Closed)
Patch Set: Clean up Created 3 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
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("//testing/libfuzzer/fuzzer_test.gni") 5 import("//testing/libfuzzer/fuzzer_test.gni")
6 import("//third_party/WebKit/Source/bindings/bindings.gni") 6 import("//third_party/WebKit/Source/bindings/bindings.gni")
7 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") 7 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni")
8 import("//third_party/WebKit/Source/core/core.gni") 8 import("//third_party/WebKit/Source/core/core.gni")
9 import("//third_party/WebKit/Source/core/core_idl_files.gni") 9 import("//third_party/WebKit/Source/core/core_idl_files.gni")
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 "$bindings_core_v8_output_dir/FunctionStringCallback.cpp", 106 "$bindings_core_v8_output_dir/FunctionStringCallback.cpp",
107 "$bindings_core_v8_output_dir/FunctionStringCallback.h", 107 "$bindings_core_v8_output_dir/FunctionStringCallback.h",
108 "$bindings_core_v8_output_dir/MojoWatchCallback.cpp", 108 "$bindings_core_v8_output_dir/MojoWatchCallback.cpp",
109 "$bindings_core_v8_output_dir/MojoWatchCallback.h", 109 "$bindings_core_v8_output_dir/MojoWatchCallback.h",
110 "$bindings_core_v8_output_dir/PerformanceObserverCallback.cpp", 110 "$bindings_core_v8_output_dir/PerformanceObserverCallback.cpp",
111 "$bindings_core_v8_output_dir/PerformanceObserverCallback.h", 111 "$bindings_core_v8_output_dir/PerformanceObserverCallback.h",
112 "$bindings_core_v8_output_dir/ResizeObserverCallback.cpp", 112 "$bindings_core_v8_output_dir/ResizeObserverCallback.cpp",
113 "$bindings_core_v8_output_dir/ResizeObserverCallback.h", 113 "$bindings_core_v8_output_dir/ResizeObserverCallback.h",
114 ] 114 ]
115 115
116 generate_conditional_features("bindings_core_conditional_features") {
117 sources = core_idl_files + core_idl_with_modules_dependency_files +
118 core_global_constructors_generated_idl_files
119 global_objects_file = "$bindings_core_output_dir/GlobalObjectsCore.pickle"
120 component = "Core"
121 output_dir = bindings_core_output_dir + "/v8"
122 deps = [
123 "//third_party/WebKit/Source/bindings/core:core_global_constructors_idls",
124 "//third_party/WebKit/Source/bindings/core:core_global_objects",
125 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core",
126 "//third_party/WebKit/Source/bindings/modules:interfaces_info",
127 ]
128 }
129
116 if (is_win || use_jumbo_build) { 130 if (is_win || use_jumbo_build) {
117 # On Windows Official release builds, we try to preserve symbol space. 131 # On Windows Official release builds, we try to preserve symbol space.
118 bindings_core_generated_interface_files = 132 bindings_core_generated_interface_files =
119 [ "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp" ] 133 [ "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp" ]
120 } else { 134 } else {
121 bindings_core_generated_interface_files = 135 bindings_core_generated_interface_files =
122 process_file_template( 136 process_file_template(
123 core_definition_idl_files, 137 core_definition_idl_files,
124 [ 138 [
125 "$bindings_core_v8_output_dir/V8{{source_name_part}}.cpp", 139 "$bindings_core_v8_output_dir/V8{{source_name_part}}.cpp",
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 [ 192 [
179 "$blink_core_output_dir/testing/{{source_name_part}}.cpp", 193 "$blink_core_output_dir/testing/{{source_name_part}}.cpp",
180 "$blink_core_output_dir/testing/{{source_name_part}}.h", 194 "$blink_core_output_dir/testing/{{source_name_part}}.h",
181 ]) 195 ])
182 196
183 # Compile the non-test sources generated above. 197 # Compile the non-test sources generated above.
184 blink_core_sources("bindings_core_impl") { 198 blink_core_sources("bindings_core_impl") {
185 _non_testing_sources = get_target_outputs(":bindings_core_impl_generated") - 199 _non_testing_sources = get_target_outputs(":bindings_core_impl_generated") -
186 generated_core_testing_dictionary_files - 200 generated_core_testing_dictionary_files -
187 generated_core_testing_callback_function_files 201 generated_core_testing_callback_function_files
188 sources = _non_testing_sources + bindings_core_generated_interface_files 202 sources = _non_testing_sources + bindings_core_generated_interface_files +
203 get_target_outputs(":bindings_core_conditional_features")
189 204
190 deps = [ 205 deps = [
206 ":bindings_core_conditional_features",
191 ":bindings_core_v8_generated", 207 ":bindings_core_v8_generated",
192 ] 208 ]
193 } 209 }
194 210
195 # Compile the test sources generated above. This test target doesn't count 211 # Compile the test sources generated above. This test target doesn't count
196 # as part of the "core" component so shouldn't use the blink_core_sources for 212 # as part of the "core" component so shouldn't use the blink_core_sources for
197 # linking on Windows. 213 # linking on Windows.
198 source_set("testing") { 214 source_set("testing") {
199 sources = generated_core_testing_dictionary_files + 215 sources = generated_core_testing_dictionary_files +
200 generated_core_testing_callback_function_files 216 generated_core_testing_callback_function_files
(...skipping 15 matching lines...) Expand all
216 fuzzer_test("v8_serialized_script_value_fuzzer") { 232 fuzzer_test("v8_serialized_script_value_fuzzer") {
217 sources = [ 233 sources = [
218 "serialization/SerializedScriptValueFuzzer.cpp", 234 "serialization/SerializedScriptValueFuzzer.cpp",
219 ] 235 ]
220 seed_corpus = "serialization/fuzz_corpus" 236 seed_corpus = "serialization/fuzz_corpus"
221 deps = [ 237 deps = [
222 "//third_party/WebKit/Source/core", 238 "//third_party/WebKit/Source/core",
223 "//third_party/WebKit/Source/platform:blink_fuzzer_test_support", 239 "//third_party/WebKit/Source/platform:blink_fuzzer_test_support",
224 ] 240 ]
225 } 241 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698