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 -ffunction-sections \ 117 -funwind-tables \ 118 -g \ 119 -fno-short-enums \ 120 -finline-limit=64 \ 121 -Wa,--noexecstack \ 122 -U_FORTIFY_SOURCE \ 123 -Wno-extra \ 124 -Wno-ignored-qualifiers \ 125 -Wno-type-limits \ 126 -Wno-unused-but-set-variable \ 127 -Os \ 128 -g \ 129 -gdwarf-4 \ 130 -fdata-sections \ 131 -ffunction-sections \ 132 -funwind-tables 133 134 MY_DEFS_Debug := \ 135 '-DV8_DEPRECATION_WARNINGS' \ 136 '-D_FILE_OFFSET_BITS=64' \ 137 '-DNO_TCMALLOC' \ 138 '-DDISABLE_NACL' \ 139 '-DCHROMIUM_BUILD' \ 140 '-DUSE_LIBJPEG_TURBO=1' \ 141 '-DENABLE_WEBRTC=1' \ 142 '-DUSE_PROPRIETARY_CODECS' \ 143 '-DENABLE_BROWSER_CDMS' \ 144 '-DENABLE_CONFIGURATION_POLICY' \ 145 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 146 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 147 '-DENABLE_EGLIMAGE=1' \ 148 '-DCLD_VERSION=1' \ 149 '-DENABLE_PRINTING=1' \ 150 '-DENABLE_MANAGED_USERS=1' \ 151 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 152 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 153 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 154 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 155 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 156 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 157 '-DVIDEO_HOLE=1' \ 158 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 159 '-DWEBRTC_RESTRICT_LOGGING' \ 160 '-DEXPAT_RELATIVE_PATH' \ 161 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 162 '-DWEBRTC_CHROMIUM_BUILD' \ 163 '-DLOGGING_INSIDE_WEBRTC' \ 164 '-DWEBRTC_POSIX' \ 165 '-DWEBRTC_LINUX' \ 166 '-DWEBRTC_ANDROID' \ 167 '-DWEBRTC_ANDROID_OPENSLES' \ 168 '-DUSE_OPENSSL=1' \ 169 '-DUSE_OPENSSL_CERTS=1' \ 170 '-D__STDC_CONSTANT_MACROS' \ 171 '-D__STDC_FORMAT_MACROS' \ 172 '-DANDROID' \ 173 '-D__GNU_SOURCE=1' \ 174 '-DUSE_STLPORT=1' \ 175 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 176 '-DCHROME_BUILD_ID=""' \ 177 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 178 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 179 '-D_DEBUG' 180 181 182 # Include paths placed before CFLAGS/CPPFLAGS 183 LOCAL_C_INCLUDES_Debug := \ 184 $(gyp_shared_intermediate_dir) \ 185 $(LOCAL_PATH) \ 186 $(LOCAL_PATH)/third_party/webrtc/overrides \ 187 $(LOCAL_PATH)/third_party \ 188 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ 189 $(LOCAL_PATH)/third_party/webrtc \ 190 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 191 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 192 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 193 $(PWD)/frameworks/wilhelm/include \ 194 $(PWD)/bionic \ 195 $(PWD)/external/stlport/stlport 196 197 198 # Flags passed to only C++ (and not C) files. 199 LOCAL_CPPFLAGS_Debug := \ 200 -fno-exceptions \ 201 -fno-rtti \ 202 -fno-threadsafe-statics \ 203 -fvisibility-inlines-hidden \ 204 -Wsign-compare \ 205 -std=gnu++11 \ 206 -Wno-narrowing \ 207 -Wno-literal-suffix \ 208 -Wno-non-virtual-dtor \ 209 -Wno-sign-promo 210 211 212 # Flags passed to both C and C++ files. 213 MY_CFLAGS_Release := \ 214 --param=ssp-buffer-size=4 \ 215 -Werror \ 216 -fno-strict-aliasing \ 217 -Wall \ 218 -Wno-unused-parameter \ 219 -Wno-missing-field-initializers \ 220 -fvisibility=hidden \ 221 -pipe \ 222 -fPIC \ 223 -Wno-unused-local-typedefs \ 224 -fno-builtin-cos \ 225 -fno-builtin-sin \ 226 -fno-builtin-cosf \ 227 -fno-builtin-sinf \ 228 -fno-builtin-cos \ 229 -fno-builtin-sin \ 230 -fno-builtin-cosf \ 231 -fno-builtin-sinf \ 232 -ffunction-sections \ 233 -funwind-tables \ 234 -g \ 235 -fno-short-enums \ 236 -finline-limit=64 \ 237 -Wa,--noexecstack \ 238 -U_FORTIFY_SOURCE \ 239 -Wno-extra \ 240 -Wno-ignored-qualifiers \ 241 -Wno-type-limits \ 242 -Wno-unused-but-set-variable \ 243 -Os \ 244 -fno-ident \ 245 -fdata-sections \ 246 -ffunction-sections \ 247 -funwind-tables 248 249 MY_DEFS_Release := \ 250 '-DV8_DEPRECATION_WARNINGS' \ 251 '-D_FILE_OFFSET_BITS=64' \ 252 '-DNO_TCMALLOC' \ 253 '-DDISABLE_NACL' \ 254 '-DCHROMIUM_BUILD' \ 255 '-DUSE_LIBJPEG_TURBO=1' \ 256 '-DENABLE_WEBRTC=1' \ 257 '-DUSE_PROPRIETARY_CODECS' \ 258 '-DENABLE_BROWSER_CDMS' \ 259 '-DENABLE_CONFIGURATION_POLICY' \ 260 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 261 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 262 '-DENABLE_EGLIMAGE=1' \ 263 '-DCLD_VERSION=1' \ 264 '-DENABLE_PRINTING=1' \ 265 '-DENABLE_MANAGED_USERS=1' \ 266 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 267 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 268 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 269 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 270 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 271 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 272 '-DVIDEO_HOLE=1' \ 273 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 274 '-DWEBRTC_RESTRICT_LOGGING' \ 275 '-DEXPAT_RELATIVE_PATH' \ 276 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 277 '-DWEBRTC_CHROMIUM_BUILD' \ 278 '-DLOGGING_INSIDE_WEBRTC' \ 279 '-DWEBRTC_POSIX' \ 280 '-DWEBRTC_LINUX' \ 281 '-DWEBRTC_ANDROID' \ 282 '-DWEBRTC_ANDROID_OPENSLES' \ 283 '-DUSE_OPENSSL=1' \ 284 '-DUSE_OPENSSL_CERTS=1' \ 285 '-D__STDC_CONSTANT_MACROS' \ 286 '-D__STDC_FORMAT_MACROS' \ 287 '-DANDROID' \ 288 '-D__GNU_SOURCE=1' \ 289 '-DUSE_STLPORT=1' \ 290 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 291 '-DCHROME_BUILD_ID=""' \ 292 '-DNDEBUG' \ 293 '-DNVALGRIND' \ 294 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 295 '-D_FORTIFY_SOURCE=2' 296 297 298 # Include paths placed before CFLAGS/CPPFLAGS 299 LOCAL_C_INCLUDES_Release := \ 300 $(gyp_shared_intermediate_dir) \ 301 $(LOCAL_PATH) \ 302 $(LOCAL_PATH)/third_party/webrtc/overrides \ 303 $(LOCAL_PATH)/third_party \ 304 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ 305 $(LOCAL_PATH)/third_party/webrtc \ 306 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 307 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 308 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 309 $(PWD)/frameworks/wilhelm/include \ 310 $(PWD)/bionic \ 311 $(PWD)/external/stlport/stlport 312 313 314 # Flags passed to only C++ (and not C) files. 315 LOCAL_CPPFLAGS_Release := \ 316 -fno-exceptions \ 317 -fno-rtti \ 318 -fno-threadsafe-statics \ 319 -fvisibility-inlines-hidden \ 320 -Wsign-compare \ 321 -std=gnu++11 \ 322 -Wno-narrowing \ 323 -Wno-literal-suffix \ 324 -Wno-non-virtual-dtor \ 325 -Wno-sign-promo 326 327 328 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 329 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 330 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 331 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 332 ### Rules for final target. 333 334 LOCAL_SHARED_LIBRARIES := \ 335 libstlport \ 336 libdl 337 338 # Add target alias to "gyp_all_modules" target. 339 .PHONY: gyp_all_modules 340 gyp_all_modules: third_party_webrtc_modules_iLBC_gyp 341 342 # Alias gyp target name. 343 .PHONY: iLBC 344 iLBC: third_party_webrtc_modules_iLBC_gyp 345 346 include $(BUILD_STATIC_LIBRARY) 347