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