1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := third_party_opus_opus_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
15GYP_GENERATED_OUTPUTS :=
16
17# Make sure our deps and generated files are built first.
18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
19
20LOCAL_GENERATED_SOURCES :=
21
22GYP_COPIED_SOURCE_ORIGIN_DIRS :=
23
24LOCAL_SRC_FILES := \
25	third_party/opus/src/celt/bands.c \
26	third_party/opus/src/celt/celt.c \
27	third_party/opus/src/celt/celt_decoder.c \
28	third_party/opus/src/celt/celt_encoder.c \
29	third_party/opus/src/celt/celt_lpc.c \
30	third_party/opus/src/celt/cwrs.c \
31	third_party/opus/src/celt/entcode.c \
32	third_party/opus/src/celt/entdec.c \
33	third_party/opus/src/celt/entenc.c \
34	third_party/opus/src/celt/kiss_fft.c \
35	third_party/opus/src/celt/laplace.c \
36	third_party/opus/src/celt/mathops.c \
37	third_party/opus/src/celt/mdct.c \
38	third_party/opus/src/celt/modes.c \
39	third_party/opus/src/celt/pitch.c \
40	third_party/opus/src/celt/quant_bands.c \
41	third_party/opus/src/celt/rate.c \
42	third_party/opus/src/celt/vq.c \
43	third_party/opus/src/silk/A2NLSF.c \
44	third_party/opus/src/silk/ana_filt_bank_1.c \
45	third_party/opus/src/silk/biquad_alt.c \
46	third_party/opus/src/silk/bwexpander.c \
47	third_party/opus/src/silk/bwexpander_32.c \
48	third_party/opus/src/silk/check_control_input.c \
49	third_party/opus/src/silk/CNG.c \
50	third_party/opus/src/silk/code_signs.c \
51	third_party/opus/src/silk/control_audio_bandwidth.c \
52	third_party/opus/src/silk/control_codec.c \
53	third_party/opus/src/silk/control_SNR.c \
54	third_party/opus/src/silk/debug.c \
55	third_party/opus/src/silk/dec_API.c \
56	third_party/opus/src/silk/decode_core.c \
57	third_party/opus/src/silk/decode_frame.c \
58	third_party/opus/src/silk/decode_indices.c \
59	third_party/opus/src/silk/decode_parameters.c \
60	third_party/opus/src/silk/decode_pitch.c \
61	third_party/opus/src/silk/decode_pulses.c \
62	third_party/opus/src/silk/decoder_set_fs.c \
63	third_party/opus/src/silk/enc_API.c \
64	third_party/opus/src/silk/encode_indices.c \
65	third_party/opus/src/silk/encode_pulses.c \
66	third_party/opus/src/silk/gain_quant.c \
67	third_party/opus/src/silk/HP_variable_cutoff.c \
68	third_party/opus/src/silk/init_decoder.c \
69	third_party/opus/src/silk/init_encoder.c \
70	third_party/opus/src/silk/inner_prod_aligned.c \
71	third_party/opus/src/silk/interpolate.c \
72	third_party/opus/src/silk/lin2log.c \
73	third_party/opus/src/silk/log2lin.c \
74	third_party/opus/src/silk/LP_variable_cutoff.c \
75	third_party/opus/src/silk/LPC_analysis_filter.c \
76	third_party/opus/src/silk/LPC_inv_pred_gain.c \
77	third_party/opus/src/silk/NLSF2A.c \
78	third_party/opus/src/silk/NLSF_decode.c \
79	third_party/opus/src/silk/NLSF_del_dec_quant.c \
80	third_party/opus/src/silk/NLSF_encode.c \
81	third_party/opus/src/silk/NLSF_stabilize.c \
82	third_party/opus/src/silk/NLSF_unpack.c \
83	third_party/opus/src/silk/NLSF_VQ.c \
84	third_party/opus/src/silk/NLSF_VQ_weights_laroia.c \
85	third_party/opus/src/silk/NSQ.c \
86	third_party/opus/src/silk/NSQ_del_dec.c \
87	third_party/opus/src/silk/pitch_est_tables.c \
88	third_party/opus/src/silk/PLC.c \
89	third_party/opus/src/silk/process_NLSFs.c \
90	third_party/opus/src/silk/quant_LTP_gains.c \
91	third_party/opus/src/silk/resampler.c \
92	third_party/opus/src/silk/resampler_down2.c \
93	third_party/opus/src/silk/resampler_down2_3.c \
94	third_party/opus/src/silk/resampler_private_AR2.c \
95	third_party/opus/src/silk/resampler_private_down_FIR.c \
96	third_party/opus/src/silk/resampler_private_IIR_FIR.c \
97	third_party/opus/src/silk/resampler_private_up2_HQ.c \
98	third_party/opus/src/silk/resampler_rom.c \
99	third_party/opus/src/silk/shell_coder.c \
100	third_party/opus/src/silk/sigm_Q15.c \
101	third_party/opus/src/silk/sort.c \
102	third_party/opus/src/silk/stereo_decode_pred.c \
103	third_party/opus/src/silk/stereo_encode_pred.c \
104	third_party/opus/src/silk/stereo_find_predictor.c \
105	third_party/opus/src/silk/stereo_LR_to_MS.c \
106	third_party/opus/src/silk/stereo_MS_to_LR.c \
107	third_party/opus/src/silk/stereo_quant_pred.c \
108	third_party/opus/src/silk/sum_sqr_shift.c \
109	third_party/opus/src/silk/table_LSF_cos.c \
110	third_party/opus/src/silk/tables_gain.c \
111	third_party/opus/src/silk/tables_LTP.c \
112	third_party/opus/src/silk/tables_NLSF_CB_NB_MB.c \
113	third_party/opus/src/silk/tables_NLSF_CB_WB.c \
114	third_party/opus/src/silk/tables_other.c \
115	third_party/opus/src/silk/tables_pitch_lag.c \
116	third_party/opus/src/silk/tables_pulses_per_block.c \
117	third_party/opus/src/silk/VAD.c \
118	third_party/opus/src/silk/VQ_WMat_EC.c \
119	third_party/opus/src/src/analysis.c \
120	third_party/opus/src/src/mlp.c \
121	third_party/opus/src/src/mlp_data.c \
122	third_party/opus/src/src/opus.c \
123	third_party/opus/src/src/opus_decoder.c \
124	third_party/opus/src/src/opus_encoder.c \
125	third_party/opus/src/src/opus_multistream.c \
126	third_party/opus/src/src/opus_multistream_decoder.c \
127	third_party/opus/src/src/opus_multistream_encoder.c \
128	third_party/opus/src/src/repacketizer.c \
129	third_party/opus/src/silk/float/apply_sine_window_FLP.c \
130	third_party/opus/src/silk/float/autocorrelation_FLP.c \
131	third_party/opus/src/silk/float/burg_modified_FLP.c \
132	third_party/opus/src/silk/float/bwexpander_FLP.c \
133	third_party/opus/src/silk/float/corrMatrix_FLP.c \
134	third_party/opus/src/silk/float/encode_frame_FLP.c \
135	third_party/opus/src/silk/float/energy_FLP.c \
136	third_party/opus/src/silk/float/find_LPC_FLP.c \
137	third_party/opus/src/silk/float/find_LTP_FLP.c \
138	third_party/opus/src/silk/float/find_pitch_lags_FLP.c \
139	third_party/opus/src/silk/float/find_pred_coefs_FLP.c \
140	third_party/opus/src/silk/float/inner_product_FLP.c \
141	third_party/opus/src/silk/float/k2a_FLP.c \
142	third_party/opus/src/silk/float/levinsondurbin_FLP.c \
143	third_party/opus/src/silk/float/LPC_analysis_filter_FLP.c \
144	third_party/opus/src/silk/float/LPC_inv_pred_gain_FLP.c \
145	third_party/opus/src/silk/float/LTP_analysis_filter_FLP.c \
146	third_party/opus/src/silk/float/LTP_scale_ctrl_FLP.c \
147	third_party/opus/src/silk/float/noise_shape_analysis_FLP.c \
148	third_party/opus/src/silk/float/pitch_analysis_core_FLP.c \
149	third_party/opus/src/silk/float/prefilter_FLP.c \
150	third_party/opus/src/silk/float/process_gains_FLP.c \
151	third_party/opus/src/silk/float/regularize_correlations_FLP.c \
152	third_party/opus/src/silk/float/residual_energy_FLP.c \
153	third_party/opus/src/silk/float/scale_copy_vector_FLP.c \
154	third_party/opus/src/silk/float/scale_vector_FLP.c \
155	third_party/opus/src/silk/float/schur_FLP.c \
156	third_party/opus/src/silk/float/solve_LS_FLP.c \
157	third_party/opus/src/silk/float/sort_FLP.c \
158	third_party/opus/src/silk/float/warped_autocorrelation_FLP.c \
159	third_party/opus/src/silk/float/wrappers_FLP.c
160
161
162# Flags passed to both C and C++ files.
163MY_CFLAGS_Debug := \
164	--param=ssp-buffer-size=4 \
165	-fno-strict-aliasing \
166	-Wno-unused-parameter \
167	-Wno-missing-field-initializers \
168	-fvisibility=hidden \
169	-pipe \
170	-fPIC \
171	-Wno-unused-local-typedefs \
172	-Wno-format \
173	-msse2 \
174	-mfpmath=sse \
175	-mmmx \
176	-m32 \
177	-ffunction-sections \
178	-funwind-tables \
179	-g \
180	-fno-short-enums \
181	-finline-limit=64 \
182	-Wa,--noexecstack \
183	-U_FORTIFY_SOURCE \
184	-Wno-extra \
185	-Wno-ignored-qualifiers \
186	-Wno-type-limits \
187	-Wno-unused-but-set-variable \
188	-fno-stack-protector \
189	-Wno-address \
190	-Wno-format-security \
191	-Wno-return-type \
192	-Wno-sequence-point \
193	-Os \
194	-g \
195	-gdwarf-4 \
196	-fdata-sections \
197	-ffunction-sections \
198	-fomit-frame-pointer \
199	-funwind-tables
200
201MY_DEFS_Debug := \
202	'-DV8_DEPRECATION_WARNINGS' \
203	'-D_FILE_OFFSET_BITS=64' \
204	'-DNO_TCMALLOC' \
205	'-DDISABLE_NACL' \
206	'-DCHROMIUM_BUILD' \
207	'-DUSE_LIBJPEG_TURBO=1' \
208	'-DENABLE_WEBRTC=1' \
209	'-DUSE_PROPRIETARY_CODECS' \
210	'-DENABLE_BROWSER_CDMS' \
211	'-DENABLE_CONFIGURATION_POLICY' \
212	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
213	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
214	'-DENABLE_EGLIMAGE=1' \
215	'-DCLD_VERSION=1' \
216	'-DENABLE_PRINTING=1' \
217	'-DENABLE_MANAGED_USERS=1' \
218	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
219	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
220	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
221	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
222	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
223	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
224	'-DVIDEO_HOLE=1' \
225	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
226	'-DOPUS_BUILD' \
227	'-DOPUS_EXPORT=' \
228	'-DHAVE_LRINT' \
229	'-DHAVE_LRINTF' \
230	'-DVAR_ARRAYS' \
231	'-DUSE_OPENSSL=1' \
232	'-DUSE_OPENSSL_CERTS=1' \
233	'-DANDROID' \
234	'-D__GNU_SOURCE=1' \
235	'-DUSE_STLPORT=1' \
236	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
237	'-DCHROME_BUILD_ID=""' \
238	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
239	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
240	'-D_DEBUG'
241
242
243# Include paths placed before CFLAGS/CPPFLAGS
244LOCAL_C_INCLUDES_Debug := \
245	$(gyp_shared_intermediate_dir) \
246	$(LOCAL_PATH)/third_party/opus/src/celt \
247	$(LOCAL_PATH)/third_party/opus/src/include \
248	$(LOCAL_PATH)/third_party/opus/src/silk \
249	$(LOCAL_PATH)/third_party/opus/src/silk/float \
250	$(PWD)/frameworks/wilhelm/include \
251	$(PWD)/bionic \
252	$(PWD)/external/stlport/stlport
253
254
255# Flags passed to only C++ (and not C) files.
256LOCAL_CPPFLAGS_Debug := \
257	-fno-exceptions \
258	-fno-rtti \
259	-fno-threadsafe-statics \
260	-fvisibility-inlines-hidden \
261	-Wno-deprecated \
262	-std=gnu++11 \
263	-Wno-narrowing \
264	-Wno-literal-suffix \
265	-Wno-non-virtual-dtor \
266	-Wno-sign-promo \
267	-Wno-non-virtual-dtor
268
269
270# Flags passed to both C and C++ files.
271MY_CFLAGS_Release := \
272	--param=ssp-buffer-size=4 \
273	-fno-strict-aliasing \
274	-Wno-unused-parameter \
275	-Wno-missing-field-initializers \
276	-fvisibility=hidden \
277	-pipe \
278	-fPIC \
279	-Wno-unused-local-typedefs \
280	-Wno-format \
281	-msse2 \
282	-mfpmath=sse \
283	-mmmx \
284	-m32 \
285	-ffunction-sections \
286	-funwind-tables \
287	-g \
288	-fno-short-enums \
289	-finline-limit=64 \
290	-Wa,--noexecstack \
291	-U_FORTIFY_SOURCE \
292	-Wno-extra \
293	-Wno-ignored-qualifiers \
294	-Wno-type-limits \
295	-Wno-unused-but-set-variable \
296	-fno-stack-protector \
297	-Wno-address \
298	-Wno-format-security \
299	-Wno-return-type \
300	-Wno-sequence-point \
301	-Os \
302	-fno-ident \
303	-fdata-sections \
304	-ffunction-sections \
305	-fomit-frame-pointer \
306	-funwind-tables
307
308MY_DEFS_Release := \
309	'-DV8_DEPRECATION_WARNINGS' \
310	'-D_FILE_OFFSET_BITS=64' \
311	'-DNO_TCMALLOC' \
312	'-DDISABLE_NACL' \
313	'-DCHROMIUM_BUILD' \
314	'-DUSE_LIBJPEG_TURBO=1' \
315	'-DENABLE_WEBRTC=1' \
316	'-DUSE_PROPRIETARY_CODECS' \
317	'-DENABLE_BROWSER_CDMS' \
318	'-DENABLE_CONFIGURATION_POLICY' \
319	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
320	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
321	'-DENABLE_EGLIMAGE=1' \
322	'-DCLD_VERSION=1' \
323	'-DENABLE_PRINTING=1' \
324	'-DENABLE_MANAGED_USERS=1' \
325	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
326	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
327	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
328	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
329	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
330	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
331	'-DVIDEO_HOLE=1' \
332	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
333	'-DOPUS_BUILD' \
334	'-DOPUS_EXPORT=' \
335	'-DHAVE_LRINT' \
336	'-DHAVE_LRINTF' \
337	'-DVAR_ARRAYS' \
338	'-DUSE_OPENSSL=1' \
339	'-DUSE_OPENSSL_CERTS=1' \
340	'-DANDROID' \
341	'-D__GNU_SOURCE=1' \
342	'-DUSE_STLPORT=1' \
343	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
344	'-DCHROME_BUILD_ID=""' \
345	'-DNDEBUG' \
346	'-DNVALGRIND' \
347	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
348
349
350# Include paths placed before CFLAGS/CPPFLAGS
351LOCAL_C_INCLUDES_Release := \
352	$(gyp_shared_intermediate_dir) \
353	$(LOCAL_PATH)/third_party/opus/src/celt \
354	$(LOCAL_PATH)/third_party/opus/src/include \
355	$(LOCAL_PATH)/third_party/opus/src/silk \
356	$(LOCAL_PATH)/third_party/opus/src/silk/float \
357	$(PWD)/frameworks/wilhelm/include \
358	$(PWD)/bionic \
359	$(PWD)/external/stlport/stlport
360
361
362# Flags passed to only C++ (and not C) files.
363LOCAL_CPPFLAGS_Release := \
364	-fno-exceptions \
365	-fno-rtti \
366	-fno-threadsafe-statics \
367	-fvisibility-inlines-hidden \
368	-Wno-deprecated \
369	-std=gnu++11 \
370	-Wno-narrowing \
371	-Wno-literal-suffix \
372	-Wno-non-virtual-dtor \
373	-Wno-sign-promo \
374	-Wno-non-virtual-dtor
375
376
377LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
378LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
379LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
380LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
381### Rules for final target.
382
383LOCAL_SHARED_LIBRARIES := \
384	libstlport \
385	libdl
386
387# Add target alias to "gyp_all_modules" target.
388.PHONY: gyp_all_modules
389gyp_all_modules: third_party_opus_opus_gyp
390
391# Alias gyp target name.
392.PHONY: opus
393opus: third_party_opus_opus_gyp
394
395include $(BUILD_STATIC_LIBRARY)
396