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

Side by Side Diff: examples/go/BUILD.gn

Issue 1105443002: go: update go build rules (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | examples/go/README.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//mojo/go/rules.gni") 5 import("//mojo/go/rules.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 group("go") { 8 group("go") {
9 deps = [ 9 deps = [
10 ":go_echo_client", 10 ":go_echo_client",
11 ":go_echo_server", 11 ":go_echo_server",
12 ] 12 ]
13 } 13 }
14 14
15 go_shared_library("go_echo_client") { 15 go_mojo_application("go_echo_client") {
16 sources = [ 16 sources = [
17 "echo_client.go", 17 "echo_client.go",
18 ] 18 ]
19 deps = [ 19 deps = [
20 "//examples/echo:bindings", 20 "//examples/echo:bindings",
21 "//mojo/go:application", 21 "//mojo/go:application",
22 "//mojo/go:platform_cgo", 22 "//mojo/go:platform_cgo",
23 "//mojo/public/c/system", 23 "//mojo/public/c/system",
24 "//mojo/public/platform/native:system", 24 "//mojo/public/platform/native:system",
25 ] 25 ]
26 } 26 }
27 27
28 go_shared_library("go_echo_server") { 28 go_mojo_application("go_echo_server") {
29 sources = [ 29 sources = [
30 "echo_server.go", 30 "echo_server.go",
31 ] 31 ]
32 deps = [ 32 deps = [
33 "//examples/echo:bindings", 33 "//examples/echo:bindings",
34 "//mojo/go:application", 34 "//mojo/go:application",
35 "//mojo/go:platform_cgo", 35 "//mojo/go:platform_cgo",
36 "//mojo/public/c/system", 36 "//mojo/public/c/system",
37 "//mojo/public/platform/native:system", 37 "//mojo/public/platform/native:system",
38 ] 38 ]
39 } 39 }
40 } 40 }
OLDNEW
« no previous file with comments | « no previous file | examples/go/README.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698