summaryrefslogtreecommitdiffstats
blob: cf5b0dcf2dc32eb809ca5fd8b9b4d8aa6bfa3b10 (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"