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

Side by Side Diff: mojo/services/network/BUILD.gn

Issue 780043002: Build standalone network service on Android. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase. Created 6 years 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 | mojo/services/network/android_hooks.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/public/mojo_application.gni") 5 import("//mojo/public/mojo_application.gni")
6 6
7 mojo_native_application("network") { 7 if (is_android) {
8 output_name = "network_service" 8 import("//build/config/android/rules.gni")
9 sources = [ 9
10 "main.cc", 10 java_library_path = "$target_out_dir/java_library.dex.jar"
11 ] 11
12 deps = [ 12 mojo_android_application("network") {
13 ":lib", 13 output_name = "network_service"
14 "//base", 14 input_so = "$root_out_dir/lib.stripped/libnetwork_service.so"
15 "//mojo/application", 15 input_dex_jar = java_library_path
16 "//mojo/public/cpp/bindings:bindings", 16 }
17 "//mojo/services/public/cpp/network", 17
18 "//mojo/services/public/interfaces/network", 18 shared_library("native_library") {
19 ] 19 output_name = "network_service"
20
21 sources = [
22 "android_hooks.cc",
23 ]
24
25 deps = [
26 ":sources",
27 ]
28 }
29
30 android_standalone_library("java_library") {
31 dex_path = java_library_path
32
33 deps = [
34 "//net/android:net_java",
35 ]
36 }
37 } else {
38 mojo_native_application("network") {
39 output_name = "network_service"
40
41 deps = [
42 ":sources",
43 ]
44 }
20 } 45 }
21 46
22 source_set("lib") { 47 source_set("lib") {
23 sources = [ 48 sources = [
24 "cookie_store_impl.cc", 49 "cookie_store_impl.cc",
25 "cookie_store_impl.h", 50 "cookie_store_impl.h",
26 "net_adapters.cc", 51 "net_adapters.cc",
27 "net_adapters.h", 52 "net_adapters.h",
28 "net_address_type_converters.cc", 53 "net_address_type_converters.cc",
29 "net_address_type_converters.h", 54 "net_address_type_converters.h",
(...skipping 21 matching lines...) Expand all
51 "//mojo/common", 76 "//mojo/common",
52 "//mojo/environment:chromium", 77 "//mojo/environment:chromium",
53 "//mojo/public/cpp/bindings", 78 "//mojo/public/cpp/bindings",
54 "//mojo/services/public/cpp/network", 79 "//mojo/services/public/cpp/network",
55 "//mojo/services/public/interfaces/network", 80 "//mojo/services/public/interfaces/network",
56 "//net", 81 "//net",
57 "//url", 82 "//url",
58 ] 83 ]
59 } 84 }
60 85
86 source_set("sources") {
87 visibility = [ ":*" ]
88
89 sources = [
90 "main.cc",
91 ]
92
93 deps = [
94 ":lib",
95 "//base",
96 "//mojo/application",
97 "//mojo/public/c/system:for_shared_library",
98 "//mojo/public/cpp/bindings:bindings",
99 "//mojo/services/public/cpp/network",
100 "//mojo/services/public/interfaces/network",
101 ]
102 }
103
61 mojo_native_application("apptests") { 104 mojo_native_application("apptests") {
62 output_name = "network_service_apptests" 105 output_name = "network_service_apptests"
63 testonly = true 106 testonly = true
64 107
65 sources = [ 108 sources = [
66 "udp_socket_apptest.cc", 109 "udp_socket_apptest.cc",
67 ] 110 ]
68 111
69 deps = [ 112 deps = [
70 ":network", 113 ":network",
71 "//base", 114 "//base",
72 "//mojo/application", 115 "//mojo/application",
73 "//mojo/application:test_support", 116 "//mojo/application:test_support",
74 "//mojo/public/cpp/bindings", 117 "//mojo/public/cpp/bindings",
75 "//mojo/public/cpp/bindings:callback", 118 "//mojo/public/cpp/bindings:callback",
76 "//mojo/services/public/cpp/network", 119 "//mojo/services/public/cpp/network",
77 "//mojo/services/public/interfaces/network", 120 "//mojo/services/public/interfaces/network",
78 "//net", 121 "//net",
79 "//testing/gtest", 122 "//testing/gtest",
80 ] 123 ]
81 } 124 }
OLDNEW
« no previous file with comments | « no previous file | mojo/services/network/android_hooks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698