6 # For peerconnection, we need additional flags only for GCC 4.6+.
7 peerconnection_lin_ccflags = []
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']
16 if env.Bit('have_webrtc_voice') and env.Bit('have_webrtc_video'):
20 name = 'peerconnection',
23 'jsepicecandidate.cc',
24 'jsepsessiondescription.cc',
25 'mediaconstraintsinterface.cc',
27 'mediastreamhandler.cc',
28 'mediastreamproxy.cc',
29 'mediastreamsignaling.cc',
30 'mediastreamtrackproxy.cc',
31 'peerconnectionfactory.cc',
33 'portallocatorfactory.cc',
34 'remoteaudiosource.cc',
38 'videorendererimpl.cc',
42 'webrtcsessiondescriptionfactory.cc',
44 lin_ccflags = peerconnection_lin_ccflags
49 name = 'peerconnection',
51 'test/fakeaudiocapturemodule.cc',
52 'test/fakeaudiocapturemodule_unittest.cc',
53 'test/fakevideocapturemodule.cc',
54 'test/fileframesource.cc',
55 'test/i420framesource.cc',
56 'test/staticframesource.cc',
57 'jsepsessiondescription_unittest.cc',
58 'mediastream_unittest.cc',
59 'mediastreamhandler_unittest.cc',
60 'mediastreamsignaling_unittest.cc',
61 'peerconnectioninterface_unittest.cc',
62 'peerconnection_unittest.cc',
63 'peerconnectionfactory_unittest.cc',
64 'roapmessages_unittest.cc',
65 'roapsession_unittest.cc',
66 'roapsignaling_unittest.cc',
67 'webrtcsdp_unittest.cc',
68 'webrtcsession_unittest.cc',
82 win_link_flags = [('', '/nodefaultlib:libcmt')[env.Bit('debug')]],