summaryrefslogtreecommitdiffstats
blob: a593296a5a7a6f76f89981ac0add9fb0886003cd (plain)
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
Import("swiften_env", "env")

sources = [
		"Image.cpp",
		"ScreenSharing.cpp",
		"OutgoingScreenSharing.cpp",
		"IncomingScreenSharing.cpp",
        "OutgoingScreenSharingManager.cpp",
        "IncomingScreenSharingManager.cpp",
		"ScreenSharingManagerImpl.cpp",
    ]

objects = swiften_env.SwiftenObject(sources)

if swiften_env["experimental"] :
	# JRTPLIB classes
	jrtplib_env = swiften_env.Clone()
	jrtplib_env.Append(CPPDEFINES = jrtplib_env["JRTPLIB_FLAGS"].get("INTERNAL_CPPDEFINES", []))
	objects += jrtplib_env.SwiftenObject([
				"RTPSessionImpl.cpp",
			])

	# libvpx classes
	libvpx_env = swiften_env.Clone()
	#libvpx_env.Append(CPPDEFINES = libvpx_env["LIBVPX_FLAGS"].get("INTERNAL_CPPDEFINES", []))
	libvpx_env.MergeFlags(libvpx_env.get("LIBVPX_FLAGS", {}))
	objects += libvpx_env.SwiftenObject([
				"VP8Encoder.cpp",
				"VP8Decoder.cpp",
				"VP8RTPPacketizer.cpp",
				"VP8RTPParser.cpp",
			])

swiften_env.Append(SWIFTEN_OBJECTS = [objects])

#env.Append(UNITTEST_SOURCES = [])