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