Allow the mpris and the dbus test clients to be compiled at the same time.

This commit is contained in:
Mike Brady
2018-03-05 19:55:29 +00:00
parent 75c27395bf
commit 9776b378d4
+4 -2
View File
@@ -114,15 +114,17 @@ mpris-player-interface.h mpris-player-interface.c: org.mpris.MediaPlayer2.Playe
gdbus-codegen --interface-prefix org.mpris --generate-c-code mpris-player-interface org.mpris.MediaPlayer2.Player.xml
endif
noinst_PROGRAMS =
if USE_DBUS_CLIENT
#Make it, but don't install it anywhere
noinst_PROGRAMS = shairport-sync-dbus-test-client
noinst_PROGRAMS += shairport-sync-dbus-test-client
shairport_sync_dbus_test_client_SOURCES = dbus-interface.c dbus-interface.h shairport-sync-dbus-test-client.c
endif
if USE_MPRIS_CLIENT
#Make it, but don't install it anywhere
noinst_PROGRAMS = shairport-sync-mpris-test-client
noinst_PROGRAMS += shairport-sync-mpris-test-client
shairport_sync_mpris_test_client_SOURCES = mpris-interface.c mpris-interface.h mpris-player-interface.c mpris-player-interface.h shairport-sync-mpris-test-client.c
endif