summaryrefslogtreecommitdiffstats
blob: a8e8590d9713c7a2e0c4f3b3737d239f7d3a6ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Import("swiftools_env")

myenv = swiftools_env.Clone()

sources = [
        "Notifier.cpp",
    ]

if swiftools_env.get("HAVE_GROWL", False) :
    sources += [
            "GrowlNotifier.mm",
            "GrowlNotifierDelegate.mm",
        ]
elif myenv["PLATFORM"] == "darwin" :
    sources += [
            "NotificationCenterNotifier.mm",
            "NotificationCenterNotifierDelegate.mm",
        ]

if swiftools_env.get("HAVE_SNARL", False) :
    myenv.MergeFlags(myenv["SNARL_FLAGS"])
    sources += [
            "SnarlNotifier.cpp",
        ]

objects = myenv.StaticObject(sources)
swiftools_env.Append(SWIFTOOLS_OBJECTS = objects)