summaryrefslogtreecommitdiffstats
blob: 91eb06444d64bdb74d694143e6d8c90f12a9ec87 (plain)
1
2
3
4
5
6
7
8
9
10
11
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"