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

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

Issue 311643002: Revert 274278 "Generate java bindings for constants." (Closed) Base URL: svn://svn.chromium.org/chrome/
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++, JS and Java source files from mojom files', 8 'rule_name': 'Generate C++ 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',
16 }, 15 },
17 'inputs': [ 16 'inputs': [
18 '<(mojom_bindings_generator)', 17 '<(mojom_bindings_generator)',
19 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/enum_decla ration.tmpl', 18 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/enum_decla ration.tmpl',
20 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ declaration.tmpl', 19 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ declaration.tmpl',
21 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ definition.tmpl', 20 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ definition.tmpl',
22 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ macros.tmpl', 21 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ macros.tmpl',
23 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ proxy_declaration.tmpl', 22 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ proxy_declaration.tmpl',
24 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ request_validator_declaration.tmpl', 23 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ request_validator_declaration.tmpl',
25 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ response_validator_declaration.tmpl', 24 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ response_validator_declaration.tmpl',
26 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ stub_declaration.tmpl', 25 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ stub_declaration.tmpl',
27 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.cc. tmpl', 26 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.cc. tmpl',
28 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.h.t mpl', 27 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module.h.t mpl',
29 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module-int ernal.h.tmpl', 28 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/module-int ernal.h.tmpl',
30 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/params_def inition.tmpl', 29 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/params_def inition.tmpl',
31 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_dec laration.tmpl', 30 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_dec laration.tmpl',
32 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_def inition.tmpl', 31 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_def inition.tmpl',
33 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_mac ros.tmpl', 32 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_mac ros.tmpl',
34 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_ser ialization_declaration.tmpl', 33 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_ser ialization_declaration.tmpl',
35 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_ser ialization_definition.tmpl', 34 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_ser ialization_definition.tmpl',
36 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/wrapper_cl ass_declaration.tmpl', 35 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/wrapper_cl ass_declaration.tmpl',
37 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/wrapper_cl ass_definition.tmpl', 36 '<(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',
42 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/enum_defini tion.tmpl', 37 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/enum_defini tion.tmpl',
43 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/interface_d efinition.tmpl', 38 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/interface_d efinition.tmpl',
44 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/module.js.t mpl', 39 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/module.js.t mpl',
45 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/struct_defi nition.tmpl', 40 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/struct_defi nition.tmpl',
46 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_cpp_generator.py', 41 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_cpp_generator.py',
47 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_java_generator.py' ,
48 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_js_generator.py', 42 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_js_generator.py',
49 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/__init__.py', 43 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/__init__.py',
50 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/error.py', 44 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/error.py',
51 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/__init__.py', 45 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/__init__.py',
52 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/data.py', 46 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/data.py',
53 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/generator.py', 47 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/generator.py',
54 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/module.py', 48 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/module.py',
55 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/pack.py', 49 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/pack.py',
56 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/template_expan der.py', 50 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/template_expan der.py',
57 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/__init__.py', 51 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/__init__.py',
58 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/ast.py', 52 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/ast.py',
59 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py', 53 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py',
60 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/parser.py', 54 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/parser.py',
61 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/translate.py', 55 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/translate.py',
62 ], 56 ],
63 'outputs': [ 57 'outputs': [
64 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.cc', 58 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.cc',
65 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.h', 59 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.h',
66 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.js', 60 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.js',
67 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom-internal.h', 61 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom-internal.h',
68 ], 62 ],
69 'action': [ 63 'action': [
70 'python', '<@(mojom_bindings_generator)', 64 'python', '<@(mojom_bindings_generator)',
71 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom', 65 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom',
72 '--use_chromium_bundled_pylibs', 66 '--use_chromium_bundled_pylibs',
73 '-d', '<(DEPTH)', 67 '-d', '<(DEPTH)',
74 '-o', '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_ DIRNAME)', 68 '-o', '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_ DIRNAME)',
75 '--java_output_directory=<(java_out_dir)',
76 ], 69 ],
77 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP UT_ROOT).mojom', 70 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP UT_ROOT).mojom',
78 'process_outputs_as_sources': 1, 71 'process_outputs_as_sources': 1,
79 } 72 }
80 ], 73 ],
81 'include_dirs': [ 74 'include_dirs': [
82 '<(DEPTH)', 75 '<(DEPTH)',
83 '<(SHARED_INTERMEDIATE_DIR)', 76 '<(SHARED_INTERMEDIATE_DIR)',
84 ], 77 ],
85 'direct_dependent_settings': { 78 'direct_dependent_settings': {
86 'include_dirs': [ 79 'include_dirs': [
87 '<(DEPTH)', 80 '<(DEPTH)',
88 '<(SHARED_INTERMEDIATE_DIR)', 81 '<(SHARED_INTERMEDIATE_DIR)',
89 ], 82 ],
90 'variables': {
91 'generated_src_dirs': [
92 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
93 ],
94 },
95 }, 83 },
96 'hard_dependency': 1, 84 'hard_dependency': 1,
97 } 85 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698