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

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

Issue 665083008: Refactor bindings generation in GYP (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase2 Created 6 years, 1 month 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
« no previous file with comments | « mojo/public/mojo_public.gyp ('k') | mojo/public/tools/bindings/mojom_list_outputs.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'variables': {
7 'mojom_base_output_dir':
8 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))',
9 'mojom_generated_outputs': [
10 '<!@(python <(DEPTH)/mojo/public/tools/bindings/mojom_list_outputs.py --ba sedir <(mojom_base_output_dir) <@(mojom_files))',
11 ],
12 },
13 'actions': [
7 { 14 {
8 'rule_name': '<(_target_name)_mojom_bindings_generator', 15 'action_name': '<(_target_name)_mojom_bindings_generator',
9 'extension': 'mojom',
10 'variables': { 16 'variables': {
11 'mojom_base_output_dir':
12 '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))',
13 'mojom_bindings_generator': 17 'mojom_bindings_generator':
14 '<(DEPTH)/mojo/public/tools/bindings/mojom_bindings_generator.py', 18 '<(DEPTH)/mojo/public/tools/bindings/mojom_bindings_generator.py',
15 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', 19 'java_out_dir': '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
16 'mojom_import_args%': [ 20 'mojom_import_args%': [
17 '-I<(DEPTH)' 21 '-I<(DEPTH)'
18 ], 22 ],
19 }, 23 },
20 'inputs': [ 24 'inputs': [
21 '<(mojom_bindings_generator)', 25 '<(mojom_bindings_generator)',
22 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/enum_decla ration.tmpl', 26 '<(DEPTH)/mojo/public/tools/bindings/generators/cpp_templates/enum_decla ration.tmpl',
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/module.py', 72 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/module.py',
69 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/pack.py', 73 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/pack.py',
70 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/template_expan der.py', 74 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/generate/template_expan der.py',
71 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/__init__.py', 75 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/__init__.py',
72 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/ast.py', 76 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/ast.py',
73 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py', 77 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py',
74 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/parser.py', 78 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/parser.py',
75 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/translate.py', 79 '<(DEPTH)/mojo/public/tools/bindings/pylib/mojom/parse/translate.py',
76 ], 80 ],
77 'outputs': [ 81 'outputs': [
78 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.cc', 82 '<@(mojom_generated_outputs)',
79 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.h',
80 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom.js',
81 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT)_mojom.py',
82 '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAM E)/<(RULE_INPUT_ROOT).mojom-internal.h',
83 ], 83 ],
84 'action': [ 84 'action': [
85 'python', '<@(mojom_bindings_generator)', 85 'python', '<@(mojom_bindings_generator)',
86 './<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).mojom', 86 '<@(mojom_files)',
87 '--use_chromium_bundled_pylibs', 87 '--use_chromium_bundled_pylibs',
88 '-d', '<(DEPTH)', 88 '-d', '<(DEPTH)',
89 '<@(mojom_import_args)', 89 '<@(mojom_import_args)',
90 '-o', '<(SHARED_INTERMEDIATE_DIR)', 90 '-o', '<(SHARED_INTERMEDIATE_DIR)',
91 '--java_output_directory=<(java_out_dir)', 91 '--java_output_directory=<(java_out_dir)',
92 ], 92 ],
93 'message': 'Generating Mojo bindings from <(RULE_INPUT_DIRNAME)/<(RULE_INP UT_ROOT).mojom', 93 'message': 'Generating Mojo bindings from <@(mojom_files)',
94 'process_outputs_as_sources': 1,
95 } 94 }
96 ], 95 ],
97 'include_dirs': [
98 '<(DEPTH)',
99 '<(SHARED_INTERMEDIATE_DIR)',
100 ],
101 'direct_dependent_settings': { 96 'direct_dependent_settings': {
102 'include_dirs': [
103 '<(DEPTH)',
104 '<(SHARED_INTERMEDIATE_DIR)',
105 ],
106 'variables': { 97 'variables': {
107 'generated_src_dirs': [ 98 'generated_src_dirs': [
108 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', 99 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
109 ], 100 ],
110 }, 101 },
102 'sources': [
103 '<@(mojom_generated_outputs)',
104 ],
105 # Include paths needed to compile the generated sources into a library.
106 'include_dirs': [
107 '<(DEPTH)',
108 '<(SHARED_INTERMEDIATE_DIR)',
109 ],
110 'direct_dependent_settings': {
111 # Include paths needed to find the generated header files and their transi tive
bradn 2014/11/11 23:48:22 >80
112 # dependancies when using the library.
113 'include_dirs': [
114 '<(DEPTH)',
115 '<(SHARED_INTERMEDIATE_DIR)',
116 ],
117 }
111 }, 118 },
112 'hard_dependency': 1, 119 'hard_dependency': 1,
113 } 120 }
OLDNEW
« no previous file with comments | « mojo/public/mojo_public.gyp ('k') | mojo/public/tools/bindings/mojom_list_outputs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698