Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
darin (slow to review)
2013/11/11 17:00:03
nit: 2012 -> 2013
Maybe this file should live und
| |
| 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 'variables': { | |
| 7 'output_dir': '<(SHARED_INTERMEDIATE_DIR)/mojom', | |
| 8 }, | |
| 9 'rules': [ | |
| 10 { | |
| 11 'rule_name': 'Generate C++ source files from mojom files', | |
| 12 'extension': 'mojom', | |
| 13 'variables': { | |
| 14 'mojom_bindings_generator': | |
| 15 '<(DEPTH)/mojo/public/bindings/mojom_bindings_generator.py', | |
| 16 }, | |
| 17 'inputs': [ | |
| 18 '<(mojom_bindings_generator)', | |
| 19 '<(DEPTH)/mojo/public/bindings/parser/mojo_parser.py', | |
| 20 '<(DEPTH)/mojo/public/bindings/parser/mojo_translate.py', | |
| 21 '<(DEPTH)/mojo/public/bindings/generators/mojom.py', | |
| 22 '<(DEPTH)/mojo/public/bindings/generators/mojom_data.py', | |
| 23 '<(DEPTH)/mojo/public/bindings/generators/mojom_pack.py', | |
| 24 '<(DEPTH)/mojo/public/bindings/generators/mojom_cpp_generator.py', | |
| 25 ], | |
| 26 'outputs': [ | |
| 27 '<(output_dir)/<(RULE_INPUT_ROOT).h', | |
| 28 '<(output_dir)/<(RULE_INPUT_ROOT)_internal.h', | |
| 29 '<(output_dir)/<(RULE_INPUT_ROOT).cc', | |
| 30 ], | |
| 31 'action': [ | |
| 32 'python', '<@(mojom_bindings_generator)', | |
| 33 '<(RULE_INPUT_PATH)', | |
| 34 '-i', 'mojom', | |
| 35 '-o', '<(output_dir)', | |
| 36 ], | |
| 37 'message': 'Generating C++ from cpp template <(RULE_INPUT_PATH)', | |
|
darin (slow to review)
2013/11/11 17:00:03
nit: maybe just drop the "cpp template" bit.
| |
| 38 'process_outputs_as_sources': 1, | |
| 39 } | |
| 40 ], | |
| 41 'include_dirs': [ | |
| 42 '<(DEPTH)', | |
| 43 '<(SHARED_INTERMEDIATE_DIR)', | |
| 44 ], | |
| 45 'hard_dependency': 1, | |
| 46 } | |
| OLD | NEW |