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