• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES := \
15	$(call intermediates-dir-for,GYP,testing_gtest_prod_gyp,,,$(GYP_VAR_PREFIX))/gtest_prod.stamp \
16	$(call intermediates-dir-for,GYP,base_base_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/base_jni_headers.stamp \
17	$(call intermediates-dir-for,GYP,third_party_ashmem_ashmem_gyp,,,$(GYP_VAR_PREFIX))/ashmem.stamp
18
19GYP_GENERATED_OUTPUTS :=
20
21# Make sure our deps and generated files are built first.
22LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
23
24LOCAL_CPP_EXTENSION := .cc
25LOCAL_GENERATED_SOURCES :=
26
27GYP_COPIED_SOURCE_ORIGIN_DIRS :=
28
29LOCAL_SRC_FILES := \
30	base/async_socket_io_handler_posix.cc \
31	base/event_recorder_stubs.cc \
32	base/linux_util.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/third_party/superfasthash/superfasthash.c \
43	base/allocator/allocator_extension.cc \
44	base/allocator/type_profiler_control.cc \
45	base/android/application_status_listener.cc \
46	base/android/base_jni_registrar.cc \
47	base/android/build_info.cc \
48	base/android/command_line_android.cc \
49	base/android/content_uri_utils.cc \
50	base/android/cpu_features.cc \
51	base/android/event_log.cc \
52	base/android/fifo_utils.cc \
53	base/android/important_file_writer_android.cc \
54	base/android/scoped_java_ref.cc \
55	base/android/jni_android.cc \
56	base/android/jni_array.cc \
57	base/android/jni_registrar.cc \
58	base/android/jni_string.cc \
59	base/android/jni_utils.cc \
60	base/android/jni_weak_ref.cc \
61	base/android/library_loader/library_loader_hooks.cc \
62	base/android/memory_pressure_listener_android.cc \
63	base/android/java_handler_thread.cc \
64	base/android/path_service_android.cc \
65	base/android/path_utils.cc \
66	base/android/sys_utils.cc \
67	base/android/trace_event_binding.cc \
68	base/at_exit.cc \
69	base/atomicops_internals_x86_gcc.cc \
70	base/barrier_closure.cc \
71	base/base64.cc \
72	base/base_paths.cc \
73	base/base_paths_android.cc \
74	base/big_endian.cc \
75	base/bind_helpers.cc \
76	base/build_time.cc \
77	base/callback_helpers.cc \
78	base/callback_internal.cc \
79	base/command_line.cc \
80	base/cpu.cc \
81	base/debug/alias.cc \
82	base/debug/asan_invalid_access.cc \
83	base/debug/crash_logging.cc \
84	base/debug/debugger.cc \
85	base/debug/debugger_posix.cc \
86	base/debug/dump_without_crashing.cc \
87	base/debug/proc_maps_linux.cc \
88	base/debug/profiler.cc \
89	base/debug/stack_trace.cc \
90	base/debug/stack_trace_android.cc \
91	base/debug/trace_event_android.cc \
92	base/debug/trace_event_impl.cc \
93	base/debug/trace_event_impl_constants.cc \
94	base/debug/trace_event_synthetic_delay.cc \
95	base/debug/trace_event_system_stats_monitor.cc \
96	base/debug/trace_event_memory.cc \
97	base/deferred_sequenced_task_runner.cc \
98	base/environment.cc \
99	base/file_util.cc \
100	base/file_util_android.cc \
101	base/file_util_posix.cc \
102	base/files/file.cc \
103	base/files/file_enumerator.cc \
104	base/files/file_enumerator_posix.cc \
105	base/files/file_path.cc \
106	base/files/file_path_constants.cc \
107	base/files/file_path_watcher.cc \
108	base/files/file_path_watcher_linux.cc \
109	base/files/file_posix.cc \
110	base/files/file_proxy.cc \
111	base/files/file_util_proxy.cc \
112	base/files/important_file_writer.cc \
113	base/files/memory_mapped_file.cc \
114	base/files/memory_mapped_file_posix.cc \
115	base/files/scoped_file.cc \
116	base/files/scoped_platform_file_closer.cc \
117	base/files/scoped_temp_dir.cc \
118	base/guid.cc \
119	base/guid_posix.cc \
120	base/hash.cc \
121	base/ini_parser.cc \
122	base/json/json_file_value_serializer.cc \
123	base/json/json_parser.cc \
124	base/json/json_reader.cc \
125	base/json/json_string_value_serializer.cc \
126	base/json/json_writer.cc \
127	base/json/string_escape.cc \
128	base/lazy_instance.cc \
129	base/location.cc \
130	base/logging.cc \
131	base/md5.cc \
132	base/memory/aligned_memory.cc \
133	base/memory/discardable_memory.cc \
134	base/memory/discardable_memory_android.cc \
135	base/memory/discardable_memory_emulated.cc \
136	base/memory/discardable_memory_malloc.cc \
137	base/memory/discardable_memory_manager.cc \
138	base/memory/memory_pressure_listener.cc \
139	base/memory/ref_counted.cc \
140	base/memory/ref_counted_memory.cc \
141	base/memory/shared_memory_android.cc \
142	base/memory/shared_memory_posix.cc \
143	base/memory/singleton.cc \
144	base/memory/weak_ptr.cc \
145	base/message_loop/incoming_task_queue.cc \
146	base/message_loop/message_loop.cc \
147	base/message_loop/message_loop_proxy.cc \
148	base/message_loop/message_loop_proxy_impl.cc \
149	base/message_loop/message_pump.cc \
150	base/message_loop/message_pump_default.cc \
151	base/metrics/sample_map.cc \
152	base/metrics/sample_vector.cc \
153	base/metrics/bucket_ranges.cc \
154	base/metrics/histogram.cc \
155	base/metrics/histogram_base.cc \
156	base/metrics/histogram_delta_serialization.cc \
157	base/metrics/histogram_samples.cc \
158	base/metrics/histogram_snapshot_manager.cc \
159	base/metrics/sparse_histogram.cc \
160	base/metrics/statistics_recorder.cc \
161	base/metrics/stats_counters.cc \
162	base/metrics/stats_table.cc \
163	base/metrics/user_metrics.cc \
164	base/native_library_posix.cc \
165	base/os_compat_android.cc \
166	base/path_service.cc \
167	base/pending_task.cc \
168	base/pickle.cc \
169	base/platform_file.cc \
170	base/platform_file_posix.cc \
171	base/posix/global_descriptors.cc \
172	base/posix/unix_domain_socket_linux.cc \
173	base/power_monitor/power_monitor.cc \
174	base/power_monitor/power_monitor_device_source_android.cc \
175	base/power_monitor/power_monitor_device_source.cc \
176	base/power_monitor/power_monitor_source.cc \
177	base/process/internal_linux.cc \
178	base/process/kill.cc \
179	base/process/kill_posix.cc \
180	base/process/launch.cc \
181	base/process/launch_posix.cc \
182	base/process/memory.cc \
183	base/process/memory_linux.cc \
184	base/process/process_handle_linux.cc \
185	base/process/process_handle_posix.cc \
186	base/process/process_iterator.cc \
187	base/process/process_iterator_linux.cc \
188	base/process/process_metrics.cc \
189	base/process/process_metrics_linux.cc \
190	base/process/process_metrics_posix.cc \
191	base/process/process_posix.cc \
192	base/profiler/scoped_profile.cc \
193	base/profiler/alternate_timer.cc \
194	base/profiler/tracked_time.cc \
195	base/rand_util.cc \
196	base/rand_util_posix.cc \
197	base/run_loop.cc \
198	base/safe_strerror_posix.cc \
199	base/scoped_native_library.cc \
200	base/sequence_checker_impl.cc \
201	base/sequenced_task_runner.cc \
202	base/sha1_portable.cc \
203	base/strings/latin1_string_conversions.cc \
204	base/strings/nullable_string16.cc \
205	base/strings/safe_sprintf.cc \
206	base/strings/string16.cc \
207	base/strings/string_number_conversions.cc \
208	base/strings/string_split.cc \
209	base/strings/string_piece.cc \
210	base/strings/string_util.cc \
211	base/strings/string_util_constants.cc \
212	base/strings/stringprintf.cc \
213	base/strings/sys_string_conversions_posix.cc \
214	base/strings/utf_offset_string_conversions.cc \
215	base/strings/utf_string_conversion_utils.cc \
216	base/strings/utf_string_conversions.cc \
217	base/supports_user_data.cc \
218	base/synchronization/cancellation_flag.cc \
219	base/synchronization/condition_variable_posix.cc \
220	base/synchronization/lock.cc \
221	base/synchronization/lock_impl_posix.cc \
222	base/synchronization/waitable_event_posix.cc \
223	base/synchronization/waitable_event_watcher_posix.cc \
224	base/system_monitor/system_monitor.cc \
225	base/sys_info.cc \
226	base/sys_info_android.cc \
227	base/sys_info_linux.cc \
228	base/sys_info_posix.cc \
229	base/task/cancelable_task_tracker.cc \
230	base/task_runner.cc \
231	base/thread_task_runner_handle.cc \
232	base/threading/non_thread_safe_impl.cc \
233	base/threading/platform_thread_android.cc \
234	base/threading/platform_thread_posix.cc \
235	base/threading/post_task_and_reply_impl.cc \
236	base/threading/sequenced_worker_pool.cc \
237	base/threading/simple_thread.cc \
238	base/threading/thread.cc \
239	base/threading/thread_checker_impl.cc \
240	base/threading/thread_collision_warner.cc \
241	base/threading/thread_id_name_manager.cc \
242	base/threading/thread_local_android.cc \
243	base/threading/thread_local_posix.cc \
244	base/threading/thread_local_storage.cc \
245	base/threading/thread_local_storage_posix.cc \
246	base/threading/thread_restrictions.cc \
247	base/threading/watchdog.cc \
248	base/threading/worker_pool.cc \
249	base/threading/worker_pool_posix.cc \
250	base/time/clock.cc \
251	base/time/default_clock.cc \
252	base/time/default_tick_clock.cc \
253	base/time/tick_clock.cc \
254	base/time/time.cc \
255	base/time/time_posix.cc \
256	base/timer/elapsed_timer.cc \
257	base/timer/hi_res_timer_manager_posix.cc \
258	base/timer/mock_timer.cc \
259	base/timer/timer.cc \
260	base/tracked_objects.cc \
261	base/tracking_info.cc \
262	base/values.cc \
263	base/value_conversions.cc \
264	base/version.cc \
265	base/vlog.cc \
266	base/memory/discardable_memory_ashmem_allocator.cc \
267	base/memory/discardable_memory_ashmem.cc
268
269
270# Flags passed to both C and C++ files.
271MY_CFLAGS_Debug := \
272	--param=ssp-buffer-size=4 \
273	-Werror \
274	-fno-exceptions \
275	-fno-strict-aliasing \
276	-Wall \
277	-Wno-unused-parameter \
278	-Wno-missing-field-initializers \
279	-fvisibility=hidden \
280	-pipe \
281	-fPIC \
282	-Wno-unused-local-typedefs \
283	-msse2 \
284	-mfpmath=sse \
285	-mmmx \
286	-m32 \
287	-ffunction-sections \
288	-funwind-tables \
289	-g \
290	-fno-short-enums \
291	-finline-limit=64 \
292	-Wa,--noexecstack \
293	-U_FORTIFY_SOURCE \
294	-Wno-extra \
295	-Wno-ignored-qualifiers \
296	-Wno-type-limits \
297	-Wno-unused-but-set-variable \
298	-fno-stack-protector \
299	-Os \
300	-g \
301	-fdata-sections \
302	-ffunction-sections \
303	-fomit-frame-pointer \
304	-funwind-tables
305
306MY_DEFS_Debug := \
307	'-DV8_DEPRECATION_WARNINGS' \
308	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
309	'-D_FILE_OFFSET_BITS=64' \
310	'-DNO_TCMALLOC' \
311	'-DDISABLE_NACL' \
312	'-DCHROMIUM_BUILD' \
313	'-DUSE_LIBJPEG_TURBO=1' \
314	'-DENABLE_WEBRTC=1' \
315	'-DUSE_PROPRIETARY_CODECS' \
316	'-DENABLE_BROWSER_CDMS' \
317	'-DENABLE_CONFIGURATION_POLICY' \
318	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
319	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
320	'-DENABLE_EGLIMAGE=1' \
321	'-DCLD_VERSION=1' \
322	'-DENABLE_PRINTING=1' \
323	'-DENABLE_MANAGED_USERS=1' \
324	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
325	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
326	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
327	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
328	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
329	'-DVIDEO_HOLE=1' \
330	'-DUSE_OPENSSL=1' \
331	'-DUSE_OPENSSL_CERTS=1' \
332	'-D__STDC_CONSTANT_MACROS' \
333	'-D__STDC_FORMAT_MACROS' \
334	'-DBASE_IMPLEMENTATION' \
335	'-DANDROID_SINCOS_PROVIDED' \
336	'-DANDROID' \
337	'-D__GNU_SOURCE=1' \
338	'-DUSE_STLPORT=1' \
339	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
340	'-DCHROME_BUILD_ID=""' \
341	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
342	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
343	'-D_DEBUG'
344
345
346# Include paths placed before CFLAGS/CPPFLAGS
347LOCAL_C_INCLUDES_Debug := \
348	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
349	$(gyp_shared_intermediate_dir) \
350	$(gyp_shared_intermediate_dir)/base \
351	$(LOCAL_PATH) \
352	$(PWD)/frameworks/wilhelm/include \
353	$(PWD)/bionic \
354	$(PWD)/external/stlport/stlport
355
356
357# Flags passed to only C++ (and not C) files.
358LOCAL_CPPFLAGS_Debug := \
359	-fno-rtti \
360	-fno-threadsafe-statics \
361	-fvisibility-inlines-hidden \
362	-Wsign-compare \
363	-Wno-non-virtual-dtor \
364	-Wno-sign-promo
365
366
367LOCAL_FDO_SUPPORT_Debug := false
368
369# Flags passed to both C and C++ files.
370MY_CFLAGS_Release := \
371	--param=ssp-buffer-size=4 \
372	-Werror \
373	-fno-exceptions \
374	-fno-strict-aliasing \
375	-Wall \
376	-Wno-unused-parameter \
377	-Wno-missing-field-initializers \
378	-fvisibility=hidden \
379	-pipe \
380	-fPIC \
381	-Wno-unused-local-typedefs \
382	-msse2 \
383	-mfpmath=sse \
384	-mmmx \
385	-m32 \
386	-ffunction-sections \
387	-funwind-tables \
388	-g \
389	-fno-short-enums \
390	-finline-limit=64 \
391	-Wa,--noexecstack \
392	-U_FORTIFY_SOURCE \
393	-Wno-extra \
394	-Wno-ignored-qualifiers \
395	-Wno-type-limits \
396	-Wno-unused-but-set-variable \
397	-fno-stack-protector \
398	-Os \
399	-fno-ident \
400	-fdata-sections \
401	-ffunction-sections \
402	-fomit-frame-pointer \
403	-funwind-tables
404
405MY_DEFS_Release := \
406	'-DV8_DEPRECATION_WARNINGS' \
407	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
408	'-D_FILE_OFFSET_BITS=64' \
409	'-DNO_TCMALLOC' \
410	'-DDISABLE_NACL' \
411	'-DCHROMIUM_BUILD' \
412	'-DUSE_LIBJPEG_TURBO=1' \
413	'-DENABLE_WEBRTC=1' \
414	'-DUSE_PROPRIETARY_CODECS' \
415	'-DENABLE_BROWSER_CDMS' \
416	'-DENABLE_CONFIGURATION_POLICY' \
417	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
418	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
419	'-DENABLE_EGLIMAGE=1' \
420	'-DCLD_VERSION=1' \
421	'-DENABLE_PRINTING=1' \
422	'-DENABLE_MANAGED_USERS=1' \
423	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
424	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
425	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
426	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
427	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
428	'-DVIDEO_HOLE=1' \
429	'-DUSE_OPENSSL=1' \
430	'-DUSE_OPENSSL_CERTS=1' \
431	'-D__STDC_CONSTANT_MACROS' \
432	'-D__STDC_FORMAT_MACROS' \
433	'-DBASE_IMPLEMENTATION' \
434	'-DANDROID_SINCOS_PROVIDED' \
435	'-DANDROID' \
436	'-D__GNU_SOURCE=1' \
437	'-DUSE_STLPORT=1' \
438	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
439	'-DCHROME_BUILD_ID=""' \
440	'-DNDEBUG' \
441	'-DNVALGRIND' \
442	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
443	'-D_FORTIFY_SOURCE=2'
444
445
446# Include paths placed before CFLAGS/CPPFLAGS
447LOCAL_C_INCLUDES_Release := \
448	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
449	$(gyp_shared_intermediate_dir) \
450	$(gyp_shared_intermediate_dir)/base \
451	$(LOCAL_PATH) \
452	$(PWD)/frameworks/wilhelm/include \
453	$(PWD)/bionic \
454	$(PWD)/external/stlport/stlport
455
456
457# Flags passed to only C++ (and not C) files.
458LOCAL_CPPFLAGS_Release := \
459	-fno-rtti \
460	-fno-threadsafe-statics \
461	-fvisibility-inlines-hidden \
462	-Wsign-compare \
463	-Wno-non-virtual-dtor \
464	-Wno-sign-promo
465
466
467LOCAL_FDO_SUPPORT_Release := false
468
469LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
470LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
471LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
472LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
473LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
474### Rules for final target.
475
476LOCAL_LDFLAGS_Debug := \
477	-Wl,-z,now \
478	-Wl,-z,relro \
479	-Wl,--fatal-warnings \
480	-Wl,-z,noexecstack \
481	-fPIC \
482	-m32 \
483	-fuse-ld=gold \
484	-nostdlib \
485	-Wl,--no-undefined \
486	-Wl,--exclude-libs=ALL \
487	-Wl,--warn-shared-textrel \
488	-Wl,-O1 \
489	-Wl,--as-needed
490
491
492LOCAL_LDFLAGS_Release := \
493	-Wl,-z,now \
494	-Wl,-z,relro \
495	-Wl,--fatal-warnings \
496	-Wl,-z,noexecstack \
497	-fPIC \
498	-m32 \
499	-fuse-ld=gold \
500	-nostdlib \
501	-Wl,--no-undefined \
502	-Wl,--exclude-libs=ALL \
503	-Wl,-O1 \
504	-Wl,--as-needed \
505	-Wl,--gc-sections \
506	-Wl,--warn-shared-textrel
507
508
509LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
510
511LOCAL_STATIC_LIBRARIES := \
512	cpufeatures
513
514# Enable grouping to fix circular references
515LOCAL_GROUP_STATIC_LIBRARIES := true
516
517LOCAL_SHARED_LIBRARIES := \
518	libstlport \
519	libdl
520
521# Add target alias to "gyp_all_modules" target.
522.PHONY: gyp_all_modules
523gyp_all_modules: base_base_gyp
524
525# Alias gyp target name.
526.PHONY: base
527base: base_base_gyp
528
529include $(BUILD_STATIC_LIBRARY)
530