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