Split audio_player.cpp into it's own convenience to avoid sending audio library

CFLAGS to every source file.

Originally committed to SVN as r2791.
This commit is contained in:
Amar Takhar 2009-04-12 10:30:07 +00:00
parent 95e9ccaf79
commit 8dab71e974
1 changed files with 6 additions and 1 deletions

View File

@ -69,6 +69,12 @@ aegisub_2_1_LDFLAGS += @OPENAL_LIBS@
aegisub_2_1_LDADD += libaudio_openal.a
endif
if FOUND_AUDIO_PLAYER
noinst_LIBRARIES += libaudio_player.a
libaudio_player_a_SOURCES = audio_player.cpp
libaudio_player_a_CPPFLAGS = @ALSA_CFLAGS@ @PORTAUDIO_CFLAGS@ @PORTAUDIO2_CFLAGS@ @LIBPULSE_CFLAGS@ @OPENAL_CFLAGS@
endif
if HAVE_FFMPEG
aegisub_2_1_LDFLAGS += @LIBAVFORMAT_LIBS@ @LIBAVCODEC_LIBS@ @LIBSWSCALE_LIBS@ @LIBAVUTIL_LIBS@
endif
@ -239,7 +245,6 @@ aegisub_2_1_SOURCES = \
audio_box.cpp \
audio_display.cpp \
audio_karaoke.cpp \
audio_player.cpp \
audio_provider.cpp \
audio_provider_convert.cpp \
audio_provider_downmix.cpp \