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

Side by Side Diff: build/api_gen.gypi

Issue 9114036: Code generation for extensions api (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added generated files, removed trailing whitespace Created 8 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright (c) 2011 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 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler',
not at google - send to devlin 2012/01/12 06:01:05 you'll need to rename this file json_schema_compil
calamity 2012/01/12 22:59:20 Done.
8 'api_gen': '<(api_gen_dir)/compiler.py',
9 },
10 'rules': [
11 {
12 'rule_name': 'genapi',
13 'extension': 'json',
14 'inputs': [
15 '<(api_gen_dir)/code.py',
16 '<(api_gen_dir)/compiler.py',
17 '<(api_gen_dir)/model.py',
18 '<(api_gen_dir)/generate_cc.py',
19 '<(api_gen_dir)/generate_h.py',
20 '<@(json_schema_files)',
21 ],
22 'outputs': [
23 '<(cc_dir)/<(RULE_INPUT_ROOT)_api.cc',
24 '<(cc_dir)/<(RULE_INPUT_ROOT)_api.h',
25 ],
26 'action': [
27 'python',
28 '<(api_gen)',
29 '<(RULE_INPUT_PATH)',
30 '--root=<(DEPTH)',
31 '--destdir=<(cc_root)',
32 '--namespace=<(root_namespace)',
33 '<@(json_schema_files)',
34 ],
35 'message': 'Generating C++ code from <(RULE_INPUT_PATH) jsons',
36 'process_outputs_as_sources': 1,
37 },
38 ],
39 'include_dirs': [
40 '<(cc_root)',
41 '<(DEPTH)',
42 ],
43 'dependencies':[
44 '<(DEPTH)/tools/json_schema_compiler/api_gen_util.gyp:api_gen_util',
45 ],
46 'direct_dependent_settings': {
47 'include_dirs': [
48 '<(cc_root)',
49 ]
50 },
51 # This target exports a hard dependency because it generates header
52 # files.
53 'hard_dependency': 1,
54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698