| OLD | NEW |
| (Empty) |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 { | |
| 6 'rules': [ | |
| 7 { | |
| 8 'rule_name': 'Generate C++ source files from mojom files', | |
| 9 'extension': 'mojom', | |
| 10 'variables': { | |
| 11 # TODO(sky): uncomment this once gyp bug fixed and remove explicit | |
| 12 # setting everywhere | |
| 13 # 'mojom_base_output_dir': | |
| 14 # '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', | |
| 15 'mojom_bindings_generator': | |
| 16 '<(DEPTH)/mojo/public/bindings/mojom_bindings_generator.py', | |
| 17 }, | |
| 18 'inputs': [ | |
| 19 '<(mojom_bindings_generator)', | |
| 20 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/enum_declaration
.tmpl', | |
| 21 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/interface_declar
ation.tmpl', | |
| 22 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/interface_defini
tion.tmpl', | |
| 23 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/interface_macros
.tmpl', | |
| 24 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/interface_proxy_
declaration.tmpl', | |
| 25 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/interface_stub_d
eclaration.tmpl', | |
| 26 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/module.cc.tmpl', | |
| 27 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/module.h.tmpl', | |
| 28 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/module-internal.
h.tmpl', | |
| 29 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/params_definitio
n.tmpl', | |
| 30 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/struct_builder_d
efinition.tmpl', | |
| 31 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/struct_declarati
on.tmpl', | |
| 32 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/struct_definitio
n.tmpl', | |
| 33 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/struct_destructo
r.tmpl', | |
| 34 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/struct_macros.tm
pl', | |
| 35 '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/wrapper_class_de
claration.tmpl', | |
| 36 '<(DEPTH)/mojo/public/bindings/generators/js_templates/enum_definition.t
mpl', | |
| 37 '<(DEPTH)/mojo/public/bindings/generators/js_templates/interface_definit
ion.tmpl', | |
| 38 '<(DEPTH)/mojo/public/bindings/generators/js_templates/module.js.tmpl', | |
| 39 '<(DEPTH)/mojo/public/bindings/generators/js_templates/struct_definition
.tmpl', | |
| 40 '<(DEPTH)/mojo/public/bindings/generators/mojom_cpp_generator.py', | |
| 41 '<(DEPTH)/mojo/public/bindings/generators/mojom_js_generator.py', | |
| 42 '<(DEPTH)/mojo/public/bindings/pylib/parse/__init__.py', | |
| 43 '<(DEPTH)/mojo/public/bindings/pylib/parse/mojo_lexer.py', | |
| 44 '<(DEPTH)/mojo/public/bindings/pylib/parse/mojo_parser.py', | |
| 45 '<(DEPTH)/mojo/public/bindings/pylib/parse/mojo_translate.py', | |
| 46 '<(DEPTH)/mojo/public/bindings/pylib/generate/__init__.py', | |
| 47 '<(DEPTH)/mojo/public/bindings/pylib/generate/mojom.py', | |
| 48 '<(DEPTH)/mojo/public/bindings/pylib/generate/mojom_data.py', | |
| 49 '<(DEPTH)/mojo/public/bindings/pylib/generate/mojom_generator.py', | |
| 50 '<(DEPTH)/mojo/public/bindings/pylib/generate/mojom_pack.py', | |
| 51 '<(DEPTH)/mojo/public/bindings/pylib/generate/template_expander.py', | |
| 52 ], | |
| 53 'outputs': [ | |
| 54 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom.cc', | |
| 55 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom.h', | |
| 56 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom.js', | |
| 57 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM
E)/<(RULE_INPUT_ROOT).mojom-internal.h', | |
| 58 ], | |
| 59 'action': [ | |
| 60 'python', '<@(mojom_bindings_generator)', | |
| 61 '<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom', | |
| 62 '-d', '<(DEPTH)', | |
| 63 '-o', '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_
DIRNAME)', | |
| 64 ], | |
| 65 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP
UT_ROOT).mojom', | |
| 66 'process_outputs_as_sources': 1, | |
| 67 } | |
| 68 ], | |
| 69 'include_dirs': [ | |
| 70 '<(DEPTH)', | |
| 71 '<(SHARED_INTERMEDIATE_DIR)', | |
| 72 ], | |
| 73 'direct_dependent_settings': { | |
| 74 'include_dirs': [ | |
| 75 '<(DEPTH)', | |
| 76 '<(SHARED_INTERMEDIATE_DIR)', | |
| 77 ], | |
| 78 }, | |
| 79 'hard_dependency': 1, | |
| 80 } | |
| OLD | NEW |