mirror of https://github.com/mpv-player/mpv
Move conditional compilation out of the code and into the build system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17523 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
dc7763a8e8
commit
8c317f72a7
|
@ -14,7 +14,6 @@ SRCS=af.c \
|
|||
af_format.c \
|
||||
af_gate.c \
|
||||
af_hrtf.c \
|
||||
af_lavcresample.c \
|
||||
af_pan.c \
|
||||
af_resample.c \
|
||||
af_sub.c \
|
||||
|
@ -34,6 +33,10 @@ LIBAV_INC += -I../libavutil
|
|||
endif
|
||||
ifeq ($(CONFIG_LIBAVCODEC),yes)
|
||||
LIBAV_INC += -I../libavcodec
|
||||
SRCS+=af_lavcresample.c
|
||||
endif
|
||||
ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
|
||||
SRCS+=af_lavcresample.c
|
||||
endif
|
||||
|
||||
OBJS=$(SRCS:.c=.o)
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
#include "config.h"
|
||||
#include "af.h"
|
||||
|
||||
#ifdef USE_LIBAVCODEC
|
||||
|
||||
#ifdef USE_LIBAVCODEC_SO
|
||||
#include <ffmpeg/avcodec.h>
|
||||
#include <ffmpeg/rational.h>
|
||||
|
@ -188,4 +186,3 @@ af_info_t af_info_lavcresample = {
|
|||
AF_FLAGS_REENTRANT,
|
||||
open
|
||||
};
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue