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