1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := third_party_opus_opus_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := 14 15 GYP_GENERATED_OUTPUTS := 16 17 # Make sure our deps and generated files are built first. 18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20 LOCAL_GENERATED_SOURCES := 21 22 GYP_COPIED_SOURCE_ORIGIN_DIRS := 23 24 LOCAL_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. 157 MY_CFLAGS_Debug := \ 158 -fstack-protector \ 159 --param=ssp-buffer-size=4 \ 160 \ 161 -fno-exceptions \ 162 -fno-strict-aliasing \ 163 -Wno-unused-parameter \ 164 -Wno-missing-field-initializers \ 165 -fvisibility=hidden \ 166 -pipe \ 167 -fPIC \ 168 -Wno-format \ 169 -EL \ 170 -mhard-float \ 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 192 MY_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 226 LOCAL_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. 237 LOCAL_CPPFLAGS_Debug := \ 238 -fno-rtti \ 239 -fno-threadsafe-statics \ 240 -fvisibility-inlines-hidden \ 241 -Wno-deprecated \ 242 -Wno-uninitialized \ 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. 250 MY_CFLAGS_Release := \ 251 -fstack-protector \ 252 --param=ssp-buffer-size=4 \ 253 \ 254 -fno-exceptions \ 255 -fno-strict-aliasing \ 256 -Wno-unused-parameter \ 257 -Wno-missing-field-initializers \ 258 -fvisibility=hidden \ 259 -pipe \ 260 -fPIC \ 261 -Wno-format \ 262 -EL \ 263 -mhard-float \ 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 285 MY_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 319 LOCAL_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. 330 LOCAL_CPPFLAGS_Release := \ 331 -fno-rtti \ 332 -fno-threadsafe-statics \ 333 -fvisibility-inlines-hidden \ 334 -Wno-deprecated \ 335 -Wno-uninitialized \ 336 -Wno-error=c++0x-compat \ 337 -Wno-non-virtual-dtor \ 338 -Wno-sign-promo \ 339 -Wno-non-virtual-dtor 340 341 342 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 343 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 344 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 345 ### Rules for final target. 346 347 LOCAL_LDFLAGS_Debug := \ 348 -Wl,-z,now \ 349 -Wl,-z,relro \ 350 -Wl,-z,noexecstack \ 351 -fPIC \ 352 -EL \ 353 -Wl,--no-keep-memory \ 354 -nostdlib \ 355 -Wl,--no-undefined \ 356 -Wl,--exclude-libs=ALL \ 357 -Wl,--fatal-warnings \ 358 -Wl,--gc-sections \ 359 -Wl,--warn-shared-textrel \ 360 -Wl,-O1 \ 361 -Wl,--as-needed 362 363 364 LOCAL_LDFLAGS_Release := \ 365 -Wl,-z,now \ 366 -Wl,-z,relro \ 367 -Wl,-z,noexecstack \ 368 -fPIC \ 369 -EL \ 370 -Wl,--no-keep-memory \ 371 -nostdlib \ 372 -Wl,--no-undefined \ 373 -Wl,--exclude-libs=ALL \ 374 -Wl,-O1 \ 375 -Wl,--as-needed \ 376 -Wl,--gc-sections \ 377 -Wl,--fatal-warnings \ 378 -Wl,--warn-shared-textrel 379 380 381 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 382 383 LOCAL_STATIC_LIBRARIES := 384 385 # Enable grouping to fix circular references 386 LOCAL_GROUP_STATIC_LIBRARIES := true 387 388 LOCAL_SHARED_LIBRARIES := \ 389 libstlport \ 390 libdl 391 392 # Add target alias to "gyp_all_modules" target. 393 .PHONY: gyp_all_modules 394 gyp_all_modules: third_party_opus_opus_gyp 395 396 # Alias gyp target name. 397 .PHONY: opus 398 opus: third_party_opus_opus_gyp 399 400 include $(BUILD_STATIC_LIBRARY) 401