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_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_webrtc_base_webrtc_base_gyp,,,$(GYP_VAR_PREFIX))/webrtc_base.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/source/talk/p2p/base/asyncstuntcpsocket.cc \
28	third_party/libjingle/source/talk/p2p/base/basicpacketsocketfactory.cc \
29	third_party/libjingle/source/talk/p2p/base/dtlstransportchannel.cc \
30	third_party/libjingle/source/talk/p2p/base/p2ptransport.cc \
31	third_party/libjingle/source/talk/p2p/base/p2ptransportchannel.cc \
32	third_party/libjingle/source/talk/p2p/base/parsing.cc \
33	third_party/libjingle/source/talk/p2p/base/port.cc \
34	third_party/libjingle/source/talk/p2p/base/portallocator.cc \
35	third_party/libjingle/source/talk/p2p/base/portallocatorsessionproxy.cc \
36	third_party/libjingle/source/talk/p2p/base/portproxy.cc \
37	third_party/libjingle/source/talk/p2p/base/pseudotcp.cc \
38	third_party/libjingle/source/talk/p2p/base/rawtransport.cc \
39	third_party/libjingle/source/talk/p2p/base/rawtransportchannel.cc \
40	third_party/libjingle/source/talk/p2p/base/relayport.cc \
41	third_party/libjingle/source/talk/p2p/base/session.cc \
42	third_party/libjingle/source/talk/p2p/base/sessiondescription.cc \
43	third_party/libjingle/source/talk/p2p/base/sessionmanager.cc \
44	third_party/libjingle/source/talk/p2p/base/sessionmessages.cc \
45	third_party/libjingle/source/talk/p2p/base/stun.cc \
46	third_party/libjingle/source/talk/p2p/base/stunport.cc \
47	third_party/libjingle/source/talk/p2p/base/stunrequest.cc \
48	third_party/libjingle/source/talk/p2p/base/tcpport.cc \
49	third_party/libjingle/source/talk/p2p/base/transport.cc \
50	third_party/libjingle/source/talk/p2p/base/transportchannel.cc \
51	third_party/libjingle/source/talk/p2p/base/transportchannelproxy.cc \
52	third_party/libjingle/source/talk/p2p/base/transportdescription.cc \
53	third_party/libjingle/source/talk/p2p/base/transportdescriptionfactory.cc \
54	third_party/libjingle/source/talk/p2p/base/turnport.cc \
55	third_party/libjingle/source/talk/p2p/client/basicportallocator.cc \
56	third_party/libjingle/source/talk/p2p/client/httpportallocator.cc \
57	third_party/libjingle/source/talk/p2p/client/socketmonitor.cc \
58	third_party/libjingle/source/talk/xmpp/constants.cc \
59	third_party/libjingle/source/talk/xmpp/jid.cc \
60	third_party/libjingle/source/talk/xmpp/saslmechanism.cc \
61	third_party/libjingle/source/talk/xmpp/xmppclient.cc \
62	third_party/libjingle/source/talk/xmpp/xmppengineimpl.cc \
63	third_party/libjingle/source/talk/xmpp/xmppengineimpl_iq.cc \
64	third_party/libjingle/source/talk/xmpp/xmpplogintask.cc \
65	third_party/libjingle/source/talk/xmpp/xmppstanzaparser.cc \
66	third_party/libjingle/source/talk/xmpp/xmpptask.cc
67
68
69# Flags passed to both C and C++ files.
70MY_CFLAGS_Debug := \
71	-fstack-protector \
72	--param=ssp-buffer-size=4 \
73	-fno-strict-aliasing \
74	-Wno-unused-parameter \
75	-Wno-missing-field-initializers \
76	-fvisibility=hidden \
77	-pipe \
78	-fPIC \
79	-Wno-unused-local-typedefs \
80	-Wno-format \
81	-fno-tree-sra \
82	-fno-caller-saves \
83	-Wno-psabi \
84	-fno-partial-inlining \
85	-fno-early-inlining \
86	-fno-tree-copy-prop \
87	-fno-tree-loop-optimize \
88	-fno-move-loop-invariants \
89	-ffunction-sections \
90	-funwind-tables \
91	-g \
92	-fstack-protector \
93	-fno-short-enums \
94	-finline-limit=64 \
95	-Wa,--noexecstack \
96	-U_FORTIFY_SOURCE \
97	-Wno-extra \
98	-Wno-ignored-qualifiers \
99	-Wno-type-limits \
100	-Wno-unused-but-set-variable \
101	-Wno-address \
102	-Wno-format-security \
103	-Wno-return-type \
104	-Wno-sequence-point \
105	-Os \
106	-g \
107	-gdwarf-4 \
108	-fdata-sections \
109	-ffunction-sections \
110	-fomit-frame-pointer \
111	-funwind-tables
112
113MY_DEFS_Debug := \
114	'-DEXPAT_RELATIVE_PATH' \
115	'-DFEATURE_ENABLE_SSL' \
116	'-DGTEST_RELATIVE_PATH' \
117	'-DHAVE_SRTP' \
118	'-DHAVE_WEBRTC_VIDEO' \
119	'-DHAVE_WEBRTC_VOICE' \
120	'-DLOGGING_INSIDE_WEBRTC' \
121	'-DNO_MAIN_THREAD_WRAPPING' \
122	'-DNO_SOUND_SYSTEM' \
123	'-DSRTP_RELATIVE_PATH' \
124	'-DUSE_WEBRTC_DEV_BRANCH' \
125	'-DENABLE_EXTERNAL_AUTH' \
126	'-DWEBRTC_CHROMIUM_BUILD' \
127	'-DV8_DEPRECATION_WARNINGS' \
128	'-D_FILE_OFFSET_BITS=64' \
129	'-DNO_TCMALLOC' \
130	'-DDISABLE_NACL' \
131	'-DLIBPEERCONNECTION_LIB=1' \
132	'-DSSL_USE_OPENSSL' \
133	'-DHAVE_OPENSSL_SSL_H' \
134	'-DPOSIX' \
135	'-DWEBRTC_POSIX' \
136	'-DCHROMIUM_BUILD' \
137	'-DUSE_LIBJPEG_TURBO=1' \
138	'-DENABLE_WEBRTC=1' \
139	'-DUSE_PROPRIETARY_CODECS' \
140	'-DENABLE_BROWSER_CDMS' \
141	'-DENABLE_CONFIGURATION_POLICY' \
142	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
143	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
144	'-DENABLE_EGLIMAGE=1' \
145	'-DCLD_VERSION=1' \
146	'-DENABLE_PRINTING=1' \
147	'-DENABLE_MANAGED_USERS=1' \
148	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
149	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
150	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
151	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
152	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
153	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
154	'-DVIDEO_HOLE=1' \
155	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
156	'-DPOSIX_AVOID_MMAP' \
157	'-DXML_STATIC' \
158	'-DWEBRTC_LINUX' \
159	'-DWEBRTC_ANDROID' \
160	'-DWEBRTC_ANDROID_OPENSLES' \
161	'-DFEATURE_ENABLE_VOICEMAIL' \
162	'-DANDROID' \
163	'-DUSE_OPENSSL=1' \
164	'-DUSE_OPENSSL_CERTS=1' \
165	'-D__GNU_SOURCE=1' \
166	'-DUSE_STLPORT=1' \
167	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
168	'-DCHROME_BUILD_ID=""' \
169	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
170	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
171	'-D_DEBUG'
172
173
174# Include paths placed before CFLAGS/CPPFLAGS
175LOCAL_C_INCLUDES_Debug := \
176	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
177	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
178	$(LOCAL_PATH)/third_party/libjingle/overrides \
179	$(LOCAL_PATH)/third_party/webrtc/overrides \
180	$(LOCAL_PATH)/third_party/libjingle/source \
181	$(LOCAL_PATH) \
182	$(LOCAL_PATH)/testing/gtest/include \
183	$(LOCAL_PATH)/third_party \
184	$(LOCAL_PATH)/third_party/libyuv/include \
185	$(LOCAL_PATH)/third_party/usrsctp \
186	$(gyp_shared_intermediate_dir) \
187	$(LOCAL_PATH)/third_party/expat/files/lib \
188	$(LOCAL_PATH)/third_party/boringssl/src/include \
189	$(LOCAL_PATH)/third_party/webrtc/overrides \
190	$(LOCAL_PATH)/third_party \
191	$(PWD)/frameworks/wilhelm/include \
192	$(PWD)/bionic \
193	$(PWD)/external/stlport/stlport
194
195
196# Flags passed to only C++ (and not C) files.
197LOCAL_CPPFLAGS_Debug := \
198	-fno-exceptions \
199	-fno-rtti \
200	-fno-threadsafe-statics \
201	-fvisibility-inlines-hidden \
202	-Wno-deprecated \
203	-Wno-abi \
204	-std=gnu++11 \
205	-Wno-narrowing \
206	-Wno-literal-suffix \
207	-Wno-non-virtual-dtor \
208	-Wno-sign-promo \
209	-Wno-non-virtual-dtor
210
211
212# Flags passed to both C and C++ files.
213MY_CFLAGS_Release := \
214	-fstack-protector \
215	--param=ssp-buffer-size=4 \
216	-fno-strict-aliasing \
217	-Wno-unused-parameter \
218	-Wno-missing-field-initializers \
219	-fvisibility=hidden \
220	-pipe \
221	-fPIC \
222	-Wno-unused-local-typedefs \
223	-Wno-format \
224	-fno-tree-sra \
225	-fno-caller-saves \
226	-Wno-psabi \
227	-fno-partial-inlining \
228	-fno-early-inlining \
229	-fno-tree-copy-prop \
230	-fno-tree-loop-optimize \
231	-fno-move-loop-invariants \
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-unused-but-set-variable \
244	-Wno-address \
245	-Wno-format-security \
246	-Wno-return-type \
247	-Wno-sequence-point \
248	-Os \
249	-fno-ident \
250	-fdata-sections \
251	-ffunction-sections \
252	-fomit-frame-pointer \
253	-funwind-tables
254
255MY_DEFS_Release := \
256	'-DEXPAT_RELATIVE_PATH' \
257	'-DFEATURE_ENABLE_SSL' \
258	'-DGTEST_RELATIVE_PATH' \
259	'-DHAVE_SRTP' \
260	'-DHAVE_WEBRTC_VIDEO' \
261	'-DHAVE_WEBRTC_VOICE' \
262	'-DLOGGING_INSIDE_WEBRTC' \
263	'-DNO_MAIN_THREAD_WRAPPING' \
264	'-DNO_SOUND_SYSTEM' \
265	'-DSRTP_RELATIVE_PATH' \
266	'-DUSE_WEBRTC_DEV_BRANCH' \
267	'-DENABLE_EXTERNAL_AUTH' \
268	'-DWEBRTC_CHROMIUM_BUILD' \
269	'-DV8_DEPRECATION_WARNINGS' \
270	'-D_FILE_OFFSET_BITS=64' \
271	'-DNO_TCMALLOC' \
272	'-DDISABLE_NACL' \
273	'-DLIBPEERCONNECTION_LIB=1' \
274	'-DSSL_USE_OPENSSL' \
275	'-DHAVE_OPENSSL_SSL_H' \
276	'-DPOSIX' \
277	'-DWEBRTC_POSIX' \
278	'-DCHROMIUM_BUILD' \
279	'-DUSE_LIBJPEG_TURBO=1' \
280	'-DENABLE_WEBRTC=1' \
281	'-DUSE_PROPRIETARY_CODECS' \
282	'-DENABLE_BROWSER_CDMS' \
283	'-DENABLE_CONFIGURATION_POLICY' \
284	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
285	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
286	'-DENABLE_EGLIMAGE=1' \
287	'-DCLD_VERSION=1' \
288	'-DENABLE_PRINTING=1' \
289	'-DENABLE_MANAGED_USERS=1' \
290	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
291	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
292	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
293	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
294	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
295	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
296	'-DVIDEO_HOLE=1' \
297	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
298	'-DPOSIX_AVOID_MMAP' \
299	'-DXML_STATIC' \
300	'-DWEBRTC_LINUX' \
301	'-DWEBRTC_ANDROID' \
302	'-DWEBRTC_ANDROID_OPENSLES' \
303	'-DFEATURE_ENABLE_VOICEMAIL' \
304	'-DANDROID' \
305	'-DUSE_OPENSSL=1' \
306	'-DUSE_OPENSSL_CERTS=1' \
307	'-D__GNU_SOURCE=1' \
308	'-DUSE_STLPORT=1' \
309	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
310	'-DCHROME_BUILD_ID=""' \
311	'-DNDEBUG' \
312	'-DNVALGRIND' \
313	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
314
315
316# Include paths placed before CFLAGS/CPPFLAGS
317LOCAL_C_INCLUDES_Release := \
318	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
319	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
320	$(LOCAL_PATH)/third_party/libjingle/overrides \
321	$(LOCAL_PATH)/third_party/webrtc/overrides \
322	$(LOCAL_PATH)/third_party/libjingle/source \
323	$(LOCAL_PATH) \
324	$(LOCAL_PATH)/testing/gtest/include \
325	$(LOCAL_PATH)/third_party \
326	$(LOCAL_PATH)/third_party/libyuv/include \
327	$(LOCAL_PATH)/third_party/usrsctp \
328	$(gyp_shared_intermediate_dir) \
329	$(LOCAL_PATH)/third_party/expat/files/lib \
330	$(LOCAL_PATH)/third_party/boringssl/src/include \
331	$(LOCAL_PATH)/third_party/webrtc/overrides \
332	$(LOCAL_PATH)/third_party \
333	$(PWD)/frameworks/wilhelm/include \
334	$(PWD)/bionic \
335	$(PWD)/external/stlport/stlport
336
337
338# Flags passed to only C++ (and not C) files.
339LOCAL_CPPFLAGS_Release := \
340	-fno-exceptions \
341	-fno-rtti \
342	-fno-threadsafe-statics \
343	-fvisibility-inlines-hidden \
344	-Wno-deprecated \
345	-Wno-abi \
346	-std=gnu++11 \
347	-Wno-narrowing \
348	-Wno-literal-suffix \
349	-Wno-non-virtual-dtor \
350	-Wno-sign-promo \
351	-Wno-non-virtual-dtor
352
353
354LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
355LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
356LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
357LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
358### Rules for final target.
359
360LOCAL_SHARED_LIBRARIES := \
361	libstlport \
362	libdl
363
364# Add target alias to "gyp_all_modules" target.
365.PHONY: gyp_all_modules
366gyp_all_modules: third_party_libjingle_libjingle_gyp
367
368# Alias gyp target name.
369.PHONY: libjingle
370libjingle: third_party_libjingle_libjingle_gyp
371
372include $(BUILD_STATIC_LIBRARY)
373