blob: 9023fcce16e1d800692ff761760ebe09adfab1ac [file] [log] [blame]
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +01001# 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 \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010032 base/message_loop/message_pump_android.cc \
33 base/message_loop/message_pump_libevent.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010034 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 \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010047 base/android/fifo_utils.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010048 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 \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +010055 base/android/memory_pressure_listener_android.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010056 base/android/path_service_android.cc \
57 base/android/path_utils.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +010058 base/android/sys_utils.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010059 base/at_exit.cc \
60 base/base_paths.cc \
61 base/base_paths_android.cc \
62 base/base64.cc \
63 base/bind_helpers.cc \
64 base/build_time.cc \
65 base/callback_internal.cc \
66 base/command_line.cc \
67 base/cpu.cc \
68 base/debug/alias.cc \
69 base/debug/crash_logging.cc \
70 base/debug/debugger.cc \
71 base/debug/debugger_posix.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +010072 base/debug/proc_maps_linux.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010073 base/debug/profiler.cc \
74 base/debug/stack_trace.cc \
75 base/debug/stack_trace_android.cc \
76 base/debug/trace_event_android.cc \
77 base/debug/trace_event_impl.cc \
78 base/debug/trace_event_impl_constants.cc \
Ben Murdochbbcdd452013-07-25 10:06:34 +010079 base/debug/trace_event_memory.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010080 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 \
Ben Murdoch558790d2013-07-30 15:19:42 +010095 base/files/scoped_platform_file_closer.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010096 base/files/scoped_temp_dir.cc \
97 base/guid.cc \
98 base/guid_posix.cc \
99 base/hash.cc \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100100 base/ini_parser.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100101 base/json/json_file_value_serializer.cc \
102 base/json/json_parser.cc \
103 base/json/json_reader.cc \
104 base/json/json_string_value_serializer.cc \
105 base/json/json_writer.cc \
106 base/json/string_escape.cc \
107 base/lazy_instance.cc \
108 base/location.cc \
109 base/logging.cc \
110 base/memory/aligned_memory.cc \
111 base/memory/discardable_memory.cc \
112 base/memory/discardable_memory_android.cc \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100113 base/memory/memory_pressure_listener.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100114 base/memory/ref_counted.cc \
115 base/memory/ref_counted_memory.cc \
116 base/memory/shared_memory_android.cc \
117 base/memory/shared_memory_posix.cc \
118 base/memory/singleton.cc \
119 base/memory/weak_ptr.cc \
Ben Murdochca12bfa2013-07-23 11:17:05 +0100120 base/message_loop/incoming_task_queue.cc \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100121 base/message_loop/message_loop.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100122 base/message_loop/message_loop_proxy.cc \
123 base/message_loop/message_loop_proxy_impl.cc \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100124 base/message_loop/message_pump.cc \
125 base/message_loop/message_pump_default.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100126 base/metrics/sample_map.cc \
127 base/metrics/sample_vector.cc \
128 base/metrics/bucket_ranges.cc \
129 base/metrics/histogram.cc \
130 base/metrics/histogram_base.cc \
131 base/metrics/histogram_samples.cc \
132 base/metrics/histogram_snapshot_manager.cc \
133 base/metrics/sparse_histogram.cc \
134 base/metrics/statistics_recorder.cc \
135 base/metrics/stats_counters.cc \
136 base/metrics/stats_table.cc \
137 base/native_library_posix.cc \
138 base/os_compat_android.cc \
139 base/path_service.cc \
140 base/pending_task.cc \
141 base/pickle.cc \
142 base/platform_file.cc \
143 base/platform_file_posix.cc \
144 base/posix/global_descriptors.cc \
145 base/posix/unix_domain_socket_linux.cc \
146 base/power_monitor/power_monitor.cc \
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100147 base/power_monitor/power_monitor_device_source_android.cc \
148 base/power_monitor/power_monitor_device_source.cc \
149 base/power_monitor/power_monitor_source.cc \
150 base/power_monitor/power_monitor_test_base.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100151 base/process/internal_linux.cc \
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100152 base/process/kill.cc \
153 base/process/kill_posix.cc \
Ben Murdoch9ab55632013-07-18 11:57:30 +0100154 base/process/launch_posix.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +0100155 base/process/memory_linux.cc \
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100156 base/process/process_handle_linux.cc \
157 base/process/process_handle_posix.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100158 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 \
Ben Murdochca12bfa2013-07-23 11:17:05 +0100162 base/process/process_posix.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100163 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 \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100175 base/strings/nullable_string16.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100176 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 \
Ben Murdocheb525c52013-07-10 11:40:50 +0100221 base/time/time.cc \
222 base/time/time_posix.cc \
223 base/timer/hi_res_timer_manager_posix.cc \
224 base/timer/timer.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100225 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.
Ben Murdocheb525c52013-07-10 11:40:50 +0100234MY_CFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100235 -fstack-protector \
236 --param=ssp-buffer-size=4 \
237 \
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 -EL \
247 -mhard-float \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100248 -ffunction-sections \
249 -funwind-tables \
250 -g \
251 -fstack-protector \
252 -fno-short-enums \
253 -finline-limit=64 \
254 -Wa,--noexecstack \
255 -U_FORTIFY_SOURCE \
256 -Wno-extra \
257 -Wno-ignored-qualifiers \
258 -Wno-type-limits \
259 -Os \
260 -g \
261 -fomit-frame-pointer \
262 -fdata-sections \
263 -ffunction-sections
264
Ben Murdocheb525c52013-07-10 11:40:50 +0100265MY_DEFS_Debug := \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100266 '-DANGLE_DX11' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100267 '-D_FILE_OFFSET_BITS=64' \
268 '-DNO_TCMALLOC' \
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100269 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
270 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100271 '-DDISABLE_NACL' \
272 '-DCHROMIUM_BUILD' \
273 '-DUSE_LIBJPEG_TURBO=1' \
274 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100275 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100276 '-DENABLE_GPU=1' \
277 '-DUSE_OPENSSL=1' \
278 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100279 '-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
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100291
292# Include paths placed before CFLAGS/CPPFLAGS
Ben Murdocheb525c52013-07-10 11:40:50 +0100293LOCAL_C_INCLUDES_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100294 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100295 $(gyp_shared_intermediate_dir)/base \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100296 $(LOCAL_PATH) \
297 $(PWD)/frameworks/wilhelm/include \
298 $(PWD)/bionic \
299 $(PWD)/external/stlport/stlport
300
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100301
302# Flags passed to only C++ (and not C) files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100303LOCAL_CPPFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100304 -fno-rtti \
305 -fno-threadsafe-statics \
306 -fvisibility-inlines-hidden \
307 -Wsign-compare \
308 -Wno-uninitialized \
309 -Wno-error=c++0x-compat \
310 -Wno-non-virtual-dtor \
311 -Wno-sign-promo
312
Ben Murdocheb525c52013-07-10 11:40:50 +0100313
314# Flags passed to both C and C++ files.
315MY_CFLAGS_Release := \
316 -fstack-protector \
317 --param=ssp-buffer-size=4 \
318 \
319 -fno-exceptions \
320 -fno-strict-aliasing \
321 -Wall \
322 -Wno-unused-parameter \
323 -Wno-missing-field-initializers \
324 -fvisibility=hidden \
325 -pipe \
326 -fPIC \
327 -EL \
328 -mhard-float \
329 -ffunction-sections \
330 -funwind-tables \
331 -g \
332 -fstack-protector \
333 -fno-short-enums \
334 -finline-limit=64 \
335 -Wa,--noexecstack \
336 -U_FORTIFY_SOURCE \
337 -Wno-extra \
338 -Wno-ignored-qualifiers \
339 -Wno-type-limits \
340 -Os \
341 -fno-ident \
342 -fdata-sections \
343 -ffunction-sections \
344 -fomit-frame-pointer
345
346MY_DEFS_Release := \
347 '-DANGLE_DX11' \
348 '-D_FILE_OFFSET_BITS=64' \
349 '-DNO_TCMALLOC' \
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100350 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
351 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100352 '-DDISABLE_NACL' \
353 '-DCHROMIUM_BUILD' \
354 '-DUSE_LIBJPEG_TURBO=1' \
355 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100356 '-DENABLE_CONFIGURATION_POLICY' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100357 '-DENABLE_GPU=1' \
358 '-DUSE_OPENSSL=1' \
359 '-DENABLE_EGLIMAGE=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100360 '-D__STDC_CONSTANT_MACROS' \
361 '-D__STDC_FORMAT_MACROS' \
362 '-DBASE_IMPLEMENTATION' \
363 '-DANDROID' \
364 '-D__GNU_SOURCE=1' \
365 '-DUSE_STLPORT=1' \
366 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
367 '-DCHROME_BUILD_ID=""' \
368 '-DNDEBUG' \
369 '-DNVALGRIND' \
370 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
371 '-D_FORTIFY_SOURCE=2'
372
373
374# Include paths placed before CFLAGS/CPPFLAGS
375LOCAL_C_INCLUDES_Release := \
Ben Murdocheb525c52013-07-10 11:40:50 +0100376 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100377 $(gyp_shared_intermediate_dir)/base \
Ben Murdocheb525c52013-07-10 11:40:50 +0100378 $(LOCAL_PATH) \
379 $(PWD)/frameworks/wilhelm/include \
380 $(PWD)/bionic \
381 $(PWD)/external/stlport/stlport
382
383
384# Flags passed to only C++ (and not C) files.
385LOCAL_CPPFLAGS_Release := \
386 -fno-rtti \
387 -fno-threadsafe-statics \
388 -fvisibility-inlines-hidden \
389 -Wsign-compare \
390 -Wno-uninitialized \
391 -Wno-error=c++0x-compat \
392 -Wno-non-virtual-dtor \
393 -Wno-sign-promo
394
395
396LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
397LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
398LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100399### Rules for final target.
400
Ben Murdocheb525c52013-07-10 11:40:50 +0100401LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100402 -Wl,-z,now \
403 -Wl,-z,relro \
404 -Wl,-z,noexecstack \
405 -fPIC \
406 -EL \
407 -Wl,--no-keep-memory \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100408 -nostdlib \
409 -Wl,--no-undefined \
410 -Wl,--exclude-libs=ALL \
411 -Wl,--gc-sections \
412 -Wl,-O1 \
413 -Wl,--as-needed
414
415
Ben Murdocheb525c52013-07-10 11:40:50 +0100416LOCAL_LDFLAGS_Release := \
417 -Wl,-z,now \
418 -Wl,-z,relro \
419 -Wl,-z,noexecstack \
420 -fPIC \
421 -EL \
422 -Wl,--no-keep-memory \
423 -nostdlib \
424 -Wl,--no-undefined \
425 -Wl,--exclude-libs=ALL \
426 -Wl,-O1 \
427 -Wl,--as-needed \
428 -Wl,--gc-sections
429
430
431LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
432
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100433LOCAL_STATIC_LIBRARIES := \
434 cpufeatures
435
436# Enable grouping to fix circular references
437LOCAL_GROUP_STATIC_LIBRARIES := true
438
439LOCAL_SHARED_LIBRARIES := \
440 libstlport \
441 libdl
442
443# Add target alias to "gyp_all_modules" target.
444.PHONY: gyp_all_modules
445gyp_all_modules: base_base_gyp
446
447# Alias gyp target name.
448.PHONY: base
449base: base_base_gyp
450
451include $(BUILD_STATIC_LIBRARY)