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_TAGS := optional
9gyp_intermediate_dir := $(call local-intermediates-dir)
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
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)/wtf_config.stamp \
15	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp)/icui18n.stamp \
16	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp
17
18GYP_GENERATED_OUTPUTS :=
19
20# Make sure our deps and generated files are built first.
21LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
22
23$(gyp_intermediate_dir)/bignum-dtoa.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/bignum-dtoa.cc
24	mkdir -p $(@D); cp $< $@
25$(gyp_intermediate_dir)/bignum.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/bignum.cc
26	mkdir -p $(@D); cp $< $@
27$(gyp_intermediate_dir)/cached-powers.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/cached-powers.cc
28	mkdir -p $(@D); cp $< $@
29$(gyp_intermediate_dir)/diy-fp.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/diy-fp.cc
30	mkdir -p $(@D); cp $< $@
31$(gyp_intermediate_dir)/double-conversion.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/double-conversion.cc
32	mkdir -p $(@D); cp $< $@
33$(gyp_intermediate_dir)/fast-dtoa.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/fast-dtoa.cc
34	mkdir -p $(@D); cp $< $@
35$(gyp_intermediate_dir)/fixed-dtoa.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/fixed-dtoa.cc
36	mkdir -p $(@D); cp $< $@
37$(gyp_intermediate_dir)/strtod.cpp: $(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa/strtod.cc
38	mkdir -p $(@D); cp $< $@
39LOCAL_GENERATED_SOURCES := \
40	$(gyp_intermediate_dir)/bignum-dtoa.cpp \
41	$(gyp_intermediate_dir)/bignum.cpp \
42	$(gyp_intermediate_dir)/cached-powers.cpp \
43	$(gyp_intermediate_dir)/diy-fp.cpp \
44	$(gyp_intermediate_dir)/double-conversion.cpp \
45	$(gyp_intermediate_dir)/fast-dtoa.cpp \
46	$(gyp_intermediate_dir)/fixed-dtoa.cpp \
47	$(gyp_intermediate_dir)/strtod.cpp
48
49GYP_COPIED_SOURCE_ORIGIN_DIRS := \
50	$(LOCAL_PATH)/third_party/WebKit/Source/wtf/dtoa
51
52LOCAL_SRC_FILES := \
53	third_party/WebKit/Source/wtf/ArrayBuffer.cpp \
54	third_party/WebKit/Source/wtf/ArrayBufferContents.cpp \
55	third_party/WebKit/Source/wtf/ArrayBufferView.cpp \
56	third_party/WebKit/Source/wtf/Assertions.cpp \
57	third_party/WebKit/Source/wtf/BitVector.cpp \
58	third_party/WebKit/Source/wtf/CryptographicallyRandomNumber.cpp \
59	third_party/WebKit/Source/wtf/CurrentTime.cpp \
60	third_party/WebKit/Source/wtf/DataLog.cpp \
61	third_party/WebKit/Source/wtf/DateMath.cpp \
62	third_party/WebKit/Source/wtf/DecimalNumber.cpp \
63	third_party/WebKit/Source/wtf/DynamicAnnotations.cpp \
64	third_party/WebKit/Source/wtf/FastMalloc.cpp \
65	third_party/WebKit/Source/wtf/FilePrintStream.cpp \
66	third_party/WebKit/Source/wtf/GregorianDateTime.cpp \
67	third_party/WebKit/Source/wtf/HashTable.cpp \
68	third_party/WebKit/Source/wtf/MainThread.cpp \
69	third_party/WebKit/Source/wtf/NullPtr.cpp \
70	third_party/WebKit/Source/wtf/NumberOfCores.cpp \
71	third_party/WebKit/Source/wtf/PageAllocator.cpp \
72	third_party/WebKit/Source/wtf/ParallelJobsGeneric.cpp \
73	third_party/WebKit/Source/wtf/PartitionAlloc.cpp \
74	third_party/WebKit/Source/wtf/PrintStream.cpp \
75	third_party/WebKit/Source/wtf/RandomNumber.cpp \
76	third_party/WebKit/Source/wtf/RefCountedLeakCounter.cpp \
77	third_party/WebKit/Source/wtf/SHA1.cpp \
78	third_party/WebKit/Source/wtf/SizeLimits.cpp \
79	third_party/WebKit/Source/wtf/ThreadIdentifierDataPthreads.cpp \
80	third_party/WebKit/Source/wtf/Threading.cpp \
81	third_party/WebKit/Source/wtf/ThreadingPthreads.cpp \
82	third_party/WebKit/Source/wtf/TypeTraits.cpp \
83	third_party/WebKit/Source/wtf/WTF.cpp \
84	third_party/WebKit/Source/wtf/WTFThreadData.cpp \
85	third_party/WebKit/Source/wtf/dtoa.cpp \
86	third_party/WebKit/Source/wtf/text/AtomicString.cpp \
87	third_party/WebKit/Source/wtf/text/Base64.cpp \
88	third_party/WebKit/Source/wtf/text/CString.cpp \
89	third_party/WebKit/Source/wtf/text/StringBuilder.cpp \
90	third_party/WebKit/Source/wtf/text/StringImpl.cpp \
91	third_party/WebKit/Source/wtf/text/StringStatics.cpp \
92	third_party/WebKit/Source/wtf/text/TextCodec.cpp \
93	third_party/WebKit/Source/wtf/text/TextCodecICU.cpp \
94	third_party/WebKit/Source/wtf/text/TextCodecLatin1.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-exceptions \
112	-fno-strict-aliasing \
113	-Wno-unused-parameter \
114	-Wno-missing-field-initializers \
115	-fvisibility=hidden \
116	-pipe \
117	-fPIC \
118	-Wno-format \
119	-EL \
120	-mhard-float \
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-address \
133	-Wno-format-security \
134	-Wno-return-type \
135	-Wno-sequence-point \
136	-Os \
137	-g \
138	-fomit-frame-pointer \
139	-fdata-sections \
140	-ffunction-sections
141
142MY_DEFS_Debug := \
143	'-DANGLE_DX11' \
144	'-D_FILE_OFFSET_BITS=64' \
145	'-DNO_TCMALLOC' \
146	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
147	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
148	'-DDISABLE_NACL' \
149	'-DCHROMIUM_BUILD' \
150	'-DUSE_LIBJPEG_TURBO=1' \
151	'-DUSE_PROPRIETARY_CODECS' \
152	'-DENABLE_CONFIGURATION_POLICY' \
153	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
154	'-DTRACING_IS_OFFICIAL_BUILD=1' \
155	'-DENABLE_GPU=1' \
156	'-DUSE_OPENSSL=1' \
157	'-DENABLE_EGLIMAGE=1' \
158	'-DENABLE_PRINTING=1' \
159	'-DWTF_IMPLEMENTATION=1' \
160	'-DENABLE_CSS3_TEXT=0' \
161	'-DENABLE_CSS_EXCLUSIONS=1' \
162	'-DENABLE_CSS_REGIONS=1' \
163	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
164	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
165	'-DENABLE_SVG_FONTS=1' \
166	'-DENABLE_TOUCH_ICON_LOADING=1' \
167	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
168	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
169	'-DENABLE_CALENDAR_PICKER=0' \
170	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
171	'-DENABLE_INPUT_SPEECH=0' \
172	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
173	'-DENABLE_MEDIA_CAPTURE=1' \
174	'-DENABLE_NOTIFICATIONS=0' \
175	'-DENABLE_ORIENTATION_EVENTS=1' \
176	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
177	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
178	'-DENABLE_OPENTYPE_VERTICAL=1' \
179	'-DWTF_USE_HARFBUZZ=1' \
180	'-DU_USING_ICU_NAMESPACE=0' \
181	'-DANDROID' \
182	'-D__GNU_SOURCE=1' \
183	'-DUSE_STLPORT=1' \
184	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
185	'-DCHROME_BUILD_ID=""' \
186	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
187	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
188	'-D_DEBUG'
189
190
191# Include paths placed before CFLAGS/CPPFLAGS
192LOCAL_C_INCLUDES_Debug := \
193	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
194	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
195	$(LOCAL_PATH)/third_party/WebKit/Source \
196	$(PWD)/external/icu4c/common \
197	$(PWD)/external/icu4c/i18n \
198	$(PWD)/frameworks/wilhelm/include \
199	$(PWD)/bionic \
200	$(PWD)/external/stlport/stlport
201
202
203# Flags passed to only C++ (and not C) files.
204LOCAL_CPPFLAGS_Debug := \
205	-Wno-c++0x-compat \
206	-fno-rtti \
207	-fno-threadsafe-statics \
208	-fvisibility-inlines-hidden \
209	-Wno-deprecated \
210	-Wno-uninitialized \
211	-Wno-error=c++0x-compat \
212	-Wno-non-virtual-dtor \
213	-Wno-sign-promo \
214	-Wno-non-virtual-dtor
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-exceptions \
223	-fno-strict-aliasing \
224	-Wno-unused-parameter \
225	-Wno-missing-field-initializers \
226	-fvisibility=hidden \
227	-pipe \
228	-fPIC \
229	-Wno-format \
230	-EL \
231	-mhard-float \
232	-ffunction-sections \
233	-funwind-tables \
234	-g \
235	-fstack-protector \
236	-fno-short-enums \
237	-finline-limit=64 \
238	-Wa,--noexecstack \
239	-U_FORTIFY_SOURCE \
240	-Wno-extra \
241	-Wno-ignored-qualifiers \
242	-Wno-type-limits \
243	-Wno-address \
244	-Wno-format-security \
245	-Wno-return-type \
246	-Wno-sequence-point \
247	-Os \
248	-fno-ident \
249	-fdata-sections \
250	-ffunction-sections \
251	-fomit-frame-pointer
252
253MY_DEFS_Release := \
254	'-DANGLE_DX11' \
255	'-D_FILE_OFFSET_BITS=64' \
256	'-DNO_TCMALLOC' \
257	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
258	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
259	'-DDISABLE_NACL' \
260	'-DCHROMIUM_BUILD' \
261	'-DUSE_LIBJPEG_TURBO=1' \
262	'-DUSE_PROPRIETARY_CODECS' \
263	'-DENABLE_CONFIGURATION_POLICY' \
264	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
265	'-DTRACING_IS_OFFICIAL_BUILD=1' \
266	'-DENABLE_GPU=1' \
267	'-DUSE_OPENSSL=1' \
268	'-DENABLE_EGLIMAGE=1' \
269	'-DENABLE_PRINTING=1' \
270	'-DWTF_IMPLEMENTATION=1' \
271	'-DENABLE_CSS3_TEXT=0' \
272	'-DENABLE_CSS_EXCLUSIONS=1' \
273	'-DENABLE_CSS_REGIONS=1' \
274	'-DENABLE_CUSTOM_SCHEME_HANDLER=0' \
275	'-DENABLE_ENCRYPTED_MEDIA_V2=1' \
276	'-DENABLE_SVG_FONTS=1' \
277	'-DENABLE_TOUCH_ICON_LOADING=1' \
278	'-DENABLE_GDI_FONTS_ON_WINDOWS=1' \
279	'-DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1' \
280	'-DENABLE_CALENDAR_PICKER=0' \
281	'-DENABLE_FAST_MOBILE_SCROLLING=1' \
282	'-DENABLE_INPUT_SPEECH=0' \
283	'-DENABLE_LEGACY_NOTIFICATIONS=0' \
284	'-DENABLE_MEDIA_CAPTURE=1' \
285	'-DENABLE_NOTIFICATIONS=0' \
286	'-DENABLE_ORIENTATION_EVENTS=1' \
287	'-DENABLE_NAVIGATOR_CONTENT_UTILS=0' \
288	'-DWTF_USE_NATIVE_FULLSCREEN_VIDEO=1' \
289	'-DENABLE_OPENTYPE_VERTICAL=1' \
290	'-DWTF_USE_HARFBUZZ=1' \
291	'-DU_USING_ICU_NAMESPACE=0' \
292	'-DANDROID' \
293	'-D__GNU_SOURCE=1' \
294	'-DUSE_STLPORT=1' \
295	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
296	'-DCHROME_BUILD_ID=""' \
297	'-DNDEBUG' \
298	'-DNVALGRIND' \
299	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
300
301
302# Include paths placed before CFLAGS/CPPFLAGS
303LOCAL_C_INCLUDES_Release := \
304	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
305	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
306	$(LOCAL_PATH)/third_party/WebKit/Source \
307	$(PWD)/external/icu4c/common \
308	$(PWD)/external/icu4c/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-rtti \
318	-fno-threadsafe-statics \
319	-fvisibility-inlines-hidden \
320	-Wno-deprecated \
321	-Wno-uninitialized \
322	-Wno-error=c++0x-compat \
323	-Wno-non-virtual-dtor \
324	-Wno-sign-promo \
325	-Wno-non-virtual-dtor
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))
331### Rules for final target.
332
333LOCAL_LDFLAGS_Debug := \
334	-Wl,-z,now \
335	-Wl,-z,relro \
336	-Wl,-z,noexecstack \
337	-fPIC \
338	-EL \
339	-Wl,--no-keep-memory \
340	-nostdlib \
341	-Wl,--no-undefined \
342	-Wl,--exclude-libs=ALL \
343	-Wl,--fatal-warnings \
344	-Wl,--gc-sections \
345	-Wl,--warn-shared-textrel \
346	-Wl,-O1 \
347	-Wl,--as-needed
348
349
350LOCAL_LDFLAGS_Release := \
351	-Wl,-z,now \
352	-Wl,-z,relro \
353	-Wl,-z,noexecstack \
354	-fPIC \
355	-EL \
356	-Wl,--no-keep-memory \
357	-nostdlib \
358	-Wl,--no-undefined \
359	-Wl,--exclude-libs=ALL \
360	-Wl,-O1 \
361	-Wl,--as-needed \
362	-Wl,--gc-sections \
363	-Wl,--fatal-warnings \
364	-Wl,--warn-shared-textrel
365
366
367LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
368
369LOCAL_STATIC_LIBRARIES :=
370
371# Enable grouping to fix circular references
372LOCAL_GROUP_STATIC_LIBRARIES := true
373
374LOCAL_SHARED_LIBRARIES := \
375	libstlport \
376	libdl
377
378# Add target alias to "gyp_all_modules" target.
379.PHONY: gyp_all_modules
380gyp_all_modules: third_party_WebKit_Source_wtf_wtf_gyp
381
382# Alias gyp target name.
383.PHONY: wtf
384wtf: third_party_WebKit_Source_wtf_wtf_gyp
385
386include $(BUILD_STATIC_LIBRARY)
387