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	-m64 \
82	-march=x86-64 \
83	-ffunction-sections \
84	-funwind-tables \
85	-g \
86	-fstack-protector \
87	-fno-short-enums \
88	-finline-limit=64 \
89	-Wa,--noexecstack \
90	-U_FORTIFY_SOURCE \
91	-Wno-extra \
92	-Wno-ignored-qualifiers \
93	-Wno-type-limits \
94	-Wno-unused-but-set-variable \
95	-Wno-address \
96	-Wno-format-security \
97	-Wno-return-type \
98	-Wno-sequence-point \
99	-Os \
100	-g \
101	-gdwarf-4 \
102	-fdata-sections \
103	-ffunction-sections \
104	-fomit-frame-pointer \
105	-funwind-tables
106
107MY_DEFS_Debug := \
108	'-DEXPAT_RELATIVE_PATH' \
109	'-DFEATURE_ENABLE_SSL' \
110	'-DGTEST_RELATIVE_PATH' \
111	'-DHAVE_SRTP' \
112	'-DHAVE_WEBRTC_VIDEO' \
113	'-DHAVE_WEBRTC_VOICE' \
114	'-DLOGGING_INSIDE_WEBRTC' \
115	'-DNO_MAIN_THREAD_WRAPPING' \
116	'-DNO_SOUND_SYSTEM' \
117	'-DSRTP_RELATIVE_PATH' \
118	'-DUSE_WEBRTC_DEV_BRANCH' \
119	'-DENABLE_EXTERNAL_AUTH' \
120	'-DWEBRTC_CHROMIUM_BUILD' \
121	'-DV8_DEPRECATION_WARNINGS' \
122	'-D_FILE_OFFSET_BITS=64' \
123	'-DNO_TCMALLOC' \
124	'-DDISABLE_NACL' \
125	'-DLIBPEERCONNECTION_LIB=1' \
126	'-DSSL_USE_OPENSSL' \
127	'-DHAVE_OPENSSL_SSL_H' \
128	'-DPOSIX' \
129	'-DWEBRTC_POSIX' \
130	'-DCHROMIUM_BUILD' \
131	'-DUSE_LIBJPEG_TURBO=1' \
132	'-DENABLE_WEBRTC=1' \
133	'-DUSE_PROPRIETARY_CODECS' \
134	'-DENABLE_BROWSER_CDMS' \
135	'-DENABLE_CONFIGURATION_POLICY' \
136	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
137	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
138	'-DENABLE_EGLIMAGE=1' \
139	'-DCLD_VERSION=1' \
140	'-DENABLE_PRINTING=1' \
141	'-DENABLE_MANAGED_USERS=1' \
142	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
143	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
144	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
145	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
146	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
147	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
148	'-DVIDEO_HOLE=1' \
149	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
150	'-DPOSIX_AVOID_MMAP' \
151	'-DXML_STATIC' \
152	'-DWEBRTC_LINUX' \
153	'-DWEBRTC_ANDROID' \
154	'-DWEBRTC_ANDROID_OPENSLES' \
155	'-DFEATURE_ENABLE_VOICEMAIL' \
156	'-DANDROID' \
157	'-DUSE_OPENSSL=1' \
158	'-DUSE_OPENSSL_CERTS=1' \
159	'-D__GNU_SOURCE=1' \
160	'-DUSE_STLPORT=1' \
161	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
162	'-DCHROME_BUILD_ID=""' \
163	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
164	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
165	'-D_DEBUG'
166
167
168# Include paths placed before CFLAGS/CPPFLAGS
169LOCAL_C_INCLUDES_Debug := \
170	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
171	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
172	$(LOCAL_PATH)/third_party/libjingle/overrides \
173	$(LOCAL_PATH)/third_party/webrtc/overrides \
174	$(LOCAL_PATH)/third_party/libjingle/source \
175	$(LOCAL_PATH) \
176	$(LOCAL_PATH)/testing/gtest/include \
177	$(LOCAL_PATH)/third_party \
178	$(LOCAL_PATH)/third_party/libyuv/include \
179	$(LOCAL_PATH)/third_party/usrsctp \
180	$(gyp_shared_intermediate_dir) \
181	$(LOCAL_PATH)/third_party/expat/files/lib \
182	$(LOCAL_PATH)/third_party/boringssl/src/include \
183	$(LOCAL_PATH)/third_party/webrtc/overrides \
184	$(LOCAL_PATH)/third_party \
185	$(PWD)/frameworks/wilhelm/include \
186	$(PWD)/bionic \
187	$(PWD)/external/stlport/stlport
188
189
190# Flags passed to only C++ (and not C) files.
191LOCAL_CPPFLAGS_Debug := \
192	-fno-exceptions \
193	-fno-rtti \
194	-fno-threadsafe-statics \
195	-fvisibility-inlines-hidden \
196	-Wno-deprecated \
197	-std=gnu++11 \
198	-Wno-narrowing \
199	-Wno-literal-suffix \
200	-Wno-non-virtual-dtor \
201	-Wno-sign-promo \
202	-Wno-non-virtual-dtor
203
204
205# Flags passed to both C and C++ files.
206MY_CFLAGS_Release := \
207	-fstack-protector \
208	--param=ssp-buffer-size=4 \
209	-fno-strict-aliasing \
210	-Wno-unused-parameter \
211	-Wno-missing-field-initializers \
212	-fvisibility=hidden \
213	-pipe \
214	-fPIC \
215	-Wno-unused-local-typedefs \
216	-Wno-format \
217	-m64 \
218	-march=x86-64 \
219	-ffunction-sections \
220	-funwind-tables \
221	-g \
222	-fstack-protector \
223	-fno-short-enums \
224	-finline-limit=64 \
225	-Wa,--noexecstack \
226	-U_FORTIFY_SOURCE \
227	-Wno-extra \
228	-Wno-ignored-qualifiers \
229	-Wno-type-limits \
230	-Wno-unused-but-set-variable \
231	-Wno-address \
232	-Wno-format-security \
233	-Wno-return-type \
234	-Wno-sequence-point \
235	-Os \
236	-fno-ident \
237	-fdata-sections \
238	-ffunction-sections \
239	-fomit-frame-pointer \
240	-funwind-tables
241
242MY_DEFS_Release := \
243	'-DEXPAT_RELATIVE_PATH' \
244	'-DFEATURE_ENABLE_SSL' \
245	'-DGTEST_RELATIVE_PATH' \
246	'-DHAVE_SRTP' \
247	'-DHAVE_WEBRTC_VIDEO' \
248	'-DHAVE_WEBRTC_VOICE' \
249	'-DLOGGING_INSIDE_WEBRTC' \
250	'-DNO_MAIN_THREAD_WRAPPING' \
251	'-DNO_SOUND_SYSTEM' \
252	'-DSRTP_RELATIVE_PATH' \
253	'-DUSE_WEBRTC_DEV_BRANCH' \
254	'-DENABLE_EXTERNAL_AUTH' \
255	'-DWEBRTC_CHROMIUM_BUILD' \
256	'-DV8_DEPRECATION_WARNINGS' \
257	'-D_FILE_OFFSET_BITS=64' \
258	'-DNO_TCMALLOC' \
259	'-DDISABLE_NACL' \
260	'-DLIBPEERCONNECTION_LIB=1' \
261	'-DSSL_USE_OPENSSL' \
262	'-DHAVE_OPENSSL_SSL_H' \
263	'-DPOSIX' \
264	'-DWEBRTC_POSIX' \
265	'-DCHROMIUM_BUILD' \
266	'-DUSE_LIBJPEG_TURBO=1' \
267	'-DENABLE_WEBRTC=1' \
268	'-DUSE_PROPRIETARY_CODECS' \
269	'-DENABLE_BROWSER_CDMS' \
270	'-DENABLE_CONFIGURATION_POLICY' \
271	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
272	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
273	'-DENABLE_EGLIMAGE=1' \
274	'-DCLD_VERSION=1' \
275	'-DENABLE_PRINTING=1' \
276	'-DENABLE_MANAGED_USERS=1' \
277	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
278	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
279	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
280	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
281	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
282	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
283	'-DVIDEO_HOLE=1' \
284	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
285	'-DPOSIX_AVOID_MMAP' \
286	'-DXML_STATIC' \
287	'-DWEBRTC_LINUX' \
288	'-DWEBRTC_ANDROID' \
289	'-DWEBRTC_ANDROID_OPENSLES' \
290	'-DFEATURE_ENABLE_VOICEMAIL' \
291	'-DANDROID' \
292	'-DUSE_OPENSSL=1' \
293	'-DUSE_OPENSSL_CERTS=1' \
294	'-D__GNU_SOURCE=1' \
295	'-DUSE_STLPORT=1' \
296	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
297	'-DCHROME_BUILD_ID=""' \
298	'-DNDEBUG' \
299	'-DNVALGRIND' \
300	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
301
302
303# Include paths placed before CFLAGS/CPPFLAGS
304LOCAL_C_INCLUDES_Release := \
305	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
306	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
307	$(LOCAL_PATH)/third_party/libjingle/overrides \
308	$(LOCAL_PATH)/third_party/webrtc/overrides \
309	$(LOCAL_PATH)/third_party/libjingle/source \
310	$(LOCAL_PATH) \
311	$(LOCAL_PATH)/testing/gtest/include \
312	$(LOCAL_PATH)/third_party \
313	$(LOCAL_PATH)/third_party/libyuv/include \
314	$(LOCAL_PATH)/third_party/usrsctp \
315	$(gyp_shared_intermediate_dir) \
316	$(LOCAL_PATH)/third_party/expat/files/lib \
317	$(LOCAL_PATH)/third_party/boringssl/src/include \
318	$(LOCAL_PATH)/third_party/webrtc/overrides \
319	$(LOCAL_PATH)/third_party \
320	$(PWD)/frameworks/wilhelm/include \
321	$(PWD)/bionic \
322	$(PWD)/external/stlport/stlport
323
324
325# Flags passed to only C++ (and not C) files.
326LOCAL_CPPFLAGS_Release := \
327	-fno-exceptions \
328	-fno-rtti \
329	-fno-threadsafe-statics \
330	-fvisibility-inlines-hidden \
331	-Wno-deprecated \
332	-std=gnu++11 \
333	-Wno-narrowing \
334	-Wno-literal-suffix \
335	-Wno-non-virtual-dtor \
336	-Wno-sign-promo \
337	-Wno-non-virtual-dtor
338
339
340LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
341LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
342LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
343LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
344### Rules for final target.
345
346LOCAL_SHARED_LIBRARIES := \
347	libstlport \
348	libdl
349
350# Add target alias to "gyp_all_modules" target.
351.PHONY: gyp_all_modules
352gyp_all_modules: third_party_libjingle_libjingle_gyp
353
354# Alias gyp target name.
355.PHONY: libjingle
356libjingle: third_party_libjingle_libjingle_gyp
357
358include $(BUILD_STATIC_LIBRARY)
359