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_libjingle_libjingle_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 gyp_intermediate_dir := $(call local-intermediates-dir) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,GYP,third_party_expat_expat_gyp)/expat.stamp 15 16 GYP_GENERATED_OUTPUTS := 17 18 # Make sure our deps and generated files are built first. 19 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 20 21 LOCAL_CPP_EXTENSION := .cc 22 LOCAL_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_SRC_FILES := \ 27 third_party/libjingle/overrides/talk/base/logging.cc \ 28 third_party/libjingle/source/talk/base/asyncfile.cc \ 29 third_party/libjingle/source/talk/base/asynchttprequest.cc \ 30 third_party/libjingle/source/talk/base/asyncsocket.cc \ 31 third_party/libjingle/source/talk/base/asynctcpsocket.cc \ 32 third_party/libjingle/source/talk/base/asyncudpsocket.cc \ 33 third_party/libjingle/source/talk/base/autodetectproxy.cc \ 34 third_party/libjingle/source/talk/base/base64.cc \ 35 third_party/libjingle/source/talk/base/bytebuffer.cc \ 36 third_party/libjingle/source/talk/base/checks.cc \ 37 third_party/libjingle/source/talk/base/common.cc \ 38 third_party/libjingle/source/talk/base/cpumonitor.cc \ 39 third_party/libjingle/source/talk/base/crc32.cc \ 40 third_party/libjingle/source/talk/base/diskcache.cc \ 41 third_party/libjingle/source/talk/base/event.cc \ 42 third_party/libjingle/source/talk/base/fileutils.cc \ 43 third_party/libjingle/source/talk/base/firewallsocketserver.cc \ 44 third_party/libjingle/source/talk/base/flags.cc \ 45 third_party/libjingle/source/talk/base/helpers.cc \ 46 third_party/libjingle/source/talk/base/httpbase.cc \ 47 third_party/libjingle/source/talk/base/httpclient.cc \ 48 third_party/libjingle/source/talk/base/httpcommon.cc \ 49 third_party/libjingle/source/talk/base/httprequest.cc \ 50 third_party/libjingle/source/talk/base/ipaddress.cc \ 51 third_party/libjingle/source/talk/base/md5.cc \ 52 third_party/libjingle/source/talk/base/messagedigest.cc \ 53 third_party/libjingle/source/talk/base/messagehandler.cc \ 54 third_party/libjingle/source/talk/base/messagequeue.cc \ 55 third_party/libjingle/source/talk/base/nethelpers.cc \ 56 third_party/libjingle/source/talk/base/network.cc \ 57 third_party/libjingle/source/talk/base/nssidentity.cc \ 58 third_party/libjingle/source/talk/base/nssstreamadapter.cc \ 59 third_party/libjingle/source/talk/base/pathutils.cc \ 60 third_party/libjingle/source/talk/base/physicalsocketserver.cc \ 61 third_party/libjingle/source/talk/base/proxydetect.cc \ 62 third_party/libjingle/source/talk/base/proxyinfo.cc \ 63 third_party/libjingle/source/talk/base/ratelimiter.cc \ 64 third_party/libjingle/source/talk/base/ratetracker.cc \ 65 third_party/libjingle/source/talk/base/sha1.cc \ 66 third_party/libjingle/source/talk/base/signalthread.cc \ 67 third_party/libjingle/source/talk/base/socketadapters.cc \ 68 third_party/libjingle/source/talk/base/socketaddress.cc \ 69 third_party/libjingle/source/talk/base/socketaddresspair.cc \ 70 third_party/libjingle/source/talk/base/socketpool.cc \ 71 third_party/libjingle/source/talk/base/socketstream.cc \ 72 third_party/libjingle/source/talk/base/ssladapter.cc \ 73 third_party/libjingle/source/talk/base/sslidentity.cc \ 74 third_party/libjingle/source/talk/base/sslsocketfactory.cc \ 75 third_party/libjingle/source/talk/base/sslstreamadapter.cc \ 76 third_party/libjingle/source/talk/base/sslstreamadapterhelper.cc \ 77 third_party/libjingle/source/talk/base/stream.cc \ 78 third_party/libjingle/source/talk/base/stringencode.cc \ 79 third_party/libjingle/source/talk/base/stringutils.cc \ 80 third_party/libjingle/source/talk/base/systeminfo.cc \ 81 third_party/libjingle/source/talk/base/task.cc \ 82 third_party/libjingle/source/talk/base/taskparent.cc \ 83 third_party/libjingle/source/talk/base/taskrunner.cc \ 84 third_party/libjingle/source/talk/base/thread.cc \ 85 third_party/libjingle/source/talk/base/timeutils.cc \ 86 third_party/libjingle/source/talk/base/timing.cc \ 87 third_party/libjingle/source/talk/base/urlencode.cc \ 88 third_party/libjingle/source/talk/base/worker.cc \ 89 third_party/libjingle/source/talk/p2p/base/asyncstuntcpsocket.cc \ 90 third_party/libjingle/source/talk/p2p/base/basicpacketsocketfactory.cc \ 91 third_party/libjingle/source/talk/p2p/base/dtlstransportchannel.cc \ 92 third_party/libjingle/source/talk/p2p/base/p2ptransport.cc \ 93 third_party/libjingle/source/talk/p2p/base/p2ptransportchannel.cc \ 94 third_party/libjingle/source/talk/p2p/base/parsing.cc \ 95 third_party/libjingle/source/talk/p2p/base/port.cc \ 96 third_party/libjingle/source/talk/p2p/base/portallocator.cc \ 97 third_party/libjingle/source/talk/p2p/base/portallocatorsessionproxy.cc \ 98 third_party/libjingle/source/talk/p2p/base/portproxy.cc \ 99 third_party/libjingle/source/talk/p2p/base/pseudotcp.cc \ 100 third_party/libjingle/source/talk/p2p/base/rawtransport.cc \ 101 third_party/libjingle/source/talk/p2p/base/rawtransportchannel.cc \ 102 third_party/libjingle/source/talk/p2p/base/relayport.cc \ 103 third_party/libjingle/source/talk/p2p/base/session.cc \ 104 third_party/libjingle/source/talk/p2p/base/sessiondescription.cc \ 105 third_party/libjingle/source/talk/p2p/base/sessionmanager.cc \ 106 third_party/libjingle/source/talk/p2p/base/sessionmessages.cc \ 107 third_party/libjingle/source/talk/p2p/base/stun.cc \ 108 third_party/libjingle/source/talk/p2p/base/stunport.cc \ 109 third_party/libjingle/source/talk/p2p/base/stunrequest.cc \ 110 third_party/libjingle/source/talk/p2p/base/tcpport.cc \ 111 third_party/libjingle/source/talk/p2p/base/transport.cc \ 112 third_party/libjingle/source/talk/p2p/base/transportchannel.cc \ 113 third_party/libjingle/source/talk/p2p/base/transportchannelproxy.cc \ 114 third_party/libjingle/source/talk/p2p/base/transportdescription.cc \ 115 third_party/libjingle/source/talk/p2p/base/transportdescriptionfactory.cc \ 116 third_party/libjingle/source/talk/p2p/base/turnport.cc \ 117 third_party/libjingle/source/talk/p2p/client/basicportallocator.cc \ 118 third_party/libjingle/source/talk/p2p/client/httpportallocator.cc \ 119 third_party/libjingle/source/talk/p2p/client/socketmonitor.cc \ 120 third_party/libjingle/source/talk/xmllite/qname.cc \ 121 third_party/libjingle/source/talk/xmllite/xmlbuilder.cc \ 122 third_party/libjingle/source/talk/xmllite/xmlconstants.cc \ 123 third_party/libjingle/source/talk/xmllite/xmlelement.cc \ 124 third_party/libjingle/source/talk/xmllite/xmlnsstack.cc \ 125 third_party/libjingle/source/talk/xmllite/xmlparser.cc \ 126 third_party/libjingle/source/talk/xmllite/xmlprinter.cc \ 127 third_party/libjingle/source/talk/xmpp/constants.cc \ 128 third_party/libjingle/source/talk/xmpp/jid.cc \ 129 third_party/libjingle/source/talk/xmpp/saslmechanism.cc \ 130 third_party/libjingle/source/talk/xmpp/xmppclient.cc \ 131 third_party/libjingle/source/talk/xmpp/xmppengineimpl.cc \ 132 third_party/libjingle/source/talk/xmpp/xmppengineimpl_iq.cc \ 133 third_party/libjingle/source/talk/xmpp/xmpplogintask.cc \ 134 third_party/libjingle/source/talk/xmpp/xmppstanzaparser.cc \ 135 third_party/libjingle/source/talk/xmpp/xmpptask.cc \ 136 third_party/libjingle/source/talk/base/unixfilesystem.cc \ 137 third_party/libjingle/source/talk/base/ifaddrs-android.cc \ 138 third_party/libjingle/source/talk/base/linux.cc \ 139 third_party/libjingle/source/talk/base/openssladapter.cc \ 140 third_party/libjingle/source/talk/base/openssldigest.cc \ 141 third_party/libjingle/source/talk/base/opensslidentity.cc \ 142 third_party/libjingle/source/talk/base/opensslstreamadapter.cc 143 144 145 # Flags passed to both C and C++ files. 146 MY_CFLAGS_Debug := \ 147 --param=ssp-buffer-size=4 \ 148 -fno-exceptions \ 149 -fno-strict-aliasing \ 150 -Wno-unused-parameter \ 151 -Wno-missing-field-initializers \ 152 -fvisibility=hidden \ 153 -pipe \ 154 -fPIC \ 155 -Wno-format \ 156 -m32 \ 157 -mmmx \ 158 -march=pentium4 \ 159 -msse2 \ 160 -mfpmath=sse \ 161 -fuse-ld=gold \ 162 -ffunction-sections \ 163 -funwind-tables \ 164 -g \ 165 -fno-short-enums \ 166 -finline-limit=64 \ 167 -Wa,--noexecstack \ 168 -U_FORTIFY_SOURCE \ 169 -Wno-extra \ 170 -Wno-ignored-qualifiers \ 171 -Wno-type-limits \ 172 -fno-stack-protector \ 173 -Wno-address \ 174 -Wno-format-security \ 175 -Wno-return-type \ 176 -Wno-sequence-point \ 177 -Os \ 178 -g \ 179 -fomit-frame-pointer \ 180 -fdata-sections \ 181 -ffunction-sections 182 183 MY_DEFS_Debug := \ 184 '-DEXPAT_RELATIVE_PATH' \ 185 '-DFEATURE_ENABLE_SSL' \ 186 '-DGTEST_RELATIVE_PATH' \ 187 '-DHAVE_SRTP' \ 188 '-DHAVE_WEBRTC_VIDEO' \ 189 '-DHAVE_WEBRTC_VOICE' \ 190 '-DJSONCPP_RELATIVE_PATH' \ 191 '-DLOGGING_INSIDE_LIBJINGLE' \ 192 '-DNO_MAIN_THREAD_WRAPPING' \ 193 '-DNO_SOUND_SYSTEM' \ 194 '-DSRTP_RELATIVE_PATH' \ 195 '-DUSE_WEBRTC_DEV_BRANCH' \ 196 '-DV8_DEPRECATION_WARNINGS' \ 197 '-D_FILE_OFFSET_BITS=64' \ 198 '-DNO_TCMALLOC' \ 199 '-DDISABLE_NACL' \ 200 '-DLIBPEERCONNECTION_LIB=1' \ 201 '-DSSL_USE_OPENSSL' \ 202 '-DHAVE_OPENSSL_SSL_H' \ 203 '-DPOSIX' \ 204 '-DCHROMIUM_BUILD' \ 205 '-DUSE_LIBJPEG_TURBO=1' \ 206 '-DUSE_PROPRIETARY_CODECS' \ 207 '-DENABLE_CONFIGURATION_POLICY' \ 208 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 209 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 210 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 211 '-DUSE_OPENSSL=1' \ 212 '-DENABLE_EGLIMAGE=1' \ 213 '-DCLD_VERSION=1' \ 214 '-DENABLE_PRINTING=1' \ 215 '-DENABLE_MANAGED_USERS=1' \ 216 '-DFEATURE_ENABLE_VOICEMAIL' \ 217 '-DANDROID' \ 218 '-D__GNU_SOURCE=1' \ 219 '-DUSE_STLPORT=1' \ 220 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 221 '-DCHROME_BUILD_ID=""' \ 222 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 223 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 224 '-D_DEBUG' 225 226 227 # Include paths placed before CFLAGS/CPPFLAGS 228 LOCAL_C_INCLUDES_Debug := \ 229 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 230 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 231 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 232 $(LOCAL_PATH)/third_party/libjingle/overrides \ 233 $(LOCAL_PATH)/third_party/libjingle/source \ 234 $(LOCAL_PATH)/testing/gtest/include \ 235 $(LOCAL_PATH)/third_party \ 236 $(LOCAL_PATH)/third_party/libyuv/include \ 237 $(LOCAL_PATH)/third_party/usrsctp \ 238 $(LOCAL_PATH)/third_party/webrtc \ 239 $(LOCAL_PATH) \ 240 $(PWD)/external/expat/lib \ 241 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 242 $(PWD)/frameworks/wilhelm/include \ 243 $(PWD)/bionic \ 244 $(PWD)/external/stlport/stlport 245 246 247 # Flags passed to only C++ (and not C) files. 248 LOCAL_CPPFLAGS_Debug := \ 249 -fno-rtti \ 250 -fno-threadsafe-statics \ 251 -fvisibility-inlines-hidden \ 252 -Wno-deprecated \ 253 -Wno-error=c++0x-compat \ 254 -Wno-non-virtual-dtor \ 255 -Wno-sign-promo \ 256 -Wno-non-virtual-dtor 257 258 259 # Flags passed to both C and C++ files. 260 MY_CFLAGS_Release := \ 261 --param=ssp-buffer-size=4 \ 262 -fno-exceptions \ 263 -fno-strict-aliasing \ 264 -Wno-unused-parameter \ 265 -Wno-missing-field-initializers \ 266 -fvisibility=hidden \ 267 -pipe \ 268 -fPIC \ 269 -Wno-format \ 270 -m32 \ 271 -mmmx \ 272 -march=pentium4 \ 273 -msse2 \ 274 -mfpmath=sse \ 275 -fuse-ld=gold \ 276 -ffunction-sections \ 277 -funwind-tables \ 278 -g \ 279 -fno-short-enums \ 280 -finline-limit=64 \ 281 -Wa,--noexecstack \ 282 -U_FORTIFY_SOURCE \ 283 -Wno-extra \ 284 -Wno-ignored-qualifiers \ 285 -Wno-type-limits \ 286 -fno-stack-protector \ 287 -Wno-address \ 288 -Wno-format-security \ 289 -Wno-return-type \ 290 -Wno-sequence-point \ 291 -Os \ 292 -fno-ident \ 293 -fdata-sections \ 294 -ffunction-sections \ 295 -fomit-frame-pointer \ 296 -fno-unwind-tables \ 297 -fno-asynchronous-unwind-tables 298 299 MY_DEFS_Release := \ 300 '-DEXPAT_RELATIVE_PATH' \ 301 '-DFEATURE_ENABLE_SSL' \ 302 '-DGTEST_RELATIVE_PATH' \ 303 '-DHAVE_SRTP' \ 304 '-DHAVE_WEBRTC_VIDEO' \ 305 '-DHAVE_WEBRTC_VOICE' \ 306 '-DJSONCPP_RELATIVE_PATH' \ 307 '-DLOGGING_INSIDE_LIBJINGLE' \ 308 '-DNO_MAIN_THREAD_WRAPPING' \ 309 '-DNO_SOUND_SYSTEM' \ 310 '-DSRTP_RELATIVE_PATH' \ 311 '-DUSE_WEBRTC_DEV_BRANCH' \ 312 '-DV8_DEPRECATION_WARNINGS' \ 313 '-D_FILE_OFFSET_BITS=64' \ 314 '-DNO_TCMALLOC' \ 315 '-DDISABLE_NACL' \ 316 '-DLIBPEERCONNECTION_LIB=1' \ 317 '-DSSL_USE_OPENSSL' \ 318 '-DHAVE_OPENSSL_SSL_H' \ 319 '-DPOSIX' \ 320 '-DCHROMIUM_BUILD' \ 321 '-DUSE_LIBJPEG_TURBO=1' \ 322 '-DUSE_PROPRIETARY_CODECS' \ 323 '-DENABLE_CONFIGURATION_POLICY' \ 324 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 325 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 326 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 327 '-DUSE_OPENSSL=1' \ 328 '-DENABLE_EGLIMAGE=1' \ 329 '-DCLD_VERSION=1' \ 330 '-DENABLE_PRINTING=1' \ 331 '-DENABLE_MANAGED_USERS=1' \ 332 '-DFEATURE_ENABLE_VOICEMAIL' \ 333 '-DANDROID' \ 334 '-D__GNU_SOURCE=1' \ 335 '-DUSE_STLPORT=1' \ 336 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 337 '-DCHROME_BUILD_ID=""' \ 338 '-DNDEBUG' \ 339 '-DNVALGRIND' \ 340 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 341 342 343 # Include paths placed before CFLAGS/CPPFLAGS 344 LOCAL_C_INCLUDES_Release := \ 345 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 346 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 347 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 348 $(LOCAL_PATH)/third_party/libjingle/overrides \ 349 $(LOCAL_PATH)/third_party/libjingle/source \ 350 $(LOCAL_PATH)/testing/gtest/include \ 351 $(LOCAL_PATH)/third_party \ 352 $(LOCAL_PATH)/third_party/libyuv/include \ 353 $(LOCAL_PATH)/third_party/usrsctp \ 354 $(LOCAL_PATH)/third_party/webrtc \ 355 $(LOCAL_PATH) \ 356 $(PWD)/external/expat/lib \ 357 $(LOCAL_PATH)/third_party/openssl/openssl/include \ 358 $(PWD)/frameworks/wilhelm/include \ 359 $(PWD)/bionic \ 360 $(PWD)/external/stlport/stlport 361 362 363 # Flags passed to only C++ (and not C) files. 364 LOCAL_CPPFLAGS_Release := \ 365 -fno-rtti \ 366 -fno-threadsafe-statics \ 367 -fvisibility-inlines-hidden \ 368 -Wno-deprecated \ 369 -Wno-error=c++0x-compat \ 370 -Wno-non-virtual-dtor \ 371 -Wno-sign-promo \ 372 -Wno-non-virtual-dtor 373 374 375 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 376 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 377 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 378 ### Rules for final target. 379 380 LOCAL_LDFLAGS_Debug := \ 381 -Wl,-z,now \ 382 -Wl,-z,relro \ 383 -Wl,-z,noexecstack \ 384 -fPIC \ 385 -m32 \ 386 -fuse-ld=gold \ 387 -nostdlib \ 388 -Wl,--no-undefined \ 389 -Wl,--exclude-libs=ALL \ 390 -Wl,--fatal-warnings \ 391 -Wl,--gc-sections \ 392 -Wl,--warn-shared-textrel \ 393 -Wl,-O1 \ 394 -Wl,--as-needed 395 396 397 LOCAL_LDFLAGS_Release := \ 398 -Wl,-z,now \ 399 -Wl,-z,relro \ 400 -Wl,-z,noexecstack \ 401 -fPIC \ 402 -m32 \ 403 -fuse-ld=gold \ 404 -nostdlib \ 405 -Wl,--no-undefined \ 406 -Wl,--exclude-libs=ALL \ 407 -Wl,-O1 \ 408 -Wl,--as-needed \ 409 -Wl,--gc-sections \ 410 -Wl,--fatal-warnings \ 411 -Wl,--warn-shared-textrel 412 413 414 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 415 416 LOCAL_STATIC_LIBRARIES := 417 418 # Enable grouping to fix circular references 419 LOCAL_GROUP_STATIC_LIBRARIES := true 420 421 LOCAL_SHARED_LIBRARIES := \ 422 libstlport \ 423 libdl 424 425 # Add target alias to "gyp_all_modules" target. 426 .PHONY: gyp_all_modules 427 gyp_all_modules: third_party_libjingle_libjingle_gyp 428 429 # Alias gyp target name. 430 .PHONY: libjingle 431 libjingle: third_party_libjingle_libjingle_gyp 432 433 include $(BUILD_STATIC_LIBRARY) 434