1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := base_base_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,GYP,testing_gtest_prod_gyp,,,$(GYP_VAR_PREFIX))/gtest_prod.stamp \
15	$(call intermediates-dir-for,GYP,base_base_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/base_jni_headers.stamp
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_CPP_EXTENSION := .cc
23LOCAL_GENERATED_SOURCES :=
24
25GYP_COPIED_SOURCE_ORIGIN_DIRS :=
26
27LOCAL_SRC_FILES := \
28	base/async_socket_io_handler_posix.cc \
29	base/event_recorder_stubs.cc \
30	base/linux_util.cc \
31	base/message_loop/message_pump_android.cc \
32	base/message_loop/message_pump_libevent.cc \
33	base/metrics/field_trial.cc \
34	base/posix/file_descriptor_shuffle.cc \
35	base/sync_socket_posix.cc \
36	base/third_party/dmg_fp/g_fmt.cc \
37	base/third_party/dmg_fp/dtoa_wrapper.cc \
38	base/third_party/icu/icu_utf.cc \
39	base/third_party/nspr/prtime.cc \
40	base/third_party/superfasthash/superfasthash.c \
41	base/allocator/allocator_extension.cc \
42	base/allocator/type_profiler_control.cc \
43	base/android/application_status_listener.cc \
44	base/android/base_jni_registrar.cc \
45	base/android/build_info.cc \
46	base/android/command_line_android.cc \
47	base/android/content_uri_utils.cc \
48	base/android/cpu_features.cc \
49	base/android/event_log.cc \
50	base/android/field_trial_list.cc \
51	base/android/fifo_utils.cc \
52	base/android/important_file_writer_android.cc \
53	base/android/scoped_java_ref.cc \
54	base/android/jni_android.cc \
55	base/android/jni_array.cc \
56	base/android/jni_registrar.cc \
57	base/android/jni_string.cc \
58	base/android/jni_utils.cc \
59	base/android/jni_weak_ref.cc \
60	base/android/library_loader/library_loader_hooks.cc \
61	base/android/memory_pressure_listener_android.cc \
62	base/android/java_handler_thread.cc \
63	base/android/path_service_android.cc \
64	base/android/path_utils.cc \
65	base/android/sys_utils.cc \
66	base/android/trace_event_binding.cc \
67	base/at_exit.cc \
68	base/barrier_closure.cc \
69	base/base64.cc \
70	base/base_paths.cc \
71	base/base_paths_android.cc \
72	base/big_endian.cc \
73	base/bind_helpers.cc \
74	base/build_time.cc \
75	base/callback_helpers.cc \
76	base/callback_internal.cc \
77	base/command_line.cc \
78	base/cpu.cc \
79	base/debug/alias.cc \
80	base/debug/asan_invalid_access.cc \
81	base/debug/crash_logging.cc \
82	base/debug/debugger.cc \
83	base/debug/debugger_posix.cc \
84	base/debug/dump_without_crashing.cc \
85	base/debug/proc_maps_linux.cc \
86	base/debug/profiler.cc \
87	base/debug/stack_trace.cc \
88	base/debug/stack_trace_android.cc \
89	base/debug/task_annotator.cc \
90	base/debug/trace_event_android.cc \
91	base/debug/trace_event_argument.cc \
92	base/debug/trace_event_impl.cc \
93	base/debug/trace_event_impl_constants.cc \
94	base/debug/trace_event_synthetic_delay.cc \
95	base/debug/trace_event_system_stats_monitor.cc \
96	base/debug/trace_event_memory.cc \
97	base/deferred_sequenced_task_runner.cc \
98	base/environment.cc \
99	base/files/file.cc \
100	base/files/file_enumerator.cc \
101	base/files/file_enumerator_posix.cc \
102	base/files/file_path.cc \
103	base/files/file_path_constants.cc \
104	base/files/file_path_watcher.cc \
105	base/files/file_path_watcher_linux.cc \
106	base/files/file_posix.cc \
107	base/files/file_proxy.cc \
108	base/files/file_util.cc \
109	base/files/file_util_android.cc \
110	base/files/file_util_posix.cc \
111	base/files/file_util_proxy.cc \
112	base/files/important_file_writer.cc \
113	base/files/memory_mapped_file.cc \
114	base/files/memory_mapped_file_posix.cc \
115	base/files/scoped_file.cc \
116	base/files/scoped_temp_dir.cc \
117	base/guid.cc \
118	base/guid_posix.cc \
119	base/hash.cc \
120	base/json/json_file_value_serializer.cc \
121	base/json/json_parser.cc \
122	base/json/json_reader.cc \
123	base/json/json_string_value_serializer.cc \
124	base/json/json_writer.cc \
125	base/json/string_escape.cc \
126	base/lazy_instance.cc \
127	base/location.cc \
128	base/logging.cc \
129	base/md5.cc \
130	base/memory/aligned_memory.cc \
131	base/memory/discardable_memory.cc \
132	base/memory/discardable_memory_android.cc \
133	base/memory/discardable_memory_emulated.cc \
134	base/memory/discardable_memory_malloc.cc \
135	base/memory/discardable_memory_manager.cc \
136	base/memory/memory_pressure_listener.cc \
137	base/memory/ref_counted.cc \
138	base/memory/ref_counted_memory.cc \
139	base/memory/shared_memory_android.cc \
140	base/memory/shared_memory_posix.cc \
141	base/memory/singleton.cc \
142	base/memory/weak_ptr.cc \
143	base/message_loop/incoming_task_queue.cc \
144	base/message_loop/message_loop.cc \
145	base/message_loop/message_loop_proxy.cc \
146	base/message_loop/message_loop_proxy_impl.cc \
147	base/message_loop/message_pump.cc \
148	base/message_loop/message_pump_default.cc \
149	base/metrics/sample_map.cc \
150	base/metrics/sample_vector.cc \
151	base/metrics/bucket_ranges.cc \
152	base/metrics/histogram.cc \
153	base/metrics/histogram_base.cc \
154	base/metrics/histogram_delta_serialization.cc \
155	base/metrics/histogram_samples.cc \
156	base/metrics/histogram_snapshot_manager.cc \
157	base/metrics/sparse_histogram.cc \
158	base/metrics/statistics_recorder.cc \
159	base/metrics/stats_counters.cc \
160	base/metrics/stats_table.cc \
161	base/metrics/user_metrics.cc \
162	base/native_library_posix.cc \
163	base/os_compat_android.cc \
164	base/path_service.cc \
165	base/pending_task.cc \
166	base/pickle.cc \
167	base/posix/global_descriptors.cc \
168	base/posix/unix_domain_socket_linux.cc \
169	base/power_monitor/power_monitor.cc \
170	base/power_monitor/power_monitor_device_source_android.cc \
171	base/power_monitor/power_monitor_device_source.cc \
172	base/power_monitor/power_monitor_source.cc \
173	base/process/internal_linux.cc \
174	base/process/kill.cc \
175	base/process/kill_posix.cc \
176	base/process/launch.cc \
177	base/process/launch_posix.cc \
178	base/process/memory.cc \
179	base/process/memory_linux.cc \
180	base/process/process_handle_linux.cc \
181	base/process/process_handle_posix.cc \
182	base/process/process_iterator.cc \
183	base/process/process_iterator_linux.cc \
184	base/process/process_metrics.cc \
185	base/process/process_metrics_linux.cc \
186	base/process/process_metrics_posix.cc \
187	base/process/process_posix.cc \
188	base/profiler/scoped_profile.cc \
189	base/profiler/alternate_timer.cc \
190	base/profiler/tracked_time.cc \
191	base/rand_util.cc \
192	base/rand_util_posix.cc \
193	base/run_loop.cc \
194	base/safe_strerror_posix.cc \
195	base/scoped_native_library.cc \
196	base/sequence_checker_impl.cc \
197	base/sequenced_task_runner.cc \
198	base/sha1_portable.cc \
199	base/strings/latin1_string_conversions.cc \
200	base/strings/nullable_string16.cc \
201	base/strings/safe_sprintf.cc \
202	base/strings/string16.cc \
203	base/strings/string_number_conversions.cc \
204	base/strings/string_split.cc \
205	base/strings/string_piece.cc \
206	base/strings/string_util.cc \
207	base/strings/string_util_constants.cc \
208	base/strings/stringprintf.cc \
209	base/strings/sys_string_conversions_posix.cc \
210	base/strings/utf_offset_string_conversions.cc \
211	base/strings/utf_string_conversion_utils.cc \
212	base/strings/utf_string_conversions.cc \
213	base/supports_user_data.cc \
214	base/synchronization/cancellation_flag.cc \
215	base/synchronization/condition_variable_posix.cc \
216	base/synchronization/lock.cc \
217	base/synchronization/lock_impl_posix.cc \
218	base/synchronization/waitable_event_posix.cc \
219	base/synchronization/waitable_event_watcher_posix.cc \
220	base/system_monitor/system_monitor.cc \
221	base/sys_info.cc \
222	base/sys_info_android.cc \
223	base/sys_info_linux.cc \
224	base/sys_info_posix.cc \
225	base/task/cancelable_task_tracker.cc \
226	base/task_runner.cc \
227	base/thread_task_runner_handle.cc \
228	base/threading/non_thread_safe_impl.cc \
229	base/threading/platform_thread_android.cc \
230	base/threading/platform_thread_posix.cc \
231	base/threading/post_task_and_reply_impl.cc \
232	base/threading/sequenced_worker_pool.cc \
233	base/threading/simple_thread.cc \
234	base/threading/thread.cc \
235	base/threading/thread_checker_impl.cc \
236	base/threading/thread_collision_warner.cc \
237	base/threading/thread_id_name_manager.cc \
238	base/threading/thread_local_android.cc \
239	base/threading/thread_local_posix.cc \
240	base/threading/thread_local_storage.cc \
241	base/threading/thread_local_storage_posix.cc \
242	base/threading/thread_restrictions.cc \
243	base/threading/watchdog.cc \
244	base/threading/worker_pool.cc \
245	base/threading/worker_pool_posix.cc \
246	base/time/clock.cc \
247	base/time/default_clock.cc \
248	base/time/default_tick_clock.cc \
249	base/time/tick_clock.cc \
250	base/time/time.cc \
251	base/time/time_posix.cc \
252	base/timer/elapsed_timer.cc \
253	base/timer/hi_res_timer_manager_posix.cc \
254	base/timer/mock_timer.cc \
255	base/timer/timer.cc \
256	base/tracked_objects.cc \
257	base/tracking_info.cc \
258	base/values.cc \
259	base/value_conversions.cc \
260	base/version.cc \
261	base/vlog.cc \
262	base/memory/discardable_memory_ashmem_allocator.cc \
263	base/memory/discardable_memory_ashmem.cc
264
265
266# Flags passed to both C and C++ files.
267MY_CFLAGS_Debug := \
268	-fstack-protector \
269	--param=ssp-buffer-size=4 \
270	-Werror \
271	-fno-strict-aliasing \
272	-Wall \
273	-Wno-unused-parameter \
274	-Wno-missing-field-initializers \
275	-fvisibility=hidden \
276	-pipe \
277	-fPIC \
278	-Wno-unused-local-typedefs \
279	-fno-tree-sra \
280	-fno-caller-saves \
281	-Wno-psabi \
282	-fno-partial-inlining \
283	-fno-early-inlining \
284	-fno-tree-copy-prop \
285	-fno-tree-loop-optimize \
286	-fno-move-loop-invariants \
287	-ffunction-sections \
288	-funwind-tables \
289	-g \
290	-fstack-protector \
291	-fno-short-enums \
292	-finline-limit=64 \
293	-Wa,--noexecstack \
294	-U_FORTIFY_SOURCE \
295	-Wno-extra \
296	-Wno-ignored-qualifiers \
297	-Wno-type-limits \
298	-Wno-unused-but-set-variable \
299	-Os \
300	-g \
301	-gdwarf-4 \
302	-fdata-sections \
303	-ffunction-sections \
304	-fomit-frame-pointer \
305	-funwind-tables
306
307MY_DEFS_Debug := \
308	'-DV8_DEPRECATION_WARNINGS' \
309	'-D_FILE_OFFSET_BITS=64' \
310	'-DNO_TCMALLOC' \
311	'-DDISABLE_NACL' \
312	'-DCHROMIUM_BUILD' \
313	'-DUSE_LIBJPEG_TURBO=1' \
314	'-DENABLE_WEBRTC=1' \
315	'-DUSE_PROPRIETARY_CODECS' \
316	'-DENABLE_BROWSER_CDMS' \
317	'-DENABLE_CONFIGURATION_POLICY' \
318	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
319	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
320	'-DENABLE_EGLIMAGE=1' \
321	'-DCLD_VERSION=1' \
322	'-DENABLE_PRINTING=1' \
323	'-DENABLE_MANAGED_USERS=1' \
324	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
325	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
326	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
327	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
328	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
329	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
330	'-DVIDEO_HOLE=1' \
331	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
332	'-DUSE_OPENSSL=1' \
333	'-DUSE_OPENSSL_CERTS=1' \
334	'-D__STDC_CONSTANT_MACROS' \
335	'-D__STDC_FORMAT_MACROS' \
336	'-DBASE_IMPLEMENTATION' \
337	'-DANDROID_SINCOS_PROVIDED' \
338	'-DANDROID' \
339	'-D__GNU_SOURCE=1' \
340	'-DUSE_STLPORT=1' \
341	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
342	'-DCHROME_BUILD_ID=""' \
343	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
344	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
345	'-D_DEBUG'
346
347
348# Include paths placed before CFLAGS/CPPFLAGS
349LOCAL_C_INCLUDES_Debug := \
350	$(gyp_shared_intermediate_dir) \
351	$(gyp_shared_intermediate_dir)/base \
352	$(LOCAL_PATH) \
353	$(PWD)/frameworks/wilhelm/include \
354	$(PWD)/bionic \
355	$(PWD)/external/stlport/stlport
356
357
358# Flags passed to only C++ (and not C) files.
359LOCAL_CPPFLAGS_Debug := \
360	-fno-exceptions \
361	-fno-rtti \
362	-fno-threadsafe-statics \
363	-fvisibility-inlines-hidden \
364	-Wsign-compare \
365	-Wno-abi \
366	-std=gnu++11 \
367	-Wno-narrowing \
368	-Wno-literal-suffix \
369	-Wno-non-virtual-dtor \
370	-Wno-sign-promo
371
372
373# Flags passed to both C and C++ files.
374MY_CFLAGS_Release := \
375	-fstack-protector \
376	--param=ssp-buffer-size=4 \
377	-Werror \
378	-fno-strict-aliasing \
379	-Wall \
380	-Wno-unused-parameter \
381	-Wno-missing-field-initializers \
382	-fvisibility=hidden \
383	-pipe \
384	-fPIC \
385	-Wno-unused-local-typedefs \
386	-fno-tree-sra \
387	-fno-caller-saves \
388	-Wno-psabi \
389	-fno-partial-inlining \
390	-fno-early-inlining \
391	-fno-tree-copy-prop \
392	-fno-tree-loop-optimize \
393	-fno-move-loop-invariants \
394	-ffunction-sections \
395	-funwind-tables \
396	-g \
397	-fstack-protector \
398	-fno-short-enums \
399	-finline-limit=64 \
400	-Wa,--noexecstack \
401	-U_FORTIFY_SOURCE \
402	-Wno-extra \
403	-Wno-ignored-qualifiers \
404	-Wno-type-limits \
405	-Wno-unused-but-set-variable \
406	-fno-ident \
407	-fdata-sections \
408	-ffunction-sections \
409	-fomit-frame-pointer \
410	-funwind-tables \
411	-O2
412
413MY_DEFS_Release := \
414	'-DV8_DEPRECATION_WARNINGS' \
415	'-D_FILE_OFFSET_BITS=64' \
416	'-DNO_TCMALLOC' \
417	'-DDISABLE_NACL' \
418	'-DCHROMIUM_BUILD' \
419	'-DUSE_LIBJPEG_TURBO=1' \
420	'-DENABLE_WEBRTC=1' \
421	'-DUSE_PROPRIETARY_CODECS' \
422	'-DENABLE_BROWSER_CDMS' \
423	'-DENABLE_CONFIGURATION_POLICY' \
424	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
425	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
426	'-DENABLE_EGLIMAGE=1' \
427	'-DCLD_VERSION=1' \
428	'-DENABLE_PRINTING=1' \
429	'-DENABLE_MANAGED_USERS=1' \
430	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
431	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
432	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
433	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
434	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
435	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
436	'-DVIDEO_HOLE=1' \
437	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
438	'-DUSE_OPENSSL=1' \
439	'-DUSE_OPENSSL_CERTS=1' \
440	'-D__STDC_CONSTANT_MACROS' \
441	'-D__STDC_FORMAT_MACROS' \
442	'-DBASE_IMPLEMENTATION' \
443	'-DANDROID_SINCOS_PROVIDED' \
444	'-DANDROID' \
445	'-D__GNU_SOURCE=1' \
446	'-DUSE_STLPORT=1' \
447	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
448	'-DCHROME_BUILD_ID=""' \
449	'-DNDEBUG' \
450	'-DNVALGRIND' \
451	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
452	'-D_FORTIFY_SOURCE=2'
453
454
455# Include paths placed before CFLAGS/CPPFLAGS
456LOCAL_C_INCLUDES_Release := \
457	$(gyp_shared_intermediate_dir) \
458	$(gyp_shared_intermediate_dir)/base \
459	$(LOCAL_PATH) \
460	$(PWD)/frameworks/wilhelm/include \
461	$(PWD)/bionic \
462	$(PWD)/external/stlport/stlport
463
464
465# Flags passed to only C++ (and not C) files.
466LOCAL_CPPFLAGS_Release := \
467	-fno-exceptions \
468	-fno-rtti \
469	-fno-threadsafe-statics \
470	-fvisibility-inlines-hidden \
471	-Wsign-compare \
472	-Wno-abi \
473	-std=gnu++11 \
474	-Wno-narrowing \
475	-Wno-literal-suffix \
476	-Wno-non-virtual-dtor \
477	-Wno-sign-promo
478
479
480LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
481LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
482LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
483LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
484### Rules for final target.
485
486LOCAL_STATIC_LIBRARIES := \
487	cpufeatures
488
489# Enable grouping to fix circular references
490LOCAL_GROUP_STATIC_LIBRARIES := true
491
492LOCAL_SHARED_LIBRARIES := \
493	libstlport \
494	libdl
495
496# Add target alias to "gyp_all_modules" target.
497.PHONY: gyp_all_modules
498gyp_all_modules: base_base_gyp
499
500# Alias gyp target name.
501.PHONY: base
502base: base_base_gyp
503
504include $(BUILD_STATIC_LIBRARY)
505