Chromium Code Reviews| Index: Source/bindings/modules/BUILD.gn |
| diff --git a/Source/bindings/modules/BUILD.gn b/Source/bindings/modules/BUILD.gn |
| index fba38ad657d1de8f92f928e0ebea7e5c120b6bb5..b6716598f5b36498c4549c6ae54eaff211129ef8 100644 |
| --- a/Source/bindings/modules/BUILD.gn |
| +++ b/Source/bindings/modules/BUILD.gn |
| @@ -10,6 +10,14 @@ import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
| visibility = [ "//third_party/WebKit/*" ] |
| +core_idl_files_list = "$target_gen_dir/core_idl_files.tmp" |
| +write_file(core_idl_files_list, |
| + rebase_path(core_idl_files, root_build_dir)) |
| + |
| +modules_idl_files_list = "$target_gen_dir/modules_idl_files.tmp" |
| +write_file(modules_idl_files_list, |
| + rebase_path(modules_idl_files, root_build_dir)) |
| + |
| # GYP version: Source/bindings/modules/generated.gyp:bindings_modules_generated |
| group("bindings_modules_generated") { |
| deps = [ |
| @@ -69,11 +77,15 @@ compute_interfaces_info_individual("interfaces_info_individual_modules") { |
| sources_generated = [] |
| output_file = |
| "$bindings_modules_output_dir/InterfacesInfoModulesIndividual.pickle" |
| + deps = [ |
| + ":modules_core_global_constructors_idls", |
| + ":modules_global_constructors_idls", |
| + ] |
| } |
| # GYP version: Source/bindings/modules/generated.gyp:interfaces_info |
| action("interfaces_info") { |
| - script = "$bindings_scripts_dir/compute_interfaces_info_overall.py" |
| + script = "../scripts/compute_interfaces_info_overall.py" |
| inputs = [ |
| "$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle", |
| @@ -102,3 +114,39 @@ action("interfaces_info") { |
| "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core", |
| ] |
| } |
| + |
| +# GYP version: Source/bindings/modules/generated.gyp:modules_global_objects |
| +compute_global_objects("modules_global_objects") { |
| + sources = modules_idl_files |
| + sources_generated = [ "$bindings_core_output_dir/GlobalObjectsCore.pickle" ] |
|
brettw
2014/10/08 18:28:33
This takes an input from another target. We should
tasak
2014/10/14 11:51:33
Done.
|
| + output_file = "$bindings_modules_output_dir/GlobalObjectsModules.pickle" |
| +} |
| + |
| +# GYP version: Source/bindings/modules/generated.gyp:modules_core_global_constructors_idls |
| +generate_global_constructors("modules_core_global_constructors_idls") { |
| + sources = core_idl_files |
| + global_objects_file = "$bindings_modules_output_dir/GlobalObjectsModules.pickle" |
| + interfaces = [ "ServiceWorkerGlobalScope" ] |
| + output_idl_files = modules_core_global_constructors_generated_idl_files |
| + output_header_files = modules_core_global_constructors_generated_header_files |
| + deps = [ ":modules_global_objects" ] |
| +} |
| + |
| +# GYP version: Source/bindings/modules/generated.gyp:modules_global_constructors_idls |
| +generate_global_constructors("modules_global_constructors_idls") { |
| + sources = modules_idl_files |
| + global_objects_file = "$bindings_modules_output_dir/GlobalObjectsModules.pickle" |
| + # interfaces should be the same order as output_idl_files and |
| + # output_header_files. |
| + # e.g. since output_idl_files[0] = WindowModulesConstructros.idl, |
| + # interfaces[0] should be "Window" |
| + interfaces = [ |
| + "Window", |
| + "SharedWorkerGlobalScope", |
| + "DedicatedWorkerGlobalScope", |
| + "ServiceWorkerGlobalScope", |
| + ] |
| + output_idl_files = modules_global_constructors_generated_idl_files |
| + output_header_files = modules_global_constructors_generated_header_files |
| + deps = [ ":modules_global_objects" ] |
| +} |