Android.mk revision 7f92e4ca7bcb209f5d9b38cacaf3a1c6cbe493aa
1LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_CPP_EXTENSION := .cc
6
7LOCAL_MODULE := libchromium_net
8LOCAL_MODULE_CLASS := STATIC_LIBRARIES
9INTERMEDIATES := $(call local-intermediates-dir)
10
11LOCAL_SRC_FILES := \
12    googleurl/src/gurl.cc \
13    googleurl/src/url_canon_etc.cc \
14    googleurl/src/url_canon_fileurl.cc \
15    googleurl/src/url_canon_host.cc \
16    googleurl/src/url_canon_icu.cc \
17    googleurl/src/url_canon_internal.cc \
18    googleurl/src/url_canon_ip.cc \
19    googleurl/src/url_canon_mailtourl.cc \
20    googleurl/src/url_canon_path.cc \
21    googleurl/src/url_canon_pathurl.cc \
22    googleurl/src/url_canon_query.cc \
23    googleurl/src/url_canon_relative.cc \
24    googleurl/src/url_canon_stdurl.cc \
25    googleurl/src/url_parse.cc \
26    googleurl/src/url_parse_file.cc \
27    googleurl/src/url_util.cc \
28    \
29    android/jni/mime_utils.cc \
30    android/jni/jni_utils.cc \
31    \
32    app/sql/connection.cc \
33    app/sql/meta_table.cc \
34    app/sql/statement.cc \
35    app/sql/transaction.cc \
36    \
37    base/at_exit.cc \
38    base/base64.cc \
39    base/cancellation_flag.cc \
40    base/condition_variable_posix.cc \
41    base/debug_util_posix.cc \
42    base/field_trial.cc \
43    base/file_descriptor_shuffle.cc \
44    base/file_path.cc \
45    base/file_util.cc \
46    base/file_util_android.cc \
47    base/file_util_posix.cc \
48    base/histogram.cc \
49    base/lazy_instance.cc \
50    base/lock.cc \
51    base/lock_impl_posix.cc \
52    base/logging.cc \
53    base/message_loop.cc \
54    base/message_loop_proxy.cc \
55    base/message_loop_proxy_impl.cc \
56    base/message_pump.cc \
57    base/message_pump_default.cc \
58    base/message_pump_libevent.cc \
59    base/md5.cc \
60    base/native_library_linux.cc \
61    base/non_thread_safe.cc \
62    base/pickle.cc \
63    base/platform_file_posix.cc \
64    base/platform_thread_posix.cc \
65    base/process_util.cc \
66    base/process_util_linux.cc \
67    base/process_util_posix.cc \
68    base/rand_util.cc \
69    base/rand_util_posix.cc \
70    base/ref_counted.cc \
71    base/safe_strerror_posix.cc \
72    base/sha1_portable.cc \
73    base/sha2.cc \
74    base/stats_counters.cc \
75    base/stats_table.cc \
76    base/string_number_conversions.cc \
77    base/string_piece.cc \
78    base/string_split.cc \
79    base/string_util.cc \
80    base/string16.cc \
81    base/stringprintf.cc \
82    base/sys_info_linux.cc \
83    base/sys_info_posix.cc \
84    base/sys_string_conversions_linux.cc \
85    base/task.cc \
86    base/thread.cc \
87    base/thread_checker.cc \
88    base/thread_collision_warner.cc \
89    base/thread_local_posix.cc \
90    base/thread_local_storage_posix.cc \
91    base/time.cc \
92    base/time_posix.cc \
93    base/timer.cc \
94    base/trace_event.cc \
95    base/tracked.cc \
96    base/tracked_objects.cc \
97    base/waitable_event_posix.cc \
98    base/utf_offset_string_conversions.cc \
99    base/utf_string_conversions.cc \
100    base/utf_string_conversion_utils.cc \
101    base/values.cc \
102    base/weak_ptr.cc \
103    base/worker_pool_linux.cc \
104    \
105    base/i18n/file_util_icu.cc \
106    base/i18n/time_formatting.cc \
107    \
108    base/json/json_reader.cc \
109    base/json/json_writer.cc \
110    base/json/string_escape.cc \
111    \
112    base/i18n/icu_string_conversions.cc \
113    \
114    base/third_party/dmg_fp/dtoa.cc \
115    base/third_party/dmg_fp/g_fmt.cc \
116    \
117    base/third_party/icu/icu_utf.cc \
118    \
119    base/third_party/nspr/prtime.cc \
120    \
121    base/third_party/nss/sha512.cc \
122    \
123    chrome/browser/net/sqlite_persistent_cookie_store.cc \
124    \
125    third_party/modp_b64/modp_b64.cc \
126    \
127    net/base/address_list.cc \
128    net/base/address_list_net_log_param.cc \
129    net/base/auth.cc \
130    net/base/capturing_net_log.cc \
131    net/base/cert_status_flags.cc \
132    net/base/connection_type_histograms.cc \
133    net/base/cookie_monster.cc \
134    net/base/data_url.cc \
135    net/base/directory_lister.cc \
136    net/base/dns_util.cc \
137    net/base/dnsrr_resolver.cc \
138    net/base/escape.cc \
139    net/base/file_stream_posix.cc \
140    net/base/filter.cc \
141    net/base/forwarding_net_log.cc \
142    net/base/gzip_filter.cc \
143    net/base/gzip_header.cc \
144    net/base/host_cache.cc \
145    net/base/host_mapping_rules.cc \
146    net/base/host_port_pair.cc \
147    net/base/host_resolver.cc \
148    net/base/host_resolver_impl.cc \
149    net/base/host_resolver_proc.cc \
150    net/base/io_buffer.cc \
151    net/base/mime_util.cc \
152    net/base/net_errors.cc \
153    net/base/net_log.cc \
154    net/base/net_module.cc \
155    net/base/net_util.cc \
156    net/base/net_util_posix.cc \
157    net/base/network_change_notifier.cc \
158    net/base/network_change_notifier_linux.cc \
159    net/base/network_change_notifier_netlink_linux.cc \
160    net/base/pem_tokenizer.cc \
161    net/base/platform_mime_util_android.cc \
162    net/base/registry_controlled_domain.cc \
163    net/base/sdch_manager.cc \
164    net/base/sdch_filter.cc \
165    net/base/ssl_cert_request_info.cc \
166    net/base/ssl_client_auth_cache.cc \
167    net/base/ssl_config_service.cc \
168    net/base/ssl_config_service_defaults.cc \
169    net/base/ssl_info.cc \
170    net/base/transport_security_state.cc \
171    net/base/upload_data.cc \
172    net/base/upload_data_stream.cc \
173    net/base/x509_cert_types.cc \
174    net/base/x509_certificate.cc \
175    net/base/x509_certificate_openssl.cc \
176    \
177    net/disk_cache/addr.cc \
178    net/disk_cache/backend_impl.cc \
179    net/disk_cache/bitmap.cc \
180    net/disk_cache/block_files.cc \
181    net/disk_cache/cache_util_posix.cc \
182    net/disk_cache/entry_impl.cc \
183    net/disk_cache/eviction.cc \
184    net/disk_cache/file_lock.cc \
185    net/disk_cache/file_posix.cc \
186    net/disk_cache/hash.cc \
187    net/disk_cache/in_flight_backend_io.cc \
188    net/disk_cache/in_flight_io.cc \
189    net/disk_cache/mapped_file_posix.cc \
190    net/disk_cache/mem_backend_impl.cc \
191    net/disk_cache/mem_entry_impl.cc \
192    net/disk_cache/mem_rankings.cc \
193    net/disk_cache/rankings.cc \
194    net/disk_cache/stats.cc \
195    net/disk_cache/stats_histogram.cc \
196    net/disk_cache/sparse_control.cc \
197    net/disk_cache/trace.cc \
198    \
199    net/spdy/spdy_framer.cc \
200    net/spdy/spdy_frame_builder.cc \
201    net/spdy/spdy_http_stream.cc \
202    net/spdy/spdy_http_utils.cc \
203    net/spdy/spdy_io_buffer.cc \
204    net/spdy/spdy_session.cc \
205    net/spdy/spdy_session_pool.cc \
206    net/spdy/spdy_settings_storage.cc \
207    net/spdy/spdy_stream.cc \
208    \
209    net/http/des.cc \
210    net/http/http_alternate_protocols.cc \
211    net/http/http_auth.cc \
212    net/http/http_auth_cache.cc \
213    net/http/http_auth_controller.cc \
214    net/http/http_auth_gssapi_posix.cc \
215    net/http/http_auth_handler.cc \
216    net/http/http_auth_handler_basic.cc \
217    net/http/http_auth_handler_digest.cc \
218    net/http/http_auth_handler_factory.cc \
219    net/http/http_auth_handler_negotiate.cc \
220    net/http/http_auth_handler_ntlm.cc \
221    net/http/http_auth_handler_ntlm_portable.cc \
222    net/http/http_basic_stream.cc \
223    net/http/http_byte_range.cc \
224    net/http/http_cache.cc \
225    net/http/http_cache_transaction.cc \
226    net/http/http_chunked_decoder.cc \
227    net/http/http_network_layer.cc \
228    net/http/http_network_session.cc \
229    net/http/http_network_transaction.cc \
230    net/http/http_proxy_client_socket.cc \
231    net/http/http_proxy_client_socket_pool.cc \
232    net/http/http_request_headers.cc \
233    net/http/http_response_body_drainer.cc \
234    net/http/http_response_headers.cc \
235    net/http/http_response_info.cc \
236    net/http/http_stream_factory.cc \
237    net/http/http_stream_parser.cc \
238    net/http/http_stream_request.cc \
239    net/http/http_util.cc \
240    net/http/http_util_icu.cc \
241    net/http/http_vary_data.cc \
242    net/http/md4.cc \
243    net/http/partial_data.cc \
244    \
245    net/proxy/init_proxy_resolver.cc \
246    net/proxy/proxy_bypass_rules.cc \
247    net/proxy/proxy_config.cc \
248    net/proxy/proxy_info.cc \
249    net/proxy/proxy_list.cc \
250    net/proxy/multi_threaded_proxy_resolver.cc \
251    net/proxy/proxy_resolver_js_bindings.cc \
252    net/proxy/proxy_resolver_script_data.cc \
253    net/proxy/proxy_resolver_v8.cc \
254    net/proxy/proxy_script_fetcher.cc \
255    net/proxy/proxy_server.cc \
256    net/proxy/proxy_service.cc \
257    net/proxy/sync_host_resolver_bridge.cc \
258    \
259    net/socket/client_socket.cc \
260    net/socket/client_socket_handle.cc \
261    net/socket/client_socket_factory.cc \
262    net/socket/client_socket_pool.cc \
263    net/socket/client_socket_pool_base.cc \
264    net/socket/client_socket_pool_histograms.cc \
265    net/socket/client_socket_pool_manager.cc \
266    net/socket/socks_client_socket.cc \
267    net/socket/socks_client_socket_pool.cc \
268    net/socket/socks5_client_socket.cc \
269    net/socket/ssl_client_socket_openssl.cc \
270    net/socket/ssl_client_socket_pool.cc \
271    net/socket/tcp_client_socket_libevent.cc \
272    net/socket/tcp_client_socket_pool.cc \
273    \
274    net/url_request/https_prober.cc \
275    net/url_request/url_request.cc \
276    net/url_request/url_request_context.cc \
277    net/url_request/url_request_file_job.cc \
278    net/url_request/url_request_file_dir_job.cc \
279    net/url_request/url_request_http_job.cc \
280    net/url_request/url_request_error_job.cc \
281    net/url_request/url_request_job.cc \
282    net/url_request/url_request_job_manager.cc \
283    net/url_request/url_request_job_tracker.cc \
284    net/url_request/url_request_netlog_params.cc \
285    net/url_request/url_request_redirect_job.cc \
286    \
287    sdch/open-vcdiff/src/addrcache.cc \
288    sdch/open-vcdiff/src/blockhash.cc \
289    sdch/open-vcdiff/src/codetable.cc \
290    sdch/open-vcdiff/src/encodetable.cc \
291    sdch/open-vcdiff/src/decodetable.cc \
292    sdch/open-vcdiff/src/headerparser.cc \
293    sdch/open-vcdiff/src/instruction_map.cc \
294    sdch/open-vcdiff/src/logging.cc \
295    sdch/open-vcdiff/src/varint_bigendian.cc \
296    sdch/open-vcdiff/src/vcdecoder.cc \
297    sdch/open-vcdiff/src/vcdiffengine.cc \
298    sdch/open-vcdiff/src/vcencoder.cc \
299    \
300    third_party/libevent/event.c \
301    third_party/libevent/evutil.c \
302    third_party/libevent/epoll.c \
303    third_party/libevent/log.c \
304    third_party/libevent/poll.c \
305    third_party/libevent/select.c \
306    third_party/libevent/signal.c
307
308# AutoFill++ source files.
309LOCAL_SRC_FILES += \
310    android/autofill/android_url_request_context_getter.cc \
311    android/autofill/profile_android.cc \
312    \
313    base/base_paths.cc \
314    base/base_paths_posix.cc \
315    base/path_service.cc \
316    \
317    chrome/browser/autofill/address.cc \
318    chrome/browser/autofill/address_field.cc \
319    chrome/browser/autofill/autofill_download.cc \
320    chrome/browser/autofill/autofill_field.cc \
321    chrome/browser/autofill/autofill_manager.cc \
322    chrome/browser/autofill/autofill_profile.cc \
323    chrome/browser/autofill/autofill_type.cc \
324    chrome/browser/autofill/autofill_xml_parser.cc \
325    chrome/browser/autofill/contact_info.cc \
326    chrome/browser/autofill/credit_card.cc \
327    chrome/browser/autofill/credit_card_field.cc \
328    chrome/browser/autofill/fax_field.cc \
329    chrome/browser/autofill/form_field.cc \
330    chrome/browser/autofill/form_group.cc \
331    chrome/browser/autofill/form_structure.cc \
332    chrome/browser/autofill/name_field.cc \
333    chrome/browser/autofill/personal_data_manager.cc \
334    chrome/browser/autofill/phone_field.cc \
335    chrome/browser/autofill/phone_number.cc \
336    chrome/browser/autofill/select_control_handler.cc \
337    \
338    chrome/browser/prefs/default_pref_store.cc \
339    chrome/browser/prefs/pref_service.cc \
340    chrome/browser/prefs/pref_value_store.cc \
341    \
342    chrome/common/json_value_serializer.cc \
343    chrome/common/pref_names.cc \
344    chrome/common/url_constants.cc \
345    \
346    chrome/common/net/url_fetcher.cc \
347    chrome/common/net/url_fetcher_protect.cc \
348    chrome/common/net/url_request_context_getter.cc \
349    \
350    third_party/libjingle/overrides/talk/xmllite/qname.cc \
351    third_party/libjingle/source/talk/xmllite/xmlbuilder.cc \
352    third_party/libjingle/source/talk/xmllite/xmlconstants.cc \
353    third_party/libjingle/source/talk/xmllite/xmlelement.cc \
354    third_party/libjingle/source/talk/xmllite/xmlnsstack.cc \
355    third_party/libjingle/source/talk/xmllite/xmlparser.cc \
356    third_party/libjingle/source/talk/xmllite/xmlprinter.cc \
357    \
358    webkit/glue/form_data.cc
359
360LOCAL_C_INCLUDES := \
361    $(LOCAL_PATH)/chrome \
362    $(LOCAL_PATH)/chrome/browser \
363    $(LOCAL_PATH)/sdch/open-vcdiff/src \
364    $(LOCAL_PATH)/third_party/libevent/compat \
365    external/expat \
366    external/icu4c/common \
367    external/icu4c/i18n \
368    external/openssl/include \
369    external/skia \
370    external/sqlite/dist \
371    external/webkit/WebKit/chromium \
372    external/webkit/WebKit/android \
373    external/webkit/WebKit/android/WebCoreSupport \
374    external/zlib \
375    external \
376    $(LOCAL_PATH)/base/third_party/dmg_fp \
377    $(LOCAL_PATH)/third_party/icu/public/common \
378    $(LOCAL_PATH)/third_party/libevent/android \
379    $(LOCAL_PATH)/third_party/libevent \
380    $(LOCAL_PATH)/third_party/libjingle/overrides \
381    $(LOCAL_PATH)/third_party/libjingle/source \
382    vendor/google/libraries/autofill
383
384# Chromium uses several third party libraries and headers that are already
385# present on Android, but in different include paths. Generate a set of
386# forwarding headers in the location that Chromium expects.
387
388THIRD_PARTY = $(INTERMEDIATES)/third_party
389SCRIPT := $(LOCAL_PATH)/android/generateAndroidForwardingHeader.pl
390CHECK_INTERNAL_HEADER_SCRIPT := $(LOCAL_PATH)/android/haveAutofillInternal.pl
391
392GEN := $(THIRD_PARTY)/expat/files/lib/expat.h
393$(GEN): $(SCRIPT)
394$(GEN):
395	perl $(SCRIPT) $@ "lib/expat.h"
396LOCAL_GENERATED_SOURCES += $(GEN)
397
398GEN := $(THIRD_PARTY)/skia/include/core/SkBitmap.h
399$(GEN): $(SCRIPT)
400$(GEN):
401	perl $(SCRIPT) $@ "include/core/SkBitmap.h"
402LOCAL_GENERATED_SOURCES += $(GEN)
403
404GEN := $(THIRD_PARTY)/WebKit/WebKit/chromium/public/WebFormControlElement.h
405$(GEN): $(SCRIPT)
406$(GEN):
407	perl $(SCRIPT) $@ "public/WebFormControlElement.h"
408LOCAL_GENERATED_SOURCES += $(GEN)
409
410GEN := $(THIRD_PARTY)/WebKit/WebKit/chromium/public/WebRegularExpression.h
411$(GEN): $(SCRIPT)
412$(GEN):
413	perl $(SCRIPT) $@ "public/WebRegularExpression.h"
414LOCAL_GENERATED_SOURCES += $(GEN)
415
416GEN := $(THIRD_PARTY)/WebKit/WebKit/chromium/public/WebString.h
417$(GEN): $(SCRIPT)
418$(GEN):
419	perl $(SCRIPT) $@ "public/WebString.h"
420LOCAL_GENERATED_SOURCES += $(GEN)
421
422GEN = $(INTERMEDIATES)/HaveAutofillInternal.h
423$(GEN): $(CHECK_INTERNAL_HEADER_SCRIPT)
424$(GEN):
425	perl $(CHECK_INTERNAL_HEADER_SCRIPT) $@
426LOCAL_GENERATED_SOURCES += $(GEN)
427
428LOCAL_SRC_FILES += $(LOCAL_GENERATED_SOURCES)
429
430LOCAL_CFLAGS := -DHAVE_CONFIG_H -DANDROID -fvisibility=hidden -DEXPAT_RELATIVE_PATH
431
432ifneq ($(TARGET_SIMULATOR),true)
433# Just a few definitions not provided by bionic.
434LOCAL_CFLAGS += -include "android/prefix.h"
435
436# external/chromium/android is a directory to intercept stl headers that we do
437# not support yet.
438LOCAL_C_INCLUDES := \
439	$(LOCAL_PATH)/android \
440	$(LOCAL_C_INCLUDES)
441
442# Including this will modify the include path
443include external/stlport/libstlport.mk
444endif
445
446include $(BUILD_STATIC_LIBRARY)
447