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