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