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

Unified Diff: mojo/public/bindings/mojom_bindings_generator.gypi

Issue 177183002: Mojo: Include "path/to/foo.mojom.h" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary abspath Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/bindings/mojom_bindings_generator.gypi
diff --git a/mojo/public/bindings/mojom_bindings_generator.gypi b/mojo/public/bindings/mojom_bindings_generator.gypi
index c72b9c0cd6dcd859142fe9610588d60d28d161dd..2b7554a4209caf7b1a2843d0f639fef9f85e457b 100644
--- a/mojo/public/bindings/mojom_bindings_generator.gypi
+++ b/mojo/public/bindings/mojom_bindings_generator.gypi
@@ -3,14 +3,13 @@
# found in the LICENSE file.
{
- 'variables': {
- 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/mojom',
- },
'rules': [
{
'rule_name': 'Generate C++ source files from mojom files',
'extension': 'mojom',
'variables': {
+ 'mojom_base_output_dir':
+ '<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))',
'mojom_bindings_generator':
'<(DEPTH)/mojo/public/bindings/mojom_bindings_generator.py',
},
@@ -23,7 +22,7 @@
'<(DEPTH)/mojo/public/bindings/generators/cpp_templates/interface_stub_declaration.tmpl',
'<(DEPTH)/mojo/public/bindings/generators/cpp_templates/module.cc.tmpl',
'<(DEPTH)/mojo/public/bindings/generators/cpp_templates/module.h.tmpl',
- '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/module_internal.h.tmpl',
+ '<(DEPTH)/mojo/public/bindings/generators/cpp_templates/module-internal.h.tmpl',
'<(DEPTH)/mojo/public/bindings/generators/cpp_templates/params_definition.tmpl',
'<(DEPTH)/mojo/public/bindings/generators/cpp_templates/struct_builder_definition.tmpl',
'<(DEPTH)/mojo/public/bindings/generators/cpp_templates/struct_declaration.tmpl',
@@ -49,18 +48,18 @@
'<(DEPTH)/mojo/public/bindings/pylib/generate/template_expander.py',
],
'outputs': [
- '<(output_dir)/<(RULE_INPUT_ROOT).cc',
- '<(output_dir)/<(RULE_INPUT_ROOT).h',
- '<(output_dir)/<(RULE_INPUT_ROOT).js',
- '<(output_dir)/<(RULE_INPUT_ROOT)_internal.h',
+ '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_PATH).cc',
+ '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_PATH).h',
+ '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_PATH).js',
+ '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_PATH)-internal.h',
],
'action': [
'python', '<@(mojom_bindings_generator)',
'<(RULE_INPUT_PATH)',
- '-i', 'mojom',
- '-o', '<(output_dir)',
+ '-d', '<(DEPTH)',
+ '-o', '<(SHARED_INTERMEDIATE_DIR)/<(mojom_base_output_dir)/<(RULE_INPUT_DIRNAME)',
],
- 'message': 'Generating C++ from mojom <(RULE_INPUT_PATH)',
+ 'message': 'Generating C++ from <(RULE_INPUT_PATH)',
'process_outputs_as_sources': 1,
}
],
« no previous file with comments | « mojo/public/bindings/generators/mojom_cpp_generator.py ('k') | mojo/public/bindings/mojom_bindings_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698