File: Nib.py

package info (click to toggle)
swift-im 2.0%2Bdev6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,456 kB
  • ctags: 15,521
  • sloc: cpp: 86,078; python: 1,431; xml: 546; sh: 263; ansic: 54; makefile: 42
file content (12 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (2)
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"