OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 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 '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/parse/mojo_parser.py', |
| 20 '<(DEPTH)/mojo/public/bindings/parse/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 mojom <(RULE_INPUT_PATH)', |
| 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 |