aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: f472662870cf0908a482b53a9d5b22926279683e (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
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 

libsoundmenu_la_CFLAGS = $(APPLET_CFLAGS) -Wall -Werror -DG_LOG_DOMAIN=\"Indicator-Sound\"
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


#################
# 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 \
    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 

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

CLEANFILES = \
	$(BUILT_SOURCES)