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 /BuildTools/SCons/Tools
parentba1aa621f0441f20b1ed2885832fce9cb15e4e15 (diff)
downloadswift-b6374b7ae064e689924a88b398ca3eb9ed0a379e.zip
swift-b6374b7ae064e689924a88b398ca3eb9ed0a379e.tar.bz2
Add Nib build tool.
Diffstat (limited to 'BuildTools/SCons/Tools')
-rw-r--r--BuildTools/SCons/Tools/Nib.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/BuildTools/SCons/Tools/Nib.py b/BuildTools/SCons/Tools/Nib.py
new file mode 100644
index 0000000..ccfd884
--- /dev/null
+++ b/BuildTools/SCons/Tools/Nib.py
@@ -0,0 +1,12 @@
+import SCons.Util
+
+def generate(env) :
+ env["IBTOOL"] = "ibtool"
+ env["BUILDERS"]["Nib"] = SCons.Builder.Builder(
+ action = SCons.Action.Action("$IBTOOL --errors --warnings --notices --output-format human-readable-text --compile $TARGET $SOURCE", cmdstr = "$NIBCOMSTR"),
+ suffix = ".nib",
+ src_suffix = ".xib",
+ single_source = True)
+
+def exists(env) :
+ return env["PLATFORM"] == "darwin"