base.target.darwin-arm.mk revision c2e0dbddbe15c98d52c4786dac06cb8952a8ae6d
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_pump_android.cc \
33	base/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/important_file_writer_android.cc \
48	base/android/scoped_java_ref.cc \
49	base/android/jni_android.cc \
50	base/android/jni_array.cc \
51	base/android/jni_helper.cc \
52	base/android/jni_registrar.cc \
53	base/android/jni_string.cc \
54	base/android/path_service_android.cc \
55	base/android/path_utils.cc \
56	base/at_exit.cc \
57	base/base_paths.cc \
58	base/base_paths_android.cc \
59	base/base64.cc \
60	base/bind_helpers.cc \
61	base/build_time.cc \
62	base/callback_internal.cc \
63	base/command_line.cc \
64	base/cpu.cc \
65	base/debug/alias.cc \
66	base/debug/crash_logging.cc \
67	base/debug/debugger.cc \
68	base/debug/debugger_posix.cc \
69	base/debug/profiler.cc \
70	base/debug/stack_trace.cc \
71	base/debug/stack_trace_android.cc \
72	base/debug/trace_event_android.cc \
73	base/debug/trace_event_impl.cc \
74	base/deferred_sequenced_task_runner.cc \
75	base/environment.cc \
76	base/file_util.cc \
77	base/file_util_android.cc \
78	base/file_util_posix.cc \
79	base/files/file_path.cc \
80	base/files/file_path_watcher.cc \
81	base/files/file_path_watcher_linux.cc \
82	base/files/file_util_proxy.cc \
83	base/files/important_file_writer.cc \
84	base/files/memory_mapped_file.cc \
85	base/files/memory_mapped_file_posix.cc \
86	base/files/scoped_temp_dir.cc \
87	base/guid.cc \
88	base/guid_posix.cc \
89	base/hash.cc \
90	base/hi_res_timer_manager_posix.cc \
91	base/json/json_file_value_serializer.cc \
92	base/json/json_parser.cc \
93	base/json/json_reader.cc \
94	base/json/json_string_value_serializer.cc \
95	base/json/json_writer.cc \
96	base/json/string_escape.cc \
97	base/lazy_instance.cc \
98	base/location.cc \
99	base/logging.cc \
100	base/memory/aligned_memory.cc \
101	base/memory/discardable_memory.cc \
102	base/memory/discardable_memory_android.cc \
103	base/memory/ref_counted.cc \
104	base/memory/ref_counted_memory.cc \
105	base/memory/shared_memory_android.cc \
106	base/memory/shared_memory_posix.cc \
107	base/memory/singleton.cc \
108	base/memory/weak_ptr.cc \
109	base/message_loop/message_loop_proxy.cc \
110	base/message_loop/message_loop_proxy_impl.cc \
111	base/message_loop.cc \
112	base/message_pump.cc \
113	base/message_pump_default.cc \
114	base/metrics/sample_map.cc \
115	base/metrics/sample_vector.cc \
116	base/metrics/bucket_ranges.cc \
117	base/metrics/histogram.cc \
118	base/metrics/histogram_base.cc \
119	base/metrics/histogram_samples.cc \
120	base/metrics/histogram_snapshot_manager.cc \
121	base/metrics/sparse_histogram.cc \
122	base/metrics/statistics_recorder.cc \
123	base/metrics/stats_counters.cc \
124	base/metrics/stats_table.cc \
125	base/native_library_posix.cc \
126	base/os_compat_android.cc \
127	base/path_service.cc \
128	base/pending_task.cc \
129	base/pickle.cc \
130	base/platform_file.cc \
131	base/platform_file_posix.cc \
132	base/posix/global_descriptors.cc \
133	base/posix/unix_domain_socket_linux.cc \
134	base/power_monitor/power_monitor.cc \
135	base/power_monitor/power_monitor_android.cc \
136	base/process_posix.cc \
137	base/process_util.cc \
138	base/process_util_linux.cc \
139	base/process_util_posix.cc \
140	base/profiler/scoped_profile.cc \
141	base/profiler/alternate_timer.cc \
142	base/profiler/tracked_time.cc \
143	base/rand_util.cc \
144	base/rand_util_posix.cc \
145	base/run_loop.cc \
146	base/safe_strerror_posix.cc \
147	base/scoped_native_library.cc \
148	base/sequence_checker_impl.cc \
149	base/sequenced_task_runner.cc \
150	base/sha1_portable.cc \
151	base/string_util.cc \
152	base/string16.cc \
153	base/stringprintf.cc \
154	base/strings/string_split.cc \
155	base/strings/string_number_conversions.cc \
156	base/strings/string_piece.cc \
157	base/strings/sys_string_conversions_posix.cc \
158	base/strings/utf_offset_string_conversions.cc \
159	base/strings/utf_string_conversion_utils.cc \
160	base/strings/utf_string_conversions.cc \
161	base/supports_user_data.cc \
162	base/synchronization/cancellation_flag.cc \
163	base/synchronization/condition_variable_posix.cc \
164	base/synchronization/lock.cc \
165	base/synchronization/lock_impl_posix.cc \
166	base/synchronization/waitable_event_posix.cc \
167	base/synchronization/waitable_event_watcher_posix.cc \
168	base/system_monitor/system_monitor.cc \
169	base/sys_info.cc \
170	base/sys_info_android.cc \
171	base/sys_info_linux.cc \
172	base/sys_info_posix.cc \
173	base/task_runner.cc \
174	base/thread_task_runner_handle.cc \
175	base/threading/non_thread_safe_impl.cc \
176	base/threading/platform_thread_posix.cc \
177	base/threading/post_task_and_reply_impl.cc \
178	base/threading/sequenced_worker_pool.cc \
179	base/threading/simple_thread.cc \
180	base/threading/thread.cc \
181	base/threading/thread_checker_impl.cc \
182	base/threading/thread_collision_warner.cc \
183	base/threading/thread_id_name_manager.cc \
184	base/threading/thread_local_posix.cc \
185	base/threading/thread_local_storage_posix.cc \
186	base/threading/thread_restrictions.cc \
187	base/threading/watchdog.cc \
188	base/threading/worker_pool.cc \
189	base/threading/worker_pool_posix.cc \
190	base/time/clock.cc \
191	base/time/default_clock.cc \
192	base/time/default_tick_clock.cc \
193	base/time/tick_clock.cc \
194	base/time.cc \
195	base/time_posix.cc \
196	base/timer.cc \
197	base/tracked_objects.cc \
198	base/tracking_info.cc \
199	base/values.cc \
200	base/value_conversions.cc \
201	base/version.cc \
202	base/vlog.cc
203
204
205# Flags passed to both C and C++ files.
206MY_CFLAGS := \
207	-fstack-protector \
208	--param=ssp-buffer-size=4 \
209	-Werror \
210	-fno-exceptions \
211	-fno-strict-aliasing \
212	-Wall \
213	-Wno-unused-parameter \
214	-Wno-missing-field-initializers \
215	-fvisibility=hidden \
216	-pipe \
217	-fPIC \
218	-fno-tree-sra \
219	-fuse-ld=gold \
220	-Wno-psabi \
221	-ffunction-sections \
222	-funwind-tables \
223	-g \
224	-fstack-protector \
225	-fno-short-enums \
226	-finline-limit=64 \
227	-Wa,--noexecstack \
228	-U_FORTIFY_SOURCE \
229	-Wno-extra \
230	-Wno-ignored-qualifiers \
231	-Wno-type-limits \
232	-Os \
233	-g \
234	-fomit-frame-pointer \
235	-fdata-sections \
236	-ffunction-sections
237
238MY_CFLAGS_C :=
239
240MY_DEFS := \
241	'-D_FILE_OFFSET_BITS=64' \
242	'-DUSE_LINUX_BREAKPAD' \
243	'-DNO_TCMALLOC' \
244	'-DDISABLE_NACL' \
245	'-DCHROMIUM_BUILD' \
246	'-DUSE_LIBJPEG_TURBO=1' \
247	'-DUSE_PROPRIETARY_CODECS' \
248	'-DENABLE_GPU=1' \
249	'-DUSE_OPENSSL=1' \
250	'-DENABLE_EGLIMAGE=1' \
251	'-DENABLE_LANGUAGE_DETECTION=1' \
252	'-DUSE_SYMBOLIZE' \
253	'-D__STDC_CONSTANT_MACROS' \
254	'-D__STDC_FORMAT_MACROS' \
255	'-DBASE_IMPLEMENTATION' \
256	'-DANDROID' \
257	'-D__GNU_SOURCE=1' \
258	'-DUSE_STLPORT=1' \
259	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
260	'-DCHROME_BUILD_ID=""' \
261	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
262	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
263	'-D_DEBUG'
264
265LOCAL_CFLAGS := $(MY_CFLAGS_C) $(MY_CFLAGS) $(MY_DEFS)
266
267# Include paths placed before CFLAGS/CPPFLAGS
268LOCAL_C_INCLUDES := \
269	$(gyp_shared_intermediate_dir)/base \
270	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
271	$(LOCAL_PATH) \
272	$(GYP_ABS_ANDROID_TOP_DIR)/frameworks/wilhelm/include \
273	$(GYP_ABS_ANDROID_TOP_DIR)/bionic \
274	$(GYP_ABS_ANDROID_TOP_DIR)/external/stlport/stlport
275
276LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES)
277
278# Flags passed to only C++ (and not C) files.
279LOCAL_CPPFLAGS := \
280	-fno-rtti \
281	-fno-threadsafe-statics \
282	-fvisibility-inlines-hidden \
283	-Wsign-compare \
284	-Wno-abi \
285	-Wno-error=c++0x-compat \
286	-Wno-non-virtual-dtor \
287	-Wno-sign-promo
288
289### Rules for final target.
290
291LOCAL_LDFLAGS := \
292	-Wl,-z,now \
293	-Wl,-z,relro \
294	-Wl,-z,noexecstack \
295	-fPIC \
296	-Wl,-z,relro \
297	-Wl,-z,now \
298	-fuse-ld=gold \
299	-nostdlib \
300	-Wl,--no-undefined \
301	-Wl,--exclude-libs=ALL \
302	-Wl,--icf=safe \
303	-Wl,--gc-sections \
304	-Wl,-O1 \
305	-Wl,--as-needed
306
307
308LOCAL_STATIC_LIBRARIES := \
309	cpufeatures
310
311# Enable grouping to fix circular references
312LOCAL_GROUP_STATIC_LIBRARIES := true
313
314LOCAL_SHARED_LIBRARIES := \
315	libstlport \
316	libdl
317
318# Add target alias to "gyp_all_modules" target.
319.PHONY: gyp_all_modules
320gyp_all_modules: base_base_gyp
321
322# Alias gyp target name.
323.PHONY: base
324base: base_base_gyp
325
326include $(BUILD_STATIC_LIBRARY)
327