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

Side by Side Diff: build/mojom_bindings_generator.gypi

Issue 53173008: Add mojom_bindings_generator.gypi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing gypi file Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | mojo/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « no previous file | mojo/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698