blob: 1de360c4b7acd66978252f77d6e6d7e291570d70 (
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
libexec_PROGRAMS = indicator-sound-service
checkxml: $(srcdir)/sound-service.xml
@xmllint -valid -noout $<
@echo $< checks out ok
####################################################################
# Sound Service
####################################################################
glib_marshal_list = sound-service-marshal.list
glib_marshal_prefix = _sound_service_marshal
#####################
# Sound service vala
#####################
music_bridge_VALASOURCES = \
service.vala \
main.vala \
volume-control.vala \
media-player.vala \
media-player-list.vala \
music-player-bridge.vala \
transport-menu-item.vala \
specific-items-manager.vala \
metadata-menu-item.vala \
player-controller.vala \
mpris2-interfaces.vala \
mpris2-watcher.vala \
mpris2-controller.vala \
player-item.vala \
settings-manager.vala \
playlists-menu-item.vala \
freedesktop-interfaces.vala \
fetch-file.vala
music_bridge_VALAFLAGS = \
--ccode \
-H music-player-bridge.h -d . \
--vapidir=$(top_srcdir)/vapi/ \
--vapidir=./ \
--thread \
--pkg gee-1.0 \
--pkg Dbusmenu-0.4 \
--pkg common-defs \
--pkg config \
--pkg gio-2.0 \
--pkg gio-unix-2.0 \
--pkg gdk-pixbuf-2.0 \
--pkg libxml-2.0 \
--pkg libpulse \
--pkg libpulse-mainloop-glib \
--pkg pulseaudio-mgr \
--target-glib=2.36
$(MAINTAINER_VALAFLAGS)
music_bridge_APIFILES = \
music-player-bridge.h
music_bridge_vala.stamp $(music_bridge_APIFILES): $(music_bridge_VALASOURCES)
$(AM_V_GEN) $(VALAC) $(music_bridge_VALAFLAGS) $^
touch music_bridge_vala.stamp
###############################
# Sound Service C
###############################
indicator_sound_service_SOURCES = \
common-defs.h \
sound-state.c \
sound-state.h \
pulseaudio-mgr.h \
pulseaudio-mgr.c \
device.c \
device.h \
sound-service-dbus.h \
sound-service-dbus.c \
slider-menu-item.h \
slider-menu-item.c \
voip-input-menu-item.h \
voip-input-menu-item.c \
mute-menu-item.h \
mute-menu-item.c \
gen-sound-service.xml.h \
gen-sound-service.xml.c \
sound-service-marshal.c \
sound-service-marshal.h \
$(music_bridge_VALASOURCES:.vala=.c)
indicator_sound_service_CFLAGS = $(PULSEAUDIO_CFLAGS) \
$(SOUNDSERVICE_CFLAGS) \
$(GCONF_CFLAGS) \
$(COVERAGE_CFLAGS) \
-DLIBEXECDIR=\"$(libexecdir)\" -Wall
indicator_sound_service_LDADD = $(PULSEAUDIO_LIBS) $(SOUNDSERVICE_LIBS) $(GCONF_LIBS)
indicator_sound_service_LDFLAGS = $(COVERAGE_LDFLAGS)
#########################
# Service xml compilation
#########################
DBUS_SPECS = \
sound-service.xml
gen-%.xml.h: %.xml
@echo "Building $@ from $<"
@echo "extern const char * _$(subst -,_,$(subst .,_,$(basename $(notdir $<))));" > $@
gen-%.xml.c: %.xml
@echo "Building $@ from $<"
@echo "const char * _$(subst -,_,$(subst .,_,$(basename $(notdir $<)))) = " > $@
@sed -e "s:\":\\\\\":g" -e s:^:\": -e s:\$$:\\\\n\": $< >> $@
@echo ";" >> $@
EXTRA_DIST = \
$(DBUS_SPECS) \
sound-service.xml \
$(music_bridge_APIFILES) \
$(music_bridge_VALASOURCES)
#######################
# Stuff to clean Stuff
#######################
BUILT_SOURCES = \
music_bridge_vala.stamp \
$(music_bridge_APIFILES) \
gen-sound-service.xml.h \
gen-sound-service.xml.c \
$(music_bridge_VALASOURCES:.vala=.c)
CLEANFILES = \
$(BUILT_SOURCES)
DISTCLEANFILES =
include $(top_srcdir)/Makefile.am.marshal
|