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

Side by Side Diff: build/features_compile.gypi

Issue 23594008: Initial code generation for features. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing #6. Created 7 years, 3 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) 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 # When including this gypi, the following variables must be set:
8 # schema_files: a list of json or IDL files that comprise the features mod el.
9 # cc_dir: path to generated files
10 # root_namespace: the C++ namespace that all generated files go under
11 'feature_gen_dir': '<(DEPTH)/tools/json_schema_compiler',
12 'feature_gen': '<(feature_gen_dir)/features_compiler.py',
13 },
14 'rules': [
15 {
16 'rule_name': 'genfeature',
17 'msvs_external_rule': 1,
18 'extension': 'json',
19 'inputs': [
20 '<(feature_gen_dir)/features_cc_generator.py',
21 '<(feature_gen_dir)/code.py',
22 '<(feature_gen_dir)/features_compiler.py',
23 '<(feature_gen_dir)/cpp_util.py',
24 '<(feature_gen_dir)/features_h_generator.py',
25 '<(feature_gen_dir)/json_schema.py',
26 '<(feature_gen_dir)/model.py',
27 '<(feature_gen_dir)/util.cc',
28 '<(feature_gen_dir)/util.h',
29 '<(feature_gen_dir)/util_cc_helper.py',
30 '<@(schema_files)',
31 ],
32 'outputs': [
33 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc',
34 '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).h',
35 ],
36 'action': [
37 'python',
38 '<(feature_gen)',
39 '<(RULE_INPUT_PATH)',
40 '--root=<(DEPTH)',
41 '--destdir=<(SHARED_INTERMEDIATE_DIR)',
42 ],
43 'message': 'Generating C++ feature code from <(RULE_INPUT_PATH) json files ',
44 'process_outputs_as_sources': 1,
45 },
46 ],
47 'include_dirs': [
48 '<(SHARED_INTERMEDIATE_DIR)',
49 '<(DEPTH)',
50 ],
51 'direct_dependent_settings': {
52 'include_dirs': [
53 '<(SHARED_INTERMEDIATE_DIR)',
54 ]
55 },
56 # This target exports a hard dependency because it generates header
57 # files.
58 'hard_dependency': 1,
59 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_browser.gypi » ('j') | tools/json_schema_compiler/features_compiler.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698