Chromium Code Reviews| 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/modules/modules.gni") | 5 import("//third_party/WebKit/Source/modules/modules.gni") |
| 6 import("//third_party/WebKit/Source/bindings/core/core.gni") | 6 import("//third_party/WebKit/Source/bindings/core/core.gni") |
| 7 import("//third_party/WebKit/Source/bindings/modules/modules.gni") | 7 import("//third_party/WebKit/Source/bindings/modules/modules.gni") |
| 8 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") | 8 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") |
| 9 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 9 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
| 10 | 10 |
| 11 visibility = [ "//third_party/WebKit/*" ] | 11 visibility = [ "//third_party/WebKit/*" ] |
| 12 | 12 |
| 13 core_idl_files_list = "$target_gen_dir/core_idl_files.tmp" | |
| 14 write_file(core_idl_files_list, | |
| 15 rebase_path(core_idl_files, root_build_dir)) | |
| 16 | |
| 17 modules_idl_files_list = "$target_gen_dir/modules_idl_files.tmp" | |
| 18 write_file(modules_idl_files_list, | |
| 19 rebase_path(modules_idl_files, root_build_dir)) | |
| 20 | |
| 13 # GYP version: Source/bindings/modules/generated.gyp:bindings_modules_generated | 21 # GYP version: Source/bindings/modules/generated.gyp:bindings_modules_generated |
| 14 group("bindings_modules_generated") { | 22 group("bindings_modules_generated") { |
| 15 deps = [ | 23 deps = [ |
| 16 ":modules_bindings_generated_event_interfaces", | 24 ":modules_bindings_generated_event_interfaces", |
| 17 ":bindings_modules_generated_event_modules_factory", | 25 ":bindings_modules_generated_event_modules_factory", |
| 18 ":bindings_modules_generated_event_modules_names", | 26 ":bindings_modules_generated_event_modules_names", |
| 19 ":bindings_modules_generated_event_target_modules_names", | 27 ":bindings_modules_generated_event_target_modules_names", |
| 20 ] | 28 ] |
| 21 } | 29 } |
| 22 | 30 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 | 70 |
| 63 # ------------------------------------------------------------------------------ | 71 # ------------------------------------------------------------------------------ |
| 64 | 72 |
| 65 # GYP version: Source/bindings/modules/generated.gyp:interfaces_info_individual_ modules | 73 # GYP version: Source/bindings/modules/generated.gyp:interfaces_info_individual_ modules |
| 66 compute_interfaces_info_individual("interfaces_info_individual_modules") { | 74 compute_interfaces_info_individual("interfaces_info_individual_modules") { |
| 67 sources_static = modules_static_idl_files | 75 sources_static = modules_static_idl_files |
| 68 # No generated files currently, will add with constructors | 76 # No generated files currently, will add with constructors |
| 69 sources_generated = [] | 77 sources_generated = [] |
| 70 output_file = | 78 output_file = |
| 71 "$bindings_modules_output_dir/InterfacesInfoModulesIndividual.pickle" | 79 "$bindings_modules_output_dir/InterfacesInfoModulesIndividual.pickle" |
| 80 deps = [ ":modules_global_constructors_idls", ] | |
| 72 } | 81 } |
| 73 | 82 |
| 74 # GYP version: Source/bindings/modules/generated.gyp:interfaces_info | 83 # GYP version: Source/bindings/modules/generated.gyp:interfaces_info |
| 75 action("interfaces_info") { | 84 action("interfaces_info") { |
| 76 script = "$bindings_scripts_dir/compute_interfaces_info_overall.py" | 85 script = "../scripts/compute_interfaces_info_overall.py" |
| 77 | 86 |
| 78 inputs = [ | 87 inputs = [ |
| 79 "$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle", | 88 "$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle", |
| 80 "$bindings_modules_output_dir/InterfacesInfoModulesIndividual.pickle", | 89 "$bindings_modules_output_dir/InterfacesInfoModulesIndividual.pickle", |
| 81 ] | 90 ] |
| 82 outputs = [ | 91 outputs = [ |
| 83 "$bindings_modules_output_dir/InterfacesInfoModules.pickle", | 92 "$bindings_modules_output_dir/InterfacesInfoModules.pickle", |
| 84 ] | 93 ] |
| 85 | 94 |
| 86 args = [ | 95 args = [ |
| 87 "--write-file-only-if-changed=1", | 96 "--write-file-only-if-changed=1", |
| 88 "--", | 97 "--", |
| 89 rebase_path( | 98 rebase_path( |
| 90 "$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle", | 99 "$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle", |
| 91 root_build_dir), | 100 root_build_dir), |
| 92 rebase_path( | 101 rebase_path( |
| 93 "$bindings_modules_output_dir/InterfacesInfoModulesIndividual.pickle", | 102 "$bindings_modules_output_dir/InterfacesInfoModulesIndividual.pickle", |
| 94 root_build_dir), | 103 root_build_dir), |
| 95 rebase_path( | 104 rebase_path( |
| 96 "$bindings_modules_output_dir/InterfacesInfoModules.pickle", | 105 "$bindings_modules_output_dir/InterfacesInfoModules.pickle", |
| 97 root_build_dir), | 106 root_build_dir), |
| 98 ] | 107 ] |
| 99 | 108 |
| 100 deps = [ | 109 deps = [ |
| 101 ":interfaces_info_individual_modules", | 110 ":interfaces_info_individual_modules", |
| 102 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core", | 111 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core", |
| 103 ] | 112 ] |
| 104 } | 113 } |
| 114 | |
| 115 action("modules_global_objects") { | |
|
brettw
2014/10/07 16:44:08
These script invocations are duplicated in the two
tasak
2014/10/08 03:29:49
I see.
I added 2 new templates: compute_global_obj
| |
| 116 script = "../scripts/compute_global_objects.py" | |
| 117 | |
| 118 inputs = [ | |
| 119 "../scripts/utilities.py", | |
| 120 "$bindings_core_output_dir/GlobalObjectsCore.pickle", | |
| 121 modules_idl_files_list, | |
| 122 ] + modules_idl_files | |
| 123 | |
| 124 outputs = [ | |
| 125 "$bindings_modules_output_dir/GlobalObjectsModules.pickle", | |
| 126 ] | |
| 127 | |
| 128 args = [ | |
| 129 "--idl-files-list", | |
| 130 rebase_path(modules_idl_files_list, root_build_dir), | |
| 131 "--write-file-only-if-changed=1", # Always true for Ninja. FIXME: remove | |
| 132 # when everything switched to GN. | |
| 133 "--", | |
| 134 rebase_path("$bindings_core_output_dir/GlobalObjectsCore.pickle", root_build _dir), | |
| 135 rebase_path("$bindings_modules_output_dir/GlobalObjectsModules.pickle", root _build_dir), | |
| 136 ] | |
| 137 } | |
| 138 | |
| 139 # GYP version: Source/bindings/modules/generated.gyp:modules_core_global_constru ctors_idls | |
| 140 action("modules_core_global_constructors_idls") { | |
| 141 script = "../scripts/generate_global_constructors.py" | |
| 142 | |
| 143 inputs = [ | |
| 144 "../scripts/generate_global_constructors.py", | |
| 145 "../scripts/utilities.py", | |
| 146 "$bindings_modules_output_dir/GlobalObjectsModules.pickle", | |
| 147 core_idl_files_list, | |
| 148 ] + core_idl_files | |
| 149 | |
| 150 outputs = modules_core_global_constructors_generated_idl_files | |
| 151 + modules_core_global_constructors_generated_header_files | |
| 152 | |
| 153 args = [ | |
| 154 "--idl-files-list", | |
| 155 rebase_path(core_idl_files_list, root_build_dir), | |
| 156 "--global-objects-file", | |
| 157 rebase_path("$bindings_modules_output_dir/GlobalObjectsModules.pickle", root _build_dir), | |
| 158 "--write-file-only-if-changed=1", # Always true for Ninja. | |
| 159 "--", | |
| 160 "ServiceWorkerGlobalScope", | |
| 161 rebase_path("$blink_modules_output_dir/ServiceWorkerGlobalScopeCoreConstruct ors.idl", root_build_dir), | |
| 162 ] | |
| 163 | |
| 164 deps = [ ":modules_global_objects" ] | |
| 165 } | |
| 166 | |
| 167 # GYP version: Source/bindings/modules/generated.gyp:modules_global_constructors _idls | |
| 168 action("modules_global_constructors_idls") { | |
| 169 script = "../scripts/generate_global_constructors.py" | |
| 170 | |
| 171 inputs = [ | |
| 172 "../scripts/generate_global_constructors.py", | |
| 173 "../scripts/utilities.py", | |
| 174 "$bindings_modules_output_dir/GlobalObjectsModules.pickle", | |
| 175 modules_idl_files_list, | |
| 176 ] + modules_idl_files | |
| 177 | |
| 178 outputs = modules_global_constructors_generated_idl_files | |
| 179 + modules_global_constructors_generated_header_files | |
| 180 | |
| 181 args = [ | |
| 182 "--idl-files-list", | |
| 183 rebase_path(modules_idl_files_list, root_build_dir), | |
| 184 "--global-objects-file", | |
| 185 rebase_path("$bindings_modules_output_dir/GlobalObjectsModules.pickle", root _build_dir), | |
| 186 "--write-file-only-if-changed=1", # Always true for Ninja. | |
| 187 "--", | |
| 188 "Window", | |
| 189 rebase_path("$blink_modules_output_dir/WindowModulesConstructors.idl", root_ build_dir), | |
| 190 "SharedWorkerGlobalScope", | |
| 191 rebase_path("$blink_modules_output_dir/SharedWorkerGlobalScopeModulesConstru ctors.idl", | |
| 192 root_build_dir), | |
| 193 "DedicatedWorkerGlobalScope", | |
| 194 rebase_path("$blink_modules_output_dir/DedicatedWorkerGlobalScopeModulesCons tructors.idl", | |
| 195 root_build_dir), | |
| 196 "ServiceWorkerGlobalScope", | |
| 197 rebase_path("$blink_modules_output_dir/ServiceWorkerGlobalScopeModulesConstr uctors.idl", | |
| 198 root_build_dir), | |
| 199 ] | |
| 200 | |
| 201 deps = [ ":modules_global_objects" ] | |
| 202 } | |
| OLD | NEW |