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

Side by Side Diff: sample_config.json

Issue 2482993002: Support config.protocol.options which defines which part of protocol definition should be generated. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « CodeGenerator.py ('k') | templates/TypeBuilder_cpp.template » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "protocol": { 2 "protocol": {
3 "path": "./relative/path/protocol/sample_protocol.json", 3 "path": "./relative/path/protocol/sample_protocol.json",
4 "package": "include/generated/files/like/this", 4 "package": "include/generated/files/like/this",
5 "output": "place/generated/files/here", 5 "output": "place/generated/files/here",
6 "namespace": ["sample_project", "protocol"], 6 "namespace": ["sample_project", "protocol"],
7 "export_macro": "LIB_EXPORT", 7 "export_macro": "LIB_EXPORT",
8 "export_header": "lib/lib_export.h" 8 "export_header": "lib/lib_export.h",
9 "options": [
10 {
11 "domain": "Domain1",
12 "include": ["command1", "command2"],
13 "async": ["command1"]
14 },
15 {
16 "domain": "Domain2",
17 "exclude": ["command3", "command4"],
18 "exclude_events": ["event1"],
19 "async": ["command10"]
20 },
21 {
22 "domain": "Domain3"
23 }
24 ],
9 }, 25 },
10 26
11 "exported": { 27 "exported": {
12 "package": "include/exported/files/like/this", 28 "package": "include/exported/files/like/this",
13 "output": "place/exported/files/here", 29 "output": "place/exported/files/here",
14 "string_header": "include/exported/string.h", 30 "string_header": "include/exported/string.h",
15 "string_in": "String", 31 "string_in": "String",
16 "string_out": "String", 32 "string_out": "String",
17 "to_string_out": "toString(%s)", 33 "to_string_out": "toString(%s)",
18 "export_macro": "LIB_EXPORT", 34 "export_macro": "LIB_EXPORT",
(...skipping 11 matching lines...) Expand all
30 46
31 "lib": { 47 "lib": {
32 "package": "include/lib/files/like/this", 48 "package": "include/lib/files/like/this",
33 "output": "place/generated/lib/files/here", 49 "output": "place/generated/lib/files/here",
34 "string_header": "string/implementation.h", 50 "string_header": "string/implementation.h",
35 "platform_header": "platform/implementation.h", 51 "platform_header": "platform/implementation.h",
36 "export_macro": "LIB_EXPORT", 52 "export_macro": "LIB_EXPORT",
37 "export_header": "lib/lib_export.h" 53 "export_header": "lib/lib_export.h"
38 } 54 }
39 } 55 }
OLDNEW
« no previous file with comments | « CodeGenerator.py ('k') | templates/TypeBuilder_cpp.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698