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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CodeGenerator.py ('k') | templates/TypeBuilder_cpp.template » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sample_config.json
diff --git a/sample_config.json b/sample_config.json
index 82d7845da3cbcd18b1c27a8a646d52c60b51cdc8..1a93135480a4aed4390bdb07aac91120d9fe8688 100644
--- a/sample_config.json
+++ b/sample_config.json
@@ -5,7 +5,23 @@
"output": "place/generated/files/here",
"namespace": ["sample_project", "protocol"],
"export_macro": "LIB_EXPORT",
- "export_header": "lib/lib_export.h"
+ "export_header": "lib/lib_export.h",
+ "options": [
+ {
+ "domain": "Domain1",
+ "include": ["command1", "command2"],
+ "async": ["command1"]
+ },
+ {
+ "domain": "Domain2",
+ "exclude": ["command3", "command4"],
+ "exclude_events": ["event1"],
+ "async": ["command10"]
+ },
+ {
+ "domain": "Domain3"
+ }
+ ],
},
"exported": {
« 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