Commit c38772c9 authored by Max Kellermann's avatar Max Kellermann

Makefile.am: add static library libpcm.a

parent 3a31589f
...@@ -8,6 +8,7 @@ AM_CPPFLAGS += -DSYSTEM_CONFIG_FILE_LOCATION='"$(sysconfdir)/mpd.conf"' ...@@ -8,6 +8,7 @@ AM_CPPFLAGS += -DSYSTEM_CONFIG_FILE_LOCATION='"$(sysconfdir)/mpd.conf"'
bin_PROGRAMS = src/mpd bin_PROGRAMS = src/mpd
noinst_LIBRARIES = \ noinst_LIBRARIES = \
libpcm.a \
libtag.a \ libtag.a \
libinput.a \ libinput.a \
libplaylist_plugins.a \ libplaylist_plugins.a \
...@@ -19,8 +20,7 @@ noinst_LIBRARIES = \ ...@@ -19,8 +20,7 @@ noinst_LIBRARIES = \
src_mpd_CPPFLAGS = $(AM_CPPFLAGS) \ src_mpd_CPPFLAGS = $(AM_CPPFLAGS) \
$(AVAHI_CFLAGS) \ $(AVAHI_CFLAGS) \
$(LIBWRAP_CFLAGS) \ $(LIBWRAP_CFLAGS) \
$(SQLITE_CFLAGS) \ $(SQLITE_CFLAGS)
$(FILTER_CFLAGS)
src_mpd_LDADD = \ src_mpd_LDADD = \
$(PLAYLIST_LIBS) \ $(PLAYLIST_LIBS) \
$(AVAHI_LIBS) \ $(AVAHI_LIBS) \
...@@ -146,19 +146,6 @@ mpd_headers = \ ...@@ -146,19 +146,6 @@ mpd_headers = \
src/output/httpd_client.h \ src/output/httpd_client.h \
src/output/httpd_internal.h \ src/output/httpd_internal.h \
src/page.h \ src/page.h \
src/pcm_buffer.h \
src/pcm_utils.h \
src/pcm_convert.h \
src/pcm_volume.h \
src/pcm_mix.h \
src/pcm_byteswap.h \
src/pcm_channels.h \
src/pcm_format.h \
src/pcm_resample.h \
src/pcm_resample_internal.h \
src/pcm_dither.h \
src/pcm_pack.h \
src/pcm_prng.h \
src/permission.h \ src/permission.h \
src/player_thread.h \ src/player_thread.h \
src/player_control.h \ src/player_control.h \
...@@ -314,16 +301,6 @@ src_mpd_SOURCES = \ ...@@ -314,16 +301,6 @@ src_mpd_SOURCES = \
src/path.c \ src/path.c \
src/mapper.c \ src/mapper.c \
src/page.c \ src/page.c \
src/pcm_convert.c \
src/pcm_volume.c \
src/pcm_mix.c \
src/pcm_byteswap.c \
src/pcm_channels.c \
src/pcm_pack.c \
src/pcm_format.c \
src/pcm_resample.c \
src/pcm_resample_fallback.c \
src/pcm_dither.c \
src/permission.c \ src/permission.c \
src/player_thread.c \ src/player_thread.c \
src/player_control.c \ src/player_control.c \
...@@ -390,14 +367,32 @@ src_mpd_SOURCES += \ ...@@ -390,14 +367,32 @@ src_mpd_SOURCES += \
src/song_sticker.c src/song_sticker.c
endif endif
FILTER_CFLAGS = \ # PCM library
libpcm_a_SOURCES = \
src/pcm_buffer.h \
src/pcm_convert.c src/pcm_convert.h \
src/pcm_volume.c src/pcm_volume.h \
src/pcm_mix.c src/pcm_mix.h \
src/pcm_byteswap.c src/pcm_byteswap.h \
src/pcm_channels.c src/pcm_channels.h \
src/pcm_pack.c src/pcm_pack.h \
src/pcm_format.c src/pcm_format.h \
src/pcm_resample.c src/pcm_resample.h \
src/pcm_resample_fallback.c \
src/pcm_resample_internal.h \
src/pcm_dither.c src/pcm_dither.h \
src/pcm_prng.h \
src/pcm_utils.h
libpcm_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(SAMPLERATE_CFLAGS) $(SAMPLERATE_CFLAGS)
FILTER_LIBS = \
libfilter_plugins.a \ PCM_LIBS = \
libpcm.a \
$(SAMPLERATE_LIBS) $(SAMPLERATE_LIBS)
if HAVE_LIBSAMPLERATE if HAVE_LIBSAMPLERATE
src_mpd_SOURCES += src/pcm_resample_libsamplerate.c libpcm_a_SOURCES += src/pcm_resample_libsamplerate.c
endif endif
# archive plugins # archive plugins
...@@ -904,6 +899,10 @@ libfilter_plugins_a_SOURCES = \ ...@@ -904,6 +899,10 @@ libfilter_plugins_a_SOURCES = \
src/filter/replay_gain_filter_plugin.c \ src/filter/replay_gain_filter_plugin.c \
src/filter/volume_filter_plugin.c src/filter/volume_filter_plugin.c
FILTER_LIBS = \
libfilter_plugins.a \
$(PCM_LIBS)
# #
# systemd unit # systemd unit
...@@ -1080,10 +1079,6 @@ test_run_filter_SOURCES = test/run_filter.c \ ...@@ -1080,10 +1079,6 @@ test_run_filter_SOURCES = test/run_filter.c \
src/filter_plugin.c \ src/filter_plugin.c \
src/filter_registry.c \ src/filter_registry.c \
src/conf.c src/tokenizer.c src/utils.c src/string_util.c \ src/conf.c src/tokenizer.c src/utils.c src/string_util.c \
src/pcm_volume.c src/pcm_convert.c src/pcm_byteswap.c \
src/pcm_format.c src/pcm_channels.c src/pcm_dither.c \
src/pcm_pack.c \
src/pcm_resample.c src/pcm_resample_fallback.c \
src/audio_check.c \ src/audio_check.c \
src/audio_format.c \ src/audio_format.c \
src/audio_parser.c \ src/audio_parser.c \
...@@ -1091,10 +1086,6 @@ test_run_filter_SOURCES = test/run_filter.c \ ...@@ -1091,10 +1086,6 @@ test_run_filter_SOURCES = test/run_filter.c \
src/replay_gain_info.c \ src/replay_gain_info.c \
src/AudioCompress/compress.c src/AudioCompress/compress.c
if HAVE_LIBSAMPLERATE
test_run_filter_SOURCES += src/pcm_resample_libsamplerate.c
endif
if ENABLE_DESPOTIFY if ENABLE_DESPOTIFY
test_read_tags_SOURCES += \ test_read_tags_SOURCES += \
src/despotify_utils.c src/despotify_utils.c
...@@ -1125,9 +1116,9 @@ endif ...@@ -1125,9 +1116,9 @@ endif
test_software_volume_SOURCES = test/software_volume.c \ test_software_volume_SOURCES = test/software_volume.c \
test/stdbin.h \ test/stdbin.h \
src/audio_check.c \ src/audio_check.c \
src/audio_parser.c \ src/audio_parser.c
src/pcm_volume.c
test_software_volume_LDADD = \ test_software_volume_LDADD = \
$(PCM_LIBS) \
$(GLIB_LIBS) $(GLIB_LIBS)
test_run_normalize_SOURCES = test/run_normalize.c \ test_run_normalize_SOURCES = test/run_normalize.c \
...@@ -1142,25 +1133,12 @@ test_run_convert_SOURCES = test/run_convert.c \ ...@@ -1142,25 +1133,12 @@ test_run_convert_SOURCES = test/run_convert.c \
src/fifo_buffer.c \ src/fifo_buffer.c \
src/audio_format.c \ src/audio_format.c \
src/audio_check.c \ src/audio_check.c \
src/audio_parser.c \ src/audio_parser.c
src/pcm_channels.c \
src/pcm_format.c \
src/pcm_pack.c \
src/pcm_dither.c \
src/pcm_byteswap.c \
src/pcm_resample.c \
src/pcm_resample_fallback.c \
src/pcm_convert.c
test_run_convert_CPPFLAGS = $(AM_CPPFLAGS) $(SAMPLERATE_CFLAGS)
test_run_convert_LDADD = \ test_run_convert_LDADD = \
$(SAMPLERATE_LIBS) \ $(PCM_LIBS) \
$(GLIB_LIBS) $(GLIB_LIBS)
if HAVE_LIBSAMPLERATE test_run_output_LDADD = $(MPD_LIBS) \
test_run_convert_SOURCES += src/pcm_resample_libsamplerate.c
endif
test_run_output_LDADD = \
$(OUTPUT_LIBS) \ $(OUTPUT_LIBS) \
$(ENCODER_LIBS) \ $(ENCODER_LIBS) \
libmixer_plugins.a \ libmixer_plugins.a \
...@@ -1188,7 +1166,6 @@ test_run_output_SOURCES = test/run_output.c \ ...@@ -1188,7 +1166,6 @@ test_run_output_SOURCES = test/run_output.c \
src/mixer_type.c \ src/mixer_type.c \
src/filter_plugin.c \ src/filter_plugin.c \
src/filter_config.c \ src/filter_config.c \
src/pcm_volume.c \
src/AudioCompress/compress.c \ src/AudioCompress/compress.c \
src/replay_gain_info.c \ src/replay_gain_info.c \
src/replay_gain_config.c \ src/replay_gain_config.c \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment