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	-fstack-protector \
109	--param=ssp-buffer-size=4 \
110	 \
111	-fno-strict-aliasing \
112	-Wall \
113	-Wno-unused-parameter \
114	-Wno-missing-field-initializers \
115	-fvisibility=hidden \
116	-pipe \
117	-fPIC \
118	-Wno-unused-local-typedefs \
119	-ffunction-sections \
120	-funwind-tables \
121	-g \
122	-fstack-protector \
123	-fno-short-enums \
124	-finline-limit=64 \
125	-Wa,--noexecstack \
126	-U_FORTIFY_SOURCE \
127	-Wno-extra \
128	-Wno-ignored-qualifiers \
129	-Wno-type-limits \
130	-Wno-unused-but-set-variable \
131	-Os \
132	-g \
133	-gdwarf-4 \
134	-fdata-sections \
135	-ffunction-sections \
136	-fomit-frame-pointer \
137	-funwind-tables
138
139MY_DEFS_Debug := \
140	'-DV8_DEPRECATION_WARNINGS' \
141	'-D_FILE_OFFSET_BITS=64' \
142	'-DNO_TCMALLOC' \
143	'-DDISABLE_NACL' \
144	'-DCHROMIUM_BUILD' \
145	'-DUSE_LIBJPEG_TURBO=1' \
146	'-DENABLE_WEBRTC=1' \
147	'-DUSE_PROPRIETARY_CODECS' \
148	'-DENABLE_BROWSER_CDMS' \
149	'-DENABLE_CONFIGURATION_POLICY' \
150	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
151	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
152	'-DENABLE_EGLIMAGE=1' \
153	'-DCLD_VERSION=1' \
154	'-DENABLE_PRINTING=1' \
155	'-DENABLE_MANAGED_USERS=1' \
156	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
157	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
158	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
159	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
160	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
161	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
162	'-DVIDEO_HOLE=1' \
163	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
164	'-DWTF_IMPLEMENTATION=1' \
165	'-DENABLE_SVG_FONTS=1' \
166	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
167	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
168	'-DENABLE_WEB_AUDIO=1' \
169	'-DENABLE_OPENTYPE_VERTICAL=1' \
170	'-DU_USING_ICU_NAMESPACE=0' \
171	'-DU_ENABLE_DYLOAD=0' \
172	'-DUSE_OPENSSL=1' \
173	'-DUSE_OPENSSL_CERTS=1' \
174	'-D__STDC_CONSTANT_MACROS' \
175	'-D__STDC_FORMAT_MACROS' \
176	'-DANDROID' \
177	'-D__GNU_SOURCE=1' \
178	'-DUSE_STLPORT=1' \
179	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
180	'-DCHROME_BUILD_ID=""' \
181	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
182	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
183	'-D_DEBUG'
184
185
186# Include paths placed before CFLAGS/CPPFLAGS
187LOCAL_C_INCLUDES_Debug := \
188	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
189	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
190	$(gyp_shared_intermediate_dir) \
191	$(LOCAL_PATH)/third_party/WebKit/Source \
192	$(LOCAL_PATH)/third_party/WebKit \
193	$(PWD)/external/icu/icu4c/source/common \
194	$(PWD)/external/icu/icu4c/source/i18n \
195	$(PWD)/frameworks/wilhelm/include \
196	$(PWD)/bionic \
197	$(PWD)/external/stlport/stlport
198
199
200# Flags passed to only C++ (and not C) files.
201LOCAL_CPPFLAGS_Debug := \
202	-Wno-c++0x-compat \
203	-fno-exceptions \
204	-fno-rtti \
205	-fno-threadsafe-statics \
206	-fvisibility-inlines-hidden \
207	-Wsign-compare \
208	-Wno-c++0x-compat \
209	-Wno-uninitialized \
210	-std=gnu++11 \
211	-Wno-narrowing \
212	-Wno-literal-suffix \
213	-Wno-non-virtual-dtor \
214	-Wno-sign-promo
215
216
217# Flags passed to both C and C++ files.
218MY_CFLAGS_Release := \
219	-fstack-protector \
220	--param=ssp-buffer-size=4 \
221	 \
222	-fno-strict-aliasing \
223	-Wall \
224	-Wno-unused-parameter \
225	-Wno-missing-field-initializers \
226	-fvisibility=hidden \
227	-pipe \
228	-fPIC \
229	-Wno-unused-local-typedefs \
230	-ffunction-sections \
231	-funwind-tables \
232	-g \
233	-fstack-protector \
234	-fno-short-enums \
235	-finline-limit=64 \
236	-Wa,--noexecstack \
237	-U_FORTIFY_SOURCE \
238	-Wno-extra \
239	-Wno-ignored-qualifiers \
240	-Wno-type-limits \
241	-Wno-unused-but-set-variable \
242	-Os \
243	-fno-ident \
244	-fdata-sections \
245	-ffunction-sections \
246	-fomit-frame-pointer \
247	-funwind-tables
248
249MY_DEFS_Release := \
250	'-DV8_DEPRECATION_WARNINGS' \
251	'-D_FILE_OFFSET_BITS=64' \
252	'-DNO_TCMALLOC' \
253	'-DDISABLE_NACL' \
254	'-DCHROMIUM_BUILD' \
255	'-DUSE_LIBJPEG_TURBO=1' \
256	'-DENABLE_WEBRTC=1' \
257	'-DUSE_PROPRIETARY_CODECS' \
258	'-DENABLE_BROWSER_CDMS' \
259	'-DENABLE_CONFIGURATION_POLICY' \
260	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
261	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
262	'-DENABLE_EGLIMAGE=1' \
263	'-DCLD_VERSION=1' \
264	'-DENABLE_PRINTING=1' \
265	'-DENABLE_MANAGED_USERS=1' \
266	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
267	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
268	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
269	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
270	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
271	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
272	'-DVIDEO_HOLE=1' \
273	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
274	'-DWTF_IMPLEMENTATION=1' \
275	'-DENABLE_SVG_FONTS=1' \
276	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
277	'-DWTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1' \
278	'-DENABLE_WEB_AUDIO=1' \
279	'-DENABLE_OPENTYPE_VERTICAL=1' \
280	'-DU_USING_ICU_NAMESPACE=0' \
281	'-DU_ENABLE_DYLOAD=0' \
282	'-DUSE_OPENSSL=1' \
283	'-DUSE_OPENSSL_CERTS=1' \
284	'-D__STDC_CONSTANT_MACROS' \
285	'-D__STDC_FORMAT_MACROS' \
286	'-DANDROID' \
287	'-D__GNU_SOURCE=1' \
288	'-DUSE_STLPORT=1' \
289	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
290	'-DCHROME_BUILD_ID=""' \
291	'-DNDEBUG' \
292	'-DNVALGRIND' \
293	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
294	'-D_FORTIFY_SOURCE=2'
295
296
297# Include paths placed before CFLAGS/CPPFLAGS
298LOCAL_C_INCLUDES_Release := \
299	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
300	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
301	$(gyp_shared_intermediate_dir) \
302	$(LOCAL_PATH)/third_party/WebKit/Source \
303	$(LOCAL_PATH)/third_party/WebKit \
304	$(PWD)/external/icu/icu4c/source/common \
305	$(PWD)/external/icu/icu4c/source/i18n \
306	$(PWD)/frameworks/wilhelm/include \
307	$(PWD)/bionic \
308	$(PWD)/external/stlport/stlport
309
310
311# Flags passed to only C++ (and not C) files.
312LOCAL_CPPFLAGS_Release := \
313	-Wno-c++0x-compat \
314	-fno-exceptions \
315	-fno-rtti \
316	-fno-threadsafe-statics \
317	-fvisibility-inlines-hidden \
318	-Wsign-compare \
319	-Wno-c++0x-compat \
320	-Wno-uninitialized \
321	-std=gnu++11 \
322	-Wno-narrowing \
323	-Wno-literal-suffix \
324	-Wno-non-virtual-dtor \
325	-Wno-sign-promo
326
327
328LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
329LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
330LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
331LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
332### Rules for final target.
333
334LOCAL_SHARED_LIBRARIES := \
335	libstlport \
336	libdl
337
338# Add target alias to "gyp_all_modules" target.
339.PHONY: gyp_all_modules
340gyp_all_modules: third_party_WebKit_Source_wtf_wtf_gyp
341
342# Alias gyp target name.
343.PHONY: wtf
344wtf: third_party_WebKit_Source_wtf_wtf_gyp
345
346include $(BUILD_STATIC_LIBRARY)
347