OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'variables': { | 6 'variables': { |
7 # When including this gypi, the following variables must be set: | 7 # When including this gypi, the following variables must be set: |
8 # json_schema_files: an array of json files that comprise the api model. | 8 # json_schema_files: an array of json files that comprise the api model. |
9 # cc_dir: path to generated files | 9 # cc_dir: path to generated files |
10 # root_namespace: the C++ namespace that all generated files go under | 10 # root_namespace: the C++ namespace that all generated files go under |
(...skipping 21 matching lines...) Expand all Loading... | |
32 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc', | 32 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc', |
33 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h', | 33 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h', |
34 ], | 34 ], |
35 'action': [ | 35 'action': [ |
36 'python', | 36 'python', |
37 '<(api_gen)', | 37 '<(api_gen)', |
38 '<(RULE_INPUT_PATH)', | 38 '<(RULE_INPUT_PATH)', |
39 '--root=<(DEPTH)', | 39 '--root=<(DEPTH)', |
40 '--destdir=<(SHARED_INTERMEDIATE_DIR)', | 40 '--destdir=<(SHARED_INTERMEDIATE_DIR)', |
41 '--namespace=<(root_namespace)', | 41 '--namespace=<(root_namespace)', |
42 '<@(json_schema_files)', | |
not at google - send to devlin
2012/02/24 03:53:05
what's this change for?
the comment up the top st
calamity
2012/02/24 15:10:40
Now that we use dependencies, no need to pass in a
| |
43 ], | 42 ], |
44 'message': 'Generating C++ code from <(RULE_INPUT_PATH) jsons', | 43 'message': 'Generating C++ code from <(RULE_INPUT_PATH) jsons', |
45 'process_outputs_as_sources': 1, | 44 'process_outputs_as_sources': 1, |
46 }, | 45 }, |
47 ], | 46 ], |
48 'include_dirs': [ | 47 'include_dirs': [ |
49 '<(SHARED_INTERMEDIATE_DIR)', | 48 '<(SHARED_INTERMEDIATE_DIR)', |
50 '<(DEPTH)', | 49 '<(DEPTH)', |
51 ], | 50 ], |
52 'dependencies':[ | 51 'dependencies':[ |
53 '<(DEPTH)/tools/json_schema_compiler/api_gen_util.gyp:api_gen_util', | 52 '<(DEPTH)/tools/json_schema_compiler/api_gen_util.gyp:api_gen_util', |
54 ], | 53 ], |
55 'direct_dependent_settings': { | 54 'direct_dependent_settings': { |
56 'include_dirs': [ | 55 'include_dirs': [ |
57 '<(SHARED_INTERMEDIATE_DIR)', | 56 '<(SHARED_INTERMEDIATE_DIR)', |
58 ] | 57 ] |
59 }, | 58 }, |
60 # This target exports a hard dependency because it generates header | 59 # This target exports a hard dependency because it generates header |
61 # files. | 60 # files. |
62 'hard_dependency': 1, | 61 'hard_dependency': 1, |
63 } | 62 } |
OLD | NEW |