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_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_TARGET_DEPENDENCIES := 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 third_party/webrtc/common_audio/audio_util.cc \ 28 third_party/webrtc/common_audio/fir_filter.cc \ 29 third_party/webrtc/common_audio/resampler/push_resampler.cc \ 30 third_party/webrtc/common_audio/resampler/push_sinc_resampler.cc \ 31 third_party/webrtc/common_audio/resampler/resampler.cc \ 32 third_party/webrtc/common_audio/resampler/sinc_resampler.cc \ 33 third_party/webrtc/common_audio/signal_processing/auto_corr_to_refl_coef.c \ 34 third_party/webrtc/common_audio/signal_processing/auto_correlation.c \ 35 third_party/webrtc/common_audio/signal_processing/complex_fft.c \ 36 third_party/webrtc/common_audio/signal_processing/complex_bit_reverse.c \ 37 third_party/webrtc/common_audio/signal_processing/copy_set_operations.c \ 38 third_party/webrtc/common_audio/signal_processing/cross_correlation.c \ 39 third_party/webrtc/common_audio/signal_processing/division_operations.c \ 40 third_party/webrtc/common_audio/signal_processing/dot_product_with_scale.c \ 41 third_party/webrtc/common_audio/signal_processing/downsample_fast.c \ 42 third_party/webrtc/common_audio/signal_processing/energy.c \ 43 third_party/webrtc/common_audio/signal_processing/filter_ar.c \ 44 third_party/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c \ 45 third_party/webrtc/common_audio/signal_processing/filter_ma_fast_q12.c \ 46 third_party/webrtc/common_audio/signal_processing/get_hanning_window.c \ 47 third_party/webrtc/common_audio/signal_processing/get_scaling_square.c \ 48 third_party/webrtc/common_audio/signal_processing/ilbc_specific_functions.c \ 49 third_party/webrtc/common_audio/signal_processing/levinson_durbin.c \ 50 third_party/webrtc/common_audio/signal_processing/lpc_to_refl_coef.c \ 51 third_party/webrtc/common_audio/signal_processing/min_max_operations.c \ 52 third_party/webrtc/common_audio/signal_processing/randomization_functions.c \ 53 third_party/webrtc/common_audio/signal_processing/refl_coef_to_lpc.c \ 54 third_party/webrtc/common_audio/signal_processing/real_fft.c \ 55 third_party/webrtc/common_audio/signal_processing/resample.c \ 56 third_party/webrtc/common_audio/signal_processing/resample_48khz.c \ 57 third_party/webrtc/common_audio/signal_processing/resample_by_2.c \ 58 third_party/webrtc/common_audio/signal_processing/resample_by_2_internal.c \ 59 third_party/webrtc/common_audio/signal_processing/resample_fractional.c \ 60 third_party/webrtc/common_audio/signal_processing/spl_init.c \ 61 third_party/webrtc/common_audio/signal_processing/spl_sqrt.c \ 62 third_party/webrtc/common_audio/signal_processing/spl_sqrt_floor.c \ 63 third_party/webrtc/common_audio/signal_processing/spl_version.c \ 64 third_party/webrtc/common_audio/signal_processing/splitting_filter.c \ 65 third_party/webrtc/common_audio/signal_processing/sqrt_of_one_minus_x_squared.c \ 66 third_party/webrtc/common_audio/signal_processing/vector_scaling_operations.c \ 67 third_party/webrtc/common_audio/vad/webrtc_vad.c \ 68 third_party/webrtc/common_audio/vad/vad_core.c \ 69 third_party/webrtc/common_audio/vad/vad_filterbank.c \ 70 third_party/webrtc/common_audio/vad/vad_gmm.c \ 71 third_party/webrtc/common_audio/vad/vad_sp.c 72 73 74 # Flags passed to both C and C++ files. 75 MY_CFLAGS_Debug := \ 76 --param=ssp-buffer-size=4 \ 77 -Werror \ 78 -fno-exceptions \ 79 -fno-strict-aliasing \ 80 -Wall \ 81 -Wno-unused-parameter \ 82 -Wno-missing-field-initializers \ 83 -fvisibility=hidden \ 84 -pipe \ 85 -fPIC \ 86 -Wno-unused-local-typedefs \ 87 -fno-builtin-cos \ 88 -fno-builtin-sin \ 89 -fno-builtin-cosf \ 90 -fno-builtin-sinf \ 91 -msse2 \ 92 -mfpmath=sse \ 93 -mmmx \ 94 -m32 \ 95 -ffunction-sections \ 96 -funwind-tables \ 97 -g \ 98 -fno-short-enums \ 99 -finline-limit=64 \ 100 -Wa,--noexecstack \ 101 -U_FORTIFY_SOURCE \ 102 -Wno-extra \ 103 -Wno-ignored-qualifiers \ 104 -Wno-type-limits \ 105 -Wno-unused-but-set-variable \ 106 -fno-stack-protector \ 107 -Os \ 108 -g \ 109 -fdata-sections \ 110 -ffunction-sections \ 111 -fomit-frame-pointer \ 112 -funwind-tables 113 114 MY_DEFS_Debug := \ 115 '-DV8_DEPRECATION_WARNINGS' \ 116 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 117 '-D_FILE_OFFSET_BITS=64' \ 118 '-DNO_TCMALLOC' \ 119 '-DDISABLE_NACL' \ 120 '-DCHROMIUM_BUILD' \ 121 '-DUSE_LIBJPEG_TURBO=1' \ 122 '-DENABLE_WEBRTC=1' \ 123 '-DUSE_PROPRIETARY_CODECS' \ 124 '-DENABLE_BROWSER_CDMS' \ 125 '-DENABLE_CONFIGURATION_POLICY' \ 126 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 127 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 128 '-DENABLE_EGLIMAGE=1' \ 129 '-DCLD_VERSION=1' \ 130 '-DENABLE_PRINTING=1' \ 131 '-DENABLE_MANAGED_USERS=1' \ 132 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 133 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 134 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 135 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 136 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 137 '-DVIDEO_HOLE=1' \ 138 '-DWEBRTC_RESTRICT_LOGGING' \ 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-rtti \ 177 -fno-threadsafe-statics \ 178 -fvisibility-inlines-hidden \ 179 -Wsign-compare \ 180 -Wno-non-virtual-dtor \ 181 -Wno-sign-promo 182 183 184 LOCAL_FDO_SUPPORT_Debug := false 185 186 # Flags passed to both C and C++ files. 187 MY_CFLAGS_Release := \ 188 --param=ssp-buffer-size=4 \ 189 -Werror \ 190 -fno-exceptions \ 191 -fno-strict-aliasing \ 192 -Wall \ 193 -Wno-unused-parameter \ 194 -Wno-missing-field-initializers \ 195 -fvisibility=hidden \ 196 -pipe \ 197 -fPIC \ 198 -Wno-unused-local-typedefs \ 199 -fno-builtin-cos \ 200 -fno-builtin-sin \ 201 -fno-builtin-cosf \ 202 -fno-builtin-sinf \ 203 -msse2 \ 204 -mfpmath=sse \ 205 -mmmx \ 206 -m32 \ 207 -ffunction-sections \ 208 -funwind-tables \ 209 -g \ 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 -fno-stack-protector \ 219 -Os \ 220 -fno-ident \ 221 -fdata-sections \ 222 -ffunction-sections \ 223 -fomit-frame-pointer \ 224 -funwind-tables 225 226 MY_DEFS_Release := \ 227 '-DV8_DEPRECATION_WARNINGS' \ 228 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 229 '-D_FILE_OFFSET_BITS=64' \ 230 '-DNO_TCMALLOC' \ 231 '-DDISABLE_NACL' \ 232 '-DCHROMIUM_BUILD' \ 233 '-DUSE_LIBJPEG_TURBO=1' \ 234 '-DENABLE_WEBRTC=1' \ 235 '-DUSE_PROPRIETARY_CODECS' \ 236 '-DENABLE_BROWSER_CDMS' \ 237 '-DENABLE_CONFIGURATION_POLICY' \ 238 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 239 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 240 '-DENABLE_EGLIMAGE=1' \ 241 '-DCLD_VERSION=1' \ 242 '-DENABLE_PRINTING=1' \ 243 '-DENABLE_MANAGED_USERS=1' \ 244 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 245 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 246 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 247 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 248 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 249 '-DVIDEO_HOLE=1' \ 250 '-DWEBRTC_RESTRICT_LOGGING' \ 251 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 252 '-DWEBRTC_CHROMIUM_BUILD' \ 253 '-DLOGGING_INSIDE_WEBRTC' \ 254 '-DWEBRTC_POSIX' \ 255 '-DWEBRTC_LINUX' \ 256 '-DWEBRTC_ANDROID' \ 257 '-DWEBRTC_ANDROID_OPENSLES' \ 258 '-DUSE_OPENSSL=1' \ 259 '-DUSE_OPENSSL_CERTS=1' \ 260 '-D__STDC_CONSTANT_MACROS' \ 261 '-D__STDC_FORMAT_MACROS' \ 262 '-DANDROID' \ 263 '-D__GNU_SOURCE=1' \ 264 '-DUSE_STLPORT=1' \ 265 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 266 '-DCHROME_BUILD_ID=""' \ 267 '-DNDEBUG' \ 268 '-DNVALGRIND' \ 269 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 270 '-D_FORTIFY_SOURCE=2' 271 272 273 # Include paths placed before CFLAGS/CPPFLAGS 274 LOCAL_C_INCLUDES_Release := \ 275 $(gyp_shared_intermediate_dir) \ 276 $(LOCAL_PATH) \ 277 $(LOCAL_PATH)/third_party/webrtc/overrides \ 278 $(LOCAL_PATH)/third_party \ 279 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 280 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 281 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 282 $(PWD)/frameworks/wilhelm/include \ 283 $(PWD)/bionic \ 284 $(PWD)/external/stlport/stlport 285 286 287 # Flags passed to only C++ (and not C) files. 288 LOCAL_CPPFLAGS_Release := \ 289 -fno-rtti \ 290 -fno-threadsafe-statics \ 291 -fvisibility-inlines-hidden \ 292 -Wsign-compare \ 293 -Wno-non-virtual-dtor \ 294 -Wno-sign-promo 295 296 297 LOCAL_FDO_SUPPORT_Release := false 298 299 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 300 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 301 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 302 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 303 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 304 ### Rules for final target. 305 306 LOCAL_LDFLAGS_Debug := \ 307 -Wl,-z,now \ 308 -Wl,-z,relro \ 309 -Wl,--fatal-warnings \ 310 -Wl,-z,noexecstack \ 311 -fPIC \ 312 -m32 \ 313 -fuse-ld=gold \ 314 -nostdlib \ 315 -Wl,--no-undefined \ 316 -Wl,--exclude-libs=ALL \ 317 -Wl,--warn-shared-textrel \ 318 -Wl,-O1 \ 319 -Wl,--as-needed 320 321 322 LOCAL_LDFLAGS_Release := \ 323 -Wl,-z,now \ 324 -Wl,-z,relro \ 325 -Wl,--fatal-warnings \ 326 -Wl,-z,noexecstack \ 327 -fPIC \ 328 -m32 \ 329 -fuse-ld=gold \ 330 -nostdlib \ 331 -Wl,--no-undefined \ 332 -Wl,--exclude-libs=ALL \ 333 -Wl,-O1 \ 334 -Wl,--as-needed \ 335 -Wl,--gc-sections \ 336 -Wl,--warn-shared-textrel 337 338 339 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 340 341 LOCAL_STATIC_LIBRARIES := 342 343 # Enable grouping to fix circular references 344 LOCAL_GROUP_STATIC_LIBRARIES := true 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_common_audio_common_audio_gyp 353 354 # Alias gyp target name. 355 .PHONY: common_audio 356 common_audio: third_party_webrtc_common_audio_common_audio_gyp 357 358 include $(BUILD_STATIC_LIBRARY) 359