# # libjingle # Copyright 2012, Google Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # 3. The name of the author may not be used to endorse or promote products # derived from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # { 'includes': ['build/common.gypi'], 'conditions': [ ['os_posix == 1 and OS != "mac" and OS != "ios"', { 'conditions': [ ['sysroot!=""', { 'variables': { 'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"', }, }, { 'variables': { 'pkg-config': 'pkg-config' }, }], ], }], ['OS=="linux" or OS=="android"', { 'targets': [ { 'target_name': 'libjingle_peerconnection_so', 'type': 'loadable_module', 'dependencies': [ 'libjingle_peerconnection', '<(DEPTH)/third_party/icu/icu.gyp:icuuc', ], 'sources': [ 'app/webrtc/java/jni/peerconnection_jni.cc' ], 'include_dirs': [ '<(DEPTH)/third_party/libyuv/include', ], 'conditions': [ ['OS=="linux"', { 'defines': [ 'HAVE_GTK', ], 'include_dirs': [ '<(java_home)/include', '<(java_home)/include/linux', ], 'link_settings': { 'libraries': [ ' <(build_jar_log) 2>&1 || ' ' { cat <(build_jar_log) ; exit 1; } }' ], }, ], 'dependencies': [ 'libjingle_peerconnection_so', ], }, ], }], ['OS=="ios" or (OS=="mac" and target_arch!="ia32" and mac_sdk>="10.7")', { # The >= 10.7 above is required for ARC. 'targets': [ { 'target_name': 'libjingle_peerconnection_objc', 'type': 'static_library', 'dependencies': [ 'libjingle_peerconnection', ], 'sources': [ 'app/webrtc/objc/RTCAudioTrack+Internal.h', 'app/webrtc/objc/RTCAudioTrack.mm', 'app/webrtc/objc/RTCDataChannel+Internal.h', 'app/webrtc/objc/RTCDataChannel.mm', 'app/webrtc/objc/RTCEnumConverter.h', 'app/webrtc/objc/RTCEnumConverter.mm', 'app/webrtc/objc/RTCI420Frame.mm', 'app/webrtc/objc/RTCICECandidate+Internal.h', 'app/webrtc/objc/RTCICECandidate.mm', 'app/webrtc/objc/RTCICEServer+Internal.h', 'app/webrtc/objc/RTCICEServer.mm', 'app/webrtc/objc/RTCMediaConstraints+Internal.h', 'app/webrtc/objc/RTCMediaConstraints.mm', 'app/webrtc/objc/RTCMediaConstraintsNative.cc', 'app/webrtc/objc/RTCMediaConstraintsNative.h', 'app/webrtc/objc/RTCMediaSource+Internal.h', 'app/webrtc/objc/RTCMediaSource.mm', 'app/webrtc/objc/RTCMediaStream+Internal.h', 'app/webrtc/objc/RTCMediaStream.mm', 'app/webrtc/objc/RTCMediaStreamTrack+Internal.h', 'app/webrtc/objc/RTCMediaStreamTrack.mm', 'app/webrtc/objc/RTCPair.m', 'app/webrtc/objc/RTCPeerConnection+Internal.h', 'app/webrtc/objc/RTCPeerConnection.mm', 'app/webrtc/objc/RTCPeerConnectionFactory.mm', 'app/webrtc/objc/RTCPeerConnectionObserver.h', 'app/webrtc/objc/RTCPeerConnectionObserver.mm', 'app/webrtc/objc/RTCSessionDescription+Internal.h', 'app/webrtc/objc/RTCSessionDescription.mm', 'app/webrtc/objc/RTCStatsReport+Internal.h', 'app/webrtc/objc/RTCStatsReport.mm', 'app/webrtc/objc/RTCVideoCapturer+Internal.h', 'app/webrtc/objc/RTCVideoCapturer.mm', 'app/webrtc/objc/RTCVideoRenderer+Internal.h', 'app/webrtc/objc/RTCVideoRenderer.mm', 'app/webrtc/objc/RTCVideoSource+Internal.h', 'app/webrtc/objc/RTCVideoSource.mm', 'app/webrtc/objc/RTCVideoTrack+Internal.h', 'app/webrtc/objc/RTCVideoTrack.mm', 'app/webrtc/objc/public/RTCAudioSource.h', 'app/webrtc/objc/public/RTCAudioTrack.h', 'app/webrtc/objc/public/RTCDataChannel.h', 'app/webrtc/objc/public/RTCI420Frame.h', 'app/webrtc/objc/public/RTCICECandidate.h', 'app/webrtc/objc/public/RTCICEServer.h', 'app/webrtc/objc/public/RTCMediaConstraints.h', 'app/webrtc/objc/public/RTCMediaSource.h', 'app/webrtc/objc/public/RTCMediaStream.h', 'app/webrtc/objc/public/RTCMediaStreamTrack.h', 'app/webrtc/objc/public/RTCPair.h', 'app/webrtc/objc/public/RTCPeerConnection.h', 'app/webrtc/objc/public/RTCPeerConnectionDelegate.h', 'app/webrtc/objc/public/RTCPeerConnectionFactory.h', 'app/webrtc/objc/public/RTCSessionDescription.h', 'app/webrtc/objc/public/RTCSessionDescriptionDelegate.h', 'app/webrtc/objc/public/RTCStatsDelegate.h', 'app/webrtc/objc/public/RTCStatsReport.h', 'app/webrtc/objc/public/RTCTypes.h', 'app/webrtc/objc/public/RTCVideoCapturer.h', 'app/webrtc/objc/public/RTCVideoRenderer.h', 'app/webrtc/objc/public/RTCVideoRendererDelegate.h', 'app/webrtc/objc/public/RTCVideoSource.h', 'app/webrtc/objc/public/RTCVideoTrack.h', ], 'direct_dependent_settings': { 'include_dirs': [ '<(DEPTH)/talk/app/webrtc/objc/public', ], }, 'include_dirs': [ '<(DEPTH)/talk/app/webrtc', '<(DEPTH)/talk/app/webrtc/objc', '<(DEPTH)/talk/app/webrtc/objc/public', ], 'link_settings': { 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', '-lstdc++', ], }, 'xcode_settings': { 'CLANG_ENABLE_OBJC_ARC': 'YES', # common.gypi enables this for mac but we want this to be disabled # like it is for ios. 'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'NO', }, 'conditions': [ ['OS=="mac"', { 'xcode_settings': { # Need to build against 10.7 framework for full ARC support # on OSX. 'MACOSX_DEPLOYMENT_TARGET' : '10.7', }, }], ], }, # target libjingle_peerconnection_objc ], }], ], 'targets': [ { 'target_name': 'libjingle', 'type': 'static_library', 'dependencies': [ '<(DEPTH)/third_party/expat/expat.gyp:expat', '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', ], 'export_dependent_settings': [ '<(DEPTH)/third_party/expat/expat.gyp:expat', '<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp', ], 'sources': [ 'base/asyncfile.cc', 'base/asyncfile.h', 'base/asynchttprequest.cc', 'base/asynchttprequest.h', 'base/asyncinvoker.cc', 'base/asyncinvoker.h', 'base/asyncpacketsocket.h', 'base/asyncresolverinterface.h', 'base/asyncsocket.cc', 'base/asyncsocket.h', 'base/asynctcpsocket.cc', 'base/asynctcpsocket.h', 'base/asyncudpsocket.cc', 'base/asyncudpsocket.h', 'base/atomicops.h', 'base/autodetectproxy.cc', 'base/autodetectproxy.h', 'base/bandwidthsmoother.cc', 'base/bandwidthsmoother.h', 'base/base64.cc', 'base/base64.h', 'base/basicdefs.h', 'base/basictypes.h', 'base/bind.h', 'base/buffer.h', 'base/bytebuffer.cc', 'base/bytebuffer.h', 'base/byteorder.h', 'base/callback.h', 'base/checks.cc', 'base/checks.h', 'base/common.cc', 'base/common.h', 'base/constructormagic.h', 'base/cpumonitor.cc', 'base/cpumonitor.h', 'base/crc32.cc', 'base/crc32.h', 'base/criticalsection.h', 'base/cryptstring.h', 'base/diskcache.cc', 'base/diskcache.h', 'base/event.cc', 'base/event.h', 'base/filelock.cc', 'base/filelock.h', 'base/fileutils.cc', 'base/fileutils.h', 'base/fileutils_mock.h', 'base/firewallsocketserver.cc', 'base/firewallsocketserver.h', 'base/flags.cc', 'base/flags.h', 'base/gunit_prod.h', 'base/helpers.cc', 'base/helpers.h', 'base/httpbase.cc', 'base/httpbase.h', 'base/httpclient.cc', 'base/httpclient.h', 'base/httpcommon-inl.h', 'base/httpcommon.cc', 'base/httpcommon.h', 'base/httprequest.cc', 'base/httprequest.h', 'base/httpserver.cc', 'base/httpserver.h', 'base/ifaddrs-android.cc', 'base/ifaddrs-android.h', 'base/ipaddress.cc', 'base/ipaddress.h', 'base/json.cc', 'base/json.h', 'base/linked_ptr.h', 'base/linuxfdwalk.h', 'base/logging.cc', 'base/logging.h', 'base/maccocoathreadhelper.h', 'base/maccocoathreadhelper.mm', 'base/mathutils.h', 'base/md5.cc', 'base/md5.h', 'base/md5digest.h', 'base/messagedigest.cc', 'base/messagedigest.h', 'base/messagehandler.cc', 'base/messagehandler.h', 'base/messagequeue.cc', 'base/messagequeue.h', 'base/multipart.cc', 'base/multipart.h', 'base/natserver.cc', 'base/natserver.h', 'base/natsocketfactory.cc', 'base/natsocketfactory.h', 'base/nattypes.cc', 'base/nattypes.h', 'base/nethelpers.cc', 'base/nethelpers.h', 'base/network.cc', 'base/network.h', 'base/nssidentity.cc', 'base/nssidentity.h', 'base/nssstreamadapter.cc', 'base/nssstreamadapter.h', 'base/nullsocketserver.h', 'base/optionsfile.cc', 'base/optionsfile.h', 'base/pathutils.cc', 'base/pathutils.h', 'base/physicalsocketserver.cc', 'base/physicalsocketserver.h', 'base/profiler.cc', 'base/profiler.h', 'base/proxydetect.cc', 'base/proxydetect.h', 'base/proxyinfo.cc', 'base/proxyinfo.h', 'base/proxyserver.cc', 'base/proxyserver.h', 'base/ratelimiter.cc', 'base/ratelimiter.h', 'base/ratetracker.cc', 'base/ratetracker.h', 'base/refcount.h', 'base/referencecountedsingletonfactory.h', 'base/rollingaccumulator.h', 'base/scoped_autorelease_pool.h', 'base/scoped_ptr.h', 'base/scoped_ref_ptr.h', 'base/scopedptrcollection.h', 'base/sec_buffer.h', 'base/sha1.cc', 'base/sha1.h', 'base/sha1digest.h', 'base/sharedexclusivelock.cc', 'base/sharedexclusivelock.h', 'base/signalthread.cc', 'base/signalthread.h', 'base/sigslot.h', 'base/sigslotrepeater.h', 'base/socket.h', 'base/socketadapters.cc', 'base/socketadapters.h', 'base/socketaddress.cc', 'base/socketaddress.h', 'base/socketaddresspair.cc', 'base/socketaddresspair.h', 'base/socketfactory.h', 'base/socketpool.cc', 'base/socketpool.h', 'base/socketserver.h', 'base/socketstream.cc', 'base/socketstream.h', 'base/ssladapter.cc', 'base/ssladapter.h', 'base/sslconfig.h', 'base/sslfingerprint.cc', 'base/sslfingerprint.h', 'base/sslidentity.cc', 'base/sslidentity.h', 'base/sslroots.h', 'base/sslsocketfactory.cc', 'base/sslsocketfactory.h', 'base/sslstreamadapter.cc', 'base/sslstreamadapter.h', 'base/sslstreamadapterhelper.cc', 'base/sslstreamadapterhelper.h', 'base/stream.cc', 'base/stream.h', 'base/stringdigest.h', 'base/stringencode.cc', 'base/stringencode.h', 'base/stringutils.cc', 'base/stringutils.h', 'base/systeminfo.cc', 'base/systeminfo.h', 'base/task.cc', 'base/task.h', 'base/taskparent.cc', 'base/taskparent.h', 'base/taskrunner.cc', 'base/taskrunner.h', 'base/testclient.cc', 'base/testclient.h', 'base/thread.cc', 'base/thread.h', 'base/timeutils.cc', 'base/timeutils.h', 'base/timing.cc', 'base/timing.h', 'base/transformadapter.cc', 'base/transformadapter.h', 'base/urlencode.cc', 'base/urlencode.h', 'base/versionparsing.cc', 'base/versionparsing.h', 'base/virtualsocketserver.cc', 'base/virtualsocketserver.h', 'base/window.h', 'base/windowpicker.h', 'base/windowpickerfactory.h', 'base/worker.cc', 'base/worker.h', 'xmllite/qname.cc', 'xmllite/qname.h', 'xmllite/xmlbuilder.cc', 'xmllite/xmlbuilder.h', 'xmllite/xmlconstants.cc', 'xmllite/xmlconstants.h', 'xmllite/xmlelement.cc', 'xmllite/xmlelement.h', 'xmllite/xmlnsstack.cc', 'xmllite/xmlnsstack.h', 'xmllite/xmlparser.cc', 'xmllite/xmlparser.h', 'xmllite/xmlprinter.cc', 'xmllite/xmlprinter.h', 'xmpp/asyncsocket.h', 'xmpp/chatroommodule.h', 'xmpp/chatroommoduleimpl.cc', 'xmpp/constants.cc', 'xmpp/constants.h', 'xmpp/discoitemsquerytask.cc', 'xmpp/discoitemsquerytask.h', 'xmpp/hangoutpubsubclient.cc', 'xmpp/hangoutpubsubclient.h', 'xmpp/iqtask.cc', 'xmpp/iqtask.h', 'xmpp/jid.cc', 'xmpp/jid.h', 'xmpp/module.h', 'xmpp/moduleimpl.cc', 'xmpp/moduleimpl.h', 'xmpp/mucroomconfigtask.cc', 'xmpp/mucroomconfigtask.h', 'xmpp/mucroomdiscoverytask.cc', 'xmpp/mucroomdiscoverytask.h', 'xmpp/mucroomlookuptask.cc', 'xmpp/mucroomlookuptask.h', 'xmpp/mucroomuniquehangoutidtask.cc', 'xmpp/mucroomuniquehangoutidtask.h', 'xmpp/pingtask.cc', 'xmpp/pingtask.h', 'xmpp/plainsaslhandler.h', 'xmpp/presenceouttask.cc', 'xmpp/presenceouttask.h', 'xmpp/presencereceivetask.cc', 'xmpp/presencereceivetask.h', 'xmpp/presencestatus.cc', 'xmpp/presencestatus.h', 'xmpp/prexmppauth.h', 'xmpp/pubsub_task.cc', 'xmpp/pubsub_task.h', 'xmpp/pubsubclient.cc', 'xmpp/pubsubclient.h', 'xmpp/pubsubstateclient.cc', 'xmpp/pubsubstateclient.h', 'xmpp/pubsubtasks.cc', 'xmpp/pubsubtasks.h', 'xmpp/receivetask.cc', 'xmpp/receivetask.h', 'xmpp/rostermodule.h', 'xmpp/rostermoduleimpl.cc', 'xmpp/rostermoduleimpl.h', 'xmpp/saslcookiemechanism.h', 'xmpp/saslhandler.h', 'xmpp/saslmechanism.cc', 'xmpp/saslmechanism.h', 'xmpp/saslplainmechanism.h', 'xmpp/xmppauth.cc', 'xmpp/xmppauth.h', 'xmpp/xmppclient.cc', 'xmpp/xmppclient.h', 'xmpp/xmppclientsettings.h', 'xmpp/xmppengine.h', 'xmpp/xmppengineimpl.cc', 'xmpp/xmppengineimpl.h', 'xmpp/xmppengineimpl_iq.cc', 'xmpp/xmpplogintask.cc', 'xmpp/xmpplogintask.h', 'xmpp/xmpppump.cc', 'xmpp/xmpppump.h', 'xmpp/xmppsocket.cc', 'xmpp/xmppsocket.h', 'xmpp/xmppstanzaparser.cc', 'xmpp/xmppstanzaparser.h', 'xmpp/xmpptask.cc', 'xmpp/xmpptask.h', 'xmpp/xmppthread.cc', 'xmpp/xmppthread.h', ], 'conditions': [ ['OS=="android"', { 'sources': [ 'base/ifaddrs-android.cc', ], 'link_settings': { 'libraries': [ '-llog', '-lGLESv2', ], }, }], ['OS=="linux" or OS=="android"', { 'sources': [ 'base/linux.cc', 'base/linux.h', ], }], ['OS=="linux"', { 'sources': [ 'base/dbus.cc', 'base/dbus.h', 'base/libdbusglibsymboltable.cc', 'base/libdbusglibsymboltable.h', 'base/linuxfdwalk.c', 'base/linuxwindowpicker.cc', 'base/linuxwindowpicker.h', ], 'link_settings': { 'libraries': [ '-lcrypto', '-ldl', '-lrt', '-lXext', '-lX11', '-lXcomposite', '-lXrender', '