Add ICU message format support
[chromium-blink-merge.git] / mojo / services / network / BUILD.gn
blobe01a567249506201c14594ef7f0cdeb2cb03fe8d
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("//mojo/public/mojo_application.gni")
7 if (is_android) {
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$android_product_extension"
15     input_dex_jar = java_library_path
16     deps = [
17       ":java_library",
18       ":native_library",
19     ]
20   }
22   shared_library("native_library") {
23     output_name = "network_service"
25     sources = [
26       "android_hooks.cc",
27     ]
29     deps = [
30       ":sources",
31       "//base",
32       "//net",
33     ]
34   }
36   android_standalone_library("java_library") {
37     dex_path = java_library_path
39     deps = [
40       "//net/android:net_java",
41     ]
42   }
43 } else {
44   mojo_native_application("network") {
45     output_name = "network_service"
47     deps = [
48       ":sources",
49     ]
50   }
53 source_set("lib") {
54   sources = [
55     "cookie_store_impl.cc",
56     "cookie_store_impl.h",
57     "http_connection_impl.cc",
58     "http_connection_impl.h",
59     "http_server_impl.cc",
60     "http_server_impl.h",
61     "mojo_persistent_cookie_store.cc",
62     "mojo_persistent_cookie_store.h",
63     "net_adapters.cc",
64     "net_adapters.h",
65     "net_address_type_converters.cc",
66     "net_address_type_converters.h",
67     "network_context.cc",
68     "network_context.h",
69     "network_service_delegate.cc",
70     "network_service_delegate.h",
71     "network_service_delegate_observer.h",
72     "network_service_impl.cc",
73     "network_service_impl.h",
74     "tcp_bound_socket_impl.cc",
75     "tcp_bound_socket_impl.h",
76     "tcp_connected_socket_impl.cc",
77     "tcp_connected_socket_impl.h",
78     "tcp_server_socket_impl.cc",
79     "tcp_server_socket_impl.h",
80     "udp_socket_impl.cc",
81     "udp_socket_impl.h",
82     "url_loader_factory_impl.cc",
83     "url_loader_factory_impl.h",
84     "url_loader_impl.cc",
85     "url_loader_impl.h",
86     "web_socket_impl.cc",
87     "web_socket_impl.h",
88   ]
90   deps = [
91     "//base",
92     "//components/filesystem/public/interfaces",
93     "//mojo/application/public/cpp",
94     "//mojo/common:common_base",
95     "//mojo/common:url_type_converters",
96     "//mojo/message_pump",
97     "//mojo/services/network/public/cpp",
98     "//mojo/services/network/public/interfaces",
99     "//net",
100     "//net:extras",
101     "//net:http_server",
102     "//url",
103     "//sql/mojo",
104     "//third_party/mojo/src/mojo/public/cpp/system:system",
105   ]
108 source_set("sources") {
109   visibility = [ ":*" ]
111   sources = [
112     "main.cc",
113   ]
115   deps = [
116     ":lib",
117     "//base",
118     "//mojo/application/public/cpp",
119     "//mojo/services/network/public/cpp",
120     "//mojo/services/network/public/interfaces",
121     "//third_party/mojo/src/mojo/public/c/system:for_shared_library",
122     "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
123   ]
126 mojo_native_application("apptests") {
127   output_name = "network_service_apptests"
128   testonly = true
130   sources = [
131     "http_server_apptest.cc",
132     "udp_socket_apptest.cc",
133     "url_loader_impl_apptest.cc",
134   ]
136   deps = [
137     ":lib",
138     ":network",
139     "//base",
140     "//mojo/application/public/cpp:sources",
141     "//mojo/application/public/cpp:test_support",
142     "//mojo/common:common_base",
143     "//mojo/message_pump",
144     "//mojo/services/network/public/cpp",
145     "//mojo/services/network/public/interfaces",
146     "//net",
147     "//net:test_support",
148     "//testing/gtest",
149     "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
150   ]