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

Side by Side Diff: net/BUILD.gn

Issue 1312463005: Compile remoting client plugin with GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « jingle/BUILD.gn ('k') | net/net.gypi » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//build/module_args/v8.gni") 8 import("//build/module_args/v8.gni")
9 import("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//third_party/icu/config.gni") 10 import("//third_party/icu/config.gni")
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 include_dirs = [ "/usr/include/kerberosV" ] 80 include_dirs = [ "/usr/include/kerberosV" ]
81 } 81 }
82 } 82 }
83 83
84 if (enable_built_in_dns) { 84 if (enable_built_in_dns) {
85 defines += [ "ENABLE_BUILT_IN_DNS" ] 85 defines += [ "ENABLE_BUILT_IN_DNS" ]
86 } 86 }
87 } 87 }
88 88
89 # net_shared_* are settings shared between net and net_small 89 # net_shared_* are settings shared between net and net_small
90 net_shared_sources = 90 net_shared_sources = gypi_values.net_nacl_common_sources
91 gypi_values.net_nacl_common_sources + gypi_values.net_non_nacl_sources
92 91
93 net_shared_unfiltered_sources = [] 92 net_shared_unfiltered_sources = []
94 93
95 net_shared_configs = [ 94 net_shared_configs = [
96 ":net_internal_config", 95 ":net_internal_config",
97 "//build/config:precompiled_headers", 96 "//build/config:precompiled_headers",
98 97
99 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 98 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
100 "//build/config/compiler:no_size_t_to_int_warning", 99 "//build/config/compiler:no_size_t_to_int_warning",
101 ] 100 ]
102 101
103 net_shared_public_deps = [ 102 net_shared_public_deps = [
104 ":net_quic_proto", 103 ":net_quic_proto",
105 "//crypto", 104 "//crypto",
106 "//crypto:platform", 105 "//crypto:platform",
107 ] 106 ]
108 107
109 net_shared_deps = [ 108 net_shared_deps = [
110 ":net_resources", 109 ":net_resources",
111 "//base", 110 "//base",
112 "//base:prefs",
113 "//base/third_party/dynamic_annotations",
114 "//net/base/registry_controlled_domains", 111 "//net/base/registry_controlled_domains",
115 "//sdch",
116 "//third_party/protobuf:protobuf_lite", 112 "//third_party/protobuf:protobuf_lite",
117 "//third_party/zlib",
118 ] 113 ]
119 114
120 if (!use_kerberos) { 115 if (!is_nacl) {
121 net_shared_sources -= [ 116 net_shared_sources += gypi_values.net_non_nacl_sources
122 "http/http_auth_gssapi_posix.cc", 117
123 "http/http_auth_gssapi_posix.h", 118 net_shared_deps += [
124 "http/http_auth_handler_negotiate.cc", 119 "//base:prefs",
125 "http/http_auth_handler_negotiate.h", 120 "//base/third_party/dynamic_annotations",
121 "//sdch",
122 "//third_party/zlib",
126 ] 123 ]
127 } 124
128 125 if (!use_kerberos) {
129 if (is_posix) { 126 net_shared_sources -= [
130 if (posix_avoid_mmap) { 127 "http/http_auth_gssapi_posix.cc",
131 net_shared_sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ] 128 "http/http_auth_gssapi_posix.h",
129 "http/http_auth_handler_negotiate.cc",
130 "http/http_auth_handler_negotiate.h",
131 ]
132 }
133
134 if (is_posix) {
135 if (posix_avoid_mmap) {
136 net_shared_sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ]
137 } else {
138 net_shared_sources -=
139 [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ]
140 }
141 }
142
143 if (!enable_built_in_dns) {
144 net_shared_sources -= [
145 "dns/address_sorter_posix.cc",
146 "dns/address_sorter_posix.h",
147 "dns/dns_client.cc",
148 ]
149 }
150
151 if (use_openssl) {
152 net_shared_sources -= [
153 "base/nss_memio.c",
154 "base/nss_memio.h",
155 "cert/ct_log_verifier_nss.cc",
156 "cert/ct_objects_extractor_nss.cc",
157 "cert/jwk_serializer_nss.cc",
158 "cert/scoped_nss_types.h",
159 "cert/x509_util_nss.cc",
160 "quic/crypto/aead_base_decrypter_nss.cc",
161 "quic/crypto/aead_base_encrypter_nss.cc",
162 "quic/crypto/aes_128_gcm_12_decrypter_nss.cc",
163 "quic/crypto/aes_128_gcm_12_encrypter_nss.cc",
164 "quic/crypto/chacha20_poly1305_decrypter_nss.cc",
165 "quic/crypto/chacha20_poly1305_encrypter_nss.cc",
166 "quic/crypto/channel_id_nss.cc",
167 "quic/crypto/p256_key_exchange_nss.cc",
168 "quic/crypto/proof_source_chromium_nss.cc",
169 "socket/nss_ssl_util.cc",
170 "socket/nss_ssl_util.h",
171 "socket/ssl_client_socket_nss.cc",
172 "socket/ssl_client_socket_nss.h",
173 "socket/ssl_server_socket_nss.cc",
174 "socket/ssl_server_socket_nss.h",
175 ]
176 if (is_ios) {
177 # Always removed for !ios below.
178 net_shared_sources -= [
179 "cert/cert_verify_proc_nss.cc",
180 "cert/cert_verify_proc_nss.h",
181 ]
182 }
183 if (is_win) {
184 net_shared_sources -= [ "cert/sha256_legacy_support_nss_win.cc" ]
185 }
186 if (!use_nss_certs && !is_ios) {
187 net_shared_sources -= [ "cert/x509_util_nss.h" ]
188 }
132 } else { 189 } else {
133 net_shared_sources -= 190 net_shared_sources -= [
134 [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ] 191 "cert/ct_log_verifier_openssl.cc",
135 } 192 "cert/ct_objects_extractor_openssl.cc",
136 } 193 "cert/jwk_serializer_openssl.cc",
137 194 "cert/x509_util_openssl.cc",
138 if (!enable_built_in_dns) { 195 "cert/x509_util_openssl.h",
139 net_shared_sources -= [ 196 "quic/crypto/aead_base_decrypter_openssl.cc",
140 "dns/address_sorter_posix.cc", 197 "quic/crypto/aead_base_encrypter_openssl.cc",
141 "dns/address_sorter_posix.h", 198 "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc",
142 "dns/dns_client.cc", 199 "quic/crypto/aes_128_gcm_12_encrypter_openssl.cc",
143 ] 200 "quic/crypto/chacha20_poly1305_decrypter_openssl.cc",
144 } 201 "quic/crypto/chacha20_poly1305_encrypter_openssl.cc",
145 202 "quic/crypto/channel_id_openssl.cc",
146 if (use_openssl) { 203 "quic/crypto/p256_key_exchange_openssl.cc",
147 net_shared_sources -= [ 204 "quic/crypto/proof_source_chromium_openssl.cc",
148 "base/nss_memio.c", 205 "quic/crypto/scoped_evp_aead_ctx.cc",
149 "base/nss_memio.h", 206 "quic/crypto/scoped_evp_aead_ctx.h",
150 "cert/ct_log_verifier_nss.cc", 207 "socket/ssl_client_socket_openssl.cc",
151 "cert/ct_objects_extractor_nss.cc", 208 "socket/ssl_client_socket_openssl.h",
152 "cert/jwk_serializer_nss.cc", 209 "socket/ssl_server_socket_openssl.cc",
153 "cert/scoped_nss_types.h", 210 "socket/ssl_server_socket_openssl.h",
154 "cert/x509_util_nss.cc", 211 "ssl/openssl_ssl_util.cc",
155 "quic/crypto/aead_base_decrypter_nss.cc", 212 "ssl/openssl_ssl_util.h",
156 "quic/crypto/aead_base_encrypter_nss.cc", 213 "ssl/ssl_client_session_cache_openssl.cc",
157 "quic/crypto/aes_128_gcm_12_decrypter_nss.cc", 214 "ssl/ssl_client_session_cache_openssl.h",
158 "quic/crypto/aes_128_gcm_12_encrypter_nss.cc", 215 "ssl/ssl_platform_key.h",
159 "quic/crypto/chacha20_poly1305_decrypter_nss.cc", 216 "ssl/threaded_ssl_private_key.cc",
160 "quic/crypto/chacha20_poly1305_encrypter_nss.cc", 217 "ssl/threaded_ssl_private_key.h",
161 "quic/crypto/channel_id_nss.cc", 218 ]
162 "quic/crypto/p256_key_exchange_nss.cc", 219 if (is_mac) {
163 "quic/crypto/proof_source_chromium_nss.cc", 220 net_shared_sources -= [ "ssl/ssl_platform_key_mac.cc" ]
164 "socket/nss_ssl_util.cc", 221 }
165 "socket/nss_ssl_util.h", 222 if (is_android) {
166 "socket/ssl_client_socket_nss.cc", 223 net_shared_sources -= [ "ssl/ssl_platform_key_android.cc" ]
167 "socket/ssl_client_socket_nss.h", 224 }
168 "socket/ssl_server_socket_nss.cc", 225 if (is_win) {
169 "socket/ssl_server_socket_nss.h", 226 net_shared_sources -= [
170 ] 227 "cert/sha256_legacy_support_openssl_win.cc",
171 if (is_ios) { 228 "ssl/ssl_platform_key_win.cc",
172 # Always removed for !ios below. 229 ]
173 net_shared_sources -= [ 230 }
174 "cert/cert_verify_proc_nss.cc", 231 if (use_nss_certs) {
175 "cert/cert_verify_proc_nss.h", 232 net_shared_sources -= [
176 ] 233 "ssl/client_key_store.cc",
177 } 234 "ssl/client_key_store.h",
178 if (is_win) { 235 "ssl/ssl_platform_key_nss.cc",
179 net_shared_sources -= [ "cert/sha256_legacy_support_nss_win.cc" ] 236 ]
180 } 237 }
181 if (!use_nss_certs && !is_ios) { 238 }
182 net_shared_sources -= [ "cert/x509_util_nss.h" ] 239
183 } 240 if (!use_openssl_certs) {
184 } else { 241 net_shared_sources -= [
185 net_shared_sources -= [ 242 "base/crypto_module_openssl.cc",
186 "cert/ct_log_verifier_openssl.cc", 243 "base/keygen_handler_openssl.cc",
187 "cert/ct_objects_extractor_openssl.cc", 244 "base/openssl_private_key_store.h",
188 "cert/jwk_serializer_openssl.cc", 245 "base/openssl_private_key_store_memory.cc",
189 "cert/x509_util_openssl.cc", 246 "cert/cert_database_openssl.cc",
190 "cert/x509_util_openssl.h", 247 "cert/cert_verify_proc_openssl.cc",
191 "quic/crypto/aead_base_decrypter_openssl.cc", 248 "cert/cert_verify_proc_openssl.h",
192 "quic/crypto/aead_base_encrypter_openssl.cc", 249 "cert/test_root_certs_openssl.cc",
193 "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc", 250 "cert/x509_certificate_openssl.cc",
194 "quic/crypto/aes_128_gcm_12_encrypter_openssl.cc", 251 "ssl/openssl_client_key_store.cc",
195 "quic/crypto/chacha20_poly1305_decrypter_openssl.cc", 252 "ssl/openssl_client_key_store.h",
196 "quic/crypto/chacha20_poly1305_encrypter_openssl.cc", 253 ]
197 "quic/crypto/channel_id_openssl.cc", 254 if (is_android) {
198 "quic/crypto/p256_key_exchange_openssl.cc", 255 net_shared_sources -= [ "base/openssl_private_key_store_android.cc" ]
199 "quic/crypto/proof_source_chromium_openssl.cc", 256 }
200 "quic/crypto/scoped_evp_aead_ctx.cc", 257 } else {
201 "quic/crypto/scoped_evp_aead_ctx.h", 258 if (is_android) {
202 "socket/ssl_client_socket_openssl.cc", 259 # Android doesn't use these even when using OpenSSL.
203 "socket/ssl_client_socket_openssl.h", 260 net_shared_sources -= [
204 "socket/ssl_server_socket_openssl.cc", 261 "base/openssl_private_key_store_memory.cc",
205 "socket/ssl_server_socket_openssl.h", 262 "cert/cert_database_openssl.cc",
206 "ssl/openssl_ssl_util.cc", 263 "cert/cert_verify_proc_openssl.cc",
207 "ssl/openssl_ssl_util.h", 264 "cert/test_root_certs_openssl.cc",
208 "ssl/ssl_client_session_cache_openssl.cc", 265 ]
209 "ssl/ssl_client_session_cache_openssl.h", 266 }
210 "ssl/ssl_platform_key.h", 267 }
211 "ssl/threaded_ssl_private_key.cc", 268
212 "ssl/threaded_ssl_private_key.h", 269 if (use_glib && !is_chromeos) {
213 ] 270 net_shared_configs += [ "//build/config/linux:gconf" ]
214 if (is_mac) { 271 net_shared_deps += [ "//build/linux:gio" ]
215 net_shared_sources -= [ "ssl/ssl_platform_key_mac.cc" ] 272 }
216 } 273
217 if (is_android) { 274 if (is_linux) {
218 net_shared_sources -= [ "ssl/ssl_platform_key_android.cc" ] 275 net_shared_configs += [ "//build/config/linux:libresolv" ]
219 } 276 }
220 if (is_win) { 277
221 net_shared_sources -= [ 278 if (!use_nss_certs) {
222 "cert/sha256_legacy_support_openssl_win.cc", 279 net_shared_sources -= [
223 "ssl/ssl_platform_key_win.cc", 280 "base/crypto_module_nss.cc",
224 ] 281 "base/keygen_handler_nss.cc",
225 } 282 "cert/cert_database_nss.cc",
226 if (use_nss_certs) { 283 "cert/nss_cert_database.cc",
284 "cert/nss_cert_database.h",
285 "cert/x509_certificate_nss.cc",
286 "ssl/client_cert_store_nss.cc",
287 "ssl/client_cert_store_nss.h",
288 "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
289 "third_party/mozilla_security_manager/nsKeygenHandler.h",
290 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
291 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
292 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
293 "third_party/mozilla_security_manager/nsPKCS12Blob.h",
294 ]
295 if (!is_ios) {
296 # These files are part of the partial implementation of NSS on iOS so
297 # keep them in that case (even though use_nss_certs is not set).
298 net_shared_sources -= [
299 "cert/cert_verify_proc_nss.cc",
300 "cert/cert_verify_proc_nss.h",
301 "cert/test_root_certs_nss.cc",
302 "cert/x509_util_nss_certs.cc",
303 "cert_net/nss_ocsp.cc",
304 "cert_net/nss_ocsp.h",
305 ]
306 }
307 if (is_chromeos) {
308 # These were already removed on non-ChromeOS.
309 net_shared_sources -= [
310 "cert/nss_cert_database_chromeos.cc",
311 "cert/nss_cert_database_chromeos.h",
312 "cert/nss_profile_filter_chromeos.cc",
313 "cert/nss_profile_filter_chromeos.h",
314 ]
315 }
227 net_shared_sources -= [ 316 net_shared_sources -= [
228 "ssl/client_key_store.cc", 317 "ssl/client_key_store.cc",
229 "ssl/client_key_store.h", 318 "ssl/client_key_store.h",
230 "ssl/ssl_platform_key_nss.cc", 319 "ssl/ssl_platform_key_nss.cc",
231 ] 320 ]
232 } 321 } else if (use_openssl) {
322 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's
323 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that file
324 # in directly.
325 net_shared_sources += [ "third_party/nss/ssl/cmpcert.c" ]
326 }
327
328 if (!enable_mdns) {
329 net_shared_sources -= [
330 "dns/mdns_cache.cc",
331 "dns/mdns_cache.h",
332 "dns/mdns_client.cc",
333 "dns/mdns_client.h",
334 "dns/mdns_client_impl.cc",
335 "dns/mdns_client_impl.h",
336 "dns/record_parsed.cc",
337 "dns/record_parsed.h",
338 "dns/record_rdata.cc",
339 "dns/record_rdata.h",
340 ]
341 }
342
343 if (is_win) {
344 net_shared_sources -= [ "http/http_auth_handler_ntlm_portable.cc" ]
345 } else { # !is_win
346 net_shared_sources -= [
347 "base/winsock_init.cc",
348 "base/winsock_init.h",
349 "base/winsock_util.cc",
350 "base/winsock_util.h",
351 "proxy/proxy_resolver_winhttp.cc",
352 "proxy/proxy_resolver_winhttp.h",
353 ]
354 }
355
356 if (is_ios) {
357 # Add back some sources that were otherwise filtered out. iOS needs some Mac
358 # files.
359 net_shared_unfiltered_sources += [
360 "base/mac/url_conversions.h",
361 "base/mac/url_conversions.mm",
362 "base/network_change_notifier_mac.cc",
363 "base/network_config_watcher_mac.cc",
364 "base/network_interfaces_mac.cc",
365 "base/network_interfaces_mac.h",
366 "base/platform_mime_util_mac.mm",
367 "proxy/proxy_resolver_mac.cc",
368 "proxy/proxy_server_mac.cc",
369 ]
370
371 net_shared_sources -= [ "disk_cache/blockfile/file_posix.cc" ]
372 net_shared_deps += [
373 "//third_party/nss:nspr",
374 "//third_party/nss",
375 "//net/third_party/nss/ssl:libssl",
376 ]
377 }
378
379 if (is_ios || is_mac) {
380 net_shared_sources += gypi_values.net_base_mac_ios_sources
381 }
382
383 if (is_android) {
384 net_shared_deps += [ ":net_jni_headers" ]
385
386 # Add some Linux sources that were excluded by the filter, but which
387 # are needed.
388 net_shared_unfiltered_sources += [
389 "base/address_tracker_linux.cc",
390 "base/address_tracker_linux.h",
391 "base/network_interfaces_linux.cc",
392 "base/network_interfaces_linux.h",
393 "base/platform_mime_util_linux.cc",
394 ]
395 }
396 } else {
397 net_shared_public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
233 } 398 }
234 399
235 if (!use_openssl_certs) {
236 net_shared_sources -= [
237 "base/crypto_module_openssl.cc",
238 "base/keygen_handler_openssl.cc",
239 "base/openssl_private_key_store.h",
240 "base/openssl_private_key_store_memory.cc",
241 "cert/cert_database_openssl.cc",
242 "cert/cert_verify_proc_openssl.cc",
243 "cert/cert_verify_proc_openssl.h",
244 "cert/test_root_certs_openssl.cc",
245 "cert/x509_certificate_openssl.cc",
246 "ssl/openssl_client_key_store.cc",
247 "ssl/openssl_client_key_store.h",
248 ]
249 if (is_android) {
250 net_shared_sources -= [ "base/openssl_private_key_store_android.cc" ]
251 }
252 } else {
253 if (is_android) {
254 # Android doesn't use these even when using OpenSSL.
255 net_shared_sources -= [
256 "base/openssl_private_key_store_memory.cc",
257 "cert/cert_database_openssl.cc",
258 "cert/cert_verify_proc_openssl.cc",
259 "cert/test_root_certs_openssl.cc",
260 ]
261 }
262 }
263
264 if (use_glib && !is_chromeos) {
265 net_shared_configs += [ "//build/config/linux:gconf" ]
266 net_shared_deps += [ "//build/linux:gio" ]
267 }
268
269 if (is_linux) {
270 net_shared_configs += [ "//build/config/linux:libresolv" ]
271 }
272
273 if (!use_nss_certs) {
274 net_shared_sources -= [
275 "base/crypto_module_nss.cc",
276 "base/keygen_handler_nss.cc",
277 "cert/cert_database_nss.cc",
278 "cert/nss_cert_database.cc",
279 "cert/nss_cert_database.h",
280 "cert/x509_certificate_nss.cc",
281 "ssl/client_cert_store_nss.cc",
282 "ssl/client_cert_store_nss.h",
283 "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
284 "third_party/mozilla_security_manager/nsKeygenHandler.h",
285 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
286 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
287 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
288 "third_party/mozilla_security_manager/nsPKCS12Blob.h",
289 ]
290 if (!is_ios) {
291 # These files are part of the partial implementation of NSS on iOS so
292 # keep them in that case (even though use_nss_certs is not set).
293 net_shared_sources -= [
294 "cert/cert_verify_proc_nss.cc",
295 "cert/cert_verify_proc_nss.h",
296 "cert/test_root_certs_nss.cc",
297 "cert/x509_util_nss_certs.cc",
298 "cert_net/nss_ocsp.cc",
299 "cert_net/nss_ocsp.h",
300 ]
301 }
302 if (is_chromeos) {
303 # These were already removed on non-ChromeOS.
304 net_shared_sources -= [
305 "cert/nss_cert_database_chromeos.cc",
306 "cert/nss_cert_database_chromeos.h",
307 "cert/nss_profile_filter_chromeos.cc",
308 "cert/nss_profile_filter_chromeos.h",
309 ]
310 }
311 net_shared_sources -= [
312 "ssl/client_key_store.cc",
313 "ssl/client_key_store.h",
314 "ssl/ssl_platform_key_nss.cc",
315 ]
316 } else if (use_openssl) {
317 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's
318 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that file
319 # in directly.
320 net_shared_sources += [ "third_party/nss/ssl/cmpcert.c" ]
321 }
322
323 if (!enable_mdns) {
324 net_shared_sources -= [
325 "dns/mdns_cache.cc",
326 "dns/mdns_cache.h",
327 "dns/mdns_client.cc",
328 "dns/mdns_client.h",
329 "dns/mdns_client_impl.cc",
330 "dns/mdns_client_impl.h",
331 "dns/record_parsed.cc",
332 "dns/record_parsed.h",
333 "dns/record_rdata.cc",
334 "dns/record_rdata.h",
335 ]
336 }
337
338 if (is_win) {
339 net_shared_sources -= [ "http/http_auth_handler_ntlm_portable.cc" ]
340 } else { # !is_win
341 net_shared_sources -= [
342 "base/winsock_init.cc",
343 "base/winsock_init.h",
344 "base/winsock_util.cc",
345 "base/winsock_util.h",
346 "proxy/proxy_resolver_winhttp.cc",
347 "proxy/proxy_resolver_winhttp.h",
348 ]
349 }
350
351 if (is_ios) {
352 # Add back some sources that were otherwise filtered out. iOS needs some Mac
353 # files.
354 net_shared_unfiltered_sources += [
355 "base/mac/url_conversions.h",
356 "base/mac/url_conversions.mm",
357 "base/network_change_notifier_mac.cc",
358 "base/network_config_watcher_mac.cc",
359 "base/network_interfaces_mac.cc",
360 "base/network_interfaces_mac.h",
361 "base/platform_mime_util_mac.mm",
362 "proxy/proxy_resolver_mac.cc",
363 "proxy/proxy_server_mac.cc",
364 ]
365
366 net_shared_sources -= [ "disk_cache/blockfile/file_posix.cc" ]
367 net_shared_deps += [
368 "//third_party/nss:nspr",
369 "//third_party/nss",
370 "//net/third_party/nss/ssl:libssl",
371 ]
372 }
373
374 if (is_ios || is_mac) {
375 net_shared_sources += gypi_values.net_base_mac_ios_sources
376 }
377
378 if (is_android) {
379 net_shared_deps += [ ":net_jni_headers" ]
380
381 # Add some Linux sources that were excluded by the filter, but which
382 # are needed.
383 net_shared_unfiltered_sources += [
384 "base/address_tracker_linux.cc",
385 "base/address_tracker_linux.h",
386 "base/network_interfaces_linux.cc",
387 "base/network_interfaces_linux.h",
388 "base/platform_mime_util_linux.cc",
389 ]
390 }
391
392 component("net") { 400 component("net") {
393 sources = net_shared_sources 401 sources = net_shared_sources
394 402
395 # Add back some sources that were otherwise filtered out. 403 # Add back some sources that were otherwise filtered out.
396 set_sources_assignment_filter([]) 404 set_sources_assignment_filter([])
397 sources += net_shared_unfiltered_sources 405 sources += net_shared_unfiltered_sources
398 set_sources_assignment_filter(sources_assignment_filter) 406 set_sources_assignment_filter(sources_assignment_filter)
399 407
400 cflags = [] 408 cflags = []
401 configs += net_shared_configs 409 configs += net_shared_configs
(...skipping 14 matching lines...) Expand all
416 if (is_ios) { 424 if (is_ios) {
417 libs = [ 425 libs = [
418 "CFNetwork.framework", 426 "CFNetwork.framework",
419 "MobileCoreServices.framework", 427 "MobileCoreServices.framework",
420 "Security.framework", 428 "Security.framework",
421 "SystemConfiguration.framework", 429 "SystemConfiguration.framework",
422 "resolv", 430 "resolv",
423 ] 431 ]
424 } 432 }
425 433
426 if (!disable_file_support) { 434 if (!is_nacl) {
427 sources += gypi_values.net_file_support_sources 435 if (!disable_file_support) {
436 sources += gypi_values.net_file_support_sources
437 }
438
439 if (!disable_ftp_support) {
440 sources += gypi_values.net_ftp_support_sources
441 }
442
443 if (enable_websockets) {
444 sources += gypi_values.net_websockets_sources
445 }
446
447 # ICU support.
448 deps += [
449 "//base:i18n",
450 "//third_party/icu",
451 ]
452 sources += [
453 "base/filename_util_icu.cc",
454 "base/net_string_util_icu.cc",
455 "base/net_util_icu.cc",
456 ]
428 } 457 }
429
430 if (!disable_ftp_support) {
431 sources += gypi_values.net_ftp_support_sources
432 }
433
434 if (enable_websockets) {
435 sources += gypi_values.net_websockets_sources
436 }
437
438 # ICU support.
439 deps += [
440 "//base:i18n",
441 "//third_party/icu",
442 ]
443 sources += [
444 "base/filename_util_icu.cc",
445 "base/net_string_util_icu.cc",
446 "base/net_util_icu.cc",
447 ]
448 } 458 }
449 459
450 if (is_android) { 460 if (is_android) {
451 # Same as net, but with ICU, file, ftp, and websocket support stripped. 461 # Same as net, but with ICU, file, ftp, and websocket support stripped.
452 component("net_small") { 462 component("net_small") {
453 sources = net_shared_sources 463 sources = net_shared_sources
454 464
455 # Add back some sources that were otherwise filtered out. 465 # Add back some sources that were otherwise filtered out.
456 set_sources_assignment_filter([]) 466 set_sources_assignment_filter([])
457 sources += net_shared_unfiltered_sources 467 sources += net_shared_unfiltered_sources
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1658 if (enable_websockets) { 1668 if (enable_websockets) {
1659 sources += [ "websockets/websocket_frame_perftest.cc" ] 1669 sources += [ "websockets/websocket_frame_perftest.cc" ]
1660 } 1670 }
1661 1671
1662 if (use_v8_in_net) { 1672 if (use_v8_in_net) {
1663 deps += [ ":net_with_v8" ] 1673 deps += [ ":net_with_v8" ]
1664 } else { 1674 } else {
1665 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1675 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1666 } 1676 }
1667 } 1677 }
OLDNEW
« no previous file with comments | « jingle/BUILD.gn ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698