1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_WebKit_Source_wtf_wtf_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,third_party_WebKit_Source_wtf_wtf_config_gyp,,,$(GYP_VAR_PREFIX))/wtf_config.stamp \
15	$(call intermediates-dir-for,GYP,third_party_WebKit_Source_config_gyp,,,$(GYP_VAR_PREFIX))/config.stamp \
16	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \
17	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.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
24$(gyp_intermediate_dir)/bignum-dtoa.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/bignum-dtoa.cc
25	mkdir -p $(@D); cp $< $@
26$(gyp_intermediate_dir)/bignum.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/bignum.cc
27	mkdir -p $(@D); cp $< $@
28$(gyp_intermediate_dir)/cached-powers.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/cached-powers.cc
29	mkdir -p $(@D); cp $< $@
30$(gyp_intermediate_dir)/diy-fp.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/diy-fp.cc
31	mkdir -p $(@D); cp $< $@
32$(gyp_intermediate_dir)/double-conversion.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/double-conversion.cc
33	mkdir -p $(@D); cp $< $@
34$(gyp_intermediate_dir)/fast-dtoa.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/fast-dtoa.cc
35	mkdir -p $(@D); cp $< $@
36$(gyp_intermediate_dir)/fixed-dtoa.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/fixed-dtoa.cc
37	mkdir -p $(@D); cp $< $@
38$(gyp_intermediate_dir)/strtod.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/strtod.cc
39	mkdir -p $(@D); cp $< $@
40LOCAL_GENERATED_SOURCES := \
41	$(gyp_intermediate_dir)/bignum-dtoa.cpp \
42	$(gyp_intermediate_dir)/bignum.cpp \
43	$(gyp_intermediate_dir)/cached-powers.cpp \
44	$(gyp_intermediate_dir)/diy-fp.cpp \
45	$(gyp_intermediate_dir)/double-conversion.cpp \
46	$(gyp_intermediate_dir)/fast-dtoa.cpp \
47	$(gyp_intermediate_dir)/fixed-dtoa.cpp \
48	$(gyp_intermediate_dir)/strtod.cpp
49
50GYP_COPIED_SOURCE_ORIGIN_DIRS := \
51	$(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa
52
53LOCAL_SRC_FILES := \
54	third_party/WebKit/Source/wtf/AddressSpaceRandomization.cpp \
55	third_party/WebKit/Source/wtf/ArrayBuffer.cpp \
56	third_party/WebKit/Source/wtf/ArrayBufferBuilder.cpp \
57	third_party/WebKit/Source/wtf/ArrayBufferContents.cpp \
58	third_party/WebKit/Source/wtf/ArrayBufferView.cpp \
59	third_party/WebKit/Source/wtf/ArrayPiece.cpp \
60	third_party/WebKit/Source/wtf/Assertions.cpp \
61	third_party/WebKit/Source/wtf/BitVector.cpp \
62	third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp \
63	third_party/WebKit/Source/wtf/CurrentTime.cpp \
64	third_party/WebKit/Source/wtf/DataLog.cpp \
65	third_party/WebKit/Source/wtf/DateMath.cpp \
66	third_party/WebKit/Source/wtf/DefaultAllocator.cpp \
67	third_party/WebKit/Source/wtf/DynamicAnnotations.cpp \
68	third_party/WebKit/Source/wtf/FastMalloc.cpp \
69	third_party/WebKit/Source/wtf/FilePrintStream.cpp \
70	third_party/WebKit/Source/wtf/HashTable.cpp \
71	third_party/WebKit/Source/wtf/InstanceCounter.cpp \
72	third_party/WebKit/Source/wtf/MainThread.cpp \
73	third_party/WebKit/Source/wtf/NullPtr.cpp \
74	third_party/WebKit/Source/wtf/PageAllocator.cpp \
75	third_party/WebKit/Source/wtf/PartitionAlloc.cpp \
76	third_party/WebKit/Source/wtf/PrintStream.cpp \
77	third_party/WebKit/Source/wtf/RefCountedLeakCounter.cpp \
78	third_party/WebKit/Source/wtf/SizeLimits.cpp \
79	third_party/WebKit/Source/wtf/ThreadingPthreads.cpp \
80	third_party/WebKit/Source/wtf/TypeTraits.cpp \
81	third_party/WebKit/Source/wtf/WTF.cpp \
82	third_party/WebKit/Source/wtf/WTFThreadData.cpp \
83	third_party/WebKit/Source/wtf/dtoa.cpp \
84	third_party/WebKit/Source/wtf/text/AtomicString.cpp \
85	third_party/WebKit/Source/wtf/text/Base64.cpp \
86	third_party/WebKit/Source/wtf/text/CString.cpp \
87	third_party/WebKit/Source/wtf/text/StringBuilder.cpp \
88	third_party/WebKit/Source/wtf/text/StringConcatenate.cpp \
89	third_party/WebKit/Source/wtf/text/StringImpl.cpp \
90	third_party/WebKit/Source/wtf/text/StringStatics.cpp \
91	third_party/WebKit/Source/wtf/text/TextCodec.cpp \
92	third_party/WebKit/Source/wtf/text/TextCodecICU.cpp \
93	third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp \
94	third_party/WebKit/Source/wtf/text/TextCodecReplacement.cpp \
95	third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp \
96	third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp \
97	third_party/WebKit/Source/wtf/text/TextCodecUserDefined.cpp \
98	third_party/WebKit/Source/wtf/text/TextEncoding.cpp \
99	third_party/WebKit/Source/wtf/text/TextEncodingRegistry.cpp \
100	third_party/WebKit/Source/wtf/text/TextPosition.cpp \
101	third_party/WebKit/Source/wtf/text/WTFString.cpp \
102	third_party/WebKit/Source/wtf/unicode/UTF8.cpp \
103	third_party/WebKit/Source/wtf/unicode/icu/CollatorICU.cpp
104
105
106# Flags passed to both C and C++ files.
107MY_CFLAGS_Debug := \
108	--param=ssp-buffer-size=4 \
109	-Werror \
110	-fno-strict-aliasing \
111	-Wall \
112	-Wno-unused-parameter \
113	-Wno-missing-field-initializers \
114	-fvisibility=hidden \
115	-pipe \
116	-fPIC \
117	-Wno-unused-local-typedefs \
118	-ffunction-sections \
119	-funwind-tables \
120	-g \
121	-fno-short-enums \
122	-finline-limit=64 \
123	-Wa,--noexecstack \
124	-U_FORTIFY_SOURCE \
125	-Wno-extra \
126	-Wno-ignored-qualifiers \
127	-Wno-type-limits \
128	-Wno-unused-but-set-variable \
129	-Os \
130	-g \
131	-gdwarf-4 \
132	-fdata-sections \
133	-ffunction-sections \
134	-funwind-tables
135
136MY_DEFS_Debug := \
137	'-DV8_DEPRECATION_WARNINGS' \
138	'-D_FILE_OFFSET_BITS=64' \
139	'-DNO_TCMALLOC' \
140	'-DDISABLE_NACL' \
141	'-DCHROMIUM_BUILD' \
142	'-DUSE_LIBJPEG_TURBO=1' \
143	'-DENABLE_WEBRTC=1' \
144	'-DUSE_PROPRIETARY_CODECS' \
145	'-DENABLE_BROWSER_CDMS' \
146	'-DENABLE_CONFIGURATION_POLICY' \
147	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
148	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
149	'-DENABLE_EGLIMAGE=1' \
150	'-DCLD_VERSION=1' \
151	'-DENABLE_PRINTING=1' \
152	'-DENABLE_MANAGED_USERS=1' \
153	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
154	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
155	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
156	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
157	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
158	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
159	'-DVIDEO_HOLE=1' \
160	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
161	'-DWTF_IMPLEMENTATION=1' \
162	'-DENABLE_SVG_FONTS=1' \
163	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
164	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
165	'-DENABLE_WEB_AUDIO=1' \
166	'-DENABLE_OPENTYPE_VERTICAL=1' \
167	'-DU_USING_ICU_NAMESPACE=0' \
168	'-DU_ENABLE_DYLOAD=0' \
169	'-DUSE_OPENSSL=1' \
170	'-DUSE_OPENSSL_CERTS=1' \
171	'-D__STDC_CONSTANT_MACROS' \
172	'-D__STDC_FORMAT_MACROS' \
173	'-DANDROID' \
174	'-D__GNU_SOURCE=1' \
175	'-DUSE_STLPORT=1' \
176	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
177	'-DCHROME_BUILD_ID=""' \
178	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
179	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
180	'-D_DEBUG'
181
182
183# Include paths placed before CFLAGS/CPPFLAGS
184LOCAL_C_INCLUDES_Debug := \
185	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
186	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
187	$(gyp_shared_intermediate_dir) \
188	$(LOCAL_PATH)/third_party/WebKit/Source \
189	$(LOCAL_PATH)/third_party/WebKit \
190	$(PWD)/external/icu/icu4c/source/common \
191	$(PWD)/external/icu/icu4c/source/i18n \
192	$(PWD)/frameworks/wilhelm/include \
193	$(PWD)/bionic \
194	$(PWD)/external/stlport/stlport
195
196
197# Flags passed to only C++ (and not C) files.
198LOCAL_CPPFLAGS_Debug := \
199	-Wno-c++0x-compat \
200	-fno-exceptions \
201	-fno-rtti \
202	-fno-threadsafe-statics \
203	-fvisibility-inlines-hidden \
204	-Wsign-compare \
205	-Wno-c++0x-compat \
206	-std=gnu++11 \
207	-Wno-narrowing \
208	-Wno-literal-suffix \
209	-Wno-non-virtual-dtor \
210	-Wno-sign-promo
211
212
213# Flags passed to both C and C++ files.
214MY_CFLAGS_Release := \
215	--param=ssp-buffer-size=4 \
216	-Werror \
217	-fno-strict-aliasing \
218	-Wall \
219	-Wno-unused-parameter \
220	-Wno-missing-field-initializers \
221	-fvisibility=hidden \
222	-pipe \
223	-fPIC \
224	-Wno-unused-local-typedefs \
225	-ffunction-sections \
226	-funwind-tables \
227	-g \
228	-fno-short-enums \
229	-finline-limit=64 \
230	-Wa,--noexecstack \
231	-U_FORTIFY_SOURCE \
232	-Wno-extra \
233	-Wno-ignored-qualifiers \
234	-Wno-type-limits \
235	-Wno-unused-but-set-variable \
236	-Os \
237	-fno-ident \
238	-fdata-sections \
239	-ffunction-sections \
240	-funwind-tables
241
242MY_DEFS_Release := \
243	'-DV8_DEPRECATION_WARNINGS' \
244	'-D_FILE_OFFSET_BITS=64' \
245	'-DNO_TCMALLOC' \
246	'-DDISABLE_NACL' \
247	'-DCHROMIUM_BUILD' \
248	'-DUSE_LIBJPEG_TURBO=1' \
249	'-DENABLE_WEBRTC=1' \
250	'-DUSE_PROPRIETARY_CODECS' \
251	'-DENABLE_BROWSER_CDMS' \
252	'-DENABLE_CONFIGURATION_POLICY' \
253	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
254	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
255	'-DENABLE_EGLIMAGE=1' \
256	'-DCLD_VERSION=1' \
257	'-DENABLE_PRINTING=1' \
258	'-DENABLE_MANAGED_USERS=1' \
259	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
260	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
261	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
262	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
263	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
264	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
265	'-DVIDEO_HOLE=1' \
266	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
267	'-DWTF_IMPLEMENTATION=1' \
268	'-DENABLE_SVG_FONTS=1' \
269	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
270	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
271	'-DENABLE_WEB_AUDIO=1' \
272	'-DENABLE_OPENTYPE_VERTICAL=1' \
273	'-DU_USING_ICU_NAMESPACE=0' \
274	'-DU_ENABLE_DYLOAD=0' \
275	'-DUSE_OPENSSL=1' \
276	'-DUSE_OPENSSL_CERTS=1' \
277	'-D__STDC_CONSTANT_MACROS' \
278	'-D__STDC_FORMAT_MACROS' \
279	'-DANDROID' \
280	'-D__GNU_SOURCE=1' \
281	'-DUSE_STLPORT=1' \
282	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
283	'-DCHROME_BUILD_ID=""' \
284	'-DNDEBUG' \
285	'-DNVALGRIND' \
286	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
287	'-D_FORTIFY_SOURCE=2'
288
289
290# Include paths placed before CFLAGS/CPPFLAGS
291LOCAL_C_INCLUDES_Release := \
292	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
293	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
294	$(gyp_shared_intermediate_dir) \
295	$(LOCAL_PATH)/third_party/WebKit/Source \
296	$(LOCAL_PATH)/third_party/WebKit \
297	$(PWD)/external/icu/icu4c/source/common \
298	$(PWD)/external/icu/icu4c/source/i18n \
299	$(PWD)/frameworks/wilhelm/include \
300	$(PWD)/bionic \
301	$(PWD)/external/stlport/stlport
302
303
304# Flags passed to only C++ (and not C) files.
305LOCAL_CPPFLAGS_Release := \
306	-Wno-c++0x-compat \
307	-fno-exceptions \
308	-fno-rtti \
309	-fno-threadsafe-statics \
310	-fvisibility-inlines-hidden \
311	-Wsign-compare \
312	-Wno-c++0x-compat \
313	-std=gnu++11 \
314	-Wno-narrowing \
315	-Wno-literal-suffix \
316	-Wno-non-virtual-dtor \
317	-Wno-sign-promo
318
319
320LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
321LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
322LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
323LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
324### Rules for final target.
325
326LOCAL_SHARED_LIBRARIES := \
327	libstlport \
328	libdl
329
330# Add target alias to "gyp_all_modules" target.
331.PHONY: gyp_all_modules
332gyp_all_modules: third_party_WebKit_Source_wtf_wtf_gyp
333
334# Alias gyp target name.
335.PHONY: wtf
336wtf: third_party_WebKit_Source_wtf_wtf_gyp
337
338include $(BUILD_STATIC_LIBRARY)
339