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