summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-11 20:37:40 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-11 20:37:40 (GMT)
commit208d7df20352927e1663ff81304310f3849aa87f (patch)
tree59cdf4d5eb8e55b69441d44baa7829fc96f587fd /Swift/QtUI/SConscript
parentf0e5d24935ee8252d34b1dd791d7d8bb615f1889 (diff)
downloadswift-208d7df20352927e1663ff81304310f3849aa87f.zip
swift-208d7df20352927e1663ff81304310f3849aa87f.tar.bz2
Add dynamic build date to NSIS build.
Diffstat (limited to 'Swift/QtUI/SConscript')
-rw-r--r--Swift/QtUI/SConscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/Swift/QtUI/SConscript b/Swift/QtUI/SConscript
index 0c458a1..16ad48d 100644
--- a/Swift/QtUI/SConscript
+++ b/Swift/QtUI/SConscript
@@ -1,4 +1,4 @@
-import os, shutil
+import os, shutil, datetime
def generateDefaultTheme(env, target, source) :
sourceDir = source[0].abspath
@@ -47,6 +47,7 @@ myenv.MergeFlags(env["ZLIB_FLAGS"])
myenv.MergeFlags(env["OPENSSL_FLAGS"])
myenv.Tool("qt4", toolpath = ["#/BuildTools/SCons/Tools"])
+myenv.Tool("nsis", toolpath = ["#/BuildTools/SCons/Tools"])
myenv.EnableQt4Modules(['QtCore', 'QtGui', 'QtWebKit'], debug = False)
myenv.Append(CPPPATH = ["/usr/include/phonon"])
@@ -109,3 +110,8 @@ if env["PLATFORM"] == "win32" :
File(os.path.join(env["OPENSSL_DIR"], "bin", "ssleay32.dll")),
File(os.path.join(env["OPENSSL_DIR"], "bin", "libeay32.dll")),
])
+
+ if "dist" in COMMAND_LINE_TARGETS or env.GetOption("clean") :
+ #myenv.Append(NSIS_OPTIONS = ["/DmsvccRedistributableDir=\"" + env["vcredist"] + "\""])
+ myenv.Append(NSIS_OPTIONS = ["/DmsvccRedistributableDir=\"" + env["vcredist"] + "\"", "/DbuildDate=" + datetime.date.today().strftime("%Y%m%d")])
+ myenv.Nsis("../Packaging/nsis/swift.nsi")