henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 1 | # -*- Python -*- |
| 2 | import talk |
| 3 | |
| 4 | Import('env') |
| 5 | |
| 6 | # For peerconnection, we need additional flags only for GCC 4.6+. |
| 7 | peerconnection_lin_ccflags = [] |
| 8 | |
| 9 | if 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 | |
| 16 | if 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.org | 91053e7 | 2013-08-10 07:18:04 +0000 | [diff] [blame] | 41 | 'webrtcsessiondescriptionfactory.cc', |
henrike@webrtc.org | 28e2075 | 2013-07-10 00:45:36 +0000 | [diff] [blame] | 42 | ], |
| 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 | ) |