| Index: examples/go/BUILD.gn
|
| diff --git a/examples/go/BUILD.gn b/examples/go/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e082a072b7b248e8e699646b74b630c7de1c026b
|
| --- /dev/null
|
| +++ b/examples/go/BUILD.gn
|
| @@ -0,0 +1,42 @@
|
| +# Copyright 2015 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import("//mojo/go/rules.gni")
|
| +
|
| +if (is_android) {
|
| + group("go") {
|
| + deps = [
|
| + ":go_echo_client",
|
| + ":go_echo_server",
|
| + ]
|
| + }
|
| +
|
| + go_shared_library("go_echo_client") {
|
| + sources = [
|
| + "echo_client.go",
|
| + ]
|
| + deps = [
|
| + "//examples/echo:bindings",
|
| + "//mojo/go:bindings",
|
| + "//mojo/go:platform_cgo",
|
| + "//mojo/public/c/system",
|
| + "//mojo/public/interfaces/application",
|
| + "//mojo/public/platform/native:system",
|
| + ]
|
| + }
|
| +
|
| + go_shared_library("go_echo_server") {
|
| + sources = [
|
| + "echo_server.go",
|
| + ]
|
| + deps = [
|
| + "//examples/echo:bindings",
|
| + "//mojo/go:bindings",
|
| + "//mojo/go:platform_cgo",
|
| + "//mojo/public/c/system",
|
| + "//mojo/public/interfaces/application",
|
| + "//mojo/public/platform/native:system",
|
| + ]
|
| + }
|
| +}
|
|
|