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

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

Issue 2312093003: Generated bindings for IDL callback functions (Closed)
Patch Set: Addressed comments Created 4 years, 3 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("//third_party/WebKit/Source/bindings/bindings.gni") 5 import("//third_party/WebKit/Source/bindings/bindings.gni")
6 import("//third_party/WebKit/Source/core/core_idl_files.gni") 6 import("//third_party/WebKit/Source/core/core_idl_files.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 9
10 visibility = [ "//third_party/WebKit/Source/*" ] 10 visibility = [ "//third_party/WebKit/Source/*" ]
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 generated_core_testing_dictionary_files = [ 188 generated_core_testing_dictionary_files = [
189 "$blink_core_output_dir/testing/InternalDictionary.cpp", 189 "$blink_core_output_dir/testing/InternalDictionary.cpp",
190 "$blink_core_output_dir/testing/InternalDictionary.h", 190 "$blink_core_output_dir/testing/InternalDictionary.h",
191 "$blink_core_output_dir/testing/InternalDictionaryDerived.cpp", 191 "$blink_core_output_dir/testing/InternalDictionaryDerived.cpp",
192 "$blink_core_output_dir/testing/InternalDictionaryDerived.h", 192 "$blink_core_output_dir/testing/InternalDictionaryDerived.h",
193 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.cpp", 193 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.cpp",
194 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.h", 194 "$blink_core_output_dir/testing/InternalDictionaryDerivedDerived.h",
195 ] 195 ]
196 196
197 generated_core_testing_callback_function_files = [
198 "$bindings_core_v8_output_dir/V8TestCallback.cpp",
199 "$bindings_core_v8_output_dir/V8TestCallback.h",
200 ]
201
197 if (is_win && is_official_build) { 202 if (is_win && is_official_build) {
198 bindings_core_generated_aggregate_files = 203 bindings_core_generated_aggregate_files =
199 [ "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp" ] 204 [ "$bindings_core_v8_output_dir/V8GeneratedCoreBindings.cpp" ]
200 } else { 205 } else {
201 bindings_core_generated_aggregate_files = [ 206 bindings_core_generated_aggregate_files = [
202 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings00.cpp", 207 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings00.cpp",
203 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings01.cpp", 208 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings01.cpp",
204 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings02.cpp", 209 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings02.cpp",
205 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings03.cpp", 210 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings03.cpp",
206 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings04.cpp", 211 "$bindings_core_v8_output_dir/V8GeneratedCoreBindings04.cpp",
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 idl_compiler("bindings_core_v8_generated_individual") { 307 idl_compiler("bindings_core_v8_generated_individual") {
303 sources = core_definition_idl_files + core_testing_definition_idl_files + 308 sources = core_definition_idl_files + core_testing_definition_idl_files +
304 generated_webcore_testing_idl_files 309 generated_webcore_testing_idl_files
305 output_dir = bindings_core_v8_output_dir 310 output_dir = bindings_core_v8_output_dir
306 output_name_suffix = "" 311 output_name_suffix = ""
307 target_component = "core" 312 target_component = "core"
308 } 313 }
309 314
310 idl_impl("bindings_core_impl_generated") { 315 idl_impl("bindings_core_impl_generated") {
311 sources = core_dictionary_idl_files + core_testing_dictionary_idl_files 316 sources = core_dictionary_idl_files + core_testing_dictionary_idl_files
312 outputs = 317 outputs = bindings_core_generated_union_type_files +
313 bindings_core_generated_union_type_files + 318 generated_core_dictionary_files +
314 generated_core_dictionary_files + generated_core_testing_dictionary_files 319 generated_core_testing_dictionary_files +
320 generated_core_testing_callback_function_files
315 output_dir = bindings_core_v8_output_dir 321 output_dir = bindings_core_v8_output_dir
316 target_component = "core" 322 target_component = "core"
317 } 323 }
318 324
319 # Compile the non-test sources generated above. 325 # Compile the non-test sources generated above.
320 blink_core_sources("bindings_core_impl") { 326 blink_core_sources("bindings_core_impl") {
321 sources = 327 sources =
322 bindings_core_generated_union_type_files + 328 bindings_core_generated_union_type_files +
323 generated_core_dictionary_files + bindings_core_generated_aggregate_files 329 generated_core_dictionary_files + bindings_core_generated_aggregate_files
324 330
325 deps = [ 331 deps = [
326 ":bindings_core_impl_generated", 332 ":bindings_core_impl_generated",
327 ":bindings_core_v8_generated_aggregate", 333 ":bindings_core_v8_generated_aggregate",
328 ] 334 ]
329 } 335 }
330 336
331 # Compile the test sources generated above. This test target doesn't count 337 # Compile the test sources generated above. This test target doesn't count
332 # as part of the "core" component so shouldn't use the blink_core_sources for 338 # as part of the "core" component so shouldn't use the blink_core_sources for
333 # linking on Windows. 339 # linking on Windows.
334 source_set("testing") { 340 source_set("testing") {
335 sources = generated_core_testing_dictionary_files 341 sources = generated_core_testing_dictionary_files +
342 generated_core_testing_callback_function_files
336 343
337 configs -= core_config_remove 344 configs -= core_config_remove
338 configs += [ 345 configs += [
339 "//third_party/WebKit/Source:inside_blink", 346 "//third_party/WebKit/Source:inside_blink",
340 "//third_party/WebKit/Source:config", 347 "//third_party/WebKit/Source:config",
341 ] 348 ]
342 349
343 deps = [ 350 deps = [
344 ":bindings_core_impl_generated", 351 ":bindings_core_impl_generated",
345 "//skia", 352 "//skia",
346 "//third_party/WebKit/Source/wtf", 353 "//third_party/WebKit/Source/wtf",
347 "//v8", 354 "//v8",
348 ] 355 ]
349 } 356 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698