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

Side by Side Diff: build/json_schema_compile.gypi

Issue 9114036: Code generation for extensions api (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: more rework 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',
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)/cc_generator.py',
19 '<(api_gen_dir)/h_generator.py',
20 '<(api_gen_dir)/cpp_type_manager.py',
21 '<@(json_schema_files)',
22 ],
23 'outputs': [
24 '<(cc_dir)/<(RULE_INPUT_ROOT)_api.cc',
25 '<(cc_dir)/<(RULE_INPUT_ROOT)_api.h',
26 ],
27 'action': [
28 'python',
29 '<(api_gen)',
30 '<(RULE_INPUT_PATH)',
31 '--root=<(DEPTH)',
32 '--destdir=<(cc_root)',
33 '--namespace=<(root_namespace)',
34 '<@(json_schema_files)',
35 ],
36 'message': 'Generating C++ code from <(RULE_INPUT_PATH) jsons',
37 'process_outputs_as_sources': 1,
38 },
39 ],
40 'include_dirs': [
41 '<(cc_root)',
42 '<(DEPTH)',
43 ],
44 'dependencies':[
45 '<(DEPTH)/tools/json_schema_compiler/api_gen_util.gyp:api_gen_util',
46 ],
47 'direct_dependent_settings': {
48 'include_dirs': [
49 '<(cc_root)',
50 ]
51 },
52 # This target exports a hard dependency because it generates header
53 # files.
54 'hard_dependency': 1,
55 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_permissions_api.cc » ('j') | tools/json_schema_compiler/cc_generator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698