Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: mojo/public/tools/bindings/mojom_bindings_generator.gypi

Issue 312643003: Generate java bindings for constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 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 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 { 5 {
6 'rules': [ 6 'rules': [
7 { 7 {
8 'rule_name': 'Generate C++ source files from mojom files', 8 'rule_name': 'Generate C++, JS and Java source files from mojom files',
9 'extension': 'mojom', 9 'extension': 'mojom',
10 'variables': { 10 'variables': {
11 'mojom_base_output_dir': 11 'mojom_base_output_dir':
12 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', 12 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))',
13 'mojom_bindings_generator': 13 'mojom_bindings_generator':
14 '<(DEPTH)/mojo/public/tools/bindings/mojom_bindings_generator.py', 14 '<(DEPTH)/mojo/public/tools/bindings/mojom_bindings_generator.py',
15 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
15 }, 16 },
16 'inputs': [ 17 'inputs': [
17 '<(mojom_bindings_generator)', 18 '<(mojom_bindings_generator)',
18 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/enum_decla ration.tmpl', 19 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/enum_decla ration.tmpl',
19 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ declaration.tmpl', 20 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ declaration.tmpl',
20 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ definition.tmpl', 21 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ definition.tmpl',
21 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ macros.tmpl', 22 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ macros.tmpl',
22 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ proxy_declaration.tmpl', 23 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ proxy_declaration.tmpl',
23 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ request_validator_declaration.tmpl', 24 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ request_validator_declaration.tmpl',
24 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ response_validator_declaration.tmpl', 25 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ response_validator_declaration.tmpl',
25 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ stub_declaration.tmpl', 26 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ stub_declaration.tmpl',
26 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.cc. tmpl', 27 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.cc. tmpl',
27 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.h.t mpl', 28 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.h.t mpl',
28 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module-int ernal.h.tmpl', 29 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module-int ernal.h.tmpl',
29 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/params_def inition.tmpl', 30 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/params_def inition.tmpl',
30 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_dec laration.tmpl', 31 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_dec laration.tmpl',
31 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_def inition.tmpl', 32 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_def inition.tmpl',
32 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_mac ros.tmpl', 33 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_mac ros.tmpl',
33 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_ser ialization_declaration.tmpl', 34 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_ser ialization_declaration.tmpl',
34 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_ser ialization_definition.tmpl', 35 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_ser ialization_definition.tmpl',
35 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/wrapper_cl ass_declaration.tmpl', 36 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/wrapper_cl ass_declaration.tmpl',
36 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/wrapper_cl ass_definition.tmpl', 37 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/wrapper_cl ass_definition.tmpl',
38 '<(DEPTH)/mojo/public/tools/bindings/generators/java_templates/constant_ definition.tmpl',
39 '<(DEPTH)/mojo/public/tools/bindings/generators/java_templates/constants .java.tmpl',
40 '<(DEPTH)/mojo/public/tools/bindings/generators/java_templates/header.ja va.tmpl',
41 '<(DEPTH)/mojo/public/tools/bindings/generators/java_templates/java_macr os.tmpl',
37 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/enum_defini tion.tmpl', 42 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/enum_defini tion.tmpl',
38 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/interface_d efinition.tmpl', 43 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/interface_d efinition.tmpl',
39 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/module.js.t mpl', 44 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/module.js.t mpl',
40 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/struct_defi nition.tmpl', 45 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/struct_defi nition.tmpl',
41 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_cpp_generator.py', 46 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_cpp_generator.py',
47 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_java_generator.py' ,
42 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_js_generator.py', 48 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_js_generator.py',
43 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/__init__.py', 49 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/__init__.py',
44 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/error.py', 50 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/error.py',
45 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/__init__.py', 51 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/__init__.py',
46 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/data.py', 52 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/data.py',
47 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/generator.py', 53 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/generator.py',
48 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/module.py', 54 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/module.py',
49 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/pack.py', 55 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/pack.py',
50 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/template_expan der.py', 56 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/template_expan der.py',
51 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/__init__.py', 57 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/__init__.py',
52 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/ast.py', 58 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/ast.py',
53 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py', 59 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py',
54 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/parser.py', 60 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/parser.py',
55 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/translate.py', 61 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/translate.py',
56 ], 62 ],
57 'outputs': [ 63 'outputs': [
58 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.cc', 64 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.cc',
59 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.h', 65 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.h',
60 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.js', 66 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.js',
61 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom-internal.h', 67 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom-internal.h',
62 ], 68 ],
63 'action': [ 69 'action': [
64 'python', '<@(mojom_bindings_generator)', 70 'python', '<@(mojom_bindings_generator)',
65 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom', 71 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom',
66 '--use_chromium_bundled_pylibs', 72 '--use_chromium_bundled_pylibs',
67 '-d', '<(DEPTH)', 73 '-d', '<(DEPTH)',
68 '-o', '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_ DIRNAME)', 74 '-o', '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_ DIRNAME)',
75 '--java_output_directory=<(java_out_dir)',
69 ], 76 ],
70 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP UT_ROOT).mojom', 77 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP UT_ROOT).mojom',
71 'process_outputs_as_sources': 1, 78 'process_outputs_as_sources': 1,
72 } 79 }
73 ], 80 ],
74 'include_dirs': [ 81 'include_dirs': [
75 '<(DEPTH)', 82 '<(DEPTH)',
76 '<(SHARED_INTERMEDIATE_DIR)', 83 '<(SHARED_INTERMEDIATE_DIR)',
77 ], 84 ],
78 'direct_dependent_settings': { 85 'direct_dependent_settings': {
79 'include_dirs': [ 86 'include_dirs': [
80 '<(DEPTH)', 87 '<(DEPTH)',
81 '<(SHARED_INTERMEDIATE_DIR)', 88 '<(SHARED_INTERMEDIATE_DIR)',
82 ], 89 ],
90 'variables': {
91 'generated_src_dirs': [
92 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
93 ],
94 },
83 }, 95 },
84 'hard_dependency': 1, 96 'hard_dependency': 1,
85 } 97 }
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/generators/mojom_java_generator.py ('k') | mojo/public/tools/bindings/mojom_bindings_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698