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