1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_libjingle_libjingle_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_expat_expat_gyp)/expat.stamp
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	third_party/libjingle/overrides/talk/base/logging.cc \
28	third_party/libjingle/source/talk/base/asyncfile.cc \
29	third_party/libjingle/source/talk/base/asynchttprequest.cc \
30	third_party/libjingle/source/talk/base/asyncsocket.cc \
31	third_party/libjingle/source/talk/base/asynctcpsocket.cc \
32	third_party/libjingle/source/talk/base/asyncudpsocket.cc \
33	third_party/libjingle/source/talk/base/autodetectproxy.cc \
34	third_party/libjingle/source/talk/base/base64.cc \
35	third_party/libjingle/source/talk/base/bytebuffer.cc \
36	third_party/libjingle/source/talk/base/checks.cc \
37	third_party/libjingle/source/talk/base/common.cc \
38	third_party/libjingle/source/talk/base/cpumonitor.cc \
39	third_party/libjingle/source/talk/base/crc32.cc \
40	third_party/libjingle/source/talk/base/diskcache.cc \
41	third_party/libjingle/source/talk/base/event.cc \
42	third_party/libjingle/source/talk/base/fileutils.cc \
43	third_party/libjingle/source/talk/base/firewallsocketserver.cc \
44	third_party/libjingle/source/talk/base/flags.cc \
45	third_party/libjingle/source/talk/base/helpers.cc \
46	third_party/libjingle/source/talk/base/httpbase.cc \
47	third_party/libjingle/source/talk/base/httpclient.cc \
48	third_party/libjingle/source/talk/base/httpcommon.cc \
49	third_party/libjingle/source/talk/base/httprequest.cc \
50	third_party/libjingle/source/talk/base/ipaddress.cc \
51	third_party/libjingle/source/talk/base/md5.cc \
52	third_party/libjingle/source/talk/base/messagedigest.cc \
53	third_party/libjingle/source/talk/base/messagehandler.cc \
54	third_party/libjingle/source/talk/base/messagequeue.cc \
55	third_party/libjingle/source/talk/base/nethelpers.cc \
56	third_party/libjingle/source/talk/base/network.cc \
57	third_party/libjingle/source/talk/base/nssidentity.cc \
58	third_party/libjingle/source/talk/base/nssstreamadapter.cc \
59	third_party/libjingle/source/talk/base/pathutils.cc \
60	third_party/libjingle/source/talk/base/physicalsocketserver.cc \
61	third_party/libjingle/source/talk/base/proxydetect.cc \
62	third_party/libjingle/source/talk/base/proxyinfo.cc \
63	third_party/libjingle/source/talk/base/ratelimiter.cc \
64	third_party/libjingle/source/talk/base/ratetracker.cc \
65	third_party/libjingle/source/talk/base/sha1.cc \
66	third_party/libjingle/source/talk/base/signalthread.cc \
67	third_party/libjingle/source/talk/base/socketadapters.cc \
68	third_party/libjingle/source/talk/base/socketaddress.cc \
69	third_party/libjingle/source/talk/base/socketaddresspair.cc \
70	third_party/libjingle/source/talk/base/socketpool.cc \
71	third_party/libjingle/source/talk/base/socketstream.cc \
72	third_party/libjingle/source/talk/base/ssladapter.cc \
73	third_party/libjingle/source/talk/base/sslidentity.cc \
74	third_party/libjingle/source/talk/base/sslsocketfactory.cc \
75	third_party/libjingle/source/talk/base/sslstreamadapter.cc \
76	third_party/libjingle/source/talk/base/sslstreamadapterhelper.cc \
77	third_party/libjingle/source/talk/base/stream.cc \
78	third_party/libjingle/source/talk/base/stringencode.cc \
79	third_party/libjingle/source/talk/base/stringutils.cc \
80	third_party/libjingle/source/talk/base/systeminfo.cc \
81	third_party/libjingle/source/talk/base/task.cc \
82	third_party/libjingle/source/talk/base/taskparent.cc \
83	third_party/libjingle/source/talk/base/taskrunner.cc \
84	third_party/libjingle/source/talk/base/thread.cc \
85	third_party/libjingle/source/talk/base/timeutils.cc \
86	third_party/libjingle/source/talk/base/timing.cc \
87	third_party/libjingle/source/talk/base/urlencode.cc \
88	third_party/libjingle/source/talk/base/worker.cc \
89	third_party/libjingle/source/talk/p2p/base/asyncstuntcpsocket.cc \
90	third_party/libjingle/source/talk/p2p/base/basicpacketsocketfactory.cc \
91	third_party/libjingle/source/talk/p2p/base/dtlstransportchannel.cc \
92	third_party/libjingle/source/talk/p2p/base/p2ptransport.cc \
93	third_party/libjingle/source/talk/p2p/base/p2ptransportchannel.cc \
94	third_party/libjingle/source/talk/p2p/base/parsing.cc \
95	third_party/libjingle/source/talk/p2p/base/port.cc \
96	third_party/libjingle/source/talk/p2p/base/portallocator.cc \
97	third_party/libjingle/source/talk/p2p/base/portallocatorsessionproxy.cc \
98	third_party/libjingle/source/talk/p2p/base/portproxy.cc \
99	third_party/libjingle/source/talk/p2p/base/pseudotcp.cc \
100	third_party/libjingle/source/talk/p2p/base/rawtransport.cc \
101	third_party/libjingle/source/talk/p2p/base/rawtransportchannel.cc \
102	third_party/libjingle/source/talk/p2p/base/relayport.cc \
103	third_party/libjingle/source/talk/p2p/base/session.cc \
104	third_party/libjingle/source/talk/p2p/base/sessiondescription.cc \
105	third_party/libjingle/source/talk/p2p/base/sessionmanager.cc \
106	third_party/libjingle/source/talk/p2p/base/sessionmessages.cc \
107	third_party/libjingle/source/talk/p2p/base/stun.cc \
108	third_party/libjingle/source/talk/p2p/base/stunport.cc \
109	third_party/libjingle/source/talk/p2p/base/stunrequest.cc \
110	third_party/libjingle/source/talk/p2p/base/tcpport.cc \
111	third_party/libjingle/source/talk/p2p/base/transport.cc \
112	third_party/libjingle/source/talk/p2p/base/transportchannel.cc \
113	third_party/libjingle/source/talk/p2p/base/transportchannelproxy.cc \
114	third_party/libjingle/source/talk/p2p/base/transportdescription.cc \
115	third_party/libjingle/source/talk/p2p/base/transportdescriptionfactory.cc \
116	third_party/libjingle/source/talk/p2p/base/turnport.cc \
117	third_party/libjingle/source/talk/p2p/client/basicportallocator.cc \
118	third_party/libjingle/source/talk/p2p/client/httpportallocator.cc \
119	third_party/libjingle/source/talk/p2p/client/socketmonitor.cc \
120	third_party/libjingle/source/talk/xmllite/qname.cc \
121	third_party/libjingle/source/talk/xmllite/xmlbuilder.cc \
122	third_party/libjingle/source/talk/xmllite/xmlconstants.cc \
123	third_party/libjingle/source/talk/xmllite/xmlelement.cc \
124	third_party/libjingle/source/talk/xmllite/xmlnsstack.cc \
125	third_party/libjingle/source/talk/xmllite/xmlparser.cc \
126	third_party/libjingle/source/talk/xmllite/xmlprinter.cc \
127	third_party/libjingle/source/talk/xmpp/constants.cc \
128	third_party/libjingle/source/talk/xmpp/jid.cc \
129	third_party/libjingle/source/talk/xmpp/saslmechanism.cc \
130	third_party/libjingle/source/talk/xmpp/xmppclient.cc \
131	third_party/libjingle/source/talk/xmpp/xmppengineimpl.cc \
132	third_party/libjingle/source/talk/xmpp/xmppengineimpl_iq.cc \
133	third_party/libjingle/source/talk/xmpp/xmpplogintask.cc \
134	third_party/libjingle/source/talk/xmpp/xmppstanzaparser.cc \
135	third_party/libjingle/source/talk/xmpp/xmpptask.cc \
136	third_party/libjingle/source/talk/base/unixfilesystem.cc \
137	third_party/libjingle/source/talk/base/ifaddrs-android.cc \
138	third_party/libjingle/source/talk/base/linux.cc \
139	third_party/libjingle/source/talk/base/openssladapter.cc \
140	third_party/libjingle/source/talk/base/openssldigest.cc \
141	third_party/libjingle/source/talk/base/opensslidentity.cc \
142	third_party/libjingle/source/talk/base/opensslstreamadapter.cc
143
144
145# Flags passed to both C and C++ files.
146MY_CFLAGS_Debug := \
147	-fstack-protector \
148	--param=ssp-buffer-size=4 \
149	 \
150	-fno-exceptions \
151	-fno-strict-aliasing \
152	-Wno-unused-parameter \
153	-Wno-missing-field-initializers \
154	-fvisibility=hidden \
155	-pipe \
156	-fPIC \
157	-Wno-format \
158	-EL \
159	-mhard-float \
160	-ffunction-sections \
161	-funwind-tables \
162	-g \
163	-fstack-protector \
164	-fno-short-enums \
165	-finline-limit=64 \
166	-Wa,--noexecstack \
167	-U_FORTIFY_SOURCE \
168	-Wno-extra \
169	-Wno-ignored-qualifiers \
170	-Wno-type-limits \
171	-Wno-address \
172	-Wno-format-security \
173	-Wno-return-type \
174	-Wno-sequence-point \
175	-Os \
176	-g \
177	-fomit-frame-pointer \
178	-fdata-sections \
179	-ffunction-sections
180
181MY_DEFS_Debug := \
182	'-DEXPAT_RELATIVE_PATH' \
183	'-DFEATURE_ENABLE_SSL' \
184	'-DGTEST_RELATIVE_PATH' \
185	'-DHAVE_SRTP' \
186	'-DHAVE_WEBRTC_VIDEO' \
187	'-DHAVE_WEBRTC_VOICE' \
188	'-DJSONCPP_RELATIVE_PATH' \
189	'-DLOGGING_INSIDE_LIBJINGLE' \
190	'-DNO_MAIN_THREAD_WRAPPING' \
191	'-DNO_SOUND_SYSTEM' \
192	'-DSRTP_RELATIVE_PATH' \
193	'-DUSE_WEBRTC_DEV_BRANCH' \
194	'-DV8_DEPRECATION_WARNINGS' \
195	'-D_FILE_OFFSET_BITS=64' \
196	'-DNO_TCMALLOC' \
197	'-DDISABLE_NACL' \
198	'-DLIBPEERCONNECTION_LIB=1' \
199	'-DSSL_USE_OPENSSL' \
200	'-DHAVE_OPENSSL_SSL_H' \
201	'-DPOSIX' \
202	'-DCHROMIUM_BUILD' \
203	'-DUSE_LIBJPEG_TURBO=1' \
204	'-DUSE_PROPRIETARY_CODECS' \
205	'-DENABLE_CONFIGURATION_POLICY' \
206	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
207	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
208	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
209	'-DUSE_OPENSSL=1' \
210	'-DENABLE_EGLIMAGE=1' \
211	'-DCLD_VERSION=1' \
212	'-DENABLE_PRINTING=1' \
213	'-DENABLE_MANAGED_USERS=1' \
214	'-DPOSIX_AVOID_MMAP' \
215	'-DFEATURE_ENABLE_VOICEMAIL' \
216	'-DANDROID' \
217	'-D__GNU_SOURCE=1' \
218	'-DUSE_STLPORT=1' \
219	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
220	'-DCHROME_BUILD_ID=""' \
221	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
222	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
223	'-D_DEBUG'
224
225
226# Include paths placed before CFLAGS/CPPFLAGS
227LOCAL_C_INCLUDES_Debug := \
228	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
229	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
230	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
231	$(LOCAL_PATH)/third_party/libjingle/overrides \
232	$(LOCAL_PATH)/third_party/libjingle/source \
233	$(LOCAL_PATH)/testing/gtest/include \
234	$(LOCAL_PATH)/third_party \
235	$(LOCAL_PATH)/third_party/libyuv/include \
236	$(LOCAL_PATH)/third_party/usrsctp \
237	$(LOCAL_PATH)/third_party/webrtc \
238	$(LOCAL_PATH) \
239	$(PWD)/external/expat/lib \
240	$(LOCAL_PATH)/third_party/openssl/openssl/include \
241	$(PWD)/frameworks/wilhelm/include \
242	$(PWD)/bionic \
243	$(PWD)/external/stlport/stlport
244
245
246# Flags passed to only C++ (and not C) files.
247LOCAL_CPPFLAGS_Debug := \
248	-fno-rtti \
249	-fno-threadsafe-statics \
250	-fvisibility-inlines-hidden \
251	-Wno-deprecated \
252	-Wno-uninitialized \
253	-Wno-error=c++0x-compat \
254	-Wno-non-virtual-dtor \
255	-Wno-sign-promo \
256	-Wno-non-virtual-dtor
257
258
259# Flags passed to both C and C++ files.
260MY_CFLAGS_Release := \
261	-fstack-protector \
262	--param=ssp-buffer-size=4 \
263	 \
264	-fno-exceptions \
265	-fno-strict-aliasing \
266	-Wno-unused-parameter \
267	-Wno-missing-field-initializers \
268	-fvisibility=hidden \
269	-pipe \
270	-fPIC \
271	-Wno-format \
272	-EL \
273	-mhard-float \
274	-ffunction-sections \
275	-funwind-tables \
276	-g \
277	-fstack-protector \
278	-fno-short-enums \
279	-finline-limit=64 \
280	-Wa,--noexecstack \
281	-U_FORTIFY_SOURCE \
282	-Wno-extra \
283	-Wno-ignored-qualifiers \
284	-Wno-type-limits \
285	-Wno-address \
286	-Wno-format-security \
287	-Wno-return-type \
288	-Wno-sequence-point \
289	-Os \
290	-fno-ident \
291	-fdata-sections \
292	-ffunction-sections \
293	-fomit-frame-pointer
294
295MY_DEFS_Release := \
296	'-DEXPAT_RELATIVE_PATH' \
297	'-DFEATURE_ENABLE_SSL' \
298	'-DGTEST_RELATIVE_PATH' \
299	'-DHAVE_SRTP' \
300	'-DHAVE_WEBRTC_VIDEO' \
301	'-DHAVE_WEBRTC_VOICE' \
302	'-DJSONCPP_RELATIVE_PATH' \
303	'-DLOGGING_INSIDE_LIBJINGLE' \
304	'-DNO_MAIN_THREAD_WRAPPING' \
305	'-DNO_SOUND_SYSTEM' \
306	'-DSRTP_RELATIVE_PATH' \
307	'-DUSE_WEBRTC_DEV_BRANCH' \
308	'-DV8_DEPRECATION_WARNINGS' \
309	'-D_FILE_OFFSET_BITS=64' \
310	'-DNO_TCMALLOC' \
311	'-DDISABLE_NACL' \
312	'-DLIBPEERCONNECTION_LIB=1' \
313	'-DSSL_USE_OPENSSL' \
314	'-DHAVE_OPENSSL_SSL_H' \
315	'-DPOSIX' \
316	'-DCHROMIUM_BUILD' \
317	'-DUSE_LIBJPEG_TURBO=1' \
318	'-DUSE_PROPRIETARY_CODECS' \
319	'-DENABLE_CONFIGURATION_POLICY' \
320	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
321	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
322	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
323	'-DUSE_OPENSSL=1' \
324	'-DENABLE_EGLIMAGE=1' \
325	'-DCLD_VERSION=1' \
326	'-DENABLE_PRINTING=1' \
327	'-DENABLE_MANAGED_USERS=1' \
328	'-DPOSIX_AVOID_MMAP' \
329	'-DFEATURE_ENABLE_VOICEMAIL' \
330	'-DANDROID' \
331	'-D__GNU_SOURCE=1' \
332	'-DUSE_STLPORT=1' \
333	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
334	'-DCHROME_BUILD_ID=""' \
335	'-DNDEBUG' \
336	'-DNVALGRIND' \
337	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
338
339
340# Include paths placed before CFLAGS/CPPFLAGS
341LOCAL_C_INCLUDES_Release := \
342	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
343	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
344	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
345	$(LOCAL_PATH)/third_party/libjingle/overrides \
346	$(LOCAL_PATH)/third_party/libjingle/source \
347	$(LOCAL_PATH)/testing/gtest/include \
348	$(LOCAL_PATH)/third_party \
349	$(LOCAL_PATH)/third_party/libyuv/include \
350	$(LOCAL_PATH)/third_party/usrsctp \
351	$(LOCAL_PATH)/third_party/webrtc \
352	$(LOCAL_PATH) \
353	$(PWD)/external/expat/lib \
354	$(LOCAL_PATH)/third_party/openssl/openssl/include \
355	$(PWD)/frameworks/wilhelm/include \
356	$(PWD)/bionic \
357	$(PWD)/external/stlport/stlport
358
359
360# Flags passed to only C++ (and not C) files.
361LOCAL_CPPFLAGS_Release := \
362	-fno-rtti \
363	-fno-threadsafe-statics \
364	-fvisibility-inlines-hidden \
365	-Wno-deprecated \
366	-Wno-uninitialized \
367	-Wno-error=c++0x-compat \
368	-Wno-non-virtual-dtor \
369	-Wno-sign-promo \
370	-Wno-non-virtual-dtor
371
372
373LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
374LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
375LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
376### Rules for final target.
377
378LOCAL_LDFLAGS_Debug := \
379	-Wl,-z,now \
380	-Wl,-z,relro \
381	-Wl,-z,noexecstack \
382	-fPIC \
383	-EL \
384	-Wl,--no-keep-memory \
385	-nostdlib \
386	-Wl,--no-undefined \
387	-Wl,--exclude-libs=ALL \
388	-Wl,--fatal-warnings \
389	-Wl,--gc-sections \
390	-Wl,--warn-shared-textrel \
391	-Wl,-O1 \
392	-Wl,--as-needed
393
394
395LOCAL_LDFLAGS_Release := \
396	-Wl,-z,now \
397	-Wl,-z,relro \
398	-Wl,-z,noexecstack \
399	-fPIC \
400	-EL \
401	-Wl,--no-keep-memory \
402	-nostdlib \
403	-Wl,--no-undefined \
404	-Wl,--exclude-libs=ALL \
405	-Wl,-O1 \
406	-Wl,--as-needed \
407	-Wl,--gc-sections \
408	-Wl,--fatal-warnings \
409	-Wl,--warn-shared-textrel
410
411
412LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
413
414LOCAL_STATIC_LIBRARIES :=
415
416# Enable grouping to fix circular references
417LOCAL_GROUP_STATIC_LIBRARIES := true
418
419LOCAL_SHARED_LIBRARIES := \
420	libstlport \
421	libdl
422
423# Add target alias to "gyp_all_modules" target.
424.PHONY: gyp_all_modules
425gyp_all_modules: third_party_libjingle_libjingle_gyp
426
427# Alias gyp target name.
428.PHONY: libjingle
429libjingle: third_party_libjingle_libjingle_gyp
430
431include $(BUILD_STATIC_LIBRARY)
432