Commit 1be493b6 authored by Hitoshi Yoshida's avatar Hitoshi Yoshida Committed by Commit Bot

[bindings] Move generated files of testing dictionaries in GN

This CL moves handling of generated files for testing from
core/BUILD.gn to bindings/core/v8/BUILD.gn.
And supports the new code generator case.


Bug: 839389
Change-Id: Ie76713167c949e9987a983833d08b6c69c80026d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089561Reviewed-by: default avatarYuki Shiino <yukishiino@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Hitoshi Yoshida <peria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#747662}
parent d1527b21
......@@ -112,6 +112,19 @@ jumbo_source_set("testing") {
sources = generated_core_testing_dictionary_files +
generated_core_testing_callback_function_files
testing_idl_interface_files =
webcore_testing_idl_files + generated_webcore_testing_idl_files +
webcore_testing_idl_with_modules_dependency_files
if (!use_v8_bind_gen_for_dictionary) {
testing_idl_interface_files += core_testing_dictionary_idl_files
}
sources += process_file_template(
testing_idl_interface_files,
[
"$bindings_core_v8_output_dir/v8_{{source_name_part}}.cc",
"$bindings_core_v8_output_dir/v8_{{source_name_part}}.h",
])
configs -= core_config_remove
configs += core_config_add + [ "//third_party/blink/renderer:inside_blink" ] -
[ "//third_party/blink/renderer/core:config" ]
......
......@@ -314,19 +314,6 @@ jumbo_source_set("testing") {
"timing/internals_profiler.cc",
"timing/internals_profiler.h",
]
# Compile the sources produced by these IDL file lists.
testing_idl_files =
webcore_testing_idl_files + core_testing_dictionary_idl_files +
generated_webcore_testing_idl_files +
webcore_testing_idl_with_modules_dependency_files
sources += process_file_template(
testing_idl_files,
[
"$bindings_core_v8_output_dir/v8_{{source_name_part}}.cc",
"$bindings_core_v8_output_dir/v8_{{source_name_part}}.h",
])
}
# core_bindings_generated ------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment