summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '3rdParty/LibVNC/SConscript')
-rw-r--r--3rdParty/LibVNC/SConscript36
1 files changed, 36 insertions, 0 deletions
diff --git a/3rdParty/LibVNC/SConscript b/3rdParty/LibVNC/SConscript
new file mode 100644
index 0000000..046acd3
--- /dev/null
+++ b/3rdParty/LibVNC/SConscript
@@ -0,0 +1,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",
+ ])