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

Unified Diff: mojo/go/BUILD.gn

Issue 1945103002: Go bindings: Don't import 'fmt' unless it is needed. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | mojo/go/tests/enums_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/go/BUILD.gn
diff --git a/mojo/go/BUILD.gn b/mojo/go/BUILD.gn
index 6fed26a9e06e5de2fe8c0421858e040636519939..5d618c9e6314e805495210af120b976eed1b791c 100644
--- a/mojo/go/BUILD.gn
+++ b/mojo/go/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("rules.gni")
+import("//mojo/public/tools/bindings/mojom.gni")
go_library("application") {
sources = [
@@ -85,6 +86,7 @@ if (is_linux) {
]
deps = [
":application",
+ ":more_test_mojoms",
":platform_cgo",
"//examples/echo",
"//mojo/edk/base_edk",
@@ -93,3 +95,13 @@ if (is_linux) {
]
}
}
+
+# These are additional test mojoms beyond those in the target
+# //mojo/public/interfaces/bindings/tests:test_interfaces.
+# These are built without 'generate_type_info = true' and so
+# allow us to test the go code generation in this mode also.
+mojom("more_test_mojoms") {
+ sources = [
+ "tests/test_enums.mojom",
+ ]
+}
« no previous file with comments | « no previous file | mojo/go/tests/enums_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698