blob: 9b1af3cead81ada26b3877edb06013a7064faebd [file] [log] [blame]
henrike@webrtc.org28e20752013-07-10 00:45:36 +00001# -*- Python -*-
2import talk
3
4Import('env')
5
6# For peerconnection, we need additional flags only for GCC 4.6+.
7peerconnection_lin_ccflags = []
8
9if env.Bit('linux'):
10 # Detect the GCC version and update peerconnection flags.
11 (major, minor, rev) = env.GetGccVersion()
12 if major > 4 or (major == 4 and minor >= 6):
13 peerconnection_lin_ccflags = ['-Wno-error=unused-but-set-variable']
14
15
16if env.Bit('have_webrtc_voice') and env.Bit('have_webrtc_video'):
17 # local sources
18 talk.Library(
19 env,
20 name = 'peerconnection',
21 srcs = [
22 'audiotrack.cc',
23 'jsepicecandidate.cc',
24 'jsepsessiondescription.cc',
25 'mediaconstraintsinterface.cc',
26 'mediastream.cc',
27 'mediastreamhandler.cc',
28 'mediastreamproxy.cc',
29 'mediastreamsignaling.cc',
30 'mediastreamtrackproxy.cc',
31 'peerconnectionfactory.cc',
32 'peerconnection.cc',
33 'portallocatorfactory.cc',
34 'roapmessages.cc',
35 'roapsession.cc',
36 'roapsignaling.cc',
37 'videorendererimpl.cc',
38 'videotrack.cc',
39 'webrtcsdp.cc',
40 'webrtcsession.cc',
wu@webrtc.org91053e72013-08-10 07:18:04 +000041 'webrtcsessiondescriptionfactory.cc',
henrike@webrtc.org28e20752013-07-10 00:45:36 +000042 ],
43 lin_ccflags = peerconnection_lin_ccflags
44 )
45
46 talk.Unittest(
47 env,
48 name = 'peerconnection',
49 srcs = [
50 'test/fakeaudiocapturemodule.cc',
51 'test/fakeaudiocapturemodule_unittest.cc',
52 'test/fakevideocapturemodule.cc',
53 'test/fileframesource.cc',
54 'test/i420framesource.cc',
55 'test/staticframesource.cc',
56 'jsepsessiondescription_unittest.cc',
57 'mediastream_unittest.cc',
58 'mediastreamhandler_unittest.cc',
59 'mediastreamsignaling_unittest.cc',
60 'peerconnectioninterface_unittest.cc',
61 'peerconnection_unittest.cc',
62 'peerconnectionfactory_unittest.cc',
63 'roapmessages_unittest.cc',
64 'roapsession_unittest.cc',
65 'roapsignaling_unittest.cc',
66 'webrtcsdp_unittest.cc',
67 'webrtcsession_unittest.cc',
68 ],
69 libs = [
70 'base',
71 'expat',
72 'json',
73 'p2p',
74 'phone',
75 'srtp',
76 'xmllite',
77 'xmpp',
78 'yuvscaler',
79 'peerconnection',
80 ],
81 win_link_flags = [('', '/nodefaultlib:libcmt')[env.Bit('debug')]],
82 lin_libs = [
83 'sound',
84 ],
85 mac_libs = [
86 'crypto',
87 'ssl',
88 ],
89 )