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

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

Issue 291903003: Generate java bindings for constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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++ source files from mojom files',
rmcilroy 2014/05/20 12:43:29 nit - "Generate C++, JS and Java source files from
qsr 2014/05/20 13:12:45 Done.
9 'extension': 'mojom', 9 'extension': 'mojom',
10 'variables': { 10 'variables': {
11 # TODO(sky): uncomment this once gyp bug fixed and remove explicit 11 # TODO(sky): uncomment this once gyp bug fixed and remove explicit
12 # setting everywhere 12 # setting everywhere
13 # 'mojom_base_output_dir': 13 # 'mojom_base_output_dir':
14 # '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))', 14 # '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))',
15 'mojom_bindings_generator': 15 'mojom_bindings_generator':
16 '<(DEPTH)/mojo/public/tools/bindings/mojom_bindings_generator.py', 16 '<(DEPTH)/mojo/public/tools/bindings/mojom_bindings_generator.py',
17 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
17 }, 18 },
18 'inputs': [ 19 'inputs': [
19 '<(mojom_bindings_generator)', 20 '<(mojom_bindings_generator)',
20 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/enum_decla ration.tmpl', 21 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/enum_decla ration.tmpl',
21 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/enum_trait s.tmpl', 22 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/enum_trait s.tmpl',
22 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ declaration.tmpl', 23 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ declaration.tmpl',
23 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ definition.tmpl', 24 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ definition.tmpl',
24 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ macros.tmpl', 25 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ macros.tmpl',
25 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ proxy_declaration.tmpl', 26 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ proxy_declaration.tmpl',
26 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ request_validator_declaration.tmpl', 27 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ request_validator_declaration.tmpl',
27 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ response_validator_declaration.tmpl', 28 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ response_validator_declaration.tmpl',
28 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ stub_declaration.tmpl', 29 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ stub_declaration.tmpl',
29 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.cc. tmpl', 30 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.cc. tmpl',
30 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.h.t mpl', 31 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.h.t mpl',
31 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module-int ernal.h.tmpl', 32 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module-int ernal.h.tmpl',
32 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/params_def inition.tmpl', 33 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/params_def inition.tmpl',
33 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_bui lder_definition.tmpl', 34 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_bui lder_definition.tmpl',
34 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_dec laration.tmpl', 35 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_dec laration.tmpl',
35 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_def inition.tmpl', 36 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_def inition.tmpl',
36 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_des tructor.tmpl', 37 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_des tructor.tmpl',
37 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_mac ros.tmpl', 38 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_mac ros.tmpl',
38 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/wrapper_cl ass_declaration.tmpl', 39 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/wrapper_cl ass_declaration.tmpl',
40 '<(DEPTH)/mojo/public/tools/bindings/generators/java_templates/constant_ definition.tmpl',
41 '<(DEPTH)/mojo/public/tools/bindings/generators/java_templates/constants .java.tmpl',
42 '<(DEPTH)/mojo/public/tools/bindings/generators/java_templates/header.ja va.tmpl',
43 '<(DEPTH)/mojo/public/tools/bindings/generators/java_templates/java_macr os.tmpl',
39 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/enum_defini tion.tmpl', 44 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/enum_defini tion.tmpl',
40 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/interface_d efinition.tmpl', 45 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/interface_d efinition.tmpl',
41 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/module.js.t mpl', 46 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/module.js.t mpl',
42 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/struct_defi nition.tmpl', 47 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/struct_defi nition.tmpl',
43 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_cpp_generator.py', 48 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_cpp_generator.py',
49 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_java_generator.py' ,
44 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_js_generator.py', 50 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_js_generator.py',
45 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/__init__.py', 51 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/__init__.py',
46 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/error.py', 52 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/error.py',
47 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/__init__.py', 53 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/__init__.py',
48 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/data.py', 54 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/data.py',
49 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/generator.py', 55 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/generator.py',
50 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/module.py', 56 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/module.py',
51 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/pack.py', 57 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/pack.py',
52 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/template_expan der.py', 58 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/template_expan der.py',
53 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/__init__.py', 59 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/__init__.py',
54 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/ast.py', 60 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/ast.py',
55 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py', 61 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py',
56 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/parser.py', 62 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/parser.py',
57 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/translate.py', 63 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/translate.py',
58 ], 64 ],
59 'outputs': [ 65 'outputs': [
60 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.cc', 66 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.cc',
61 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.h', 67 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.h',
62 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.js', 68 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.js',
63 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom-internal.h', 69 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom-internal.h',
64 ], 70 ],
65 'action': [ 71 'action': [
66 'python', '<@(mojom_bindings_generator)', 72 'python', '<@(mojom_bindings_generator)',
67 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom', 73 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom',
68 '--use_chromium_bundled_pylibs', 74 '--use_chromium_bundled_pylibs',
69 '-d', '<(DEPTH)', 75 '-d', '<(DEPTH)',
70 '-o', '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_ DIRNAME)', 76 '-o', '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_ DIRNAME)',
77 '--java_output_directory=<(java_out_dir)',
71 ], 78 ],
72 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP UT_ROOT).mojom', 79 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP UT_ROOT).mojom',
73 'process_outputs_as_sources': 1, 80 'process_outputs_as_sources': 1,
74 } 81 }
75 ], 82 ],
76 'include_dirs': [ 83 'include_dirs': [
77 '<(DEPTH)', 84 '<(DEPTH)',
78 '<(SHARED_INTERMEDIATE_DIR)', 85 '<(SHARED_INTERMEDIATE_DIR)',
79 ], 86 ],
80 'direct_dependent_settings': { 87 'direct_dependent_settings': {
81 'include_dirs': [ 88 'include_dirs': [
82 '<(DEPTH)', 89 '<(DEPTH)',
83 '<(SHARED_INTERMEDIATE_DIR)', 90 '<(SHARED_INTERMEDIATE_DIR)',
84 ], 91 ],
92 'variables': {
93 'generated_src_dirs': [
94 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
95 ],
96 },
85 }, 97 },
86 'hard_dependency': 1, 98 'hard_dependency': 1,
87 } 99 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698