blob: 2847ad4216d5ff38d93b505f73279b60392ab015 [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 \
Ben Murdochbb1529c2013-08-08 10:24:53 +010056 base/android/java_handler_thread.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010057 base/android/path_service_android.cc \
58 base/android/path_utils.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +010059 base/android/sys_utils.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010060 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 \
Ben Murdocheb525c52013-07-10 11:40:50 +010073 base/debug/proc_maps_linux.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010074 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 \
Ben Murdochbbcdd452013-07-25 10:06:34 +010080 base/debug/trace_event_memory.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010081 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 \
Ben Murdoch558790d2013-07-30 15:19:42 +010096 base/files/scoped_platform_file_closer.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +010097 base/files/scoped_temp_dir.cc \
98 base/guid.cc \
99 base/guid_posix.cc \
100 base/hash.cc \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100101 base/ini_parser.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100102 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 \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100114 base/memory/memory_pressure_listener.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100115 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 \
Ben Murdochca12bfa2013-07-23 11:17:05 +0100121 base/message_loop/incoming_task_queue.cc \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100122 base/message_loop/message_loop.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100123 base/message_loop/message_loop_proxy.cc \
124 base/message_loop/message_loop_proxy_impl.cc \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100125 base/message_loop/message_pump.cc \
126 base/message_loop/message_pump_default.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100127 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 \
Torne (Richard Coles)a36e5922013-08-05 13:57:33 +0100148 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/power_monitor/power_monitor_test_base.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100152 base/process/internal_linux.cc \
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100153 base/process/kill.cc \
154 base/process/kill_posix.cc \
Ben Murdoch9ab55632013-07-18 11:57:30 +0100155 base/process/launch_posix.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +0100156 base/process/memory_linux.cc \
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100157 base/process/process_handle_linux.cc \
158 base/process/process_handle_posix.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100159 base/process/process_iterator.cc \
160 base/process/process_iterator_linux.cc \
161 base/process/process_metrics_linux.cc \
162 base/process/process_metrics_posix.cc \
Ben Murdochca12bfa2013-07-23 11:17:05 +0100163 base/process/process_posix.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100164 base/profiler/scoped_profile.cc \
165 base/profiler/alternate_timer.cc \
166 base/profiler/tracked_time.cc \
167 base/rand_util.cc \
168 base/rand_util_posix.cc \
169 base/run_loop.cc \
170 base/safe_strerror_posix.cc \
171 base/scoped_native_library.cc \
172 base/sequence_checker_impl.cc \
173 base/sequenced_task_runner.cc \
174 base/sha1_portable.cc \
175 base/strings/latin1_string_conversions.cc \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100176 base/strings/nullable_string16.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100177 base/strings/string16.cc \
178 base/strings/string_number_conversions.cc \
179 base/strings/string_split.cc \
180 base/strings/string_piece.cc \
181 base/strings/string_util.cc \
182 base/strings/string_util_constants.cc \
183 base/strings/stringprintf.cc \
184 base/strings/sys_string_conversions_posix.cc \
185 base/strings/utf_offset_string_conversions.cc \
186 base/strings/utf_string_conversion_utils.cc \
187 base/strings/utf_string_conversions.cc \
188 base/supports_user_data.cc \
189 base/synchronization/cancellation_flag.cc \
190 base/synchronization/condition_variable_posix.cc \
191 base/synchronization/lock.cc \
192 base/synchronization/lock_impl_posix.cc \
193 base/synchronization/waitable_event_posix.cc \
194 base/synchronization/waitable_event_watcher_posix.cc \
195 base/system_monitor/system_monitor.cc \
196 base/sys_info.cc \
197 base/sys_info_android.cc \
198 base/sys_info_linux.cc \
199 base/sys_info_posix.cc \
200 base/task_runner.cc \
201 base/thread_task_runner_handle.cc \
202 base/threading/non_thread_safe_impl.cc \
203 base/threading/platform_thread_android.cc \
204 base/threading/platform_thread_posix.cc \
205 base/threading/post_task_and_reply_impl.cc \
206 base/threading/sequenced_worker_pool.cc \
207 base/threading/simple_thread.cc \
208 base/threading/thread.cc \
209 base/threading/thread_checker_impl.cc \
210 base/threading/thread_collision_warner.cc \
211 base/threading/thread_id_name_manager.cc \
212 base/threading/thread_local_posix.cc \
213 base/threading/thread_local_storage_posix.cc \
214 base/threading/thread_restrictions.cc \
215 base/threading/watchdog.cc \
216 base/threading/worker_pool.cc \
217 base/threading/worker_pool_posix.cc \
218 base/time/clock.cc \
219 base/time/default_clock.cc \
220 base/time/default_tick_clock.cc \
221 base/time/tick_clock.cc \
Ben Murdocheb525c52013-07-10 11:40:50 +0100222 base/time/time.cc \
223 base/time/time_posix.cc \
224 base/timer/hi_res_timer_manager_posix.cc \
225 base/timer/timer.cc \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100226 base/tracked_objects.cc \
227 base/tracking_info.cc \
228 base/values.cc \
229 base/value_conversions.cc \
230 base/version.cc \
231 base/vlog.cc
232
233
234# Flags passed to both C and C++ files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100235MY_CFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100236 -fstack-protector \
237 --param=ssp-buffer-size=4 \
238 \
239 -fno-exceptions \
240 -fno-strict-aliasing \
241 -Wall \
242 -Wno-unused-parameter \
243 -Wno-missing-field-initializers \
244 -fvisibility=hidden \
245 -pipe \
246 -fPIC \
247 -EL \
248 -mhard-float \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100249 -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
Ben Murdocheb525c52013-07-10 11:40:50 +0100266MY_DEFS_Debug := \
Torne (Richard Coles)7d4cd472013-06-19 11:58:07 +0100267 '-DANGLE_DX11' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100268 '-D_FILE_OFFSET_BITS=64' \
269 '-DNO_TCMALLOC' \
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100270 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
271 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100272 '-DDISABLE_NACL' \
273 '-DCHROMIUM_BUILD' \
274 '-DUSE_LIBJPEG_TURBO=1' \
275 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100276 '-DENABLE_CONFIGURATION_POLICY' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100277 '-DENABLE_GPU=1' \
278 '-DUSE_OPENSSL=1' \
279 '-DENABLE_EGLIMAGE=1' \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100280 '-D__STDC_CONSTANT_MACROS' \
281 '-D__STDC_FORMAT_MACROS' \
282 '-DBASE_IMPLEMENTATION' \
283 '-DANDROID' \
284 '-D__GNU_SOURCE=1' \
285 '-DUSE_STLPORT=1' \
286 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
287 '-DCHROME_BUILD_ID=""' \
288 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
289 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
290 '-D_DEBUG'
291
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100292
293# Include paths placed before CFLAGS/CPPFLAGS
Ben Murdocheb525c52013-07-10 11:40:50 +0100294LOCAL_C_INCLUDES_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100295 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100296 $(gyp_shared_intermediate_dir)/base \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100297 $(LOCAL_PATH) \
298 $(PWD)/frameworks/wilhelm/include \
299 $(PWD)/bionic \
300 $(PWD)/external/stlport/stlport
301
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100302
303# Flags passed to only C++ (and not C) files.
Ben Murdocheb525c52013-07-10 11:40:50 +0100304LOCAL_CPPFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100305 -fno-rtti \
306 -fno-threadsafe-statics \
307 -fvisibility-inlines-hidden \
308 -Wsign-compare \
309 -Wno-uninitialized \
310 -Wno-error=c++0x-compat \
311 -Wno-non-virtual-dtor \
312 -Wno-sign-promo
313
Ben Murdocheb525c52013-07-10 11:40:50 +0100314
315# Flags passed to both C and C++ files.
316MY_CFLAGS_Release := \
317 -fstack-protector \
318 --param=ssp-buffer-size=4 \
319 \
320 -fno-exceptions \
321 -fno-strict-aliasing \
322 -Wall \
323 -Wno-unused-parameter \
324 -Wno-missing-field-initializers \
325 -fvisibility=hidden \
326 -pipe \
327 -fPIC \
328 -EL \
329 -mhard-float \
330 -ffunction-sections \
331 -funwind-tables \
332 -g \
333 -fstack-protector \
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 -Os \
342 -fno-ident \
343 -fdata-sections \
344 -ffunction-sections \
345 -fomit-frame-pointer
346
347MY_DEFS_Release := \
348 '-DANGLE_DX11' \
349 '-D_FILE_OFFSET_BITS=64' \
350 '-DNO_TCMALLOC' \
Ben Murdoch7dbb3d52013-07-17 14:55:54 +0100351 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
352 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100353 '-DDISABLE_NACL' \
354 '-DCHROMIUM_BUILD' \
355 '-DUSE_LIBJPEG_TURBO=1' \
356 '-DUSE_PROPRIETARY_CODECS' \
Ben Murdocha3f7b4e2013-07-24 10:36:34 +0100357 '-DENABLE_CONFIGURATION_POLICY' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100358 '-DENABLE_GPU=1' \
359 '-DUSE_OPENSSL=1' \
360 '-DENABLE_EGLIMAGE=1' \
Ben Murdocheb525c52013-07-10 11:40:50 +0100361 '-D__STDC_CONSTANT_MACROS' \
362 '-D__STDC_FORMAT_MACROS' \
363 '-DBASE_IMPLEMENTATION' \
364 '-DANDROID' \
365 '-D__GNU_SOURCE=1' \
366 '-DUSE_STLPORT=1' \
367 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
368 '-DCHROME_BUILD_ID=""' \
369 '-DNDEBUG' \
370 '-DNVALGRIND' \
371 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
372 '-D_FORTIFY_SOURCE=2'
373
374
375# Include paths placed before CFLAGS/CPPFLAGS
376LOCAL_C_INCLUDES_Release := \
Ben Murdocheb525c52013-07-10 11:40:50 +0100377 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
Ben Murdochbbcdd452013-07-25 10:06:34 +0100378 $(gyp_shared_intermediate_dir)/base \
Ben Murdocheb525c52013-07-10 11:40:50 +0100379 $(LOCAL_PATH) \
380 $(PWD)/frameworks/wilhelm/include \
381 $(PWD)/bionic \
382 $(PWD)/external/stlport/stlport
383
384
385# Flags passed to only C++ (and not C) files.
386LOCAL_CPPFLAGS_Release := \
387 -fno-rtti \
388 -fno-threadsafe-statics \
389 -fvisibility-inlines-hidden \
390 -Wsign-compare \
391 -Wno-uninitialized \
392 -Wno-error=c++0x-compat \
393 -Wno-non-virtual-dtor \
394 -Wno-sign-promo
395
396
397LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
398LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
399LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100400### Rules for final target.
401
Ben Murdocheb525c52013-07-10 11:40:50 +0100402LOCAL_LDFLAGS_Debug := \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100403 -Wl,-z,now \
404 -Wl,-z,relro \
405 -Wl,-z,noexecstack \
406 -fPIC \
407 -EL \
408 -Wl,--no-keep-memory \
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100409 -nostdlib \
410 -Wl,--no-undefined \
411 -Wl,--exclude-libs=ALL \
412 -Wl,--gc-sections \
413 -Wl,-O1 \
414 -Wl,--as-needed
415
416
Ben Murdocheb525c52013-07-10 11:40:50 +0100417LOCAL_LDFLAGS_Release := \
418 -Wl,-z,now \
419 -Wl,-z,relro \
420 -Wl,-z,noexecstack \
421 -fPIC \
422 -EL \
423 -Wl,--no-keep-memory \
424 -nostdlib \
425 -Wl,--no-undefined \
426 -Wl,--exclude-libs=ALL \
427 -Wl,-O1 \
428 -Wl,--as-needed \
429 -Wl,--gc-sections
430
431
432LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
433
Torne (Richard Coles)5e3f23d2013-06-11 16:24:11 +0100434LOCAL_STATIC_LIBRARIES := \
435 cpufeatures
436
437# Enable grouping to fix circular references
438LOCAL_GROUP_STATIC_LIBRARIES := true
439
440LOCAL_SHARED_LIBRARIES := \
441 libstlport \
442 libdl
443
444# Add target alias to "gyp_all_modules" target.
445.PHONY: gyp_all_modules
446gyp_all_modules: base_base_gyp
447
448# Alias gyp target name.
449.PHONY: base
450base: base_base_gyp
451
452include $(BUILD_STATIC_LIBRARY)