diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-08-13 10:04:58 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-08-13 10:04:58 (GMT) |
commit | b6374b7ae064e689924a88b398ca3eb9ed0a379e (patch) | |
tree | 8c3bc87f1b006e223563f3d2274b16f710e0e8e4 /SConstruct | |
parent | ba1aa621f0441f20b1ed2885832fce9cb15e4e15 (diff) | |
download | swift-b6374b7ae064e689924a88b398ca3eb9ed0a379e.zip swift-b6374b7ae064e689924a88b398ca3eb9ed0a379e.tar.bz2 |
Add Nib build tool.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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" : |