aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 8ddcff5231d23dc2a8ec279d987ef122195e6ede (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
libexec_PROGRAMS = indicator-sound-service

###################
# Indicator Stuff
###################

soundmenulibdir = $(INDICATORDIR)
soundmenulib_LTLIBRARIES = libsoundmenu.la
libsoundmenu_la_SOURCES = \
    common-defs.h \
	indicator-sound.h \
	indicator-sound.c \
	dbus-shared-names.h \
    sound-service-client.h \
    sound-service-marshal.c \
    sound-service-marshal.h

libsoundmenu_la_CFLAGS = $(APPLET_CFLAGS) -Wall -Werror
libsoundmenu_la_LIBADD = $(APPLET_LIBS)
libsoundmenu_la_LDFLAGS = -module -avoid-version

checkxml: $(srcdir)/sound-service.xml
	@xmllint -valid -noout $<
	@echo $< checks out ok

sound-service-client.h: $(srcdir)/sound-service.xml
	dbus-binding-tool \
		--prefix=_sound_service_client \
		--mode=glib-client \
		--output=sound-service-client.h \
		$(srcdir)/sound-service.xml

sound-service-marshal.h: $(srcdir)/sound-service.list
	glib-genmarshal --header \
		--prefix=_sound_service_marshal $(srcdir)/sound-service.list \
		> sound-service-marshal.h

sound-service-marshal.c: $(srcdir)/sound-service.list
	glib-genmarshal --body \
		--prefix=_sound_service_marshal $(srcdir)/sound-service.list \
		> sound-service-marshal.c


#################
# Session Stuff
#################
indicator_sound_service_SOURCES = \
    common-defs.h \
    sound-service.h \
    sound-service.c \
    dbus-menu-manager.c \
    dbus-menu-manager.h \
    pulse-manager.h \
    pulse-manager.c \
    sound-service-dbus.h \
    sound-service-dbus.c \
    sound-service-server.h \
    sound-service-marshal.c \
    sound-service-marshal.h \
    slider-menu-item.h \
    slider-menu-item.c
indicator_sound_service_CFLAGS = $(PULSEAUDIO_CFLAGS) $(SOUNDSERVICE_CFLAGS) $(GCONF_CFLAGS) -DLIBEXECDIR=\"$(libexecdir)\" -Wall -Werror
indicator_sound_service_LDADD = $(PULSEAUDIO_LIBS) $(SOUNDSERVICE_LIBS) $(GCONF_LIBS)

sound-service-server.h: $(srcdir)/sound-service.xml
	dbus-binding-tool \
		--prefix=_sound_service_server \
		--mode=glib-server \
		--output=sound-service-server.h \
		$(srcdir)/sound-service.xml

###############
# Other Stuff
###############
BUILT_SOURCES = \
	sound-service-client.h \
    sound-service-server.h \
	sound-service-marshal.h \
    sound-service-marshal.c

EXTRA_DIST = \
    sound-service.xml \
    sound-service.list

CLEANFILES = \
	$(BUILT_SOURCES)