• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_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
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/fixed/apply_sine_window_FIX.c \
67	third_party/opus/src/silk/fixed/autocorr_FIX.c \
68	third_party/opus/src/silk/fixed/burg_modified_FIX.c \
69	third_party/opus/src/silk/fixed/corrMatrix_FIX.c \
70	third_party/opus/src/silk/fixed/encode_frame_FIX.c \
71	third_party/opus/src/silk/fixed/find_LPC_FIX.c \
72	third_party/opus/src/silk/fixed/find_LTP_FIX.c \
73	third_party/opus/src/silk/fixed/find_pitch_lags_FIX.c \
74	third_party/opus/src/silk/fixed/find_pred_coefs_FIX.c \
75	third_party/opus/src/silk/fixed/k2a_FIX.c \
76	third_party/opus/src/silk/fixed/k2a_Q16_FIX.c \
77	third_party/opus/src/silk/fixed/LTP_analysis_filter_FIX.c \
78	third_party/opus/src/silk/fixed/LTP_scale_ctrl_FIX.c \
79	third_party/opus/src/silk/fixed/noise_shape_analysis_FIX.c \
80	third_party/opus/src/silk/fixed/pitch_analysis_core_FIX.c \
81	third_party/opus/src/silk/fixed/prefilter_FIX.c \
82	third_party/opus/src/silk/fixed/process_gains_FIX.c \
83	third_party/opus/src/silk/fixed/regularize_correlations_FIX.c \
84	third_party/opus/src/silk/fixed/residual_energy16_FIX.c \
85	third_party/opus/src/silk/fixed/residual_energy_FIX.c \
86	third_party/opus/src/silk/fixed/schur64_FIX.c \
87	third_party/opus/src/silk/fixed/schur_FIX.c \
88	third_party/opus/src/silk/fixed/solve_LS_FIX.c \
89	third_party/opus/src/silk/fixed/vector_ops_FIX.c \
90	third_party/opus/src/silk/fixed/warped_autocorrelation_FIX.c \
91	third_party/opus/src/silk/gain_quant.c \
92	third_party/opus/src/silk/HP_variable_cutoff.c \
93	third_party/opus/src/silk/init_decoder.c \
94	third_party/opus/src/silk/init_encoder.c \
95	third_party/opus/src/silk/inner_prod_aligned.c \
96	third_party/opus/src/silk/interpolate.c \
97	third_party/opus/src/silk/lin2log.c \
98	third_party/opus/src/silk/log2lin.c \
99	third_party/opus/src/silk/LP_variable_cutoff.c \
100	third_party/opus/src/silk/LPC_analysis_filter.c \
101	third_party/opus/src/silk/LPC_inv_pred_gain.c \
102	third_party/opus/src/silk/NLSF2A.c \
103	third_party/opus/src/silk/NLSF_decode.c \
104	third_party/opus/src/silk/NLSF_del_dec_quant.c \
105	third_party/opus/src/silk/NLSF_encode.c \
106	third_party/opus/src/silk/NLSF_stabilize.c \
107	third_party/opus/src/silk/NLSF_unpack.c \
108	third_party/opus/src/silk/NLSF_VQ.c \
109	third_party/opus/src/silk/NLSF_VQ_weights_laroia.c \
110	third_party/opus/src/silk/NSQ.c \
111	third_party/opus/src/silk/NSQ_del_dec.c \
112	third_party/opus/src/silk/pitch_est_tables.c \
113	third_party/opus/src/silk/PLC.c \
114	third_party/opus/src/silk/process_NLSFs.c \
115	third_party/opus/src/silk/quant_LTP_gains.c \
116	third_party/opus/src/silk/resampler.c \
117	third_party/opus/src/silk/resampler_down2.c \
118	third_party/opus/src/silk/resampler_down2_3.c \
119	third_party/opus/src/silk/resampler_private_AR2.c \
120	third_party/opus/src/silk/resampler_private_down_FIR.c \
121	third_party/opus/src/silk/resampler_private_IIR_FIR.c \
122	third_party/opus/src/silk/resampler_private_up2_HQ.c \
123	third_party/opus/src/silk/resampler_rom.c \
124	third_party/opus/src/silk/shell_coder.c \
125	third_party/opus/src/silk/sigm_Q15.c \
126	third_party/opus/src/silk/sort.c \
127	third_party/opus/src/silk/stereo_decode_pred.c \
128	third_party/opus/src/silk/stereo_encode_pred.c \
129	third_party/opus/src/silk/stereo_find_predictor.c \
130	third_party/opus/src/silk/stereo_LR_to_MS.c \
131	third_party/opus/src/silk/stereo_MS_to_LR.c \
132	third_party/opus/src/silk/stereo_quant_pred.c \
133	third_party/opus/src/silk/sum_sqr_shift.c \
134	third_party/opus/src/silk/table_LSF_cos.c \
135	third_party/opus/src/silk/tables_gain.c \
136	third_party/opus/src/silk/tables_LTP.c \
137	third_party/opus/src/silk/tables_NLSF_CB_NB_MB.c \
138	third_party/opus/src/silk/tables_NLSF_CB_WB.c \
139	third_party/opus/src/silk/tables_other.c \
140	third_party/opus/src/silk/tables_pitch_lag.c \
141	third_party/opus/src/silk/tables_pulses_per_block.c \
142	third_party/opus/src/silk/VAD.c \
143	third_party/opus/src/silk/VQ_WMat_EC.c \
144	third_party/opus/src/src/analysis.c \
145	third_party/opus/src/src/mlp.c \
146	third_party/opus/src/src/mlp_data.c \
147	third_party/opus/src/src/opus.c \
148	third_party/opus/src/src/opus_decoder.c \
149	third_party/opus/src/src/opus_encoder.c \
150	third_party/opus/src/src/opus_multistream.c \
151	third_party/opus/src/src/opus_multistream_decoder.c \
152	third_party/opus/src/src/opus_multistream_encoder.c \
153	third_party/opus/src/src/repacketizer.c
154
155
156# Flags passed to both C and C++ files.
157MY_CFLAGS_Debug := \
158	-fstack-protector \
159	--param=ssp-buffer-size=4 \
160	-fno-exceptions \
161	-fno-strict-aliasing \
162	-Wno-unused-parameter \
163	-Wno-missing-field-initializers \
164	-fvisibility=hidden \
165	-pipe \
166	-fPIC \
167	-Wno-format \
168	-fno-tree-sra \
169	-fuse-ld=gold \
170	-Wno-psabi \
171	-ffunction-sections \
172	-funwind-tables \
173	-g \
174	-fstack-protector \
175	-fno-short-enums \
176	-finline-limit=64 \
177	-Wa,--noexecstack \
178	-U_FORTIFY_SOURCE \
179	-Wno-extra \
180	-Wno-ignored-qualifiers \
181	-Wno-type-limits \
182	-Wno-address \
183	-Wno-format-security \
184	-Wno-return-type \
185	-Wno-sequence-point \
186	-Os \
187	-g \
188	-fomit-frame-pointer \
189	-fdata-sections \
190	-ffunction-sections
191
192MY_DEFS_Debug := \
193	'-DV8_DEPRECATION_WARNINGS' \
194	'-D_FILE_OFFSET_BITS=64' \
195	'-DNO_TCMALLOC' \
196	'-DDISABLE_NACL' \
197	'-DCHROMIUM_BUILD' \
198	'-DUSE_LIBJPEG_TURBO=1' \
199	'-DUSE_PROPRIETARY_CODECS' \
200	'-DENABLE_CONFIGURATION_POLICY' \
201	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
202	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
203	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
204	'-DUSE_OPENSSL=1' \
205	'-DENABLE_EGLIMAGE=1' \
206	'-DCLD_VERSION=1' \
207	'-DENABLE_PRINTING=1' \
208	'-DENABLE_MANAGED_USERS=1' \
209	'-DOPUS_BUILD' \
210	'-DOPUS_EXPORT=' \
211	'-DHAVE_LRINT' \
212	'-DHAVE_LRINTF' \
213	'-DVAR_ARRAYS' \
214	'-DFIXED_POINT' \
215	'-DANDROID' \
216	'-D__GNU_SOURCE=1' \
217	'-DUSE_STLPORT=1' \
218	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
219	'-DCHROME_BUILD_ID=""' \
220	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
221	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
222	'-D_DEBUG'
223
224
225# Include paths placed before CFLAGS/CPPFLAGS
226LOCAL_C_INCLUDES_Debug := \
227	$(LOCAL_PATH)/third_party/opus/src/celt \
228	$(LOCAL_PATH)/third_party/opus/src/include \
229	$(LOCAL_PATH)/third_party/opus/src/silk \
230	$(LOCAL_PATH)/third_party/opus/src/silk/fixed \
231	$(PWD)/frameworks/wilhelm/include \
232	$(PWD)/bionic \
233	$(PWD)/external/stlport/stlport
234
235
236# Flags passed to only C++ (and not C) files.
237LOCAL_CPPFLAGS_Debug := \
238	-fno-rtti \
239	-fno-threadsafe-statics \
240	-fvisibility-inlines-hidden \
241	-Wno-deprecated \
242	-Wno-abi \
243	-Wno-error=c++0x-compat \
244	-Wno-non-virtual-dtor \
245	-Wno-sign-promo \
246	-Wno-non-virtual-dtor
247
248
249# Flags passed to both C and C++ files.
250MY_CFLAGS_Release := \
251	-fstack-protector \
252	--param=ssp-buffer-size=4 \
253	-fno-exceptions \
254	-fno-strict-aliasing \
255	-Wno-unused-parameter \
256	-Wno-missing-field-initializers \
257	-fvisibility=hidden \
258	-pipe \
259	-fPIC \
260	-Wno-format \
261	-fno-tree-sra \
262	-fuse-ld=gold \
263	-Wno-psabi \
264	-ffunction-sections \
265	-funwind-tables \
266	-g \
267	-fstack-protector \
268	-fno-short-enums \
269	-finline-limit=64 \
270	-Wa,--noexecstack \
271	-U_FORTIFY_SOURCE \
272	-Wno-extra \
273	-Wno-ignored-qualifiers \
274	-Wno-type-limits \
275	-Wno-address \
276	-Wno-format-security \
277	-Wno-return-type \
278	-Wno-sequence-point \
279	-Os \
280	-fno-ident \
281	-fdata-sections \
282	-ffunction-sections \
283	-fomit-frame-pointer
284
285MY_DEFS_Release := \
286	'-DV8_DEPRECATION_WARNINGS' \
287	'-D_FILE_OFFSET_BITS=64' \
288	'-DNO_TCMALLOC' \
289	'-DDISABLE_NACL' \
290	'-DCHROMIUM_BUILD' \
291	'-DUSE_LIBJPEG_TURBO=1' \
292	'-DUSE_PROPRIETARY_CODECS' \
293	'-DENABLE_CONFIGURATION_POLICY' \
294	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
295	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
296	'-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \
297	'-DUSE_OPENSSL=1' \
298	'-DENABLE_EGLIMAGE=1' \
299	'-DCLD_VERSION=1' \
300	'-DENABLE_PRINTING=1' \
301	'-DENABLE_MANAGED_USERS=1' \
302	'-DOPUS_BUILD' \
303	'-DOPUS_EXPORT=' \
304	'-DHAVE_LRINT' \
305	'-DHAVE_LRINTF' \
306	'-DVAR_ARRAYS' \
307	'-DFIXED_POINT' \
308	'-DANDROID' \
309	'-D__GNU_SOURCE=1' \
310	'-DUSE_STLPORT=1' \
311	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
312	'-DCHROME_BUILD_ID=""' \
313	'-DNDEBUG' \
314	'-DNVALGRIND' \
315	'-DDYNAMIC_ANNOTATIONS_ENABLED=0'
316
317
318# Include paths placed before CFLAGS/CPPFLAGS
319LOCAL_C_INCLUDES_Release := \
320	$(LOCAL_PATH)/third_party/opus/src/celt \
321	$(LOCAL_PATH)/third_party/opus/src/include \
322	$(LOCAL_PATH)/third_party/opus/src/silk \
323	$(LOCAL_PATH)/third_party/opus/src/silk/fixed \
324	$(PWD)/frameworks/wilhelm/include \
325	$(PWD)/bionic \
326	$(PWD)/external/stlport/stlport
327
328
329# Flags passed to only C++ (and not C) files.
330LOCAL_CPPFLAGS_Release := \
331	-fno-rtti \
332	-fno-threadsafe-statics \
333	-fvisibility-inlines-hidden \
334	-Wno-deprecated \
335	-Wno-abi \
336	-Wno-error=c++0x-compat \
337	-Wno-non-virtual-dtor \
338	-Wno-sign-promo \
339	-Wno-non-virtual-dtor
340
341
342LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
343LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
344LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
345### Rules for final target.
346
347LOCAL_LDFLAGS_Debug := \
348	-Wl,-z,now \
349	-Wl,-z,relro \
350	-Wl,-z,noexecstack \
351	-fPIC \
352	-Wl,-z,relro \
353	-Wl,-z,now \
354	-fuse-ld=gold \
355	-nostdlib \
356	-Wl,--no-undefined \
357	-Wl,--exclude-libs=ALL \
358	-Wl,--icf=safe \
359	-Wl,--fatal-warnings \
360	-Wl,--gc-sections \
361	-Wl,--warn-shared-textrel \
362	-Wl,-O1 \
363	-Wl,--as-needed
364
365
366LOCAL_LDFLAGS_Release := \
367	-Wl,-z,now \
368	-Wl,-z,relro \
369	-Wl,-z,noexecstack \
370	-fPIC \
371	-Wl,-z,relro \
372	-Wl,-z,now \
373	-fuse-ld=gold \
374	-nostdlib \
375	-Wl,--no-undefined \
376	-Wl,--exclude-libs=ALL \
377	-Wl,--icf=safe \
378	-Wl,-O1 \
379	-Wl,--as-needed \
380	-Wl,--gc-sections \
381	-Wl,--fatal-warnings \
382	-Wl,--warn-shared-textrel
383
384
385LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
386
387LOCAL_STATIC_LIBRARIES :=
388
389# Enable grouping to fix circular references
390LOCAL_GROUP_STATIC_LIBRARIES := true
391
392LOCAL_SHARED_LIBRARIES := \
393	libstlport \
394	libdl
395
396# Add target alias to "gyp_all_modules" target.
397.PHONY: gyp_all_modules
398gyp_all_modules: third_party_opus_opus_gyp
399
400# Alias gyp target name.
401.PHONY: opus
402opus: third_party_opus_opus_gyp
403
404include $(BUILD_STATIC_LIBRARY)
405