diff options
| author | Tobias Markmann <tm@ayena.de> | 2015-09-03 16:01:14 (GMT) |
|---|---|---|
| committer | Tobias Markmann <tm@ayena.de> | 2015-09-03 16:20:31 (GMT) |
| commit | be6aa6e81b44be67518731d67bb2b72268d351e8 (patch) | |
| tree | eaa06c5bf303e627db91f869adba0611da393255 /SwifTools/Notifier/SConscript | |
| parent | b6ffd5a332b6b21fdba9937fa3a0274556a09cdf (diff) | |
| download | swift-be6aa6e81b44be67518731d67bb2b72268d351e8.zip swift-be6aa6e81b44be67518731d67bb2b72268d351e8.tar.bz2 | |
Initial support for OS X Notification Center
This implements basic support for OS X Notification Center
notifications with simple banner notifications showing type,
contact and message/presence information. A click on the
notification opens the chat view to the contact.
The Notification Center backend will be used on OS X if the Growl
notification backend is not used.
This code requires OS X version 10.8 or later.
Test-Information:
Tested presence and message notifications between multiple Swift
accounts and instances on OS X 10.9.5.
Change-Id: I7b9e2132cab25e086e0912191562cad8f4cbae38
Diffstat (limited to 'SwifTools/Notifier/SConscript')
| -rw-r--r-- | SwifTools/Notifier/SConscript | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/SwifTools/Notifier/SConscript b/SwifTools/Notifier/SConscript index 98b5400..e60937b 100644 --- a/SwifTools/Notifier/SConscript +++ b/SwifTools/Notifier/SConscript | |||
| @@ -9,10 +9,16 @@ sources = [ | |||
| 9 | if swiftools_env.get("HAVE_GROWL", False) : | 9 | if swiftools_env.get("HAVE_GROWL", False) : |
| 10 | sources += [ | 10 | sources += [ |
| 11 | "GrowlNotifier.mm", | 11 | "GrowlNotifier.mm", |
| 12 | "GrowlNotifierDelegate.mm", | 12 | "GrowlNotifierDelegate.mm", |
| 13 | ] | 13 | ] |
| 14 | elif myenv["PLATFORM"] == "darwin" : | ||
| 15 | sources += [ | ||
| 16 | "NotificationCenterNotifier.mm", | ||
| 17 | "NotificationCenterNotifierDelegate.mm", | ||
| 18 | ] | ||
| 19 | |||
| 14 | if swiftools_env.get("HAVE_SNARL", False) : | 20 | if swiftools_env.get("HAVE_SNARL", False) : |
| 15 | myenv.MergeFlags(myenv["SNARL_FLAGS"]) | 21 | myenv.MergeFlags(myenv["SNARL_FLAGS"]) |
| 16 | sources += [ | 22 | sources += [ |
| 17 | "SnarlNotifier.cpp", | 23 | "SnarlNotifier.cpp", |
| 18 | ] | 24 | ] |
Swift