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_webrtc_modules_iLBC_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 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/webrtc/modules/audio_coding/codecs/ilbc/abs_quant.c \ 26 third_party/webrtc/modules/audio_coding/codecs/ilbc/abs_quant_loop.c \ 27 third_party/webrtc/modules/audio_coding/codecs/ilbc/augmented_cb_corr.c \ 28 third_party/webrtc/modules/audio_coding/codecs/ilbc/bw_expand.c \ 29 third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.c \ 30 third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy.c \ 31 third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy_augmentation.c \ 32 third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy_calc.c \ 33 third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_search.c \ 34 third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_search_core.c \ 35 third_party/webrtc/modules/audio_coding/codecs/ilbc/cb_update_best_index.c \ 36 third_party/webrtc/modules/audio_coding/codecs/ilbc/chebyshev.c \ 37 third_party/webrtc/modules/audio_coding/codecs/ilbc/comp_corr.c \ 38 third_party/webrtc/modules/audio_coding/codecs/ilbc/constants.c \ 39 third_party/webrtc/modules/audio_coding/codecs/ilbc/create_augmented_vec.c \ 40 third_party/webrtc/modules/audio_coding/codecs/ilbc/decode.c \ 41 third_party/webrtc/modules/audio_coding/codecs/ilbc/decode_residual.c \ 42 third_party/webrtc/modules/audio_coding/codecs/ilbc/decoder_interpolate_lsf.c \ 43 third_party/webrtc/modules/audio_coding/codecs/ilbc/do_plc.c \ 44 third_party/webrtc/modules/audio_coding/codecs/ilbc/encode.c \ 45 third_party/webrtc/modules/audio_coding/codecs/ilbc/energy_inverse.c \ 46 third_party/webrtc/modules/audio_coding/codecs/ilbc/enh_upsample.c \ 47 third_party/webrtc/modules/audio_coding/codecs/ilbc/enhancer.c \ 48 third_party/webrtc/modules/audio_coding/codecs/ilbc/enhancer_interface.c \ 49 third_party/webrtc/modules/audio_coding/codecs/ilbc/filtered_cb_vecs.c \ 50 third_party/webrtc/modules/audio_coding/codecs/ilbc/frame_classify.c \ 51 third_party/webrtc/modules/audio_coding/codecs/ilbc/gain_dequant.c \ 52 third_party/webrtc/modules/audio_coding/codecs/ilbc/gain_quant.c \ 53 third_party/webrtc/modules/audio_coding/codecs/ilbc/get_cd_vec.c \ 54 third_party/webrtc/modules/audio_coding/codecs/ilbc/get_lsp_poly.c \ 55 third_party/webrtc/modules/audio_coding/codecs/ilbc/get_sync_seq.c \ 56 third_party/webrtc/modules/audio_coding/codecs/ilbc/hp_input.c \ 57 third_party/webrtc/modules/audio_coding/codecs/ilbc/hp_output.c \ 58 third_party/webrtc/modules/audio_coding/codecs/ilbc/ilbc.c \ 59 third_party/webrtc/modules/audio_coding/codecs/ilbc/index_conv_dec.c \ 60 third_party/webrtc/modules/audio_coding/codecs/ilbc/index_conv_enc.c \ 61 third_party/webrtc/modules/audio_coding/codecs/ilbc/init_decode.c \ 62 third_party/webrtc/modules/audio_coding/codecs/ilbc/init_encode.c \ 63 third_party/webrtc/modules/audio_coding/codecs/ilbc/interpolate.c \ 64 third_party/webrtc/modules/audio_coding/codecs/ilbc/interpolate_samples.c \ 65 third_party/webrtc/modules/audio_coding/codecs/ilbc/lpc_encode.c \ 66 third_party/webrtc/modules/audio_coding/codecs/ilbc/lsf_check.c \ 67 third_party/webrtc/modules/audio_coding/codecs/ilbc/lsf_interpolate_to_poly_dec.c \ 68 third_party/webrtc/modules/audio_coding/codecs/ilbc/lsf_interpolate_to_poly_enc.c \ 69 third_party/webrtc/modules/audio_coding/codecs/ilbc/lsf_to_lsp.c \ 70 third_party/webrtc/modules/audio_coding/codecs/ilbc/lsf_to_poly.c \ 71 third_party/webrtc/modules/audio_coding/codecs/ilbc/lsp_to_lsf.c \ 72 third_party/webrtc/modules/audio_coding/codecs/ilbc/my_corr.c \ 73 third_party/webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c \ 74 third_party/webrtc/modules/audio_coding/codecs/ilbc/pack_bits.c \ 75 third_party/webrtc/modules/audio_coding/codecs/ilbc/poly_to_lsf.c \ 76 third_party/webrtc/modules/audio_coding/codecs/ilbc/poly_to_lsp.c \ 77 third_party/webrtc/modules/audio_coding/codecs/ilbc/refiner.c \ 78 third_party/webrtc/modules/audio_coding/codecs/ilbc/simple_interpolate_lsf.c \ 79 third_party/webrtc/modules/audio_coding/codecs/ilbc/simple_lpc_analysis.c \ 80 third_party/webrtc/modules/audio_coding/codecs/ilbc/simple_lsf_dequant.c \ 81 third_party/webrtc/modules/audio_coding/codecs/ilbc/simple_lsf_quant.c \ 82 third_party/webrtc/modules/audio_coding/codecs/ilbc/smooth.c \ 83 third_party/webrtc/modules/audio_coding/codecs/ilbc/smooth_out_data.c \ 84 third_party/webrtc/modules/audio_coding/codecs/ilbc/sort_sq.c \ 85 third_party/webrtc/modules/audio_coding/codecs/ilbc/split_vq.c \ 86 third_party/webrtc/modules/audio_coding/codecs/ilbc/state_construct.c \ 87 third_party/webrtc/modules/audio_coding/codecs/ilbc/state_search.c \ 88 third_party/webrtc/modules/audio_coding/codecs/ilbc/swap_bytes.c \ 89 third_party/webrtc/modules/audio_coding/codecs/ilbc/unpack_bits.c \ 90 third_party/webrtc/modules/audio_coding/codecs/ilbc/vq3.c \ 91 third_party/webrtc/modules/audio_coding/codecs/ilbc/vq4.c \ 92 third_party/webrtc/modules/audio_coding/codecs/ilbc/window32_w32.c \ 93 third_party/webrtc/modules/audio_coding/codecs/ilbc/xcorr_coef.c 94 95 96 # Flags passed to both C and C++ files. 97 MY_CFLAGS_Debug := \ 98 --param=ssp-buffer-size=4 \ 99 -Werror \ 100 -fno-strict-aliasing \ 101 -Wall \ 102 -Wno-unused-parameter \ 103 -Wno-missing-field-initializers \ 104 -fvisibility=hidden \ 105 -pipe \ 106 -fPIC \ 107 -Wno-unused-local-typedefs \ 108 -fno-builtin-cos \ 109 -fno-builtin-sin \ 110 -fno-builtin-cosf \ 111 -fno-builtin-sinf \ 112 -fno-builtin-cos \ 113 -fno-builtin-sin \ 114 -fno-builtin-cosf \ 115 -fno-builtin-sinf \ 116 -msse2 \ 117 -mfpmath=sse \ 118 -mmmx \ 119 -m32 \ 120 -ffunction-sections \ 121 -funwind-tables \ 122 -g \ 123 -fno-short-enums \ 124 -finline-limit=64 \ 125 -Wa,--noexecstack \ 126 -U_FORTIFY_SOURCE \ 127 -Wno-extra \ 128 -Wno-ignored-qualifiers \ 129 -Wno-type-limits \ 130 -Wno-unused-but-set-variable \ 131 -fno-stack-protector \ 132 -Os \ 133 -g \ 134 -gdwarf-4 \ 135 -fdata-sections \ 136 -ffunction-sections \ 137 -fomit-frame-pointer \ 138 -funwind-tables 139 140 MY_DEFS_Debug := \ 141 '-DV8_DEPRECATION_WARNINGS' \ 142 '-D_FILE_OFFSET_BITS=64' \ 143 '-DNO_TCMALLOC' \ 144 '-DDISABLE_NACL' \ 145 '-DCHROMIUM_BUILD' \ 146 '-DUSE_LIBJPEG_TURBO=1' \ 147 '-DENABLE_WEBRTC=1' \ 148 '-DUSE_PROPRIETARY_CODECS' \ 149 '-DENABLE_BROWSER_CDMS' \ 150 '-DENABLE_CONFIGURATION_POLICY' \ 151 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 152 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 153 '-DENABLE_EGLIMAGE=1' \ 154 '-DCLD_VERSION=1' \ 155 '-DENABLE_PRINTING=1' \ 156 '-DENABLE_MANAGED_USERS=1' \ 157 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 158 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 159 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 160 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 161 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 162 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 163 '-DVIDEO_HOLE=1' \ 164 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 165 '-DWEBRTC_RESTRICT_LOGGING' \ 166 '-DEXPAT_RELATIVE_PATH' \ 167 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 168 '-DWEBRTC_CHROMIUM_BUILD' \ 169 '-DLOGGING_INSIDE_WEBRTC' \ 170 '-DWEBRTC_POSIX' \ 171 '-DWEBRTC_LINUX' \ 172 '-DWEBRTC_ANDROID' \ 173 '-DWEBRTC_ANDROID_OPENSLES' \ 174 '-DUSE_OPENSSL=1' \ 175 '-DUSE_OPENSSL_CERTS=1' \ 176 '-D__STDC_CONSTANT_MACROS' \ 177 '-D__STDC_FORMAT_MACROS' \ 178 '-DANDROID' \ 179 '-D__GNU_SOURCE=1' \ 180 '-DUSE_STLPORT=1' \ 181 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 182 '-DCHROME_BUILD_ID=""' \ 183 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 184 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 185 '-D_DEBUG' 186 187 188 # Include paths placed before CFLAGS/CPPFLAGS 189 LOCAL_C_INCLUDES_Debug := \ 190 $(gyp_shared_intermediate_dir) \ 191 $(LOCAL_PATH) \ 192 $(LOCAL_PATH)/third_party/webrtc/overrides \ 193 $(LOCAL_PATH)/third_party \ 194 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ 195 $(LOCAL_PATH)/third_party/webrtc \ 196 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 197 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 198 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 199 $(PWD)/frameworks/wilhelm/include \ 200 $(PWD)/bionic \ 201 $(PWD)/external/stlport/stlport 202 203 204 # Flags passed to only C++ (and not C) files. 205 LOCAL_CPPFLAGS_Debug := \ 206 -fno-exceptions \ 207 -fno-rtti \ 208 -fno-threadsafe-statics \ 209 -fvisibility-inlines-hidden \ 210 -Wsign-compare \ 211 -std=gnu++11 \ 212 -Wno-narrowing \ 213 -Wno-literal-suffix \ 214 -Wno-non-virtual-dtor \ 215 -Wno-sign-promo 216 217 218 # Flags passed to both C and C++ files. 219 MY_CFLAGS_Release := \ 220 --param=ssp-buffer-size=4 \ 221 -Werror \ 222 -fno-strict-aliasing \ 223 -Wall \ 224 -Wno-unused-parameter \ 225 -Wno-missing-field-initializers \ 226 -fvisibility=hidden \ 227 -pipe \ 228 -fPIC \ 229 -Wno-unused-local-typedefs \ 230 -fno-builtin-cos \ 231 -fno-builtin-sin \ 232 -fno-builtin-cosf \ 233 -fno-builtin-sinf \ 234 -fno-builtin-cos \ 235 -fno-builtin-sin \ 236 -fno-builtin-cosf \ 237 -fno-builtin-sinf \ 238 -msse2 \ 239 -mfpmath=sse \ 240 -mmmx \ 241 -m32 \ 242 -ffunction-sections \ 243 -funwind-tables \ 244 -g \ 245 -fno-short-enums \ 246 -finline-limit=64 \ 247 -Wa,--noexecstack \ 248 -U_FORTIFY_SOURCE \ 249 -Wno-extra \ 250 -Wno-ignored-qualifiers \ 251 -Wno-type-limits \ 252 -Wno-unused-but-set-variable \ 253 -fno-stack-protector \ 254 -Os \ 255 -fno-ident \ 256 -fdata-sections \ 257 -ffunction-sections \ 258 -fomit-frame-pointer \ 259 -funwind-tables 260 261 MY_DEFS_Release := \ 262 '-DV8_DEPRECATION_WARNINGS' \ 263 '-D_FILE_OFFSET_BITS=64' \ 264 '-DNO_TCMALLOC' \ 265 '-DDISABLE_NACL' \ 266 '-DCHROMIUM_BUILD' \ 267 '-DUSE_LIBJPEG_TURBO=1' \ 268 '-DENABLE_WEBRTC=1' \ 269 '-DUSE_PROPRIETARY_CODECS' \ 270 '-DENABLE_BROWSER_CDMS' \ 271 '-DENABLE_CONFIGURATION_POLICY' \ 272 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 273 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 274 '-DENABLE_EGLIMAGE=1' \ 275 '-DCLD_VERSION=1' \ 276 '-DENABLE_PRINTING=1' \ 277 '-DENABLE_MANAGED_USERS=1' \ 278 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 279 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 280 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 281 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 282 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 283 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 284 '-DVIDEO_HOLE=1' \ 285 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 286 '-DWEBRTC_RESTRICT_LOGGING' \ 287 '-DEXPAT_RELATIVE_PATH' \ 288 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 289 '-DWEBRTC_CHROMIUM_BUILD' \ 290 '-DLOGGING_INSIDE_WEBRTC' \ 291 '-DWEBRTC_POSIX' \ 292 '-DWEBRTC_LINUX' \ 293 '-DWEBRTC_ANDROID' \ 294 '-DWEBRTC_ANDROID_OPENSLES' \ 295 '-DUSE_OPENSSL=1' \ 296 '-DUSE_OPENSSL_CERTS=1' \ 297 '-D__STDC_CONSTANT_MACROS' \ 298 '-D__STDC_FORMAT_MACROS' \ 299 '-DANDROID' \ 300 '-D__GNU_SOURCE=1' \ 301 '-DUSE_STLPORT=1' \ 302 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 303 '-DCHROME_BUILD_ID=""' \ 304 '-DNDEBUG' \ 305 '-DNVALGRIND' \ 306 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 307 '-D_FORTIFY_SOURCE=2' 308 309 310 # Include paths placed before CFLAGS/CPPFLAGS 311 LOCAL_C_INCLUDES_Release := \ 312 $(gyp_shared_intermediate_dir) \ 313 $(LOCAL_PATH) \ 314 $(LOCAL_PATH)/third_party/webrtc/overrides \ 315 $(LOCAL_PATH)/third_party \ 316 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ 317 $(LOCAL_PATH)/third_party/webrtc \ 318 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 319 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 320 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 321 $(PWD)/frameworks/wilhelm/include \ 322 $(PWD)/bionic \ 323 $(PWD)/external/stlport/stlport 324 325 326 # Flags passed to only C++ (and not C) files. 327 LOCAL_CPPFLAGS_Release := \ 328 -fno-exceptions \ 329 -fno-rtti \ 330 -fno-threadsafe-statics \ 331 -fvisibility-inlines-hidden \ 332 -Wsign-compare \ 333 -std=gnu++11 \ 334 -Wno-narrowing \ 335 -Wno-literal-suffix \ 336 -Wno-non-virtual-dtor \ 337 -Wno-sign-promo 338 339 340 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 341 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 342 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 343 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 344 ### Rules for final target. 345 346 LOCAL_SHARED_LIBRARIES := \ 347 libstlport \ 348 libdl 349 350 # Add target alias to "gyp_all_modules" target. 351 .PHONY: gyp_all_modules 352 gyp_all_modules: third_party_webrtc_modules_iLBC_gyp 353 354 # Alias gyp target name. 355 .PHONY: iLBC 356 iLBC: third_party_webrtc_modules_iLBC_gyp 357 358 include $(BUILD_STATIC_LIBRARY) 359