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/modules/v8/generated.gni") | 5 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") |
6 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") | 6 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") |
7 import("//third_party/WebKit/Source/modules/modules.gni") | 7 import("//third_party/WebKit/Source/modules/modules.gni") |
8 | 8 |
9 visibility = [ "//third_party/WebKit/*" ] | 9 visibility = [ "//third_party/WebKit/*" ] |
10 | 10 |
| 11 core_idl_with_modules_dependency_files_list = "$target_gen_dir/core_idl_with_mod
ules_dependency_files.tmp" |
| 12 write_file(core_idl_with_modules_dependency_files_list, |
| 13 rebase_path(core_idl_with_modules_dependency_files, root_build_dir)) |
| 14 |
11 # bindings_modules_generated in modules/v8/generated.gyp | 15 # bindings_modules_generated in modules/v8/generated.gyp |
12 group("bindings_modules_generated") { | 16 group("bindings_modules_generated") { |
13 deps = [ | 17 deps = [ |
14 ":bindings_modules_dictionary_impl_generated", | 18 ":bindings_modules_dictionary_impl_generated", |
15 ":bindings_modules_generated_aggregate", | 19 ":bindings_modules_v8_generated_aggregate", |
16 ":bindings_modules_generated_individual", | 20 ":bindings_modules_v8_generated_individual", |
| 21 ":bindings_modules_v8_generated_init_partial", |
| 22 ":bindings_modules_v8_generated_partial_aggregate", |
| 23 ":bindings_modules_v8_generated_partial_individual", |
17 ] | 24 ] |
18 } | 25 } |
19 | 26 |
20 # bindings_modules_generated_aggregate in modules/v8/generated.gyp | 27 # bindings_modules_generated_aggregate in modules/v8/generated.gyp |
21 aggregate_generated_bindings("bindings_modules_generated_aggregate") { | 28 aggregate_generated_bindings("bindings_modules_v8_generated_aggregate") { |
22 sources = modules_definition_idl_files | 29 sources = modules_definition_idl_files |
23 component_dir = "modules" | 30 component_dir = "modules" |
24 outputs = bindings_modules_generated_aggregate_files | 31 outputs = bindings_modules_generated_aggregate_files |
25 } | 32 } |
26 | 33 |
27 # bindings_modules_generated_individual in modules/v8/generated.gyp | 34 # bindings_modules_generated_individual in modules/v8/generated.gyp |
28 idl_compiler("bindings_modules_generated_individual") { | 35 idl_compiler("bindings_modules_v8_generated_individual") { |
29 # Note in GYP this is modules_interface_idl_files but this variable is just | 36 # Note in GYP this is modules_interface_idl_files but this variable is just |
30 # defined to modules_definition_idl_files. | 37 # defined to modules_definition_idl_files. |
31 sources = modules_definition_idl_files | 38 sources = modules_definition_idl_files |
32 output_dir = bindings_modules_v8_output_dir | 39 output_dir = bindings_modules_v8_output_dir |
| 40 output_name_suffix = "" |
| 41 target_component = "modules" |
33 } | 42 } |
34 | 43 |
35 # bindings_modules_dictionary_impl_generated in modules/v8/generated.gyp | 44 # bindings_modules_dictionary_impl_generated in modules/v8/generated.gyp |
36 idl_dictionary("bindings_modules_dictionary_impl_generated") { | 45 idl_dictionary("bindings_modules_dictionary_impl_generated") { |
37 sources = modules_dictionary_idl_files | 46 sources = modules_dictionary_idl_files |
38 outputs = generated_modules_dictionary_files | 47 outputs = generated_modules_dictionary_files |
39 } | 48 } |
| 49 |
| 50 # bindings_modules_generated_individual in modules/v8/generated.gyp |
| 51 idl_compiler("bindings_modules_v8_generated_partial_individual") { |
| 52 # Note in GYP this is modules_interface_idl_files but this variable is just |
| 53 # defined to modules_definition_idl_files. |
| 54 sources = core_idl_with_modules_dependency_files + webcore_testing_idl_with_mo
dules_dependency_files |
| 55 output_dir = bindings_modules_v8_output_dir |
| 56 output_name_suffix = "Partial" |
| 57 target_component = "modules" |
| 58 } |
| 59 |
| 60 # bindings_modules_generated_aggregate in modules/v8/generated.gyp |
| 61 aggregate_generated_bindings("bindings_modules_v8_generated_partial_aggregate")
{ |
| 62 sources = core_idl_with_modules_dependency_files |
| 63 component_dir = "modules" |
| 64 outputs = bindings_modules_generated_partial_aggregate_files |
| 65 } |
| 66 |
| 67 # GYP version: Source/bindings/modules/v8/generated.gyp:bindings_modules_v8_gene
rated_init_partial |
| 68 action("bindings_modules_v8_generated_init_partial") { |
| 69 script = "$bindings_scripts_dir/generate_init_partial_interfaces.py" |
| 70 |
| 71 inputs = [ |
| 72 core_idl_with_modules_dependency_files_list, |
| 73 "$bindings_modules_output_dir/InterfacesInfoModules.pickle", |
| 74 ] |
| 75 outputs = [ bindings_modules_generated_init_partial_interfaces_file ] |
| 76 |
| 77 args = [ |
| 78 "--idl-files-list", |
| 79 rebase_path(core_idl_with_modules_dependency_files_list, root_build_dir), |
| 80 "--output", |
| 81 rebase_path(bindings_modules_generated_init_partial_interfaces_file, root_bu
ild_dir), |
| 82 "--write-file-only-if-changed=1", |
| 83 ] |
| 84 |
| 85 deps = [ |
| 86 "//third_party/WebKit/Source/bindings/modules:interfaces_info", |
| 87 ] |
| 88 } |
| 89 |
OLD | NEW |