aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/Makefile_music_control.mk
blob: 78d808f5ca3040a4bc1eeed4e3b0b5e5c3ad3542 (plain) (blame)
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
EXTRA_DIST += src/modules/music-control/module.desktop \
src/modules/music-control/e-module-music-control.edj \
src/modules/music-control/introspect.xml

if USE_MODULE_MUSIC_CONTROL
music_controldir = $(MDIR)/music-control
music_control_DATA = src/modules/music-control/module.desktop \
src/modules/music-control/e-module-music-control.edj

MUSIC_GEN = \
src/modules/music-control/eldbus_media_player2_player.c \
src/modules/music-control/eldbus_media_player2_player.h \
src/modules/music-control/eldbus_mpris_media_player2.c \
src/modules/music-control/eldbus_mpris_media_player2.h \
src/modules/music-control/eldbus_utils.h

MAINTAINERCLEANFILES += $(MUSIC_GEN)

src/modules/music-control/e_mod_main.c: $(MUSIC_GEN)
$(MUSIC_GEN): src/modules/music-control/introspect.xml
	@cd $(abs_top_srcdir)/src/modules/music-control && \
	@eldbus_codegen@ $(abs_top_srcdir)/src/modules/music-control/introspect.xml

music_controlpkgdir = $(MDIR)/music-control/$(MODULE_ARCH)
music_controlpkg_LTLIBRARIES = src/modules/music-control/module.la

src_modules_music_control_module_la_DEPENDENCIES = $(MDEPENDENCIES)
src_modules_music_control_module_la_CPPFLAGS = $(MOD_CPPFLAGS) -Wno-unused-parameter
src_modules_music_control_module_la_LIBADD = $(MOD_LIBS)
src_modules_music_control_module_la_LDFLAGS = $(MOD_LDFLAGS)
src_modules_music_control_module_la_SOURCES = \
src/modules/music-control/e_mod_main.h \
src/modules/music-control/e_mod_main.c \
src/modules/music-control/private.h \
src/modules/music-control/ui.c \
$(MUSIC_GEN)

PHONIES += music-control install-music-control
music-control: $(music_controlpkg_LTLIBRARIES) $(music_control_DATA)
install-music-control: install-music_controlDATA install-music_controlpkgLTLIBRARIES
endif