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_common_audio_common_audio_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_CPP_EXTENSION := .cc 21 LOCAL_GENERATED_SOURCES := 22 23 GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25 LOCAL_SRC_FILES := \ 26 third_party/webrtc/common_audio/audio_util.cc \ 27 third_party/webrtc/common_audio/fir_filter.cc \ 28 third_party/webrtc/common_audio/resampler/push_resampler.cc \ 29 third_party/webrtc/common_audio/resampler/push_sinc_resampler.cc \ 30 third_party/webrtc/common_audio/resampler/resampler.cc \ 31 third_party/webrtc/common_audio/resampler/sinc_resampler.cc \ 32 third_party/webrtc/common_audio/signal_processing/auto_corr_to_refl_coef.c \ 33 third_party/webrtc/common_audio/signal_processing/auto_correlation.c \ 34 third_party/webrtc/common_audio/signal_processing/complex_fft.c \ 35 third_party/webrtc/common_audio/signal_processing/complex_bit_reverse.c \ 36 third_party/webrtc/common_audio/signal_processing/copy_set_operations.c \ 37 third_party/webrtc/common_audio/signal_processing/cross_correlation.c \ 38 third_party/webrtc/common_audio/signal_processing/division_operations.c \ 39 third_party/webrtc/common_audio/signal_processing/dot_product_with_scale.c \ 40 third_party/webrtc/common_audio/signal_processing/downsample_fast.c \ 41 third_party/webrtc/common_audio/signal_processing/energy.c \ 42 third_party/webrtc/common_audio/signal_processing/filter_ar.c \ 43 third_party/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c \ 44 third_party/webrtc/common_audio/signal_processing/filter_ma_fast_q12.c \ 45 third_party/webrtc/common_audio/signal_processing/get_hanning_window.c \ 46 third_party/webrtc/common_audio/signal_processing/get_scaling_square.c \ 47 third_party/webrtc/common_audio/signal_processing/ilbc_specific_functions.c \ 48 third_party/webrtc/common_audio/signal_processing/levinson_durbin.c \ 49 third_party/webrtc/common_audio/signal_processing/lpc_to_refl_coef.c \ 50 third_party/webrtc/common_audio/signal_processing/min_max_operations.c \ 51 third_party/webrtc/common_audio/signal_processing/randomization_functions.c \ 52 third_party/webrtc/common_audio/signal_processing/refl_coef_to_lpc.c \ 53 third_party/webrtc/common_audio/signal_processing/real_fft.c \ 54 third_party/webrtc/common_audio/signal_processing/resample.c \ 55 third_party/webrtc/common_audio/signal_processing/resample_48khz.c \ 56 third_party/webrtc/common_audio/signal_processing/resample_by_2.c \ 57 third_party/webrtc/common_audio/signal_processing/resample_by_2_internal.c \ 58 third_party/webrtc/common_audio/signal_processing/resample_fractional.c \ 59 third_party/webrtc/common_audio/signal_processing/spl_init.c \ 60 third_party/webrtc/common_audio/signal_processing/spl_sqrt.c \ 61 third_party/webrtc/common_audio/signal_processing/spl_sqrt_floor.c \ 62 third_party/webrtc/common_audio/signal_processing/spl_version.c \ 63 third_party/webrtc/common_audio/signal_processing/splitting_filter.c \ 64 third_party/webrtc/common_audio/signal_processing/sqrt_of_one_minus_x_squared.c \ 65 third_party/webrtc/common_audio/signal_processing/vector_scaling_operations.c \ 66 third_party/webrtc/common_audio/vad/webrtc_vad.c \ 67 third_party/webrtc/common_audio/vad/vad_core.c \ 68 third_party/webrtc/common_audio/vad/vad_filterbank.c \ 69 third_party/webrtc/common_audio/vad/vad_gmm.c \ 70 third_party/webrtc/common_audio/vad/vad_sp.c \ 71 third_party/webrtc/common_audio/wav_header.cc \ 72 third_party/webrtc/common_audio/wav_writer.cc 73 74 75 # Flags passed to both C and C++ files. 76 MY_CFLAGS_Debug := \ 77 -fstack-protector \ 78 --param=ssp-buffer-size=4 \ 79 \ 80 -fno-strict-aliasing \ 81 -Wall \ 82 -Wno-unused-parameter \ 83 -Wno-missing-field-initializers \ 84 -fvisibility=hidden \ 85 -pipe \ 86 -fPIC \ 87 -Wno-unused-local-typedefs \ 88 -fno-builtin-cos \ 89 -fno-builtin-sin \ 90 -fno-builtin-cosf \ 91 -fno-builtin-sinf \ 92 -ffunction-sections \ 93 -funwind-tables \ 94 -g \ 95 -fstack-protector \ 96 -fno-short-enums \ 97 -finline-limit=64 \ 98 -Wa,--noexecstack \ 99 -U_FORTIFY_SOURCE \ 100 -Wno-extra \ 101 -Wno-ignored-qualifiers \ 102 -Wno-type-limits \ 103 -Wno-unused-but-set-variable \ 104 -Os \ 105 -g \ 106 -gdwarf-4 \ 107 -fdata-sections \ 108 -ffunction-sections \ 109 -fomit-frame-pointer \ 110 -funwind-tables 111 112 MY_DEFS_Debug := \ 113 '-DV8_DEPRECATION_WARNINGS' \ 114 '-D_FILE_OFFSET_BITS=64' \ 115 '-DNO_TCMALLOC' \ 116 '-DDISABLE_NACL' \ 117 '-DCHROMIUM_BUILD' \ 118 '-DUSE_LIBJPEG_TURBO=1' \ 119 '-DENABLE_WEBRTC=1' \ 120 '-DUSE_PROPRIETARY_CODECS' \ 121 '-DENABLE_BROWSER_CDMS' \ 122 '-DENABLE_CONFIGURATION_POLICY' \ 123 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 124 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 125 '-DENABLE_EGLIMAGE=1' \ 126 '-DCLD_VERSION=1' \ 127 '-DENABLE_PRINTING=1' \ 128 '-DENABLE_MANAGED_USERS=1' \ 129 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 130 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 131 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 132 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 133 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 134 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 135 '-DVIDEO_HOLE=1' \ 136 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 137 '-DWEBRTC_RESTRICT_LOGGING' \ 138 '-DEXPAT_RELATIVE_PATH' \ 139 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 140 '-DWEBRTC_CHROMIUM_BUILD' \ 141 '-DLOGGING_INSIDE_WEBRTC' \ 142 '-DWEBRTC_POSIX' \ 143 '-DWEBRTC_LINUX' \ 144 '-DWEBRTC_ANDROID' \ 145 '-DWEBRTC_ANDROID_OPENSLES' \ 146 '-DUSE_OPENSSL=1' \ 147 '-DUSE_OPENSSL_CERTS=1' \ 148 '-D__STDC_CONSTANT_MACROS' \ 149 '-D__STDC_FORMAT_MACROS' \ 150 '-DANDROID' \ 151 '-D__GNU_SOURCE=1' \ 152 '-DUSE_STLPORT=1' \ 153 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 154 '-DCHROME_BUILD_ID=""' \ 155 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 156 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 157 '-D_DEBUG' 158 159 160 # Include paths placed before CFLAGS/CPPFLAGS 161 LOCAL_C_INCLUDES_Debug := \ 162 $(gyp_shared_intermediate_dir) \ 163 $(LOCAL_PATH) \ 164 $(LOCAL_PATH)/third_party/webrtc/overrides \ 165 $(LOCAL_PATH)/third_party \ 166 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 167 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 168 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 169 $(PWD)/frameworks/wilhelm/include \ 170 $(PWD)/bionic \ 171 $(PWD)/external/stlport/stlport 172 173 174 # Flags passed to only C++ (and not C) files. 175 LOCAL_CPPFLAGS_Debug := \ 176 -fno-exceptions \ 177 -fno-rtti \ 178 -fno-threadsafe-statics \ 179 -fvisibility-inlines-hidden \ 180 -Wsign-compare \ 181 -Wno-uninitialized \ 182 -std=gnu++11 \ 183 -Wno-narrowing \ 184 -Wno-literal-suffix \ 185 -Wno-non-virtual-dtor \ 186 -Wno-sign-promo 187 188 189 # Flags passed to both C and C++ files. 190 MY_CFLAGS_Release := \ 191 -fstack-protector \ 192 --param=ssp-buffer-size=4 \ 193 \ 194 -fno-strict-aliasing \ 195 -Wall \ 196 -Wno-unused-parameter \ 197 -Wno-missing-field-initializers \ 198 -fvisibility=hidden \ 199 -pipe \ 200 -fPIC \ 201 -Wno-unused-local-typedefs \ 202 -fno-builtin-cos \ 203 -fno-builtin-sin \ 204 -fno-builtin-cosf \ 205 -fno-builtin-sinf \ 206 -ffunction-sections \ 207 -funwind-tables \ 208 -g \ 209 -fstack-protector \ 210 -fno-short-enums \ 211 -finline-limit=64 \ 212 -Wa,--noexecstack \ 213 -U_FORTIFY_SOURCE \ 214 -Wno-extra \ 215 -Wno-ignored-qualifiers \ 216 -Wno-type-limits \ 217 -Wno-unused-but-set-variable \ 218 -Os \ 219 -fno-ident \ 220 -fdata-sections \ 221 -ffunction-sections \ 222 -fomit-frame-pointer \ 223 -funwind-tables 224 225 MY_DEFS_Release := \ 226 '-DV8_DEPRECATION_WARNINGS' \ 227 '-D_FILE_OFFSET_BITS=64' \ 228 '-DNO_TCMALLOC' \ 229 '-DDISABLE_NACL' \ 230 '-DCHROMIUM_BUILD' \ 231 '-DUSE_LIBJPEG_TURBO=1' \ 232 '-DENABLE_WEBRTC=1' \ 233 '-DUSE_PROPRIETARY_CODECS' \ 234 '-DENABLE_BROWSER_CDMS' \ 235 '-DENABLE_CONFIGURATION_POLICY' \ 236 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 237 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 238 '-DENABLE_EGLIMAGE=1' \ 239 '-DCLD_VERSION=1' \ 240 '-DENABLE_PRINTING=1' \ 241 '-DENABLE_MANAGED_USERS=1' \ 242 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 243 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 244 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 245 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 246 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 247 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 248 '-DVIDEO_HOLE=1' \ 249 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 250 '-DWEBRTC_RESTRICT_LOGGING' \ 251 '-DEXPAT_RELATIVE_PATH' \ 252 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 253 '-DWEBRTC_CHROMIUM_BUILD' \ 254 '-DLOGGING_INSIDE_WEBRTC' \ 255 '-DWEBRTC_POSIX' \ 256 '-DWEBRTC_LINUX' \ 257 '-DWEBRTC_ANDROID' \ 258 '-DWEBRTC_ANDROID_OPENSLES' \ 259 '-DUSE_OPENSSL=1' \ 260 '-DUSE_OPENSSL_CERTS=1' \ 261 '-D__STDC_CONSTANT_MACROS' \ 262 '-D__STDC_FORMAT_MACROS' \ 263 '-DANDROID' \ 264 '-D__GNU_SOURCE=1' \ 265 '-DUSE_STLPORT=1' \ 266 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 267 '-DCHROME_BUILD_ID=""' \ 268 '-DNDEBUG' \ 269 '-DNVALGRIND' \ 270 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 271 '-D_FORTIFY_SOURCE=2' 272 273 274 # Include paths placed before CFLAGS/CPPFLAGS 275 LOCAL_C_INCLUDES_Release := \ 276 $(gyp_shared_intermediate_dir) \ 277 $(LOCAL_PATH) \ 278 $(LOCAL_PATH)/third_party/webrtc/overrides \ 279 $(LOCAL_PATH)/third_party \ 280 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 281 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 282 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 283 $(PWD)/frameworks/wilhelm/include \ 284 $(PWD)/bionic \ 285 $(PWD)/external/stlport/stlport 286 287 288 # Flags passed to only C++ (and not C) files. 289 LOCAL_CPPFLAGS_Release := \ 290 -fno-exceptions \ 291 -fno-rtti \ 292 -fno-threadsafe-statics \ 293 -fvisibility-inlines-hidden \ 294 -Wsign-compare \ 295 -Wno-uninitialized \ 296 -std=gnu++11 \ 297 -Wno-narrowing \ 298 -Wno-literal-suffix \ 299 -Wno-non-virtual-dtor \ 300 -Wno-sign-promo 301 302 303 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 304 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 305 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 306 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 307 ### Rules for final target. 308 309 LOCAL_SHARED_LIBRARIES := \ 310 libstlport \ 311 libdl 312 313 # Add target alias to "gyp_all_modules" target. 314 .PHONY: gyp_all_modules 315 gyp_all_modules: third_party_webrtc_common_audio_common_audio_gyp 316 317 # Alias gyp target name. 318 .PHONY: common_audio 319 common_audio: third_party_webrtc_common_audio_common_audio_gyp 320 321 include $(BUILD_STATIC_LIBRARY) 322