1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_IS_HOST_MODULE := true
9LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_HOST_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
16GYP_GENERATED_OUTPUTS :=
17
18# Make sure our deps and generated files are built first.
19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
20
21LOCAL_CPP_EXTENSION := .cc
22LOCAL_GENERATED_SOURCES :=
23
24GYP_COPIED_SOURCE_ORIGIN_DIRS :=
25
26LOCAL_SRC_FILES := \
27	v8/src/base/atomicops_internals_x86_gcc.cc \
28	v8/src/base/bits.cc \
29	v8/src/base/cpu.cc \
30	v8/src/base/division-by-constant.cc \
31	v8/src/base/logging.cc \
32	v8/src/base/once.cc \
33	v8/src/base/platform/time.cc \
34	v8/src/base/platform/condition-variable.cc \
35	v8/src/base/platform/mutex.cc \
36	v8/src/base/platform/semaphore.cc \
37	v8/src/base/sys-info.cc \
38	v8/src/base/utils/random-number-generator.cc \
39	v8/src/base/platform/platform-posix.cc \
40	v8/src/base/platform/platform-linux.cc
41
42
43# Flags passed to both C and C++ files.
44MY_CFLAGS_Debug := \
45	-fstack-protector \
46	--param=ssp-buffer-size=4 \
47	 \
48	-pthread \
49	-fno-strict-aliasing \
50	-Wno-unused-parameter \
51	-Wno-missing-field-initializers \
52	-fvisibility=hidden \
53	-pipe \
54	-fPIC \
55	-Wno-format \
56	-Wheader-hygiene \
57	-Wno-char-subscripts \
58	-Wno-unneeded-internal-declaration \
59	-Wno-covered-switch-default \
60	-Wstring-conversion \
61	-Wno-c++11-narrowing \
62	-Wno-deprecated-register \
63	-Wno-unused-local-typedef \
64	-Os \
65	-g \
66	-gdwarf-4 \
67	-fdata-sections \
68	-ffunction-sections \
69	-fomit-frame-pointer \
70	-funwind-tables
71
72MY_DEFS_Debug := \
73	'-DV8_DEPRECATION_WARNINGS' \
74	'-D_FILE_OFFSET_BITS=64' \
75	'-DNO_TCMALLOC' \
76	'-DDISABLE_NACL' \
77	'-DCHROMIUM_BUILD' \
78	'-DUSE_LIBJPEG_TURBO=1' \
79	'-DENABLE_WEBRTC=1' \
80	'-DUSE_PROPRIETARY_CODECS' \
81	'-DENABLE_BROWSER_CDMS' \
82	'-DENABLE_CONFIGURATION_POLICY' \
83	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
84	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
85	'-DENABLE_EGLIMAGE=1' \
86	'-DCLD_VERSION=1' \
87	'-DENABLE_PRINTING=1' \
88	'-DENABLE_MANAGED_USERS=1' \
89	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
90	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
91	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
92	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
93	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
94	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
95	'-DVIDEO_HOLE=1' \
96	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
97	'-DV8_TARGET_ARCH_MIPS64' \
98	'-DCAN_USE_FPU_INSTRUCTIONS' \
99	'-D__mips_hard_float=1' \
100	'-D_MIPS_ARCH_MIPS64R2' \
101	'-DV8_I18N_SUPPORT' \
102	'-DUSE_OPENSSL=1' \
103	'-DUSE_OPENSSL_CERTS=1' \
104	'-DV8_LIBRT_NOT_AVAILABLE=1' \
105	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
106	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
107	'-D_DEBUG' \
108	'-DENABLE_DISASSEMBLER' \
109	'-DV8_ENABLE_CHECKS' \
110	'-DOBJECT_PRINT' \
111	'-DVERIFY_HEAP' \
112	'-DENABLE_EXTRA_CHECKS' \
113	'-DENABLE_HANDLE_ZAPPING'
114
115
116# Include paths placed before CFLAGS/CPPFLAGS
117LOCAL_C_INCLUDES_Debug := \
118	$(LOCAL_PATH)/v8 \
119	$(gyp_shared_intermediate_dir)
120
121
122# Flags passed to only C++ (and not C) files.
123LOCAL_CPPFLAGS_Debug := \
124	-fno-exceptions \
125	-fno-rtti \
126	-fno-threadsafe-statics \
127	-fvisibility-inlines-hidden \
128	-Wno-deprecated \
129	-std=gnu++11
130
131
132# Flags passed to both C and C++ files.
133MY_CFLAGS_Release := \
134	-fstack-protector \
135	--param=ssp-buffer-size=4 \
136	 \
137	-pthread \
138	-fno-strict-aliasing \
139	-Wno-unused-parameter \
140	-Wno-missing-field-initializers \
141	-fvisibility=hidden \
142	-pipe \
143	-fPIC \
144	-Wno-format \
145	-Wheader-hygiene \
146	-Wno-char-subscripts \
147	-Wno-unneeded-internal-declaration \
148	-Wno-covered-switch-default \
149	-Wstring-conversion \
150	-Wno-c++11-narrowing \
151	-Wno-deprecated-register \
152	-Wno-unused-local-typedef \
153	-fno-ident \
154	-fdata-sections \
155	-ffunction-sections \
156	-fomit-frame-pointer \
157	-funwind-tables \
158	-fdata-sections \
159	-ffunction-sections \
160	-O2
161
162MY_DEFS_Release := \
163	'-DV8_DEPRECATION_WARNINGS' \
164	'-D_FILE_OFFSET_BITS=64' \
165	'-DNO_TCMALLOC' \
166	'-DDISABLE_NACL' \
167	'-DCHROMIUM_BUILD' \
168	'-DUSE_LIBJPEG_TURBO=1' \
169	'-DENABLE_WEBRTC=1' \
170	'-DUSE_PROPRIETARY_CODECS' \
171	'-DENABLE_BROWSER_CDMS' \
172	'-DENABLE_CONFIGURATION_POLICY' \
173	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
174	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
175	'-DENABLE_EGLIMAGE=1' \
176	'-DCLD_VERSION=1' \
177	'-DENABLE_PRINTING=1' \
178	'-DENABLE_MANAGED_USERS=1' \
179	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
180	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
181	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
182	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
183	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
184	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
185	'-DVIDEO_HOLE=1' \
186	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
187	'-DV8_TARGET_ARCH_MIPS64' \
188	'-DCAN_USE_FPU_INSTRUCTIONS' \
189	'-D__mips_hard_float=1' \
190	'-D_MIPS_ARCH_MIPS64R2' \
191	'-DV8_I18N_SUPPORT' \
192	'-DUSE_OPENSSL=1' \
193	'-DUSE_OPENSSL_CERTS=1' \
194	'-DV8_LIBRT_NOT_AVAILABLE=1' \
195	'-DNDEBUG' \
196	'-DNVALGRIND' \
197	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
198
199
200# Include paths placed before CFLAGS/CPPFLAGS
201LOCAL_C_INCLUDES_Release := \
202	$(LOCAL_PATH)/v8 \
203	$(gyp_shared_intermediate_dir)
204
205
206# Flags passed to only C++ (and not C) files.
207LOCAL_CPPFLAGS_Release := \
208	-fno-exceptions \
209	-fno-rtti \
210	-fno-threadsafe-statics \
211	-fvisibility-inlines-hidden \
212	-Wno-deprecated \
213	-std=gnu++11
214
215
216LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
217# Undefine ANDROID for host modules
218LOCAL_CFLAGS += -UANDROID
219LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
220LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
221LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
222### Rules for final target.
223### Set directly by aosp_build_settings.
224LOCAL_CLANG := true
225
226# Add target alias to "gyp_all_modules" target.
227.PHONY: gyp_all_modules
228gyp_all_modules: v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
229
230# Alias gyp target name.
231.PHONY: v8_libbase
232v8_libbase: v8_tools_gyp_v8_libbase_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp
233
234include $(BUILD_HOST_STATIC_LIBRARY)
235