summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-13 10:04:58 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-13 10:04:58 (GMT)
commitb6374b7ae064e689924a88b398ca3eb9ed0a379e (patch)
tree8c3bc87f1b006e223563f3d2274b16f710e0e8e4 /SConstruct
parentba1aa621f0441f20b1ed2885832fce9cb15e4e15 (diff)
downloadswift-contrib-b6374b7ae064e689924a88b398ca3eb9ed0a379e.zip
swift-contrib-b6374b7ae064e689924a88b398ca3eb9ed0a379e.tar.bz2
Add Nib build tool.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 3d8df43..ab9cf5e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -25,9 +25,15 @@ vars.Add(PathVariable("qt", "Qt location", "", PathVariable.PathAccept))
################################################################################
env = Environment(CPPPATH = "#", ENV = {'PATH' : os.environ['PATH']}, variables = vars)
+
Help(vars.GenerateHelpText(env))
+
env.Alias("dist", ["."])
+# Default custom tools
+if env["PLATFORM"] == "darwin" :
+ env.Tool("Nib", toolpath = ["#/BuildTools/SCons/Tools"])
+
# Default compiler flags
if env["optimize"] :
env.Append(CCFLAGS = "-O2")
@@ -109,6 +115,7 @@ if int(ARGUMENTS.get("V", 0)) == 0:
env["GENCOMSTR"] = " \033[0;34;140mGEN\033[0m $TARGET"
env["RCCOMSTR"] = " \033[0;34;140mRC\033[0m $TARGET"
env["BUNDLECOMSTR"] = " \033[0;34;140mBUNDLE\033[0m $TARGET"
+ env["NIBCOMSTR"] = " \033[0;34;140mNIB\033[0m $TARGET"
#Progress( " \033[0;35;140mDEP\033[0m $TARGET\n")
else :
env["CCCOMSTR"] = " CC $TARGET"
@@ -123,6 +130,7 @@ if int(ARGUMENTS.get("V", 0)) == 0:
env["GENCOMSTR"] = " GEN $TARGET"
env["RCCOMSTR"] = " RC $TARGET"
env["BUNDLECOMSTR"] = " BUNDLE $TARGET"
+ env["NIBCOMSTR"] = " NIB $TARGET"
#Progress(' DEP $TARGET\n')
if env["PLATFORM"] == "win32" :