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_base_rtc_base_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/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. 93 MY_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 -ffunction-sections \ 108 -funwind-tables \ 109 -g \ 110 -fno-short-enums \ 111 -finline-limit=64 \ 112 -Wa,--noexecstack \ 113 -U_FORTIFY_SOURCE \ 114 -Wno-extra \ 115 -Wno-ignored-qualifiers \ 116 -Wno-type-limits \ 117 -Wno-unused-but-set-variable \ 118 -Os \ 119 -g \ 120 -gdwarf-4 \ 121 -fdata-sections \ 122 -ffunction-sections \ 123 -funwind-tables 124 125 MY_DEFS_Debug := \ 126 '-DV8_DEPRECATION_WARNINGS' \ 127 '-D_FILE_OFFSET_BITS=64' \ 128 '-DNO_TCMALLOC' \ 129 '-DDISABLE_NACL' \ 130 '-DCHROMIUM_BUILD' \ 131 '-DUSE_LIBJPEG_TURBO=1' \ 132 '-DENABLE_WEBRTC=1' \ 133 '-DUSE_PROPRIETARY_CODECS' \ 134 '-DENABLE_BROWSER_CDMS' \ 135 '-DENABLE_CONFIGURATION_POLICY' \ 136 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 137 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 138 '-DENABLE_EGLIMAGE=1' \ 139 '-DCLD_VERSION=1' \ 140 '-DENABLE_PRINTING=1' \ 141 '-DENABLE_MANAGED_USERS=1' \ 142 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 143 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 144 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 145 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 146 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 147 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 148 '-DVIDEO_HOLE=1' \ 149 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 150 '-DWEBRTC_RESTRICT_LOGGING' \ 151 '-DEXPAT_RELATIVE_PATH' \ 152 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 153 '-DWEBRTC_CHROMIUM_BUILD' \ 154 '-DLOGGING_INSIDE_WEBRTC' \ 155 '-DWEBRTC_POSIX' \ 156 '-DWEBRTC_LINUX' \ 157 '-DWEBRTC_ANDROID' \ 158 '-DWEBRTC_ANDROID_OPENSLES' \ 159 '-DFEATURE_ENABLE_SSL' \ 160 '-DLOGGING=1' \ 161 '-DUSE_WEBRTC_DEV_BRANCH' \ 162 '-DNO_MAIN_THREAD_WRAPPING' \ 163 '-DSSL_USE_OPENSSL' \ 164 '-DHAVE_OPENSSL_SSL_H' \ 165 '-DUSE_OPENSSL=1' \ 166 '-DUSE_OPENSSL_CERTS=1' \ 167 '-D__STDC_CONSTANT_MACROS' \ 168 '-D__STDC_FORMAT_MACROS' \ 169 '-DANDROID' \ 170 '-D__GNU_SOURCE=1' \ 171 '-DUSE_STLPORT=1' \ 172 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 173 '-DCHROME_BUILD_ID=""' \ 174 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 175 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 176 '-D_DEBUG' 177 178 179 # Include paths placed before CFLAGS/CPPFLAGS 180 LOCAL_C_INCLUDES_Debug := \ 181 $(gyp_shared_intermediate_dir) \ 182 $(LOCAL_PATH) \ 183 $(LOCAL_PATH)/third_party/webrtc/overrides \ 184 $(LOCAL_PATH)/third_party \ 185 $(LOCAL_PATH)/third_party/third_party/jsoncpp/overrides/include \ 186 $(LOCAL_PATH)/third_party/third_party/jsoncpp/source/include \ 187 $(LOCAL_PATH)/third_party/boringssl/src/include \ 188 $(PWD)/frameworks/wilhelm/include \ 189 $(PWD)/bionic \ 190 $(PWD)/external/stlport/stlport 191 192 193 # Flags passed to only C++ (and not C) files. 194 LOCAL_CPPFLAGS_Debug := \ 195 -fno-exceptions \ 196 -fno-rtti \ 197 -fno-threadsafe-statics \ 198 -fvisibility-inlines-hidden \ 199 -Wsign-compare \ 200 -std=gnu++11 \ 201 -Wno-narrowing \ 202 -Wno-literal-suffix \ 203 -Wno-non-virtual-dtor \ 204 -Wno-sign-promo 205 206 207 # Flags passed to both C and C++ files. 208 MY_CFLAGS_Release := \ 209 --param=ssp-buffer-size=4 \ 210 -Werror \ 211 -fno-strict-aliasing \ 212 -Wno-unused-parameter \ 213 -Wno-missing-field-initializers \ 214 -fvisibility=hidden \ 215 -pipe \ 216 -fPIC \ 217 -Wno-unused-local-typedefs \ 218 -fno-builtin-cos \ 219 -fno-builtin-sin \ 220 -fno-builtin-cosf \ 221 -fno-builtin-sinf \ 222 -ffunction-sections \ 223 -funwind-tables \ 224 -g \ 225 -fno-short-enums \ 226 -finline-limit=64 \ 227 -Wa,--noexecstack \ 228 -U_FORTIFY_SOURCE \ 229 -Wno-extra \ 230 -Wno-ignored-qualifiers \ 231 -Wno-type-limits \ 232 -Wno-unused-but-set-variable \ 233 -Os \ 234 -fno-ident \ 235 -fdata-sections \ 236 -ffunction-sections \ 237 -funwind-tables 238 239 MY_DEFS_Release := \ 240 '-DV8_DEPRECATION_WARNINGS' \ 241 '-D_FILE_OFFSET_BITS=64' \ 242 '-DNO_TCMALLOC' \ 243 '-DDISABLE_NACL' \ 244 '-DCHROMIUM_BUILD' \ 245 '-DUSE_LIBJPEG_TURBO=1' \ 246 '-DENABLE_WEBRTC=1' \ 247 '-DUSE_PROPRIETARY_CODECS' \ 248 '-DENABLE_BROWSER_CDMS' \ 249 '-DENABLE_CONFIGURATION_POLICY' \ 250 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 251 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 252 '-DENABLE_EGLIMAGE=1' \ 253 '-DCLD_VERSION=1' \ 254 '-DENABLE_PRINTING=1' \ 255 '-DENABLE_MANAGED_USERS=1' \ 256 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 257 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 258 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 259 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 260 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 261 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 262 '-DVIDEO_HOLE=1' \ 263 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 264 '-DWEBRTC_RESTRICT_LOGGING' \ 265 '-DEXPAT_RELATIVE_PATH' \ 266 '-DWEBRTC_MODULE_UTILITY_VIDEO' \ 267 '-DWEBRTC_CHROMIUM_BUILD' \ 268 '-DLOGGING_INSIDE_WEBRTC' \ 269 '-DWEBRTC_POSIX' \ 270 '-DWEBRTC_LINUX' \ 271 '-DWEBRTC_ANDROID' \ 272 '-DWEBRTC_ANDROID_OPENSLES' \ 273 '-DFEATURE_ENABLE_SSL' \ 274 '-DLOGGING=1' \ 275 '-DUSE_WEBRTC_DEV_BRANCH' \ 276 '-DNO_MAIN_THREAD_WRAPPING' \ 277 '-DSSL_USE_OPENSSL' \ 278 '-DHAVE_OPENSSL_SSL_H' \ 279 '-DUSE_OPENSSL=1' \ 280 '-DUSE_OPENSSL_CERTS=1' \ 281 '-D__STDC_CONSTANT_MACROS' \ 282 '-D__STDC_FORMAT_MACROS' \ 283 '-DANDROID' \ 284 '-D__GNU_SOURCE=1' \ 285 '-DUSE_STLPORT=1' \ 286 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 287 '-DCHROME_BUILD_ID=""' \ 288 '-DNDEBUG' \ 289 '-DNVALGRIND' \ 290 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 291 '-D_FORTIFY_SOURCE=2' 292 293 294 # Include paths placed before CFLAGS/CPPFLAGS 295 LOCAL_C_INCLUDES_Release := \ 296 $(gyp_shared_intermediate_dir) \ 297 $(LOCAL_PATH) \ 298 $(LOCAL_PATH)/third_party/webrtc/overrides \ 299 $(LOCAL_PATH)/third_party \ 300 $(LOCAL_PATH)/third_party/third_party/jsoncpp/overrides/include \ 301 $(LOCAL_PATH)/third_party/third_party/jsoncpp/source/include \ 302 $(LOCAL_PATH)/third_party/boringssl/src/include \ 303 $(PWD)/frameworks/wilhelm/include \ 304 $(PWD)/bionic \ 305 $(PWD)/external/stlport/stlport 306 307 308 # Flags passed to only C++ (and not C) files. 309 LOCAL_CPPFLAGS_Release := \ 310 -fno-exceptions \ 311 -fno-rtti \ 312 -fno-threadsafe-statics \ 313 -fvisibility-inlines-hidden \ 314 -Wsign-compare \ 315 -std=gnu++11 \ 316 -Wno-narrowing \ 317 -Wno-literal-suffix \ 318 -Wno-non-virtual-dtor \ 319 -Wno-sign-promo 320 321 322 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 323 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 324 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 325 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 326 ### Rules for final target. 327 328 LOCAL_SHARED_LIBRARIES := \ 329 libstlport \ 330 libdl 331 332 # Add target alias to "gyp_all_modules" target. 333 .PHONY: gyp_all_modules 334 gyp_all_modules: third_party_webrtc_base_rtc_base_gyp 335 336 # Alias gyp target name. 337 .PHONY: rtc_base 338 rtc_base: third_party_webrtc_base_rtc_base_gyp 339 340 include $(BUILD_STATIC_LIBRARY) 341