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

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: 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
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': [ 96 # TODO can we nessle direct_dependent_settings inside of direct_dependent_sett ings?
jamesr 2014/10/28 00:54:21 you mean nestle? or nest? 'nessle' isn't a word af
Nick Bray (chromium) 2014/10/28 20:57:24 Done.
98 '<(DEPTH)', 97 'all_dependent_settings': {
jamesr 2014/10/28 00:54:21 yuck, we don't want *everything* downstream to hav
Nick Bray (chromium) 2014/10/28 20:57:24 OK, spent the time to figure out if direct_depende
99 '<(SHARED_INTERMEDIATE_DIR)',
100 ],
101 'direct_dependent_settings': {
102 'include_dirs': [ 98 'include_dirs': [
103 '<(DEPTH)', 99 '<(DEPTH)',
104 '<(SHARED_INTERMEDIATE_DIR)', 100 '<(SHARED_INTERMEDIATE_DIR)',
105 ], 101 ],
102 },
103 'direct_dependent_settings': {
106 'variables': { 104 'variables': {
107 'generated_src_dirs': [ 105 'generated_src_dirs': [
108 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src', 106 '<(PRODUCT_DIR)/java_mojo/<(_target_name)/src',
109 ], 107 ],
110 }, 108 },
109 'sources': [
110 '<@(mojom_generated_outputs)',
111 ],
111 }, 112 },
112 'hard_dependency': 1, 113 'hard_dependency': 1,
113 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698