summaryrefslogtreecommitdiffstats
blob: 046acd31283b923915e5a14fc5df699277267b0d (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(["env", "conf_env"])

if env.get("LIBVNC_BUNDLED", False) :

################################################################################
# Module flags
################################################################################

	if env["SCONS_STAGE"] == "flags" :
		env["LIBVNC_FLAGS"] = {
				"CPPPATH": [Dir("src")],
				"LIBPATH": [Dir(".")],
				"LIBS": ["Swiften_VNC"],
			}

################################################################################
# Build
################################################################################

	if env["SCONS_STAGE"] == "build" :
		myenv = env.Clone()

		# Remove warn flags
		myenv.Replace(CCFLAGS = [flag for flag in env["CCFLAGS"] if flag not in ["-W", "-Wall"]])

		myenv.Append(CPPPATH = ["src"])

		myenv.StaticLibrary("Swiften_VNC", [
				"src/libvncclient/cursor.c",
				"src/libvncclient/listen.c",
				"src/libvncclient/rfbproto.c",
				"src/libvncclient/sockets.c",
				"src/libvncclient/vncviewer.c",
				"src/libvncclient/minilzo.c",
				"src/libvncclient/tls.c",
			])