Commit fe3d8caa authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

aout: remove Makefile recursion

parent 26b6b532
...@@ -4198,7 +4198,6 @@ AC_CONFIG_FILES([ ...@@ -4198,7 +4198,6 @@ AC_CONFIG_FILES([
modules/access_output/Makefile modules/access_output/Makefile
modules/audio_filter/Makefile modules/audio_filter/Makefile
modules/audio_mixer/Makefile modules/audio_mixer/Makefile
modules/audio_output/Makefile
modules/control/Makefile modules/control/Makefile
modules/gui/Makefile modules/gui/Makefile
modules/gui/macosx/Makefile modules/gui/macosx/Makefile
......
...@@ -5,7 +5,6 @@ BASE_SUBDIRS = \ ...@@ -5,7 +5,6 @@ BASE_SUBDIRS = \
access/rtp \ access/rtp \
audio_filter \ audio_filter \
audio_mixer \ audio_mixer \
audio_output \
control \ control \
gui \ gui \
misc \ misc \
...@@ -56,6 +55,7 @@ endif ...@@ -56,6 +55,7 @@ endif
include common.am include common.am
include access/Makefile.am include access/Makefile.am
include audio_output/Makefile.am
include codec/Makefile.am include codec/Makefile.am
include demux/Makefile.am include demux/Makefile.am
include meta_engine/Makefile.am include meta_engine/Makefile.am
......
aoutdir = $(pluginsdir)/audio_output aoutdir = $(pluginsdir)/audio_output
aout_LTLIBRARIES = aout_LTLIBRARIES =
EXTRA_LTLIBRARIES =
include ../common.am libopensles_android_plugin_la_SOURCES = audio_output/opensles_android.c
libopensles_android_plugin_la_SOURCES = opensles_android.c
libopensles_android_plugin_la_LIBADD = $(LIBDL) $(LIBM) libopensles_android_plugin_la_LIBADD = $(LIBDL) $(LIBM)
libandroid_audiotrack_plugin_la_SOURCES = audiotrack.c libandroid_audiotrack_plugin_la_SOURCES = audio_output/audiotrack.c
libandroid_audiotrack_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) libandroid_audiotrack_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libandroid_audiotrack_plugin_la_LIBADD = $(LIBDL) libandroid_audiotrack_plugin_la_LIBADD = $(LIBDL)
...@@ -15,80 +12,85 @@ if HAVE_ANDROID ...@@ -15,80 +12,85 @@ if HAVE_ANDROID
aout_LTLIBRARIES += libandroid_audiotrack_plugin.la libopensles_android_plugin.la aout_LTLIBRARIES += libandroid_audiotrack_plugin.la libopensles_android_plugin.la
endif endif
libadummy_plugin_la_SOURCES = adummy.c libadummy_plugin_la_SOURCES = audio_output/adummy.c
libafile_plugin_la_SOURCES = file.c libafile_plugin_la_SOURCES = audio_output/file.c
libafile_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) libafile_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
libamem_plugin_la_SOURCES = amem.c libamem_plugin_la_SOURCES = audio_output/amem.c
aout_LTLIBRARIES += \ aout_LTLIBRARIES += \
libadummy_plugin.la \ libadummy_plugin.la \
libafile_plugin.la \ libafile_plugin.la \
libamem_plugin.la libamem_plugin.la
liboss_plugin_la_SOURCES = oss.c volume.h liboss_plugin_la_SOURCES = audio_output/oss.c audio_output/volume.h
liboss_plugin_la_LIBADD = $(OSS_LIBS) $(LIBM) liboss_plugin_la_LIBADD = $(OSS_LIBS) $(LIBM)
if HAVE_OSS if HAVE_OSS
aout_LTLIBRARIES += liboss_plugin.la aout_LTLIBRARIES += liboss_plugin.la
endif endif
libalsa_plugin_la_SOURCES = alsa.c volume.h libalsa_plugin_la_SOURCES = audio_output/alsa.c audio_output/volume.h
libalsa_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALSA_CFLAGS) libalsa_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALSA_CFLAGS)
libalsa_plugin_la_LIBADD = $(ALSA_LIBS) $(LIBM) libalsa_plugin_la_LIBADD = $(ALSA_LIBS) $(LIBM)
if HAVE_ALSA if HAVE_ALSA
aout_LTLIBRARIES += libalsa_plugin.la aout_LTLIBRARIES += libalsa_plugin.la
endif endif
libpulse_plugin_la_SOURCES = pulse.c libpulse_plugin_la_SOURCES = audio_output/pulse.c
libpulse_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS) libpulse_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS)
libpulse_plugin_la_LIBADD = ../libvlc_pulse.la $(PULSE_LIBS) $(LIBM) libpulse_plugin_la_LIBADD = libvlc_pulse.la $(PULSE_LIBS) $(LIBM)
if HAVE_PULSE if HAVE_PULSE
aout_LTLIBRARIES += libpulse_plugin.la aout_LTLIBRARIES += libpulse_plugin.la
endif endif
libjack_plugin_la_SOURCES = jack.c volume.h libjack_plugin_la_SOURCES = audio_output/jack.c audio_output/volume.h
libjack_plugin_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS) libjack_plugin_la_CFLAGS = $(AM_CFLAGS) $(JACK_CFLAGS)
libjack_plugin_la_LIBADD = $(JACK_LIBS) $(LIBM) libjack_plugin_la_LIBADD = $(JACK_LIBS) $(LIBM)
if HAVE_JACK if HAVE_JACK
aout_LTLIBRARIES += libjack_plugin.la aout_LTLIBRARIES += libjack_plugin.la
endif endif
libmmdevice_plugin_la_SOURCES = mmdevice.c mmdevice.h wasapi.c libmmdevice_plugin_la_SOURCES = audio_output/mmdevice.c audio_output/mmdevice.h \
audio_output/wasapi.c
libmmdevice_plugin_la_LIBADD = -lole32 -lksuser libmmdevice_plugin_la_LIBADD = -lole32 -lksuser
if HAVE_WASAPI if HAVE_WASAPI
aout_LTLIBRARIES += libmmdevice_plugin.la aout_LTLIBRARIES += libmmdevice_plugin.la
endif endif
libdirectsound_plugin_la_SOURCES = directsound.c windows_audio_common.h libdirectsound_plugin_la_SOURCES = audio_output/directsound.c \
audio_output/windows_audio_common.h
libdirectsound_plugin_la_LIBADD = -lole32 libdirectsound_plugin_la_LIBADD = -lole32
if HAVE_DIRECTX if HAVE_DIRECTX
aout_LTLIBRARIES += libdirectsound_plugin.la aout_LTLIBRARIES += libdirectsound_plugin.la
endif endif
libkai_plugin_la_SOURCES = kai.c libkai_plugin_la_SOURCES = audio_output/kai.c
libkai_plugin_la_LIBADD = $(KAI_LIBS) libkai_plugin_la_LIBADD = $(KAI_LIBS)
if HAVE_KAI if HAVE_KAI
aout_LTLIBRARIES += libkai_plugin.la aout_LTLIBRARIES += libkai_plugin.la
endif endif
libsndio_plugin_la_SOURCES = sndio.c libsndio_plugin_la_SOURCES = audio_output/sndio.c
libsndio_plugin_la_LIBADD = -lsndio libsndio_plugin_la_LIBADD = -lsndio
if HAVE_SNDIO if HAVE_SNDIO
aout_LTLIBRARIES += libsndio_plugin.la aout_LTLIBRARIES += libsndio_plugin.la
endif endif
libwaveout_plugin_la_SOURCES = waveout.c windows_audio_common.h libwaveout_plugin_la_SOURCES = audio_output/waveout.c \
audio_output/windows_audio_common.h
libwaveout_plugin_la_LIBADD = -lwinmm libwaveout_plugin_la_LIBADD = -lwinmm
if HAVE_WIN32 if HAVE_WIN32
aout_LTLIBRARIES += libwaveout_plugin.la aout_LTLIBRARIES += libwaveout_plugin.la
endif endif
libauhal_plugin_la_SOURCES = TPCircularBuffer.h TPCircularBuffer.c auhal.c libauhal_plugin_la_SOURCES = audio_output/auhal.c \
audio_output/TPCircularBuffer.h audio_output/TPCircularBuffer.c
libauhal_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,-framework,CoreAudio,-framework,AudioUnit,-framework,AudioToolbox,-framework,CoreServices -rpath '$(aoutdir)' libauhal_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,-framework,CoreAudio,-framework,AudioUnit,-framework,AudioToolbox,-framework,CoreServices -rpath '$(aoutdir)'
libaudiounit_ios_plugin_la_SOURCES = TPCircularBuffer.h TPCircularBuffer.c audiounit_ios.c libaudiounit_ios_plugin_la_SOURCES = audio_output/audiounit_ios.c \
audio_output/TPCircularBuffer.h audio_output/TPCircularBuffer.c
libaudiounit_ios_plugin_la_LDFLAGS = $(libauhal_plugin_la_LDFLAGS) libaudiounit_ios_plugin_la_LDFLAGS = $(libauhal_plugin_la_LDFLAGS)
libaudioqueue_plugin_la_SOURCES = audioqueue.c libaudioqueue_plugin_la_SOURCES = audio_output/audioqueue.c
libaudioqueue_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,-framework,CoreAudio,-framework,AudioUnit,-framework,AudioToolbox,-framework,CoreServices -rpath '$(aoutdir)' libaudioqueue_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,-framework,CoreAudio,-framework,AudioUnit,-framework,AudioToolbox,-framework,CoreServices -rpath '$(aoutdir)'
EXTRA_LTLIBRARIES += libauhal_plugin.la libaudiounit_ios_plugin.la libaudioqueue_plugin.la EXTRA_LTLIBRARIES += libauhal_plugin.la libaudiounit_ios_plugin.la libaudioqueue_plugin.la
aout_LTLIBRARIES += $(LTLIBauhal) $(LTLIBaudiounit_ios) $(LTLIBaudioqueue) aout_LTLIBRARIES += $(LTLIBauhal) $(LTLIBaudiounit_ios) $(LTLIBaudioqueue)
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// Copyright 2011-2012 A Tasty Pixel. All rights reserved. // Copyright 2011-2012 A Tasty Pixel. All rights reserved.
#include "TPCircularBuffer.h" #include "audio_output/TPCircularBuffer.h"
#include <mach/mach.h> #include <mach/mach.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -53,7 +53,7 @@ struct aout_sys_t ...@@ -53,7 +53,7 @@ struct aout_sys_t
char *device; char *device;
}; };
#include "volume.h" #include "audio_output/volume.h"
#define A52_FRAME_NB 1536 #define A52_FRAME_NB 1536
......
...@@ -122,7 +122,7 @@ struct aout_sys_t { ...@@ -122,7 +122,7 @@ struct aout_sys_t {
}; };
/* Soft volume helper */ /* Soft volume helper */
#include "volume.h" #include "audio_output/volume.h"
static void *InitLibrary(struct aout_sys_t *p_sys); static void *InitLibrary(struct aout_sys_t *p_sys);
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include <vlc_aout.h> #include <vlc_aout.h>
#include <vlc_charset.h> #include <vlc_charset.h>
#include "windows_audio_common.h" #include "audio_output/windows_audio_common.h"
#define DS_BUF_SIZE (6*1024*1024) #define DS_BUF_SIZE (6*1024*1024)
......
...@@ -75,7 +75,7 @@ static int TimeGet ( audio_output_t *, mtime_t * ); ...@@ -75,7 +75,7 @@ static int TimeGet ( audio_output_t *, mtime_t * );
static int Process ( jack_nframes_t i_frames, void *p_arg ); static int Process ( jack_nframes_t i_frames, void *p_arg );
static int GraphChange ( void *p_arg ); static int GraphChange ( void *p_arg );
#include "volume.h" #include "audio_output/volume.h"
#define AUTO_CONNECT_OPTION "jack-auto-connect" #define AUTO_CONNECT_OPTION "jack-auto-connect"
#define AUTO_CONNECT_TEXT N_("Automatically connect to writable clients") #define AUTO_CONNECT_TEXT N_("Automatically connect to writable clients")
......
...@@ -84,7 +84,7 @@ static void DestroyBuffer( audio_output_t * ); ...@@ -84,7 +84,7 @@ static void DestroyBuffer( audio_output_t * );
static int ReadBuffer ( audio_output_t *, uint8_t *, int ); static int ReadBuffer ( audio_output_t *, uint8_t *, int );
static int WriteBuffer ( audio_output_t *, uint8_t *, int ); static int WriteBuffer ( audio_output_t *, uint8_t *, int );
#include "volume.h" #include "audio_output/volume.h"
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
......
...@@ -40,7 +40,7 @@ DEFINE_PROPERTYKEY(PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, ...@@ -40,7 +40,7 @@ DEFINE_PROPERTYKEY(PKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd,
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_aout.h> #include <vlc_aout.h>
#include <vlc_charset.h> #include <vlc_charset.h>
#include "mmdevice.h" #include "audio_output/mmdevice.h"
DEFINE_GUID (GUID_VLC_AUD_OUT, 0x4533f59d, 0x59ee, 0x00c6, DEFINE_GUID (GUID_VLC_AUD_OUT, 0x4533f59d, 0x59ee, 0x00c6,
0xad, 0xb2, 0xc6, 0x8b, 0x50, 0x1a, 0x66, 0x55); 0xad, 0xb2, 0xc6, 0x8b, 0x50, 0x1a, 0x66, 0x55);
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <vlc_cpu.h> #include <vlc_cpu.h>
#include <pulse/pulseaudio.h> #include <pulse/pulseaudio.h>
#include "../vlcpulse.h" #include "vlcpulse.h"
#if !PA_CHECK_VERSION(0,9,22) #if !PA_CHECK_VERSION(0,9,22)
# include <vlc_xlib.h> # include <vlc_xlib.h>
#endif #endif
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_aout.h> #include <vlc_aout.h>
#include "mmdevice.h" #include "audio_output/mmdevice.h"
static LARGE_INTEGER freq; /* performance counters frequency */ static LARGE_INTEGER freq; /* performance counters frequency */
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#include <vlc_aout.h> #include <vlc_aout.h>
#include <vlc_charset.h> /* FromWide() */ #include <vlc_charset.h> /* FromWide() */
#include "windows_audio_common.h" #include "audio_output/windows_audio_common.h"
#define FRAME_SIZE 4096 /* The size is in samples, not in bytes */ #define FRAME_SIZE 4096 /* The size is in samples, not in bytes */
......
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