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

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

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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
(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/tools/bindings/mojom_bindings_generator.py',
17 },
18 'inputs': [
19 '<(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/interface_ declaration.tmpl',
22 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ definition.tmpl',
23 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ macros.tmpl',
24 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/interface_ proxy_declaration.tmpl',
25 '<(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.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/params_def inition.tmpl',
30 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_bui lder_definition.tmpl',
31 '<(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',
33 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_des tructor.tmpl',
34 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/struct_mac ros.tmpl',
35 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/wrapper_cl ass_declaration.tmpl',
36 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/enum_defini tion.tmpl',
37 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/interface_d efinition.tmpl',
38 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/module.js.t mpl',
39 '<(DEPTH)/mojo/public/tools/bindings/generators/js_templates/struct_defi nition.tmpl',
40 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_cpp_generator.py',
41 '<(DEPTH)/mojo/public/tools/bindings/generators/mojom_js_generator.py',
42 '<(DEPTH)/mojo/public/tools/bindings/pylib/parse/__init__.py',
43 '<(DEPTH)/mojo/public/tools/bindings/pylib/parse/mojo_lexer.py',
44 '<(DEPTH)/mojo/public/tools/bindings/pylib/parse/mojo_parser.py',
45 '<(DEPTH)/mojo/public/tools/bindings/pylib/parse/mojo_translate.py',
46 '<(DEPTH)/mojo/public/tools/bindings/pylib/generate/__init__.py',
47 '<(DEPTH)/mojo/public/tools/bindings/pylib/generate/mojom.py',
48 '<(DEPTH)/mojo/public/tools/bindings/pylib/generate/mojom_data.py',
49 '<(DEPTH)/mojo/public/tools/bindings/pylib/generate/mojom_generator.py',
50 '<(DEPTH)/mojo/public/tools/bindings/pylib/generate/mojom_pack.py',
51 '<(DEPTH)/mojo/public/tools/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 }
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/generators/run_cpp_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