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