[pulseaudio-discuss] [PATCH 4/4] desktop-notifications: Changed the configure script and the makefile for the new code.

Ștefan Săftescu stefan.saftescu at gmail.com
Thu Jul 5 14:49:01 PDT 2012


---
 configure.ac    |   16 ++++++++++++++++
 src/Makefile.am |   30 +++++++++++++++++++++++++++++-
 2 files changed, 45 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index f5f9b76..f26a444 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1102,6 +1102,22 @@ AC_SUBST(HAVE_SYSTEMD)
 AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$HAVE_SYSTEMD" = x1])
 AS_IF([test "x$HAVE_SYSTEMD" = "x1"], AC_DEFINE([HAVE_SYSTEMD], 1, [Have SYSTEMD?]))
 
+#### Desktop Notifications support (optional, dependant on D-Bus) ####
+
+AC_ARG_ENABLE([desktop-notifications],
+    AS_HELP_STRING([--disable-desktop-notifications],[Disable optional desktop notifications support]))
+
+AS_IF([test "x$enable_desktop_notifications" != "xno"],
+    HAVE_DESKTOP_NOTIFICATIONS=1,
+    HAVE_DESKTOP_NOTIFICATIONS=0)
+
+AS_IF([test "x$HAVE_DBUS" != "x1"], HAVE_DESKTOP_NOTIFICATIONS=0)
+
+AS_IF([test "x$enable_desktop_notifications" != "xyes" && test "x$HAVE_DESKTOP_NOTIFICATIONS" = "x0"],
+    [AC_MSG_ERROR([*** Desktop Notifications support not found (requires D-Bus)])])
+
+AM_CONDITIONAL([HAVE_DESKTOP_NOTIFICATIONS], [test "x$HAVE_DESKTOP_NOTIFICATIONS" = x1])
+
 #### Build and Install man pages ####
 
 AC_ARG_ENABLE([manpages],
diff --git a/src/Makefile.am b/src/Makefile.am
index 127956a..7107223 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1255,6 +1255,13 @@ bin_SCRIPTS += utils/qpaeq
 endif
 endif
 
+if HAVE_DESKTOP_NOTIFICATIONS
+modlibexec_LTLIBRARIES += \
+		libui-notification.la \
+		module-ui-notification-dn-backend.la \
+		module-desktop-notifications.la
+endif
+
 # These are generated by an M4 script
 SYMDEF_FILES = \
 		module-cli-symdef.h \
@@ -1338,7 +1345,9 @@ SYMDEF_FILES = \
 		module-switch-on-connect-symdef.h \
 		module-switch-on-port-available-symdef.h \
 		module-filter-apply-symdef.h \
-		module-filter-heuristics-symdef.h
+		module-filter-heuristics-symdef.h \
+		module-ui-notification-dn-backend-symdef.h \
+		module-desktop-notifications-symdef.h
 
 if HAVE_ESOUND
 SYMDEF_FILES += \
@@ -1950,6 +1959,25 @@ module_rygel_media_server_la_LDFLAGS = $(MODULE_LDFLAGS)
 module_rygel_media_server_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) libprotocol-http.la
 module_rygel_media_server_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
 
+# Desktop Notifications
+libui_notification_la_SOURCES = \
+		modules/notifications/notification.h modules/notifications/notification.c \
+		modules/notifications/notification-manager.h modules/notifications/notification-manager.c \
+		modules/notifications/notification-backend.h
+libui_notification_la_LDFLAGS = $(AM_LDFLAGS)
+libui_notification_la_LIBADD = $(AM_LIBADD)
+libui_notification_la_CFLAGS = $(AM_CFLAGS)
+
+module_ui_notification_dn_backend_la_SOURCES = modules/notifications/module-ui-notification-dn-backend.c
+module_ui_notification_dn_backend_la_LDFLAGS = $(MODULE_LDFLAGS)
+module_ui_notification_dn_backend_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) libui-notification.la
+module_ui_notification_dn_backend_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
+
+module_desktop_notifications_la_SOURCES = modules/notifications/module-desktop-notifications.c
+module_desktop_notifications_la_LDFLAGS = $(MODULE_LDFLAGS)
+module_desktop_notifications_la_LIBADD = $(MODULE_LIBADD) libui-notification.la
+module_desktop_notifications_la_CFLAGS = $(AM_CFLAGS)
+
 ###################################
 #        Some minor stuff         #
 ###################################
-- 
1.7.10.4



More information about the pulseaudio-discuss mailing list