Home | History | Annotate | Download | only in talk
      1 import talk
      2 Import("env")
      3 
      4 talk.Library(env, name = "expat",
      5              cppdefines = [
      6                "XML_STATIC",
      7              ],
      8              srcs = [
      9                "third_party/expat-2.0.1/lib/xmlparse.c",
     10                "third_party/expat-2.0.1/lib/xmlrole.c",
     11                "third_party/expat-2.0.1/lib/xmltok.c",
     12              ],
     13              includedirs = [
     14                "third_party/expat-2.0.1/lib",
     15              ],
     16              win_cppdefines = [
     17                "COMPILED_FROM_DSP",
     18              ],
     19              posix_cppdefines = [
     20                "HAVE_EXPAT_CONFIG_H",
     21              ],
     22 )
     23 talk.Library(env, name = "gunit",
     24              srcs = [
     25                "testing/gtest/src/gtest-all.cc",
     26              ],
     27              includedirs = [
     28                "testing/gtest/include",
     29                "third_party/expat-2.0.1/lib",
     30                "third_party/srtp",
     31                "testing/gtest",
     32              ],
     33              cppdefines = [
     34                "EXPAT_RELATIVE_PATH",
     35                "GTEST_RELATIVE_PATH",
     36                "SRTP_RELATIVE_PATH",
     37              ],
     38 )
     39 talk.Library(env, name = "srtp",
     40              srcs = [
     41                "third_party/srtp/crypto/cipher/aes.c",
     42                "third_party/srtp/crypto/cipher/aes_cbc.c",
     43                "third_party/srtp/crypto/cipher/aes_icm.c",
     44                "third_party/srtp/crypto/cipher/cipher.c",
     45                "third_party/srtp/crypto/cipher/null_cipher.c",
     46                "third_party/srtp/crypto/hash/auth.c",
     47                "third_party/srtp/crypto/hash/hmac.c",
     48                "third_party/srtp/crypto/hash/null_auth.c",
     49                "third_party/srtp/crypto/hash/sha1.c",
     50                "third_party/srtp/crypto/replay/rdb.c",
     51                "third_party/srtp/crypto/replay/rdbx.c",
     52                "third_party/srtp/crypto/replay/ut_sim.c",
     53                "third_party/srtp/crypto/math/datatypes.c",
     54                "third_party/srtp/crypto/math/stat.c",
     55                "third_party/srtp/crypto/kernel/alloc.c",
     56                "third_party/srtp/crypto/kernel/crypto_kernel.c",
     57                "third_party/srtp/crypto/kernel/err.c",
     58                "third_party/srtp/crypto/kernel/key.c",
     59                "third_party/srtp/crypto/rng/ctr_prng.c",
     60                "third_party/srtp/crypto/rng/rand_source.c",
     61                "third_party/srtp/srtp/ekt.c",
     62                "third_party/srtp/srtp/srtp.c",
     63              ],
     64              includedirs = [
     65                "third_party/srtp/include",
     66                "third_party/srtp/crypto/include",
     67              ],
     68              win_ccflags = [
     69                "/wd4701",
     70                "/wd4702",
     71              ],
     72 )
     73 # Set up the SSL/TLS includes
     74 if 'NSS_BUILD_PLATFORM' in env['ENV']:
     75              SSL_INCLUDES = [
     76                "third_party/mozilla/dist/public/nss",
     77                "third_party/mozilla/dist/" + env['ENV']['NSS_BUILD_PLATFORM']+ "/include"
     78              ]
     79              SSL_LIBS = [
     80                "ssl3",
     81                "nss3",
     82                "nssutil3",
     83                "plc4",
     84                "plds4",
     85                "nspr4",
     86              ]
     87 else:
     88              SSL_INCLUDES = ["third_party/openssl/include"]
     89              SSL_LIBS = ["crypto", "ssl"]
     90 
     91 talk.Library(env, name = "jingle",
     92              lin_packages = [
     93                "x11",
     94                "xcomposite",
     95                "xrender",
     96              ],
     97              lin_srcs = [
     98                "base/latebindingsymboltable.cc",
     99                "base/latebindingsymboltable.h.def",
    100                "base/latebindingsymboltable.cc.def",
    101                "base/linux.cc",
    102                "base/linuxfdwalk.c",
    103                "base/linuxwindowpicker.cc",
    104                "media/devices/libudevsymboltable.cc",
    105                "media/devices/linuxdeviceinfo.cc",
    106                "media/devices/linuxdevicemanager.cc",
    107                "media/devices/v4llookup.cc",
    108                "sound/alsasoundsystem.cc",
    109                "sound/alsasymboltable.cc",
    110                "sound/linuxsoundsystem.cc",
    111                "sound/pulseaudiosoundsystem.cc",
    112                "sound/pulseaudiosymboltable.cc",
    113              ],
    114              dependent_target_settings = {
    115                'lin_libs': [
    116                  "dl",
    117                  "pthread",
    118                  "rt",
    119                  "gthread-2.0",
    120                ],
    121                'mac_libs': SSL_LIBS,
    122                'win_libs': [
    123                  "winmm.lib",
    124                ],
    125              },
    126              mac_srcs = [
    127                "base/macasyncsocket.cc",
    128                "base/maccocoasocketserver.mm",
    129                "base/maccocoathreadhelper.mm",
    130                "base/macconversion.cc",
    131                "base/macsocketserver.cc",
    132                "base/macutils.cc",
    133                "base/macwindowpicker.cc",
    134                "base/scoped_autorelease_pool.mm",
    135                "media/devices/carbonvideorenderer.cc",
    136                "media/devices/macdeviceinfo.cc",
    137                "media/devices/macdevicemanager.cc",
    138                "media/devices/macdevicemanagermm.mm",
    139              ],
    140              posix_srcs = [
    141                "base/unixfilesystem.cc",
    142                "base/posix.cc",
    143              ],
    144              linphone_srcs = [
    145                "media/other/linphonemediaengine.cc",
    146              ],
    147              cppdefines = [
    148                "FEATURE_ENABLE_VOICEMAIL",
    149                "EXPAT_RELATIVE_PATH",
    150                "GTEST_RELATIVE_PATH",
    151                "SRTP_RELATIVE_PATH",
    152                "XML_STATIC",
    153              ],
    154              srcs = [
    155                "base/asyncfile.cc",
    156                "base/asynchttprequest.cc",
    157                "base/asyncsocket.cc",
    158                "base/asynctcpsocket.cc",
    159                "base/asyncudpsocket.cc",
    160                "base/autodetectproxy.cc",
    161                "base/bandwidthsmoother.cc",
    162                "base/base64.cc",
    163                "base/basicpacketsocketfactory.cc",
    164                "base/bytebuffer.cc",
    165                "base/checks.cc",
    166                "base/common.cc",
    167                "base/cpumonitor.cc",
    168                "base/crc32.cc",
    169                "base/diskcache.cc",
    170                "base/event.cc",
    171                "base/filelock.cc",
    172                "base/fileutils.cc",
    173                "base/firewallsocketserver.cc",
    174                "base/flags.cc",
    175                "base/helpers.cc",
    176                "base/host.cc",
    177                "base/httpbase.cc",
    178                "base/httpclient.cc",
    179                "base/httpcommon.cc",
    180                "base/httprequest.cc",
    181                "base/httpserver.cc",
    182                "base/ipaddress.cc",
    183                "base/logging.cc",
    184                "base/md5.cc",
    185                "base/messagedigest.cc",
    186                "base/messagehandler.cc",
    187                "base/messagequeue.cc",
    188                "base/multipart.cc",
    189                "base/natserver.cc",
    190                "base/natsocketfactory.cc",
    191                "base/nattypes.cc",
    192                "base/nethelpers.cc",
    193                "base/network.cc",
    194                "base/nssidentity.cc",
    195                "base/nssstreamadapter.cc",
    196                "base/openssladapter.cc",
    197                "base/openssldigest.cc",
    198                "base/opensslidentity.cc",
    199                "base/opensslstreamadapter.cc",
    200                "base/optionsfile.cc",
    201                "base/pathutils.cc",
    202                "base/physicalsocketserver.cc",
    203                "base/profiler.cc",
    204                "base/proxydetect.cc",
    205                "base/proxyinfo.cc",
    206                "base/proxyserver.cc",
    207                "base/ratelimiter.cc",
    208                "base/ratetracker.cc",
    209                "base/sha1.cc",
    210                "base/sharedexclusivelock.cc",
    211                "base/signalthread.cc",
    212                "base/socketadapters.cc",
    213                "base/socketaddress.cc",
    214                "base/socketaddresspair.cc",
    215                "base/socketpool.cc",
    216                "base/socketstream.cc",
    217                "base/ssladapter.cc",
    218                "base/sslsocketfactory.cc",
    219                "base/sslidentity.cc",
    220                "base/sslstreamadapter.cc",
    221                "base/sslstreamadapterhelper.cc",
    222                "base/stream.cc",
    223                "base/stringencode.cc",
    224                "base/stringutils.cc",
    225                "base/systeminfo.cc",
    226                "base/task.cc",
    227                "base/taskparent.cc",
    228                "base/taskrunner.cc",
    229                "base/testclient.cc",
    230                "base/thread.cc",
    231                "base/timeutils.cc",
    232                "base/timing.cc",
    233                "base/transformadapter.cc",
    234                "base/urlencode.cc",
    235                "base/versionparsing.cc",
    236                "base/virtualsocketserver.cc",
    237                "base/worker.cc",
    238                "p2p/base/constants.cc",
    239                "p2p/base/dtlstransportchannel.cc",
    240                "p2p/base/p2ptransport.cc",
    241                "p2p/base/p2ptransportchannel.cc",
    242                "p2p/base/parsing.cc",
    243                "p2p/base/port.cc",
    244                "p2p/base/portallocator.cc",
    245                "p2p/base/portallocatorsessionproxy.cc",
    246                "p2p/base/portproxy.cc",
    247                "p2p/base/pseudotcp.cc",
    248                "p2p/base/relayport.cc",
    249                "p2p/base/relayserver.cc",
    250                "p2p/base/rawtransport.cc",
    251                "p2p/base/rawtransportchannel.cc",
    252                "p2p/base/session.cc",
    253                "p2p/base/sessiondescription.cc",
    254                "p2p/base/sessionmanager.cc",
    255                "p2p/base/sessionmessages.cc",
    256                "p2p/base/stun.cc",
    257                "p2p/base/stunport.cc",
    258                "p2p/base/stunrequest.cc",
    259                "p2p/base/stunserver.cc",
    260                "p2p/base/tcpport.cc",
    261                "p2p/base/transport.cc",
    262                "p2p/base/transportchannel.cc",
    263                "p2p/base/transportchannelproxy.cc",
    264                "p2p/base/transportdescriptionfactory.cc",
    265                "p2p/base/turnport.cc",
    266                "p2p/base/turnserver.cc",
    267                "p2p/client/basicportallocator.cc",
    268                "p2p/client/connectivitychecker.cc",
    269                "p2p/client/httpportallocator.cc",
    270                "p2p/client/socketmonitor.cc",
    271                "session/tunnel/pseudotcpchannel.cc",
    272                "session/tunnel/tunnelsessionclient.cc",
    273                "session/tunnel/securetunnelsessionclient.cc",
    274                "media/base/capturemanager.cc",
    275                "media/base/capturerenderadapter.cc",
    276                "media/base/codec.cc",
    277                "media/base/constants.cc",
    278                "media/base/cpuid.cc",
    279                "media/base/filemediaengine.cc",
    280                "media/base/hybridvideoengine.cc",
    281                "media/base/mediaengine.cc",
    282                "media/base/rtpdataengine.cc",
    283                "media/base/rtpdump.cc",
    284                "media/base/rtputils.cc",
    285                "media/base/streamparams.cc",
    286                "media/base/videoadapter.cc",
    287                "media/base/videocapturer.cc",
    288                "media/base/mutedvideocapturer.cc",
    289                "media/base/videocommon.cc",
    290                "media/base/videoframe.cc",
    291                "media/devices/devicemanager.cc",
    292                "media/devices/filevideocapturer.cc",
    293                "session/media/audiomonitor.cc",
    294                "session/media/call.cc",
    295                "session/media/channel.cc",
    296                "session/media/channelmanager.cc",
    297                "session/media/currentspeakermonitor.cc",
    298                "session/media/mediamessages.cc",
    299                "session/media/mediamonitor.cc",
    300                "session/media/mediarecorder.cc",
    301                "session/media/mediasession.cc",
    302                "session/media/mediasessionclient.cc",
    303                "session/media/rtcpmuxfilter.cc",
    304                "session/media/rtcpmuxfilter.cc",
    305                "session/media/soundclip.cc",
    306                "session/media/srtpfilter.cc",
    307                "session/media/ssrcmuxfilter.cc",
    308                "session/media/typingmonitor.cc",
    309                "sound/nullsoundsystem.cc",
    310                "sound/nullsoundsystemfactory.cc",
    311                "sound/platformsoundsystem.cc",
    312                "sound/platformsoundsystemfactory.cc",
    313                "sound/soundsysteminterface.cc",
    314                "sound/soundsystemproxy.cc",
    315                "xmllite/qname.cc",
    316                "xmllite/xmlbuilder.cc",
    317                "xmllite/xmlconstants.cc",
    318                "xmllite/xmlelement.cc",
    319                "xmllite/xmlnsstack.cc",
    320                "xmllite/xmlparser.cc",
    321                "xmllite/xmlprinter.cc",
    322                "xmpp/chatroommoduleimpl.cc",
    323                "xmpp/constants.cc",
    324                "xmpp/discoitemsquerytask.cc",
    325                "xmpp/hangoutpubsubclient.cc",
    326                "xmpp/iqtask.cc",
    327                "xmpp/jid.cc",
    328                "xmpp/jingleinfotask.cc",
    329                "xmpp/moduleimpl.cc",
    330                "xmpp/mucroomconfigtask.cc",
    331                "xmpp/mucroomdiscoverytask.cc",
    332                "xmpp/mucroomlookuptask.cc",
    333                "xmpp/mucroomuniquehangoutidtask.cc",
    334                "xmpp/pingtask.cc",
    335                "xmpp/presenceouttask.cc",
    336                "xmpp/presencereceivetask.cc",
    337                "xmpp/presencestatus.cc",
    338                "xmpp/pubsubclient.cc",
    339                "xmpp/pubsub_task.cc",
    340                "xmpp/pubsubtasks.cc",
    341                "xmpp/receivetask.cc",
    342                "xmpp/rostermoduleimpl.cc",
    343                "xmpp/saslmechanism.cc",
    344                "xmpp/xmppclient.cc",
    345                "xmpp/xmppengineimpl.cc",
    346                "xmpp/xmppengineimpl_iq.cc",
    347                "xmpp/xmpplogintask.cc",
    348                "xmpp/xmppstanzaparser.cc",
    349                "xmpp/xmpptask.cc",
    350                "xmpp/xmppauth.cc",
    351                "xmpp/xmpppump.cc",
    352                "xmpp/xmppsocket.cc",
    353                "xmpp/xmppthread.cc",
    354              ],
    355              includedirs = [
    356                "third_party/libudev",
    357                "third_party/expat-2.0.1/lib",
    358                "testing/gtest/include",
    359                "third_party/srtp/include",
    360                "third_party/srtp/crypto/include",
    361              ] + SSL_INCLUDES,
    362              win_srcs = [
    363                "base/diskcache_win32.cc",
    364                "base/schanneladapter.cc",
    365                "base/win32.cc",
    366                "base/win32regkey.cc",
    367                "base/win32filesystem.cc",
    368                "base/win32securityerrors.cc",
    369                "base/win32socketserver.cc",
    370                "base/win32socketinit.cc",
    371                "base/win32window.cc",
    372                "base/win32windowpicker.cc",
    373                "base/winfirewall.cc",
    374                "base/winping.cc",
    375                "media/devices/gdivideorenderer.cc",
    376                "media/devices/win32deviceinfo.cc",
    377                "media/devices/win32devicemanager.cc",
    378              ],
    379              mac_ccflags = [
    380                "-Wno-deprecated-declarations",
    381              ],
    382              extra_srcs = [
    383                "media/devices/dummydevicemanager.cc",
    384                "base/dbus.cc",
    385                "base/libdbusglibsymboltable.cc",
    386                "base/json.cc",
    387                "base/natserver_main.cc",
    388              ],
    389 )
    390 talk.Library(env, name = "videorenderer",
    391              lin_srcs = [
    392                "media/devices/gtkvideorenderer.cc",
    393              ],
    394              lin_packages = [
    395                "gobject-2.0",
    396                "gthread-2.0",
    397                "gtk+-2.0",
    398              ],
    399 )
    400 talk.Library(env, name = "unittest_main",
    401              libs = [
    402                "gunit",
    403              ],
    404              srcs = [
    405                "base/unittest_main.cc",
    406              ],
    407              includedirs = [
    408                "testing/gtest/include",
    409                "third_party/expat-2.0.1/lib",
    410                "third_party/srtp",
    411                "testing/gtest",
    412              ],
    413              cppdefines = [
    414                "EXPAT_RELATIVE_PATH",
    415                "GTEST_RELATIVE_PATH",
    416                "SRTP_RELATIVE_PATH",
    417              ],
    418 )
    419 talk.App(env, name = "login",
    420          libs = [
    421            "jingle",
    422            "expat",
    423          ],
    424          srcs = [
    425            "examples/login/login_main.cc",
    426          ],
    427          posix_libs = SSL_LIBS,
    428          lin_libs = [
    429            "videorenderer",
    430          ],
    431 )
    432 talk.App(env, name = "chat",
    433          libs = [
    434            "jingle",
    435            "expat",
    436          ],
    437          srcs = [
    438            "examples/chat/chatapp.cc",
    439            "examples/chat/chat_main.cc",
    440            "examples/chat/consoletask.cc",
    441            "examples/chat/textchatreceivetask.cc",
    442            "examples/chat/textchatsendtask.cc",
    443          ],
    444          posix_libs = SSL_LIBS,
    445 )
    446 talk.App(env, name = "call",
    447          mac_frameworks = [
    448            "AudioToolbox",
    449            "AudioUnit",
    450            "Cocoa",
    451            "CoreAudio",
    452            "CoreFoundation",
    453            "IOKit",
    454            "QTKit",
    455            "QuickTime",
    456          ],
    457          win_libs = [
    458            "d3d9.lib",
    459            "gdi32.lib",
    460            "powrprof.lib",
    461            "strmiids.lib",
    462            "winmm.lib",
    463          ],
    464          posix_libs = SSL_LIBS,
    465          lin_libs = [
    466            "videorenderer",
    467          ],
    468          srcs = [
    469            "examples/call/call_main.cc",
    470            "examples/call/callclient.cc",
    471            "examples/call/console.cc",
    472            "examples/call/friendinvitesendtask.cc",
    473            "examples/call/mediaenginefactory.cc",
    474            "examples/call/mucinviterecvtask.cc",
    475            "examples/call/mucinvitesendtask.cc",
    476            "examples/call/presencepushtask.cc",
    477          ],
    478          libs = [
    479            "jingle",
    480            "expat",
    481            "srtp",
    482          ],
    483 )
    484 talk.App(env, name = "relayserver",
    485          libs = [
    486            "jingle",
    487          ],
    488          srcs = [
    489            "p2p/base/relayserver_main.cc",
    490          ],
    491 )
    492 talk.App(env, name = "stunserver",
    493          libs = [
    494            "jingle",
    495          ],
    496          srcs = [
    497            "p2p/base/stunserver_main.cc",
    498          ],
    499 )
    500 talk.App(env, name = "turnserver",
    501          lin_libs = [
    502            "crypto",
    503            "ssl",
    504          ],
    505          srcs = [
    506            "p2p/base/turnserver_main.cc",
    507          ],
    508          libs = [
    509            "jingle",
    510          ],
    511 )
    512 talk.Unittest(env, name = "base",
    513               lin_srcs = [
    514                 "base/latebindingsymboltable_unittest.cc",
    515                 "base/linux_unittest.cc",
    516                 "base/linuxfdwalk_unittest.cc",
    517               ],
    518               mac_srcs = [
    519                 "base/macsocketserver_unittest.cc",
    520                 "base/macutils_unittest.cc",
    521                 "base/macwindowpicker_unittest.cc",
    522               ],
    523               posix_srcs = [
    524                 "base/sslidentity_unittest.cc",
    525                 "base/sslstreamadapter_unittest.cc",
    526               ],
    527               cppdefines = [
    528                 "EXPAT_RELATIVE_PATH",
    529                 "GTEST_RELATIVE_PATH",
    530                 "SRTP_RELATIVE_PATH",
    531               ],
    532               srcs = [
    533                 "base/asynchttprequest_unittest.cc",
    534                 "base/atomicops_unittest.cc",
    535                 "base/autodetectproxy_unittest.cc",
    536                 "base/bandwidthsmoother_unittest.cc",
    537                 "base/base64_unittest.cc",
    538                 "base/basictypes_unittest.cc",
    539                 "base/bind_unittest.cc",
    540                 "base/buffer_unittest.cc",
    541                 "base/bytebuffer_unittest.cc",
    542                 "base/byteorder_unittest.cc",
    543                 "base/cpumonitor_unittest.cc",
    544                 "base/crc32_unittest.cc",
    545                 "base/event_unittest.cc",
    546                 "base/filelock_unittest.cc",
    547                 "base/fileutils_unittest.cc",
    548                 "base/helpers_unittest.cc",
    549                 "base/host_unittest.cc",
    550                 "base/httpbase_unittest.cc",
    551                 "base/httpcommon_unittest.cc",
    552                 "base/httpserver_unittest.cc",
    553                 "base/ipaddress_unittest.cc",
    554                 "base/logging_unittest.cc",
    555                 "base/md5digest_unittest.cc",
    556                 "base/messagedigest_unittest.cc",
    557                 "base/messagequeue_unittest.cc",
    558                 "base/multipart_unittest.cc",
    559                 "base/nat_unittest.cc",
    560                 "base/network_unittest.cc",
    561                 "base/nullsocketserver_unittest.cc",
    562                 "base/optionsfile_unittest.cc",
    563                 "base/pathutils_unittest.cc",
    564                 "base/physicalsocketserver_unittest.cc",
    565                 "base/profiler_unittest.cc",
    566                 "base/proxy_unittest.cc",
    567                 "base/proxydetect_unittest.cc",
    568                 "base/ratelimiter_unittest.cc",
    569                 "base/ratetracker_unittest.cc",
    570                 "base/referencecountedsingletonfactory_unittest.cc",
    571                 "base/rollingaccumulator_unittest.cc",
    572                 "base/sha1digest_unittest.cc",
    573                 "base/sharedexclusivelock_unittest.cc",
    574                 "base/signalthread_unittest.cc",
    575                 "base/sigslot_unittest.cc",
    576                 "base/socket_unittest.cc",
    577                 "base/socketaddress_unittest.cc",
    578                 "base/stream_unittest.cc",
    579                 "base/stringencode_unittest.cc",
    580                 "base/stringutils_unittest.cc",
    581                 "base/systeminfo_unittest.cc",
    582                 "base/task_unittest.cc",
    583                 "base/testclient_unittest.cc",
    584                 "base/thread_unittest.cc",
    585                 "base/timeutils_unittest.cc",
    586                 "base/urlencode_unittest.cc",
    587                 "base/versionparsing_unittest.cc",
    588                 "base/virtualsocket_unittest.cc",
    589                 "base/windowpicker_unittest.cc",
    590               ],
    591               includedirs = [
    592                 "testing/gtest/include",
    593                 "third_party/expat-2.0.1/lib",
    594                 "third_party/srtp",
    595                 "testing/gtest",
    596               ],
    597               win_srcs = [
    598                 "base/win32_unittest.cc",
    599                 "base/win32regkey_unittest.cc",
    600                 "base/win32socketserver_unittest.cc",
    601                 "base/win32toolhelp_unittest.cc",
    602                 "base/win32window_unittest.cc",
    603                 "base/win32windowpicker_unittest.cc",
    604                 "base/winfirewall_unittest.cc",
    605               ],
    606               libs = [
    607                 "jingle",
    608               ],
    609               extra_srcs = [
    610                 "base/dbus_unittest.cc",
    611                 "base/json_unittest.cc",
    612                 "base/linuxwindowpicker_unittest.cc",
    613               ],
    614 )
    615 talk.Unittest(env, name = "p2p",
    616               mac_FRAMEWORKS = [
    617                 "Foundation",
    618                 "IOKit",
    619                 "QTKit",
    620               ],
    621               mac_libs = SSL_LIBS,
    622               cppdefines = [
    623                 "EXPAT_RELATIVE_PATH",
    624                 "GTEST_RELATIVE_PATH",
    625                 "SRTP_RELATIVE_PATH",
    626               ],
    627               srcs = [
    628                 "p2p/base/dtlstransportchannel_unittest.cc",
    629                 "p2p/base/p2ptransportchannel_unittest.cc",
    630                 "p2p/base/port_unittest.cc",
    631                 "p2p/base/portallocatorsessionproxy_unittest.cc",
    632                 "p2p/base/pseudotcp_unittest.cc",
    633                 "p2p/base/relayport_unittest.cc",
    634                 "p2p/base/relayserver_unittest.cc",
    635                 "p2p/base/session_unittest.cc",
    636                 "p2p/base/stun_unittest.cc",
    637                 "p2p/base/stunport_unittest.cc",
    638                 "p2p/base/stunrequest_unittest.cc",
    639                 "p2p/base/stunserver_unittest.cc",
    640                 "p2p/base/transport_unittest.cc",
    641                 "p2p/base/transportdescriptionfactory_unittest.cc",
    642                 "p2p/base/turnport_unittest.cc",
    643                 "p2p/client/connectivitychecker_unittest.cc",
    644                 "p2p/client/portallocator_unittest.cc",
    645               ],
    646               includedirs = [
    647                 "testing/gtest/include",
    648                 "third_party/expat-2.0.1/lib",
    649                 "third_party/srtp",
    650                 "testing/gtest",
    651               ],
    652               libs = [
    653                 "jingle",
    654                 "expat",
    655               ],
    656 )
    657 talk.Unittest(env, name = "media",
    658               win_libs = [
    659                 "winmm.lib",
    660                 "strmiids",
    661               ],
    662               cppdefines = [
    663                 "EXPAT_RELATIVE_PATH",
    664                 "GTEST_RELATIVE_PATH",
    665                 "SRTP_RELATIVE_PATH",
    666               ],
    667               srcs = [
    668                 "media/base/capturemanager_unittest.cc",
    669                 "media/base/codec_unittest.cc",
    670                 "media/base/filemediaengine_unittest.cc",
    671                 "media/base/rtpdataengine_unittest.cc",
    672                 "media/base/rtpdump_unittest.cc",
    673                 "media/base/rtputils_unittest.cc",
    674                 "media/base/testutils.cc",
    675                 "media/base/videocapturer_unittest.cc",
    676                 "media/base/videocommon_unittest.cc",
    677                 "media/devices/devicemanager_unittest.cc",
    678                 "media/devices/filevideocapturer_unittest.cc",
    679                 "session/media/channel_unittest.cc",
    680                 "session/media/channelmanager_unittest.cc",
    681                 "session/media/currentspeakermonitor_unittest.cc",
    682                 "session/media/mediarecorder_unittest.cc",
    683                 "session/media/mediamessages_unittest.cc",
    684                 "session/media/mediasession_unittest.cc",
    685                 "session/media/mediasessionclient_unittest.cc",
    686                 "session/media/rtcpmuxfilter_unittest.cc",
    687                 "session/media/srtpfilter_unittest.cc",
    688                 "session/media/ssrcmuxfilter_unittest.cc",
    689               ],
    690               includedirs = [
    691                 "testing/gtest/include",
    692                 "third_party/expat-2.0.1/lib",
    693                 "third_party/srtp",
    694                 "testing/gtest",
    695               ],
    696               libs = [
    697                 "jingle",
    698                 "expat",
    699                 "srtp",
    700               ],
    701               extra_srcs = [
    702                 "media/devices/dummydevicemanager_unittest.cc",
    703               ],
    704 )
    705 talk.Unittest(env, name = "sound",
    706               libs = [
    707                 "jingle",
    708               ],
    709               srcs = [
    710                 "sound/automaticallychosensoundsystem_unittest.cc",
    711               ],
    712               mac_libs = SSL_LIBS,
    713 
    714               includedirs = [
    715                 "testing/gtest/include",
    716                 "third_party/expat-2.0.1/lib",
    717                 "third_party/srtp",
    718                 "testing/gtest",
    719               ],
    720               cppdefines = [
    721                 "EXPAT_RELATIVE_PATH",
    722                 "GTEST_RELATIVE_PATH",
    723                 "SRTP_RELATIVE_PATH",
    724               ],
    725 )
    726 talk.Unittest(env, name = "xmllite",
    727               libs = [
    728                 "jingle",
    729                 "expat",
    730               ],
    731               srcs = [
    732                 "xmllite/qname_unittest.cc",
    733                 "xmllite/xmlbuilder_unittest.cc",
    734                 "xmllite/xmlelement_unittest.cc",
    735                 "xmllite/xmlnsstack_unittest.cc",
    736                 "xmllite/xmlparser_unittest.cc",
    737                 "xmllite/xmlprinter_unittest.cc",
    738               ],
    739               mac_libs = SSL_LIBS,
    740               includedirs = [
    741                 "testing/gtest/include",
    742                 "third_party/expat-2.0.1/lib",
    743                 "third_party/srtp",
    744                 "testing/gtest",
    745               ],
    746               cppdefines = [
    747                 "EXPAT_RELATIVE_PATH",
    748                 "GTEST_RELATIVE_PATH",
    749                 "SRTP_RELATIVE_PATH",
    750               ],
    751 )
    752 talk.Unittest(env, name = "xmpp",
    753               mac_libs = SSL_LIBS,
    754               cppdefines = [
    755                 "EXPAT_RELATIVE_PATH",
    756                 "GTEST_RELATIVE_PATH",
    757                 "SRTP_RELATIVE_PATH",
    758               ],
    759               srcs = [
    760                 "xmpp/hangoutpubsubclient_unittest.cc",
    761                 "xmpp/jid_unittest.cc",
    762                 "xmpp/mucroomconfigtask_unittest.cc",
    763                 "xmpp/mucroomdiscoverytask_unittest.cc",
    764                 "xmpp/mucroomlookuptask_unittest.cc",
    765                 "xmpp/mucroomuniquehangoutidtask_unittest.cc",
    766                 "xmpp/pingtask_unittest.cc",
    767                 "xmpp/pubsubclient_unittest.cc",
    768                 "xmpp/pubsubtasks_unittest.cc",
    769                 "xmpp/util_unittest.cc",
    770                 "xmpp/xmppengine_unittest.cc",
    771                 "xmpp/xmpplogintask_unittest.cc",
    772                 "xmpp/xmppstanzaparser_unittest.cc",
    773               ],
    774               includedirs = [
    775                 "testing/gtest/include",
    776                 "third_party/expat-2.0.1/lib",
    777                 "third_party/srtp",
    778                 "testing/gtest",
    779               ],
    780               libs = [
    781                 "jingle",
    782                 "expat",
    783               ],
    784               extra_srcs = [
    785                 "xmpp/chatroommodule_unittest.cc",
    786                 "xmpp/rostermodule_unittest.cc",
    787               ],
    788 )
    789