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
3 # found in the LICENSE file.
5 import("//third_party/mojo/src/mojo/public/mojo_application.gni")
8 import("//build/config/android/rules.gni")
10 java_library_path = "$target_out_dir/java_library.dex.jar"
12 mojo_android_application("network") {
13 output_name = "network_service"
14 input_so = "$root_out_dir/lib.stripped/libnetwork_service.so"
15 input_dex_jar = java_library_path
18 shared_library("native_library") {
19 output_name = "network_service"
32 android_standalone_library("java_library") {
33 dex_path = java_library_path
36 "//net/android:net_java",
40 mojo_native_application("network") {
41 output_name = "network_service"
51 "cookie_store_impl.cc",
52 "cookie_store_impl.h",
55 "net_address_type_converters.cc",
56 "net_address_type_converters.h",
59 "network_service_impl.cc",
60 "network_service_impl.h",
61 "tcp_bound_socket_impl.cc",
62 "tcp_bound_socket_impl.h",
63 "tcp_connected_socket_impl.cc",
64 "tcp_connected_socket_impl.h",
65 "tcp_server_socket_impl.cc",
66 "tcp_server_socket_impl.h",
79 "//mojo/environment:chromium",
80 "//mojo/services/network/public/cpp",
81 "//mojo/services/network/public/interfaces",
83 "//third_party/mojo/src/mojo/public/cpp/bindings",
88 source_set("sources") {
99 "//mojo/services/network/public/cpp",
100 "//mojo/services/network/public/interfaces",
101 "//third_party/mojo/src/mojo/public/c/system:for_shared_library",
102 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
106 mojo_native_application("apptests") {
107 output_name = "network_service_apptests"
111 "udp_socket_apptest.cc",
112 "url_loader_impl_apptest.cc",
119 "//mojo/application",
120 "//mojo/application:test_support",
122 "//mojo/services/network/public/cpp",
123 "//mojo/services/network/public/interfaces",
125 "//net:test_support",
127 "//third_party/mojo/src/mojo/public/cpp/bindings",
128 "//third_party/mojo/src/mojo/public/cpp/bindings:callback",