summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-01 20:24:32 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-04-24 18:16:10 (GMT)
commit951cea590db4866188a1e372d6a966df7f0e79f9 (patch)
treed71c0bd5ae27c17c2e1ed68793dd1b851d1aa4a4 /3rdParty/LibVNC/SConscript
parent98f0f0c5cee040d3b0df5ff4d695320b2f93da24 (diff)
downloadswift-contrib-951cea590db4866188a1e372d6a966df7f0e79f9.zip
swift-contrib-951cea590db4866188a1e372d6a966df7f0e79f9.tar.bz2
Import part of libvnc.remko/libvnc
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",
+ ])