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_base_rtc_base_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/base/asyncfile.cc \ 27 third_party/webrtc/base/asynchttprequest.cc \ 28 third_party/webrtc/base/asyncsocket.cc \ 29 third_party/webrtc/base/asynctcpsocket.cc \ 30 third_party/webrtc/base/asyncudpsocket.cc \ 31 third_party/webrtc/base/autodetectproxy.cc \ 32 third_party/webrtc/base/base64.cc \ 33 third_party/webrtc/base/bytebuffer.cc \ 34 third_party/webrtc/base/common.cc \ 35 third_party/webrtc/base/cpumonitor.cc \ 36 third_party/webrtc/base/crc32.cc \ 37 third_party/webrtc/base/diskcache.cc \ 38 third_party/webrtc/base/event.cc \ 39 third_party/webrtc/base/fileutils.cc \ 40 third_party/webrtc/base/firewallsocketserver.cc \ 41 third_party/webrtc/base/flags.cc \ 42 third_party/webrtc/base/helpers.cc \ 43 third_party/webrtc/base/httpbase.cc \ 44 third_party/webrtc/base/httpclient.cc \ 45 third_party/webrtc/base/httpcommon.cc \ 46 third_party/webrtc/base/httprequest.cc \ 47 third_party/webrtc/base/ifaddrs-android.cc \ 48 third_party/webrtc/base/ipaddress.cc \ 49 third_party/webrtc/base/linux.cc \ 50 third_party/webrtc/base/messagedigest.cc \ 51 third_party/webrtc/base/messagehandler.cc \ 52 third_party/webrtc/base/messagequeue.cc \ 53 third_party/webrtc/base/nethelpers.cc \ 54 third_party/webrtc/base/network.cc \ 55 third_party/webrtc/base/pathutils.cc \ 56 third_party/webrtc/base/physicalsocketserver.cc \ 57 third_party/webrtc/base/proxydetect.cc \ 58 third_party/webrtc/base/proxyinfo.cc \ 59 third_party/webrtc/base/ratelimiter.cc \ 60 third_party/webrtc/base/ratetracker.cc \ 61 third_party/webrtc/base/sha1.cc \ 62 third_party/webrtc/base/signalthread.cc \ 63 third_party/webrtc/base/socketadapters.cc \ 64 third_party/webrtc/base/socketaddress.cc \ 65 third_party/webrtc/base/socketaddresspair.cc \ 66 third_party/webrtc/base/socketpool.cc \ 67 third_party/webrtc/base/socketstream.cc \ 68 third_party/webrtc/base/ssladapter.cc \ 69 third_party/webrtc/base/sslfingerprint.cc \ 70 third_party/webrtc/base/sslidentity.cc \ 71 third_party/webrtc/base/sslsocketfactory.cc \ 72 third_party/webrtc/base/sslstreamadapter.cc \ 73 third_party/webrtc/base/sslstreamadapterhelper.cc \ 74 third_party/webrtc/base/stream.cc \ 75 third_party/webrtc/base/systeminfo.cc \ 76 third_party/webrtc/base/task.cc \ 77 third_party/webrtc/base/taskparent.cc \ 78 third_party/webrtc/base/taskrunner.cc \ 79 third_party/webrtc/base/thread.cc \ 80 third_party/webrtc/base/thread_checker_impl.cc \ 81 third_party/webrtc/base/timing.cc \ 82 third_party/webrtc/base/unixfilesystem.cc \ 83 third_party/webrtc/base/urlencode.cc \ 84 third_party/webrtc/base/worker.cc \ 85 third_party/webrtc/overrides/webrtc/base/logging.cc \ 86 third_party/webrtc/base/openssladapter.cc \ 87 third_party/webrtc/base/openssldigest.cc \ 88 third_party/webrtc/base/opensslidentity.cc \ 89 third_party/webrtc/base/opensslstreamadapter.cc 90 91 92# Flags passed to both C and C++ files. 93MY_CFLAGS_Debug := \ 94 --param=ssp-buffer-size=4 \ 95 -Werror \ 96 -fno-strict-aliasing \ 97 -Wno-unused-parameter \ 98 -Wno-missing-field-initializers \ 99 -fvisibility=hidden \ 100 -pipe \ 101 -fPIC \ 102 -Wno-unused-local-typedefs \ 103 -fno-builtin-cos \ 104 -fno-builtin-sin \ 105 -fno-builtin-cosf \ 106 -fno-builtin-sinf \ 107 -msse2 \ 108 -mfpmath=sse \ 109 -mmmx \ 110 -m32 \ 111 -ffunction-sections \ 112 -funwind-tables \ 113 -g \ 114 -fno-short-enums \ 115 -finline-limit=64 \ 116 -Wa,--noexecstack \ 117 -U_FORTIFY_SOURCE \ 118 -Wno-extra \ 119 -Wno-ignored-qualifiers \ 120 -Wno-type-limits \ 121 -Wno-unused-but-set-variable \ 122 -fno-stack-protector \ 123 -Os \ 124 -g \ 125 -gdwarf-4 \ 126 -fdata-sections \ 127 -ffunction-sections \ 128 -fomit-frame-pointer \ 129 -funwind-tables 130 131MY_DEFS_Debug := \ 132 '-DV8_DEPRECATION_WARNINGS' \ 133 '-D_FILE_OFFSET_BITS=64' \ 134 '-DNO_TCMALLOC' \ 135 '-DDISABLE_NACL' \ 136 '-DCHROMIUM_BUILD' \ 137 '-DUSE_LIBJPEG_TURBO=1' \ 138 '-DENABLE_WEBRTC=1' \ 139 '-DUSE_PROPRIETARY_CODECS' \ 140 '-DENABLE_BROWSER_CDMS' \ 141 '-DENABLE_CONFIGURATION_POLICY' \ 142 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 143 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 144 '-DENABLE_EGLIMAGE=1' \ 145 '-DCLD_VERSION=1' \ 146 '-DENABLE_PRINTING=1' \ 147 '-DENABLE_MANAGED_USERS=1' \ 148 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 149 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 150 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 151 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 152 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 153 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 154 '-DVIDEO_HOLE=1' \ 155 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 156 '-DWEBRTC_RESTRICT_LOGGING' \ 157 '-DEXPAT_RELATIVE_PATH' \ 158 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 159 '-DWEBRTC_CHROMIUM_BUILD' \ 160 '-DLOGGING_INSIDE_WEBRTC' \ 161 '-DWEBRTC_POSIX' \ 162 '-DWEBRTC_LINUX' \ 163 '-DWEBRTC_ANDROID' \ 164 '-DWEBRTC_ANDROID_OPENSLES' \ 165 '-DFEATURE_ENABLE_SSL' \ 166 '-DLOGGING=1' \ 167 '-DUSE_WEBRTC_DEV_BRANCH' \ 168 '-DNO_MAIN_THREAD_WRAPPING' \ 169 '-DSSL_USE_OPENSSL' \ 170 '-DHAVE_OPENSSL_SSL_H' \ 171 '-DUSE_OPENSSL=1' \ 172 '-DUSE_OPENSSL_CERTS=1' \ 173 '-D__STDC_CONSTANT_MACROS' \ 174 '-D__STDC_FORMAT_MACROS' \ 175 '-DANDROID' \ 176 '-D__GNU_SOURCE=1' \ 177 '-DUSE_STLPORT=1' \ 178 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 179 '-DCHROME_BUILD_ID=""' \ 180 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 181 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 182 '-D_DEBUG' 183 184 185# Include paths placed before CFLAGS/CPPFLAGS 186LOCAL_C_INCLUDES_Debug := \ 187 $(gyp_shared_intermediate_dir) \ 188 $(LOCAL_PATH) \ 189 $(LOCAL_PATH)/third_party/webrtc/overrides \ 190 $(LOCAL_PATH)/third_party \ 191 $(LOCAL_PATH)/third_party/third_party/jsoncpp/overrides/include \ 192 $(LOCAL_PATH)/third_party/third_party/jsoncpp/source/include \ 193 $(LOCAL_PATH)/third_party/boringssl/src/include \ 194 $(PWD)/frameworks/wilhelm/include \ 195 $(PWD)/bionic \ 196 $(PWD)/external/stlport/stlport 197 198 199# Flags passed to only C++ (and not C) files. 200LOCAL_CPPFLAGS_Debug := \ 201 -fno-exceptions \ 202 -fno-rtti \ 203 -fno-threadsafe-statics \ 204 -fvisibility-inlines-hidden \ 205 -Wsign-compare \ 206 -std=gnu++11 \ 207 -Wno-narrowing \ 208 -Wno-literal-suffix \ 209 -Wno-non-virtual-dtor \ 210 -Wno-sign-promo 211 212 213# Flags passed to both C and C++ files. 214MY_CFLAGS_Release := \ 215 --param=ssp-buffer-size=4 \ 216 -Werror \ 217 -fno-strict-aliasing \ 218 -Wno-unused-parameter \ 219 -Wno-missing-field-initializers \ 220 -fvisibility=hidden \ 221 -pipe \ 222 -fPIC \ 223 -Wno-unused-local-typedefs \ 224 -fno-builtin-cos \ 225 -fno-builtin-sin \ 226 -fno-builtin-cosf \ 227 -fno-builtin-sinf \ 228 -msse2 \ 229 -mfpmath=sse \ 230 -mmmx \ 231 -m32 \ 232 -ffunction-sections \ 233 -funwind-tables \ 234 -g \ 235 -fno-short-enums \ 236 -finline-limit=64 \ 237 -Wa,--noexecstack \ 238 -U_FORTIFY_SOURCE \ 239 -Wno-extra \ 240 -Wno-ignored-qualifiers \ 241 -Wno-type-limits \ 242 -Wno-unused-but-set-variable \ 243 -fno-stack-protector \ 244 -Os \ 245 -fno-ident \ 246 -fdata-sections \ 247 -ffunction-sections \ 248 -fomit-frame-pointer \ 249 -funwind-tables 250 251MY_DEFS_Release := \ 252 '-DV8_DEPRECATION_WARNINGS' \ 253 '-D_FILE_OFFSET_BITS=64' \ 254 '-DNO_TCMALLOC' \ 255 '-DDISABLE_NACL' \ 256 '-DCHROMIUM_BUILD' \ 257 '-DUSE_LIBJPEG_TURBO=1' \ 258 '-DENABLE_WEBRTC=1' \ 259 '-DUSE_PROPRIETARY_CODECS' \ 260 '-DENABLE_BROWSER_CDMS' \ 261 '-DENABLE_CONFIGURATION_POLICY' \ 262 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 263 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 264 '-DENABLE_EGLIMAGE=1' \ 265 '-DCLD_VERSION=1' \ 266 '-DENABLE_PRINTING=1' \ 267 '-DENABLE_MANAGED_USERS=1' \ 268 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 269 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 270 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 271 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 272 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 273 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 274 '-DVIDEO_HOLE=1' \ 275 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 276 '-DWEBRTC_RESTRICT_LOGGING' \ 277 '-DEXPAT_RELATIVE_PATH' \ 278 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 279 '-DWEBRTC_CHROMIUM_BUILD' \ 280 '-DLOGGING_INSIDE_WEBRTC' \ 281 '-DWEBRTC_POSIX' \ 282 '-DWEBRTC_LINUX' \ 283 '-DWEBRTC_ANDROID' \ 284 '-DWEBRTC_ANDROID_OPENSLES' \ 285 '-DFEATURE_ENABLE_SSL' \ 286 '-DLOGGING=1' \ 287 '-DUSE_WEBRTC_DEV_BRANCH' \ 288 '-DNO_MAIN_THREAD_WRAPPING' \ 289 '-DSSL_USE_OPENSSL' \ 290 '-DHAVE_OPENSSL_SSL_H' \ 291 '-DUSE_OPENSSL=1' \ 292 '-DUSE_OPENSSL_CERTS=1' \ 293 '-D__STDC_CONSTANT_MACROS' \ 294 '-D__STDC_FORMAT_MACROS' \ 295 '-DANDROID' \ 296 '-D__GNU_SOURCE=1' \ 297 '-DUSE_STLPORT=1' \ 298 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 299 '-DCHROME_BUILD_ID=""' \ 300 '-DNDEBUG' \ 301 '-DNVALGRIND' \ 302 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 303 '-D_FORTIFY_SOURCE=2' 304 305 306# Include paths placed before CFLAGS/CPPFLAGS 307LOCAL_C_INCLUDES_Release := \ 308 $(gyp_shared_intermediate_dir) \ 309 $(LOCAL_PATH) \ 310 $(LOCAL_PATH)/third_party/webrtc/overrides \ 311 $(LOCAL_PATH)/third_party \ 312 $(LOCAL_PATH)/third_party/third_party/jsoncpp/overrides/include \ 313 $(LOCAL_PATH)/third_party/third_party/jsoncpp/source/include \ 314 $(LOCAL_PATH)/third_party/boringssl/src/include \ 315 $(PWD)/frameworks/wilhelm/include \ 316 $(PWD)/bionic \ 317 $(PWD)/external/stlport/stlport 318 319 320# Flags passed to only C++ (and not C) files. 321LOCAL_CPPFLAGS_Release := \ 322 -fno-exceptions \ 323 -fno-rtti \ 324 -fno-threadsafe-statics \ 325 -fvisibility-inlines-hidden \ 326 -Wsign-compare \ 327 -std=gnu++11 \ 328 -Wno-narrowing \ 329 -Wno-literal-suffix \ 330 -Wno-non-virtual-dtor \ 331 -Wno-sign-promo 332 333 334LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 335LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 336LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 337LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 338### Rules for final target. 339 340LOCAL_SHARED_LIBRARIES := \ 341 libstlport \ 342 libdl 343 344# Add target alias to "gyp_all_modules" target. 345.PHONY: gyp_all_modules 346gyp_all_modules: third_party_webrtc_base_rtc_base_gyp 347 348# Alias gyp target name. 349.PHONY: rtc_base 350rtc_base: third_party_webrtc_base_rtc_base_gyp 351 352include $(BUILD_STATIC_LIBRARY) 353