summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2012-09-08 14:15:31 (GMT)
committerTobias Markmann <tm@ayena.de>2012-09-09 10:35:57 (GMT)
commit9d55b647520acc73742695517615f96165ecc8f5 (patch)
treebeac966766e6835ade79881f2c13deb7fec1fb53 /BuildTools/SCons
parent60b1599f5f3d11db2842ecb0bc05208225167b01 (diff)
downloadswift-contrib-tobias/notification-center.zip
swift-contrib-tobias/notification-center.tar.bz2
Initial version of ML's NotificationCenter support.tobias/notification-center
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r--BuildTools/SCons/SConscript.boot1
-rw-r--r--BuildTools/SCons/SConstruct5
2 files changed, 6 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConscript.boot b/BuildTools/SCons/SConscript.boot
index b049f94..a741aab 100644
--- a/BuildTools/SCons/SConscript.boot
+++ b/BuildTools/SCons/SConscript.boot
@@ -36,6 +36,7 @@ if os.name == "nt" :
if os.name == "nt" :
vars.Add(PackageVariable("bonjour", "Bonjour SDK location", "yes"))
vars.Add(PackageVariable("openssl", "OpenSSL location", "yes"))
+vars.Add(PackageVariable("notification_center", "enable OS X Mountain Lion notification center", "no"))
vars.Add(PathVariable("boost_includedir", "Boost headers location", None, PathVariable.PathAccept))
vars.Add(PathVariable("boost_libdir", "Boost library location", None, PathVariable.PathAccept))
vars.Add(PathVariable("expat_includedir", "Expat headers location", None, PathVariable.PathAccept))
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 3be4bd7..8a7e9ab 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -230,6 +230,11 @@ if env["PLATFORM"] == "darwin" :
env["SPARKLE_FRAMEWORK"] = "/Library/Frameworks/Sparkle.framework"
conf.Finish()
+# Notification Center
+env["HAVE_NOTIFICATION_CENTER"] = 0
+if env["PLATFORM"] == "darwin" :
+ env["HAVE_NOTIFICATION_CENTER"] = bool(env["notification_center"])
+
# Growl
env["HAVE_GROWL"] = 0
if env["PLATFORM"] == "darwin" :