OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
6 | 6 |
7 action("precompile_templates") { | 7 action("precompile_templates") { |
8 sources = mojom_generator_sources | 8 sources = mojom_generator_sources |
9 sources += [ | 9 sources += [ |
10 "$mojom_generator_root/generators/cpp_templates/enum_macros.tmpl", | 10 "$mojom_generator_root/generators/cpp_templates/enum_macros.tmpl", |
(...skipping 14 matching lines...) Expand all Loading... |
25 "$mojom_generator_root/generators/cpp_templates/struct_macros.tmpl", | 25 "$mojom_generator_root/generators/cpp_templates/struct_macros.tmpl", |
26 "$mojom_generator_root/generators/cpp_templates/struct_serialization_declara
tion.tmpl", | 26 "$mojom_generator_root/generators/cpp_templates/struct_serialization_declara
tion.tmpl", |
27 "$mojom_generator_root/generators/cpp_templates/struct_serialization_definit
ion.tmpl", | 27 "$mojom_generator_root/generators/cpp_templates/struct_serialization_definit
ion.tmpl", |
28 "$mojom_generator_root/generators/cpp_templates/union_declaration.tmpl", | 28 "$mojom_generator_root/generators/cpp_templates/union_declaration.tmpl", |
29 "$mojom_generator_root/generators/cpp_templates/union_definition.tmpl", | 29 "$mojom_generator_root/generators/cpp_templates/union_definition.tmpl", |
30 "$mojom_generator_root/generators/cpp_templates/union_serialization_declarat
ion.tmpl", | 30 "$mojom_generator_root/generators/cpp_templates/union_serialization_declarat
ion.tmpl", |
31 "$mojom_generator_root/generators/cpp_templates/union_serialization_definiti
on.tmpl", | 31 "$mojom_generator_root/generators/cpp_templates/union_serialization_definiti
on.tmpl", |
32 "$mojom_generator_root/generators/cpp_templates/validation_macros.tmpl", | 32 "$mojom_generator_root/generators/cpp_templates/validation_macros.tmpl", |
33 "$mojom_generator_root/generators/cpp_templates/wrapper_class_declaration.tm
pl", | 33 "$mojom_generator_root/generators/cpp_templates/wrapper_class_declaration.tm
pl", |
34 "$mojom_generator_root/generators/cpp_templates/wrapper_class_definition.tmp
l", | 34 "$mojom_generator_root/generators/cpp_templates/wrapper_class_definition.tmp
l", |
| 35 "$mojom_generator_root/generators/cpp_templates/wrapper_class_template_defin
ition.tmpl", |
35 "$mojom_generator_root/generators/cpp_templates/wrapper_union_class_declarat
ion.tmpl", | 36 "$mojom_generator_root/generators/cpp_templates/wrapper_union_class_declarat
ion.tmpl", |
36 "$mojom_generator_root/generators/cpp_templates/wrapper_union_class_definiti
on.tmpl", | 37 "$mojom_generator_root/generators/cpp_templates/wrapper_union_class_definiti
on.tmpl", |
| 38 "$mojom_generator_root/generators/cpp_templates/wrapper_union_class_template
_definition.tmpl", |
37 "$mojom_generator_root/generators/java_templates/constant_definition.tmpl", | 39 "$mojom_generator_root/generators/java_templates/constant_definition.tmpl", |
38 "$mojom_generator_root/generators/java_templates/constants.java.tmpl", | 40 "$mojom_generator_root/generators/java_templates/constants.java.tmpl", |
39 "$mojom_generator_root/generators/java_templates/data_types_definition.tmpl"
, | 41 "$mojom_generator_root/generators/java_templates/data_types_definition.tmpl"
, |
40 "$mojom_generator_root/generators/java_templates/enum.java.tmpl", | 42 "$mojom_generator_root/generators/java_templates/enum.java.tmpl", |
41 "$mojom_generator_root/generators/java_templates/enum_definition.tmpl", | 43 "$mojom_generator_root/generators/java_templates/enum_definition.tmpl", |
42 "$mojom_generator_root/generators/java_templates/header.java.tmpl", | 44 "$mojom_generator_root/generators/java_templates/header.java.tmpl", |
43 "$mojom_generator_root/generators/java_templates/interface.java.tmpl", | 45 "$mojom_generator_root/generators/java_templates/interface.java.tmpl", |
44 "$mojom_generator_root/generators/java_templates/interface_definition.tmpl", | 46 "$mojom_generator_root/generators/java_templates/interface_definition.tmpl", |
45 "$mojom_generator_root/generators/java_templates/interface_internal.java.tmp
l", | 47 "$mojom_generator_root/generators/java_templates/interface_internal.java.tmp
l", |
46 "$mojom_generator_root/generators/java_templates/struct.java.tmpl", | 48 "$mojom_generator_root/generators/java_templates/struct.java.tmpl", |
(...skipping 12 matching lines...) Expand all Loading... |
59 "$target_gen_dir/java_templates.zip", | 61 "$target_gen_dir/java_templates.zip", |
60 "$target_gen_dir/js_templates.zip", | 62 "$target_gen_dir/js_templates.zip", |
61 ] | 63 ] |
62 args = [ | 64 args = [ |
63 "--use_bundled_pylibs", | 65 "--use_bundled_pylibs", |
64 "precompile", | 66 "precompile", |
65 "-o", | 67 "-o", |
66 rebase_path(target_gen_dir), | 68 rebase_path(target_gen_dir), |
67 ] | 69 ] |
68 } | 70 } |
OLD | NEW |