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

Unified Diff: mojom/generators/common/cli.go

Issue 2069943003: Mojom target for generating & building C bindings. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojom/generators/c/c_generator.go ('k') | mojom/generators/common/common.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojom/generators/common/cli.go
diff --git a/mojom/generators/common/cli.go b/mojom/generators/common/cli.go
index 1915b7054dc0fb3eac360177b48d5fb6ebcc93a9..1599f7407a37d8b4605ae3e13438fc076a4d9232 100644
--- a/mojom/generators/common/cli.go
+++ b/mojom/generators/common/cli.go
@@ -36,6 +36,8 @@ func GetCliConfig(args []string) GeneratorConfig {
flagSet.BoolVar(&config.noGenImports, "no-gen-imports", false,
"Generate code only for the files that are specified on the command line. "+
"By default, code is generated for all specified files and their transitive imports.")
+ flagSet.BoolVar(&config.genTypeInfo, "generate-type-info", false,
+ "Do not generate type information inside the mojom.")
flagSet.Parse(args[1:])
@@ -88,6 +90,7 @@ type generatorCliConfig struct {
outputDir string
srcRootPath string
noGenImports bool
+ genTypeInfo bool
}
// See GeneratorConfig.
@@ -109,3 +112,8 @@ func (c *generatorCliConfig) SrcRootPath() string {
func (c *generatorCliConfig) GenImports() bool {
return !c.noGenImports
}
+
+// See GeneratorConfig.
+func (c *generatorCliConfig) GenTypeInfo() bool {
+ return c.genTypeInfo
+}
« no previous file with comments | « mojom/generators/c/c_generator.go ('k') | mojom/generators/common/common.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698