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("//third_party/WebKit/Source/bindings/core/core.gni") | 5 import("//third_party/WebKit/Source/bindings/core/core.gni") |
6 import("//third_party/WebKit/Source/bindings/core/idl.gni") | 6 import("//third_party/WebKit/Source/bindings/core/idl.gni") |
7 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") | 7 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") |
8 | 8 |
9 visibility = [ "//third_party/WebKit/*" ] | 9 visibility = [ "//third_party/WebKit/*" ] |
10 | 10 |
| 11 core_idl_files_list = "$target_gen_dir/core_idl_files.tmp" |
| 12 write_file(core_idl_files_list, |
| 13 rebase_path(core_idl_files, root_build_dir)) |
| 14 |
11 # GYP version: Source/bindings/core/generated.gyp:interfaces_info_individual_cor
e | 15 # GYP version: Source/bindings/core/generated.gyp:interfaces_info_individual_cor
e |
12 compute_interfaces_info_individual("interfaces_info_individual_core") { | 16 compute_interfaces_info_individual("interfaces_info_individual_core") { |
13 sources_static = core_static_idl_files | 17 sources_static = core_static_idl_files |
14 sources_generated = core_generated_idl_files | 18 sources_generated = core_generated_idl_files |
15 output_file = | 19 output_file = |
16 "$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle" | 20 "$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle" |
| 21 deps = [ |
| 22 "//third_party/WebKit/Source/bindings/core:core_global_constructors_idls", |
| 23 ] |
17 } | 24 } |
| 25 |
| 26 # GYP version: Source/bindings/core/generated.gyp:core_global_objects |
| 27 action("core_global_objects") { |
| 28 script = "../scripts/compute_global_objects.py" |
| 29 |
| 30 inputs = [ |
| 31 "../scripts/utilities.py", |
| 32 core_idl_files_list, |
| 33 ] + core_idl_files |
| 34 |
| 35 outputs = [ |
| 36 "$bindings_core_output_dir/GlobalObjectsCore.pickle", |
| 37 ] |
| 38 |
| 39 args = [ |
| 40 "--idl-files-list", |
| 41 rebase_path(core_idl_files_list, root_build_dir), |
| 42 "--write-file-only-if-changed=1", # Always true for Ninja. FIXME: remove |
| 43 # when everything switched to GN. |
| 44 "--", |
| 45 rebase_path("$bindings_core_output_dir/GlobalObjectsCore.pickle", root_build
_dir), |
| 46 ] |
| 47 } |
| 48 |
| 49 # GYP version: Source/bindings/core/generated.gyp:core_global_constructors_idls |
| 50 action("core_global_constructors_idls") { |
| 51 script = "../scripts/generate_global_constructors.py" |
| 52 |
| 53 inputs = [ |
| 54 "../scripts/generate_global_constructors.py", |
| 55 "../scripts/utilities.py", |
| 56 "$bindings_core_output_dir/GlobalObjectsCore.pickle", |
| 57 # Only includes main IDL files (exclude dependencies and testing, |
| 58 # which should not appear on global objects). |
| 59 core_idl_files_list, |
| 60 ] + core_idl_files |
| 61 |
| 62 outputs = core_global_constructors_generated_idl_files + |
| 63 core_global_constructors_generated_header_files |
| 64 |
| 65 args = [ |
| 66 "--idl-files-list", |
| 67 rebase_path(core_idl_files_list, root_build_dir), |
| 68 "--global-objects-file", |
| 69 rebase_path("$bindings_core_output_dir/GlobalObjectsCore.pickle", root_build
_dir), |
| 70 "--write-file-only-if-changed=1", # Always true for Ninja. |
| 71 "--", |
| 72 "Window", |
| 73 rebase_path("$blink_core_output_dir/WindowCoreConstructors.idl", root_build_
dir), |
| 74 "SharedWorkerGlobalScope", |
| 75 rebase_path("$blink_core_output_dir/SharedWorkerGlobalScopeCoreConstructors.
idl", |
| 76 root_build_dir), |
| 77 "DedicatedWorkerGlobalScope", |
| 78 rebase_path("$blink_core_output_dir/DedicatedWorkerGlobalScopeCoreConstructo
rs.idl", |
| 79 root_build_dir), |
| 80 ] |
| 81 |
| 82 deps = [ ":core_global_objects" ] |
| 83 } |
OLD | NEW |