1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_webrtc_modules_neteq_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TAGS := optional 9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13# Make sure our deps are built first. 14GYP_TARGET_DEPENDENCIES := 15 16GYP_GENERATED_OUTPUTS := 17 18# Make sure our deps and generated files are built first. 19LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21LOCAL_CPP_EXTENSION := .cc 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 third_party/webrtc/modules/audio_coding/neteq/accelerate.cc \ 28 third_party/webrtc/modules/audio_coding/neteq/audio_classifier.cc \ 29 third_party/webrtc/modules/audio_coding/neteq/audio_decoder_impl.cc \ 30 third_party/webrtc/modules/audio_coding/neteq/audio_decoder.cc \ 31 third_party/webrtc/modules/audio_coding/neteq/audio_multi_vector.cc \ 32 third_party/webrtc/modules/audio_coding/neteq/audio_vector.cc \ 33 third_party/webrtc/modules/audio_coding/neteq/background_noise.cc \ 34 third_party/webrtc/modules/audio_coding/neteq/buffer_level_filter.cc \ 35 third_party/webrtc/modules/audio_coding/neteq/comfort_noise.cc \ 36 third_party/webrtc/modules/audio_coding/neteq/decision_logic.cc \ 37 third_party/webrtc/modules/audio_coding/neteq/decision_logic_fax.cc \ 38 third_party/webrtc/modules/audio_coding/neteq/decision_logic_normal.cc \ 39 third_party/webrtc/modules/audio_coding/neteq/decoder_database.cc \ 40 third_party/webrtc/modules/audio_coding/neteq/delay_manager.cc \ 41 third_party/webrtc/modules/audio_coding/neteq/delay_peak_detector.cc \ 42 third_party/webrtc/modules/audio_coding/neteq/dsp_helper.cc \ 43 third_party/webrtc/modules/audio_coding/neteq/dtmf_buffer.cc \ 44 third_party/webrtc/modules/audio_coding/neteq/dtmf_tone_generator.cc \ 45 third_party/webrtc/modules/audio_coding/neteq/expand.cc \ 46 third_party/webrtc/modules/audio_coding/neteq/merge.cc \ 47 third_party/webrtc/modules/audio_coding/neteq/neteq_impl.cc \ 48 third_party/webrtc/modules/audio_coding/neteq/neteq.cc \ 49 third_party/webrtc/modules/audio_coding/neteq/statistics_calculator.cc \ 50 third_party/webrtc/modules/audio_coding/neteq/normal.cc \ 51 third_party/webrtc/modules/audio_coding/neteq/packet_buffer.cc \ 52 third_party/webrtc/modules/audio_coding/neteq/payload_splitter.cc \ 53 third_party/webrtc/modules/audio_coding/neteq/post_decode_vad.cc \ 54 third_party/webrtc/modules/audio_coding/neteq/preemptive_expand.cc \ 55 third_party/webrtc/modules/audio_coding/neteq/random_vector.cc \ 56 third_party/webrtc/modules/audio_coding/neteq/rtcp.cc \ 57 third_party/webrtc/modules/audio_coding/neteq/sync_buffer.cc \ 58 third_party/webrtc/modules/audio_coding/neteq/timestamp_scaler.cc \ 59 third_party/webrtc/modules/audio_coding/neteq/time_stretch.cc 60 61 62# Flags passed to both C and C++ files. 63MY_CFLAGS_Debug := \ 64 -fstack-protector \ 65 --param=ssp-buffer-size=4 \ 66 -Werror \ 67 -fno-exceptions \ 68 -fno-strict-aliasing \ 69 -Wall \ 70 -Wno-unused-parameter \ 71 -Wno-missing-field-initializers \ 72 -fvisibility=hidden \ 73 -pipe \ 74 -fPIC \ 75 -Wno-unused-local-typedefs \ 76 -fno-builtin-cos \ 77 -fno-builtin-sin \ 78 -fno-builtin-cosf \ 79 -fno-builtin-sinf \ 80 -fno-builtin-cos \ 81 -fno-builtin-sin \ 82 -fno-builtin-cosf \ 83 -fno-builtin-sinf \ 84 -m64 \ 85 -march=x86-64 \ 86 -ffunction-sections \ 87 -funwind-tables \ 88 -g \ 89 -fstack-protector \ 90 -fno-short-enums \ 91 -finline-limit=64 \ 92 -Wa,--noexecstack \ 93 -U_FORTIFY_SOURCE \ 94 -Wno-extra \ 95 -Wno-ignored-qualifiers \ 96 -Wno-type-limits \ 97 -Wno-unused-but-set-variable \ 98 -Os \ 99 -g \ 100 -fdata-sections \ 101 -ffunction-sections \ 102 -fomit-frame-pointer \ 103 -funwind-tables 104 105MY_DEFS_Debug := \ 106 '-DV8_DEPRECATION_WARNINGS' \ 107 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 108 '-D_FILE_OFFSET_BITS=64' \ 109 '-DNO_TCMALLOC' \ 110 '-DDISABLE_NACL' \ 111 '-DCHROMIUM_BUILD' \ 112 '-DUSE_LIBJPEG_TURBO=1' \ 113 '-DENABLE_WEBRTC=1' \ 114 '-DUSE_PROPRIETARY_CODECS' \ 115 '-DENABLE_BROWSER_CDMS' \ 116 '-DENABLE_CONFIGURATION_POLICY' \ 117 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 118 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 119 '-DENABLE_EGLIMAGE=1' \ 120 '-DCLD_VERSION=1' \ 121 '-DENABLE_PRINTING=1' \ 122 '-DENABLE_MANAGED_USERS=1' \ 123 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 124 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 125 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 126 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 127 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 128 '-DVIDEO_HOLE=1' \ 129 '-DWEBRTC_RESTRICT_LOGGING' \ 130 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 131 '-DWEBRTC_CHROMIUM_BUILD' \ 132 '-DLOGGING_INSIDE_WEBRTC' \ 133 '-DWEBRTC_POSIX' \ 134 '-DWEBRTC_LINUX' \ 135 '-DWEBRTC_ANDROID' \ 136 '-DWEBRTC_ANDROID_OPENSLES' \ 137 '-DWEBRTC_CODEC_OPUS' \ 138 '-DUSE_OPENSSL=1' \ 139 '-DUSE_OPENSSL_CERTS=1' \ 140 '-D__STDC_CONSTANT_MACROS' \ 141 '-D__STDC_FORMAT_MACROS' \ 142 '-DANDROID' \ 143 '-D__GNU_SOURCE=1' \ 144 '-DUSE_STLPORT=1' \ 145 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 146 '-DCHROME_BUILD_ID=""' \ 147 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 148 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 149 '-D_DEBUG' 150 151 152# Include paths placed before CFLAGS/CPPFLAGS 153LOCAL_C_INCLUDES_Debug := \ 154 $(gyp_shared_intermediate_dir) \ 155 $(LOCAL_PATH) \ 156 $(LOCAL_PATH)/third_party/webrtc/overrides \ 157 $(LOCAL_PATH)/third_party \ 158 $(LOCAL_PATH)/third_party/opus/src/celt \ 159 $(LOCAL_PATH)/third_party/opus/src/src \ 160 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g711/include \ 161 $(LOCAL_PATH)/third_party/webrtc \ 162 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g722/include \ 163 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/pcm16b/include \ 164 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ 165 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/main/interface \ 166 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \ 167 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/cng/include \ 168 $(LOCAL_PATH)/third_party/opus/src/include \ 169 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 170 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 171 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 172 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 173 $(PWD)/frameworks/wilhelm/include \ 174 $(PWD)/bionic \ 175 $(PWD)/external/stlport/stlport 176 177 178# Flags passed to only C++ (and not C) files. 179LOCAL_CPPFLAGS_Debug := \ 180 -fno-rtti \ 181 -fno-threadsafe-statics \ 182 -fvisibility-inlines-hidden \ 183 -Wsign-compare \ 184 -Wno-non-virtual-dtor \ 185 -Wno-sign-promo 186 187 188LOCAL_FDO_SUPPORT_Debug := false 189 190# Flags passed to both C and C++ files. 191MY_CFLAGS_Release := \ 192 -fstack-protector \ 193 --param=ssp-buffer-size=4 \ 194 -Werror \ 195 -fno-exceptions \ 196 -fno-strict-aliasing \ 197 -Wall \ 198 -Wno-unused-parameter \ 199 -Wno-missing-field-initializers \ 200 -fvisibility=hidden \ 201 -pipe \ 202 -fPIC \ 203 -Wno-unused-local-typedefs \ 204 -fno-builtin-cos \ 205 -fno-builtin-sin \ 206 -fno-builtin-cosf \ 207 -fno-builtin-sinf \ 208 -fno-builtin-cos \ 209 -fno-builtin-sin \ 210 -fno-builtin-cosf \ 211 -fno-builtin-sinf \ 212 -m64 \ 213 -march=x86-64 \ 214 -ffunction-sections \ 215 -funwind-tables \ 216 -g \ 217 -fstack-protector \ 218 -fno-short-enums \ 219 -finline-limit=64 \ 220 -Wa,--noexecstack \ 221 -U_FORTIFY_SOURCE \ 222 -Wno-extra \ 223 -Wno-ignored-qualifiers \ 224 -Wno-type-limits \ 225 -Wno-unused-but-set-variable \ 226 -Os \ 227 -fno-ident \ 228 -fdata-sections \ 229 -ffunction-sections \ 230 -fomit-frame-pointer \ 231 -funwind-tables 232 233MY_DEFS_Release := \ 234 '-DV8_DEPRECATION_WARNINGS' \ 235 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 236 '-D_FILE_OFFSET_BITS=64' \ 237 '-DNO_TCMALLOC' \ 238 '-DDISABLE_NACL' \ 239 '-DCHROMIUM_BUILD' \ 240 '-DUSE_LIBJPEG_TURBO=1' \ 241 '-DENABLE_WEBRTC=1' \ 242 '-DUSE_PROPRIETARY_CODECS' \ 243 '-DENABLE_BROWSER_CDMS' \ 244 '-DENABLE_CONFIGURATION_POLICY' \ 245 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 246 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 247 '-DENABLE_EGLIMAGE=1' \ 248 '-DCLD_VERSION=1' \ 249 '-DENABLE_PRINTING=1' \ 250 '-DENABLE_MANAGED_USERS=1' \ 251 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 252 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 253 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 254 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 255 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 256 '-DVIDEO_HOLE=1' \ 257 '-DWEBRTC_RESTRICT_LOGGING' \ 258 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 259 '-DWEBRTC_CHROMIUM_BUILD' \ 260 '-DLOGGING_INSIDE_WEBRTC' \ 261 '-DWEBRTC_POSIX' \ 262 '-DWEBRTC_LINUX' \ 263 '-DWEBRTC_ANDROID' \ 264 '-DWEBRTC_ANDROID_OPENSLES' \ 265 '-DWEBRTC_CODEC_OPUS' \ 266 '-DUSE_OPENSSL=1' \ 267 '-DUSE_OPENSSL_CERTS=1' \ 268 '-D__STDC_CONSTANT_MACROS' \ 269 '-D__STDC_FORMAT_MACROS' \ 270 '-DANDROID' \ 271 '-D__GNU_SOURCE=1' \ 272 '-DUSE_STLPORT=1' \ 273 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 274 '-DCHROME_BUILD_ID=""' \ 275 '-DNDEBUG' \ 276 '-DNVALGRIND' \ 277 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 278 '-D_FORTIFY_SOURCE=2' 279 280 281# Include paths placed before CFLAGS/CPPFLAGS 282LOCAL_C_INCLUDES_Release := \ 283 $(gyp_shared_intermediate_dir) \ 284 $(LOCAL_PATH) \ 285 $(LOCAL_PATH)/third_party/webrtc/overrides \ 286 $(LOCAL_PATH)/third_party \ 287 $(LOCAL_PATH)/third_party/opus/src/celt \ 288 $(LOCAL_PATH)/third_party/opus/src/src \ 289 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g711/include \ 290 $(LOCAL_PATH)/third_party/webrtc \ 291 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/g722/include \ 292 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/pcm16b/include \ 293 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/ilbc/interface \ 294 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/main/interface \ 295 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/isac/fix/interface \ 296 $(LOCAL_PATH)/third_party/webrtc/modules/audio_coding/codecs/cng/include \ 297 $(LOCAL_PATH)/third_party/opus/src/include \ 298 $(LOCAL_PATH)/third_party/webrtc/common_audio/resampler/include \ 299 $(LOCAL_PATH)/third_party/webrtc/common_audio/signal_processing/include \ 300 $(LOCAL_PATH)/third_party/webrtc/common_audio/vad/include \ 301 $(LOCAL_PATH)/third_party/webrtc/system_wrappers/interface \ 302 $(PWD)/frameworks/wilhelm/include \ 303 $(PWD)/bionic \ 304 $(PWD)/external/stlport/stlport 305 306 307# Flags passed to only C++ (and not C) files. 308LOCAL_CPPFLAGS_Release := \ 309 -fno-rtti \ 310 -fno-threadsafe-statics \ 311 -fvisibility-inlines-hidden \ 312 -Wsign-compare \ 313 -Wno-non-virtual-dtor \ 314 -Wno-sign-promo 315 316 317LOCAL_FDO_SUPPORT_Release := false 318 319LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 320LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 321LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 322LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 323LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 324### Rules for final target. 325 326LOCAL_LDFLAGS_Debug := \ 327 -Wl,-z,now \ 328 -Wl,-z,relro \ 329 -Wl,--fatal-warnings \ 330 -Wl,-z,noexecstack \ 331 -fPIC \ 332 -m64 \ 333 -fuse-ld=gold \ 334 -nostdlib \ 335 -Wl,--no-undefined \ 336 -Wl,--exclude-libs=ALL \ 337 -Wl,--warn-shared-textrel \ 338 -Wl,-O1 \ 339 -Wl,--as-needed 340 341 342LOCAL_LDFLAGS_Release := \ 343 -Wl,-z,now \ 344 -Wl,-z,relro \ 345 -Wl,--fatal-warnings \ 346 -Wl,-z,noexecstack \ 347 -fPIC \ 348 -m64 \ 349 -fuse-ld=gold \ 350 -nostdlib \ 351 -Wl,--no-undefined \ 352 -Wl,--exclude-libs=ALL \ 353 -Wl,-O1 \ 354 -Wl,--as-needed \ 355 -Wl,--gc-sections \ 356 -Wl,--warn-shared-textrel 357 358 359LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 360 361LOCAL_STATIC_LIBRARIES := 362 363# Enable grouping to fix circular references 364LOCAL_GROUP_STATIC_LIBRARIES := true 365 366LOCAL_SHARED_LIBRARIES := \ 367 libstlport \ 368 libdl 369 370# Add target alias to "gyp_all_modules" target. 371.PHONY: gyp_all_modules 372gyp_all_modules: third_party_webrtc_modules_neteq_gyp 373 374# Alias gyp target name. 375.PHONY: neteq 376neteq: third_party_webrtc_modules_neteq_gyp 377 378include $(BUILD_STATIC_LIBRARY) 379