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