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

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

Issue 1105553002: examples/go: http handler & http server (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') | examples/go/http_handler.go » ('J')
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 ":go_http_handler",
13 ":go_http_server",
12 ] 14 ]
13 } 15 }
14 16
15 go_mojo_application("go_echo_client") { 17 go_mojo_application("go_echo_client") {
16 sources = [ 18 sources = [
17 "echo_client.go", 19 "echo_client.go",
18 ] 20 ]
19 deps = [ 21 deps = [
20 "//examples/echo:bindings", 22 "//examples/echo:bindings",
21 "//mojo/go:application", 23 "//mojo/go:application",
22 "//mojo/go:platform_cgo", 24 "//mojo/go:platform_cgo",
23 "//mojo/public/c/system", 25 "//mojo/public/c/system",
24 "//mojo/public/platform/native:system", 26 "//mojo/public/platform/native:system",
25 ] 27 ]
26 } 28 }
27 29
28 go_mojo_application("go_echo_server") { 30 go_mojo_application("go_echo_server") {
29 sources = [ 31 sources = [
30 "echo_server.go", 32 "echo_server.go",
31 ] 33 ]
32 deps = [ 34 deps = [
33 "//examples/echo:bindings", 35 "//examples/echo:bindings",
34 "//mojo/go:application", 36 "//mojo/go:application",
35 "//mojo/go:platform_cgo", 37 "//mojo/go:platform_cgo",
36 "//mojo/public/c/system", 38 "//mojo/public/c/system",
37 "//mojo/public/platform/native:system", 39 "//mojo/public/platform/native:system",
38 ] 40 ]
39 } 41 }
42
43 go_mojo_application("go_http_handler") {
44 sources = [
45 "http_handler.go",
46 ]
47 deps = [
48 "//mojo/go:application",
jamesr 2015/04/22 19:21:55 we should probably put this and the //mojo/go:plat
rogulenko 2015/04/22 20:49:14 Will do it in a separate CL.
49 "//mojo/go:platform_cgo",
50 "//mojo/public/c/system",
51 "//mojo/public/platform/native:system",
52 "//mojo/services/network/public/interfaces",
53 ]
54 }
55
56 go_mojo_application("go_http_server") {
57 sources = [
58 "http_server.go",
59 ]
60 deps = [
61 "//mojo/go:application",
62 "//mojo/go:platform_cgo",
63 "//mojo/public/c/system",
64 "//mojo/public/platform/native:system",
65 "//mojo/services/network/public/interfaces",
66 ]
67 }
40 } 68 }
OLDNEW
« no previous file with comments | « no previous file | examples/go/README.txt » ('j') | examples/go/http_handler.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698