blob: b1a8fd8e1b1944448ad4f6e0c820e988f1ab34ba [file] [log] [blame]
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +01001# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := net_net_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14 $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \
15 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
16 $(call intermediates-dir-for,GYP,net_net_resources_gyp)/net_resources.stamp \
17 $(call intermediates-dir-for,GYP,net_net_jni_headers_gyp)/net_jni_headers.stamp
18
19GYP_GENERATED_OUTPUTS :=
20
21# Make sure our deps and generated files are built first.
22LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
23
24LOCAL_CPP_EXTENSION := .cc
25LOCAL_GENERATED_SOURCES :=
26
27GYP_COPIED_SOURCE_ORIGIN_DIRS :=
28
29LOCAL_SRC_FILES := \
30 net/android/gurl_utils.cc \
31 net/android/keystore.cc \
32 net/android/keystore_openssl.cc \
33 net/android/net_jni_registrar.cc \
34 net/android/network_change_notifier_android.cc \
35 net/android/network_change_notifier_delegate_android.cc \
36 net/android/network_change_notifier_factory_android.cc \
37 net/android/network_library.cc \
38 net/base/address_list.cc \
39 net/base/auth.cc \
40 net/base/backoff_entry.cc \
41 net/base/bandwidth_metrics.cc \
42 net/base/big_endian.cc \
43 net/base/connection_type_histograms.cc \
44 net/base/crypto_module_openssl.cc \
45 net/base/data_url.cc \
46 net/base/directory_lister.cc \
47 net/base/dns_reloader.cc \
48 net/base/dns_util.cc \
49 net/base/escape.cc \
50 net/base/file_stream.cc \
51 net/base/file_stream_context.cc \
52 net/base/file_stream_context_posix.cc \
53 net/base/file_stream_metrics.cc \
54 net/base/file_stream_metrics_posix.cc \
55 net/base/file_stream_net_log_parameters.cc \
56 net/base/filter.cc \
57 net/base/int128.cc \
58 net/base/gzip_filter.cc \
59 net/base/gzip_header.cc \
60 net/base/hash_value.cc \
61 net/base/host_mapping_rules.cc \
62 net/base/host_port_pair.cc \
63 net/base/io_buffer.cc \
64 net/base/ip_endpoint.cc \
65 net/base/keygen_handler.cc \
66 net/base/keygen_handler_openssl.cc \
67 net/base/load_timing_info.cc \
68 net/base/mime_sniffer.cc \
69 net/base/mime_util.cc \
70 net/base/net_errors.cc \
71 net/base/net_errors_posix.cc \
72 net/base/net_log.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +010073 net/base/net_log_logger.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010074 net/base/net_module.cc \
75 net/base/net_util.cc \
76 net/base/net_util_posix.cc \
77 net/base/network_change_notifier.cc \
78 net/base/network_delegate.cc \
79 net/base/network_time_notifier.cc \
80 net/base/openssl_private_key_store_android.cc \
81 net/base/platform_mime_util_linux.cc \
82 net/base/prioritized_dispatcher.cc \
83 net/base/registry_controlled_domains/registry_controlled_domain.cc \
84 net/base/sdch_filter.cc \
85 net/base/sdch_manager.cc \
86 net/base/static_cookie_policy.cc \
87 net/base/test_data_stream.cc \
88 net/base/upload_bytes_element_reader.cc \
89 net/base/upload_data.cc \
90 net/base/upload_data_stream.cc \
91 net/base/upload_element.cc \
92 net/base/upload_element_reader.cc \
93 net/base/upload_file_element_reader.cc \
94 net/base/url_util.cc \
95 net/base/zap.cc \
96 net/cert/asn1_util.cc \
97 net/cert/cert_database.cc \
98 net/cert/cert_database_android.cc \
99 net/cert/cert_status_flags.cc \
100 net/cert/cert_verifier.cc \
101 net/cert/cert_verify_proc.cc \
102 net/cert/cert_verify_proc_android.cc \
103 net/cert/cert_verify_result.cc \
104 net/cert/crl_set.cc \
105 net/cert/ev_root_ca_metadata.cc \
106 net/cert/multi_threaded_cert_verifier.cc \
107 net/cert/pem_tokenizer.cc \
108 net/cert/single_request_cert_verifier.cc \
109 net/cert/test_root_certs.cc \
110 net/cert/test_root_certs_android.cc \
111 net/cert/x509_cert_types.cc \
112 net/cert/x509_certificate.cc \
113 net/cert/x509_certificate_net_log_param.cc \
114 net/cert/x509_certificate_openssl.cc \
115 net/cert/x509_util.cc \
116 net/cert/x509_util_openssl.cc \
117 net/cookies/canonical_cookie.cc \
118 net/cookies/cookie_constants.cc \
119 net/cookies/cookie_monster.cc \
120 net/cookies/cookie_store.cc \
121 net/cookies/cookie_util.cc \
122 net/cookies/parsed_cookie.cc \
123 net/disk_cache/addr.cc \
124 net/disk_cache/backend_impl.cc \
125 net/disk_cache/bitmap.cc \
126 net/disk_cache/block_files.cc \
127 net/disk_cache/cache_creator.cc \
128 net/disk_cache/cache_util.cc \
129 net/disk_cache/cache_util_posix.cc \
130 net/disk_cache/disk_format.cc \
131 net/disk_cache/entry_impl.cc \
132 net/disk_cache/eviction.cc \
133 net/disk_cache/file.cc \
134 net/disk_cache/file_lock.cc \
135 net/disk_cache/file_posix.cc \
136 net/disk_cache/in_flight_backend_io.cc \
137 net/disk_cache/in_flight_io.cc \
138 net/disk_cache/mapped_file_avoid_mmap_posix.cc \
139 net/disk_cache/mem_backend_impl.cc \
140 net/disk_cache/mem_entry_impl.cc \
141 net/disk_cache/mem_rankings.cc \
142 net/disk_cache/net_log_parameters.cc \
143 net/disk_cache/rankings.cc \
144 net/disk_cache/sparse_control.cc \
145 net/disk_cache/stats.cc \
146 net/disk_cache/stats_histogram.cc \
147 net/disk_cache/trace.cc \
148 net/disk_cache/tracing_cache_backend.cc \
149 net/disk_cache/simple/simple_backend_impl.cc \
150 net/disk_cache/simple/simple_entry_format.cc \
151 net/disk_cache/simple/simple_entry_impl.cc \
152 net/disk_cache/simple/simple_index.cc \
153 net/disk_cache/simple/simple_index_file.cc \
154 net/disk_cache/simple/simple_synchronous_entry.cc \
155 net/disk_cache/simple/simple_util.cc \
156 net/disk_cache/flash/flash_entry_impl.cc \
157 net/disk_cache/flash/internal_entry.cc \
158 net/disk_cache/flash/log_store.cc \
159 net/disk_cache/flash/log_store_entry.cc \
160 net/disk_cache/flash/segment.cc \
161 net/disk_cache/flash/storage.cc \
162 net/dns/address_sorter_posix.cc \
163 net/dns/dns_client.cc \
164 net/dns/dns_config_service.cc \
165 net/dns/dns_config_service_posix.cc \
166 net/dns/dns_hosts.cc \
167 net/dns/dns_query.cc \
168 net/dns/dns_response.cc \
169 net/dns/dns_session.cc \
170 net/dns/dns_socket_pool.cc \
171 net/dns/dns_transaction.cc \
172 net/dns/host_cache.cc \
173 net/dns/host_resolver.cc \
174 net/dns/host_resolver_impl.cc \
175 net/dns/host_resolver_proc.cc \
176 net/dns/mapped_host_resolver.cc \
177 net/dns/serial_worker.cc \
178 net/dns/single_request_host_resolver.cc \
179 net/ftp/ftp_auth_cache.cc \
180 net/ftp/ftp_ctrl_response_buffer.cc \
181 net/ftp/ftp_directory_listing_parser.cc \
182 net/ftp/ftp_directory_listing_parser_ls.cc \
183 net/ftp/ftp_directory_listing_parser_netware.cc \
184 net/ftp/ftp_directory_listing_parser_os2.cc \
185 net/ftp/ftp_directory_listing_parser_vms.cc \
186 net/ftp/ftp_directory_listing_parser_windows.cc \
187 net/ftp/ftp_network_layer.cc \
188 net/ftp/ftp_network_session.cc \
189 net/ftp/ftp_network_transaction.cc \
190 net/ftp/ftp_response_info.cc \
191 net/ftp/ftp_server_type_histograms.cc \
192 net/ftp/ftp_util.cc \
193 net/http/des.cc \
194 net/http/http_auth.cc \
195 net/http/http_auth_cache.cc \
196 net/http/http_auth_controller.cc \
197 net/http/http_auth_filter.cc \
198 net/http/http_auth_handler.cc \
199 net/http/http_auth_handler_basic.cc \
200 net/http/http_auth_handler_digest.cc \
201 net/http/http_auth_handler_factory.cc \
202 net/http/http_auth_handler_ntlm.cc \
203 net/http/http_auth_handler_ntlm_portable.cc \
204 net/http/http_basic_stream.cc \
205 net/http/http_byte_range.cc \
206 net/http/http_cache.cc \
207 net/http/http_cache_transaction.cc \
208 net/http/http_content_disposition.cc \
209 net/http/http_chunked_decoder.cc \
210 net/http/http_network_layer.cc \
211 net/http/http_network_session.cc \
212 net/http/http_network_session_peer.cc \
213 net/http/http_network_transaction.cc \
214 net/http/http_pipelined_connection_impl.cc \
215 net/http/http_pipelined_host.cc \
216 net/http/http_pipelined_host_forced.cc \
217 net/http/http_pipelined_host_impl.cc \
218 net/http/http_pipelined_host_pool.cc \
219 net/http/http_pipelined_stream.cc \
220 net/http/http_proxy_client_socket.cc \
221 net/http/http_proxy_client_socket_pool.cc \
222 net/http/http_request_headers.cc \
223 net/http/http_request_info.cc \
224 net/http/http_response_body_drainer.cc \
225 net/http/http_response_headers.cc \
226 net/http/http_response_info.cc \
227 net/http/http_security_headers.cc \
228 net/http/http_server_properties.cc \
229 net/http/http_server_properties_impl.cc \
230 net/http/http_status_code.cc \
231 net/http/http_stream_factory.cc \
232 net/http/http_stream_factory_impl.cc \
233 net/http/http_stream_factory_impl_job.cc \
234 net/http/http_stream_factory_impl_request.cc \
235 net/http/http_stream_parser.cc \
236 net/http/http_util.cc \
237 net/http/http_util_icu.cc \
238 net/http/http_vary_data.cc \
239 net/http/md4.cc \
240 net/http/partial_data.cc \
241 net/http/proxy_client_socket.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +0100242 net/http/proxy_connect_redirect_http_stream.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100243 net/http/transport_security_state.cc \
244 net/http/url_security_manager.cc \
245 net/http/url_security_manager_posix.cc \
246 net/proxy/dhcp_proxy_script_fetcher.cc \
247 net/proxy/dhcp_proxy_script_fetcher_factory.cc \
248 net/proxy/multi_threaded_proxy_resolver.cc \
249 net/proxy/network_delegate_error_observer.cc \
250 net/proxy/polling_proxy_config_service.cc \
251 net/proxy/proxy_bypass_rules.cc \
252 net/proxy/proxy_config.cc \
253 net/proxy/proxy_config_service_android.cc \
254 net/proxy/proxy_config_service_fixed.cc \
255 net/proxy/proxy_config_source.cc \
256 net/proxy/proxy_info.cc \
257 net/proxy/proxy_list.cc \
258 net/proxy/proxy_resolver_script_data.cc \
259 net/proxy/proxy_script_decider.cc \
260 net/proxy/proxy_script_fetcher_impl.cc \
261 net/proxy/proxy_server.cc \
262 net/proxy/proxy_service.cc \
263 net/quic/congestion_control/available_channel_estimator.cc \
264 net/quic/congestion_control/channel_estimator.cc \
265 net/quic/congestion_control/cube_root.cc \
266 net/quic/congestion_control/cubic.cc \
267 net/quic/congestion_control/fix_rate_receiver.cc \
268 net/quic/congestion_control/fix_rate_sender.cc \
269 net/quic/congestion_control/hybrid_slow_start.cc \
270 net/quic/congestion_control/inter_arrival_bitrate_ramp_up.cc \
271 net/quic/congestion_control/inter_arrival_overuse_detector.cc \
272 net/quic/congestion_control/inter_arrival_probe.cc \
273 net/quic/congestion_control/inter_arrival_receiver.cc \
274 net/quic/congestion_control/inter_arrival_sender.cc \
275 net/quic/congestion_control/inter_arrival_state_machine.cc \
276 net/quic/congestion_control/leaky_bucket.cc \
277 net/quic/congestion_control/paced_sender.cc \
278 net/quic/congestion_control/quic_congestion_manager.cc \
279 net/quic/congestion_control/receive_algorithm_interface.cc \
280 net/quic/congestion_control/send_algorithm_interface.cc \
281 net/quic/congestion_control/tcp_cubic_sender.cc \
282 net/quic/congestion_control/tcp_receiver.cc \
283 net/quic/crypto/aes_128_gcm_12_decrypter_openssl.cc \
284 net/quic/crypto/aes_128_gcm_12_encrypter_openssl.cc \
285 net/quic/crypto/cert_compressor.cc \
286 net/quic/crypto/channel_id.cc \
287 net/quic/crypto/channel_id_openssl.cc \
288 net/quic/crypto/common_cert_set.cc \
289 net/quic/crypto/crypto_framer.cc \
290 net/quic/crypto/crypto_handshake.cc \
291 net/quic/crypto/crypto_secret_boxer.cc \
292 net/quic/crypto/crypto_server_config.cc \
293 net/quic/crypto/crypto_server_config_protobuf.cc \
294 net/quic/crypto/crypto_utils.cc \
295 net/quic/crypto/curve25519_key_exchange.cc \
296 net/quic/crypto/null_decrypter.cc \
297 net/quic/crypto/null_encrypter.cc \
298 net/quic/crypto/p256_key_exchange_openssl.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +0100299 net/quic/crypto/proof_verifier_chromium.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100300 net/quic/crypto/quic_decrypter.cc \
301 net/quic/crypto/quic_encrypter.cc \
302 net/quic/crypto/quic_random.cc \
303 net/quic/crypto/scoped_evp_cipher_ctx.cc \
304 net/quic/crypto/strike_register.cc \
305 net/quic/crypto/source_address_token.cc \
306 net/quic/quic_bandwidth.cc \
307 net/quic/quic_client_session.cc \
308 net/quic/quic_config.cc \
309 net/quic/quic_crypto_client_stream.cc \
310 net/quic/quic_crypto_server_stream.cc \
311 net/quic/quic_crypto_stream.cc \
312 net/quic/quic_clock.cc \
313 net/quic/quic_connection.cc \
314 net/quic/quic_connection_helper.cc \
315 net/quic/quic_connection_logger.cc \
316 net/quic/quic_data_reader.cc \
317 net/quic/quic_data_writer.cc \
318 net/quic/quic_fec_group.cc \
319 net/quic/quic_framer.cc \
320 net/quic/quic_http_stream.cc \
321 net/quic/quic_packet_creator.cc \
322 net/quic/quic_packet_entropy_manager.cc \
323 net/quic/quic_packet_generator.cc \
324 net/quic/quic_protocol.cc \
325 net/quic/quic_reliable_client_stream.cc \
326 net/quic/quic_session.cc \
327 net/quic/quic_spdy_compressor.cc \
328 net/quic/quic_spdy_decompressor.cc \
329 net/quic/quic_stats.cc \
330 net/quic/quic_stream_factory.cc \
331 net/quic/quic_stream_sequencer.cc \
332 net/quic/quic_time.cc \
333 net/quic/quic_utils.cc \
334 net/quic/reliable_quic_stream.cc \
335 net/quic/spdy_utils.cc \
336 net/socket/buffered_write_stream_socket.cc \
337 net/socket/client_socket_factory.cc \
338 net/socket/client_socket_handle.cc \
339 net/socket/client_socket_pool.cc \
340 net/socket/client_socket_pool_base.cc \
341 net/socket/client_socket_pool_histograms.cc \
342 net/socket/client_socket_pool_manager.cc \
343 net/socket/client_socket_pool_manager_impl.cc \
344 net/socket/socket_net_log_params.cc \
345 net/socket/socks5_client_socket.cc \
346 net/socket/socks_client_socket.cc \
347 net/socket/socks_client_socket_pool.cc \
348 net/socket/ssl_client_socket.cc \
349 net/socket/ssl_client_socket_openssl.cc \
350 net/socket/ssl_client_socket_pool.cc \
351 net/socket/ssl_error_params.cc \
352 net/socket/ssl_server_socket_openssl.cc \
353 net/socket/stream_listen_socket.cc \
354 net/socket/stream_socket.cc \
355 net/socket/tcp_client_socket.cc \
356 net/socket/tcp_client_socket_libevent.cc \
357 net/socket/tcp_listen_socket.cc \
358 net/socket/tcp_server_socket_libevent.cc \
359 net/socket/transport_client_socket_pool.cc \
360 net/socket/unix_domain_socket_posix.cc \
361 net/socket_stream/socket_stream.cc \
362 net/socket_stream/socket_stream_job.cc \
363 net/socket_stream/socket_stream_job_manager.cc \
364 net/socket_stream/socket_stream_metrics.cc \
365 net/spdy/buffered_spdy_framer.cc \
366 net/spdy/spdy_buffer.cc \
367 net/spdy/spdy_buffer_producer.cc \
368 net/spdy/spdy_credential_builder.cc \
369 net/spdy/spdy_credential_state.cc \
370 net/spdy/spdy_frame_builder.cc \
371 net/spdy/spdy_frame_reader.cc \
372 net/spdy/spdy_framer.cc \
373 net/spdy/spdy_header_block.cc \
374 net/spdy/spdy_http_stream.cc \
375 net/spdy/spdy_http_utils.cc \
376 net/spdy/spdy_protocol.cc \
377 net/spdy/spdy_proxy_client_socket.cc \
378 net/spdy/spdy_read_queue.cc \
379 net/spdy/spdy_session.cc \
380 net/spdy/spdy_session_key.cc \
381 net/spdy/spdy_session_pool.cc \
382 net/spdy/spdy_stream.cc \
383 net/spdy/spdy_websocket_stream.cc \
384 net/spdy/spdy_write_queue.cc \
385 net/ssl/default_server_bound_cert_store.cc \
386 net/ssl/openssl_client_key_store.cc \
387 net/ssl/server_bound_cert_service.cc \
388 net/ssl/server_bound_cert_store.cc \
389 net/ssl/ssl_cert_request_info.cc \
390 net/ssl/ssl_cipher_suite_names.cc \
391 net/ssl/ssl_client_auth_cache.cc \
392 net/ssl/ssl_config_service.cc \
393 net/ssl/ssl_config_service_defaults.cc \
394 net/ssl/ssl_info.cc \
395 net/udp/udp_client_socket.cc \
396 net/udp/udp_net_log_parameters.cc \
397 net/udp/udp_server_socket.cc \
398 net/udp/udp_socket_libevent.cc \
399 net/url_request/data_protocol_handler.cc \
400 net/url_request/file_protocol_handler.cc \
401 net/url_request/ftp_protocol_handler.cc \
402 net/url_request/protocol_intercept_job_factory.cc \
403 net/url_request/static_http_user_agent_settings.cc \
404 net/url_request/url_fetcher.cc \
405 net/url_request/url_fetcher_core.cc \
406 net/url_request/url_fetcher_delegate.cc \
407 net/url_request/url_fetcher_impl.cc \
408 net/url_request/url_fetcher_response_writer.cc \
409 net/url_request/url_request.cc \
410 net/url_request/url_request_about_job.cc \
411 net/url_request/url_request_context.cc \
412 net/url_request/url_request_context_builder.cc \
413 net/url_request/url_request_context_getter.cc \
414 net/url_request/url_request_context_storage.cc \
415 net/url_request/url_request_data_job.cc \
416 net/url_request/url_request_error_job.cc \
417 net/url_request/url_request_file_dir_job.cc \
418 net/url_request/url_request_file_job.cc \
419 net/url_request/url_request_filter.cc \
420 net/url_request/url_request_ftp_job.cc \
421 net/url_request/url_request_http_job.cc \
422 net/url_request/url_request_job.cc \
423 net/url_request/url_request_job_factory.cc \
424 net/url_request/url_request_job_factory_impl.cc \
425 net/url_request/url_request_job_manager.cc \
426 net/url_request/url_request_netlog_params.cc \
427 net/url_request/url_request_redirect_job.cc \
428 net/url_request/url_request_simple_job.cc \
429 net/url_request/url_request_test_job.cc \
430 net/url_request/url_request_throttler_entry.cc \
431 net/url_request/url_request_throttler_header_adapter.cc \
432 net/url_request/url_request_throttler_manager.cc \
433 net/url_request/view_cache_helper.cc \
434 net/websockets/websocket_errors.cc \
435 net/websockets/websocket_frame.cc \
436 net/websockets/websocket_frame_parser.cc \
437 net/websockets/websocket_handshake_handler.cc \
438 net/websockets/websocket_job.cc \
439 net/websockets/websocket_net_log_params.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +0100440 net/websockets/websocket_stream.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100441 net/websockets/websocket_throttle.cc
442
443
444# Flags passed to both C and C++ files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100445MY_CFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100446 -fstack-protector \
447 --param=ssp-buffer-size=4 \
448 \
449 -fno-exceptions \
450 -fno-strict-aliasing \
451 -Wall \
452 -Wno-unused-parameter \
453 -Wno-missing-field-initializers \
454 -fvisibility=hidden \
455 -pipe \
456 -fPIC \
457 -EL \
458 -mhard-float \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100459 -ffunction-sections \
460 -funwind-tables \
461 -g \
462 -fstack-protector \
463 -fno-short-enums \
464 -finline-limit=64 \
465 -Wa,--noexecstack \
466 -U_FORTIFY_SOURCE \
467 -Wno-extra \
468 -Wno-ignored-qualifiers \
469 -Wno-type-limits \
470 -Os \
471 -g \
472 -fomit-frame-pointer \
473 -fdata-sections \
474 -ffunction-sections
475
Ben Murdocheb525c52013-07-10 11:40:50 +0100476MY_DEFS_Debug := \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100477 '-DANGLE_DX11' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100478 '-D_FILE_OFFSET_BITS=64' \
479 '-DNO_TCMALLOC' \
480 '-DDISABLE_NACL' \
481 '-DCHROMIUM_BUILD' \
482 '-DUSE_LIBJPEG_TURBO=1' \
483 '-DUSE_PROPRIETARY_CODECS' \
484 '-DENABLE_GPU=1' \
485 '-DUSE_OPENSSL=1' \
486 '-DENABLE_EGLIMAGE=1' \
487 '-DENABLE_LANGUAGE_DETECTION=1' \
488 '-DNET_IMPLEMENTATION' \
489 '-DPOSIX_AVOID_MMAP' \
490 '-DENABLE_BUILT_IN_DNS' \
491 '-DU_USING_ICU_NAMESPACE=0' \
492 '-D__STDC_CONSTANT_MACROS' \
493 '-D__STDC_FORMAT_MACROS' \
494 '-DANDROID' \
495 '-D__GNU_SOURCE=1' \
496 '-DUSE_STLPORT=1' \
497 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
498 '-DCHROME_BUILD_ID=""' \
499 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
500 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
501 '-D_DEBUG'
502
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100503
504# Include paths placed before CFLAGS/CPPFLAGS
Ben Murdocheb525c52013-07-10 11:40:50 +0100505LOCAL_C_INCLUDES_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100506 $(LOCAL_PATH)/third_party/openssl \
507 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
508 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
509 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
510 $(LOCAL_PATH) \
511 $(LOCAL_PATH)/sdch/open-vcdiff/src \
512 $(PWD)/external/icu4c/common \
513 $(PWD)/external/icu4c/i18n \
514 $(LOCAL_PATH)/third_party/zlib \
515 $(gyp_shared_intermediate_dir)/net \
516 $(LOCAL_PATH)/third_party/openssl/openssl/include \
517 $(PWD)/frameworks/wilhelm/include \
518 $(PWD)/bionic \
519 $(PWD)/external/stlport/stlport
520
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100521
522# Flags passed to only C++ (and not C) files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100523LOCAL_CPPFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100524 -fno-rtti \
525 -fno-threadsafe-statics \
526 -fvisibility-inlines-hidden \
527 -Wsign-compare \
528 -Wno-uninitialized \
529 -Wno-error=c++0x-compat \
530 -Wno-non-virtual-dtor \
531 -Wno-sign-promo
532
Ben Murdocheb525c52013-07-10 11:40:50 +0100533
534# Flags passed to both C and C++ files.
535MY_CFLAGS_Release := \
536 -fstack-protector \
537 --param=ssp-buffer-size=4 \
538 \
539 -fno-exceptions \
540 -fno-strict-aliasing \
541 -Wall \
542 -Wno-unused-parameter \
543 -Wno-missing-field-initializers \
544 -fvisibility=hidden \
545 -pipe \
546 -fPIC \
547 -EL \
548 -mhard-float \
549 -ffunction-sections \
550 -funwind-tables \
551 -g \
552 -fstack-protector \
553 -fno-short-enums \
554 -finline-limit=64 \
555 -Wa,--noexecstack \
556 -U_FORTIFY_SOURCE \
557 -Wno-extra \
558 -Wno-ignored-qualifiers \
559 -Wno-type-limits \
560 -Os \
561 -fno-ident \
562 -fdata-sections \
563 -ffunction-sections \
564 -fomit-frame-pointer
565
566MY_DEFS_Release := \
567 '-DANGLE_DX11' \
568 '-D_FILE_OFFSET_BITS=64' \
569 '-DNO_TCMALLOC' \
570 '-DDISABLE_NACL' \
571 '-DCHROMIUM_BUILD' \
572 '-DUSE_LIBJPEG_TURBO=1' \
573 '-DUSE_PROPRIETARY_CODECS' \
574 '-DENABLE_GPU=1' \
575 '-DUSE_OPENSSL=1' \
576 '-DENABLE_EGLIMAGE=1' \
577 '-DENABLE_LANGUAGE_DETECTION=1' \
578 '-DNET_IMPLEMENTATION' \
579 '-DPOSIX_AVOID_MMAP' \
580 '-DENABLE_BUILT_IN_DNS' \
581 '-DU_USING_ICU_NAMESPACE=0' \
582 '-D__STDC_CONSTANT_MACROS' \
583 '-D__STDC_FORMAT_MACROS' \
584 '-DANDROID' \
585 '-D__GNU_SOURCE=1' \
586 '-DUSE_STLPORT=1' \
587 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
588 '-DCHROME_BUILD_ID=""' \
589 '-DNDEBUG' \
590 '-DNVALGRIND' \
591 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
592 '-D_FORTIFY_SOURCE=2'
593
594
595# Include paths placed before CFLAGS/CPPFLAGS
596LOCAL_C_INCLUDES_Release := \
597 $(LOCAL_PATH)/third_party/openssl \
598 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
599 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
600 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
601 $(LOCAL_PATH) \
602 $(LOCAL_PATH)/sdch/open-vcdiff/src \
603 $(PWD)/external/icu4c/common \
604 $(PWD)/external/icu4c/i18n \
605 $(LOCAL_PATH)/third_party/zlib \
606 $(gyp_shared_intermediate_dir)/net \
607 $(LOCAL_PATH)/third_party/openssl/openssl/include \
608 $(PWD)/frameworks/wilhelm/include \
609 $(PWD)/bionic \
610 $(PWD)/external/stlport/stlport
611
612
613# Flags passed to only C++ (and not C) files.
614LOCAL_CPPFLAGS_Release := \
615 -fno-rtti \
616 -fno-threadsafe-statics \
617 -fvisibility-inlines-hidden \
618 -Wsign-compare \
619 -Wno-uninitialized \
620 -Wno-error=c++0x-compat \
621 -Wno-non-virtual-dtor \
622 -Wno-sign-promo
623
624
625LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
626LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
627LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100628### Rules for final target.
629
Ben Murdocheb525c52013-07-10 11:40:50 +0100630LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100631 -Wl,-z,now \
632 -Wl,-z,relro \
633 -Wl,-z,noexecstack \
634 -fPIC \
635 -EL \
636 -Wl,--no-keep-memory \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100637 -nostdlib \
638 -Wl,--no-undefined \
639 -Wl,--exclude-libs=ALL \
640 -Wl,--gc-sections \
641 -Wl,-O1 \
642 -Wl,--as-needed
643
644
Ben Murdocheb525c52013-07-10 11:40:50 +0100645LOCAL_LDFLAGS_Release := \
646 -Wl,-z,now \
647 -Wl,-z,relro \
648 -Wl,-z,noexecstack \
649 -fPIC \
650 -EL \
651 -Wl,--no-keep-memory \
652 -nostdlib \
653 -Wl,--no-undefined \
654 -Wl,--exclude-libs=ALL \
655 -Wl,-O1 \
656 -Wl,--as-needed \
657 -Wl,--gc-sections
658
659
660LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
661
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100662LOCAL_STATIC_LIBRARIES :=
663
664# Enable grouping to fix circular references
665LOCAL_GROUP_STATIC_LIBRARIES := true
666
667LOCAL_SHARED_LIBRARIES := \
668 libstlport \
669 libdl
670
671# Add target alias to "gyp_all_modules" target.
672.PHONY: gyp_all_modules
673gyp_all_modules: net_net_gyp
674
675# Alias gyp target name.
676.PHONY: net
677net: net_net_gyp
678
679include $(BUILD_STATIC_LIBRARY)