diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-01-31 23:36:12 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-01-31 23:36:12 +0000 |
commit | 872a28cc57bf3d9dcb6fcb4816a583f87983f022 (patch) | |
tree | 664e62e48007cf00be4e957573af0929f4e71167 | |
parent | 8c317f72a7741b180dfa4bd693cfa1b54e8345a7 (diff) |
Move conditional compilation out of the code and into the build system.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17524 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/Makefile | 50 | ||||
-rw-r--r-- | libmpcodecs/ad_ffmpeg.c | 6 | ||||
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 4 | ||||
-rw-r--r-- | libmpcodecs/ve_lavc.c | 3 | ||||
-rw-r--r-- | libmpcodecs/ve_x264.c | 3 | ||||
-rw-r--r-- | libmpcodecs/vf_fspp.c | 4 | ||||
-rw-r--r-- | libmpcodecs/vf_lavc.c | 3 | ||||
-rw-r--r-- | libmpcodecs/vf_lavcdeint.c | 5 | ||||
-rw-r--r-- | libmpcodecs/vf_qp.c | 4 | ||||
-rw-r--r-- | libmpcodecs/vf_spp.c | 4 | ||||
-rw-r--r-- | libmpcodecs/vf_uspp.c | 4 |
11 files changed, 39 insertions, 51 deletions
diff --git a/libmpcodecs/Makefile b/libmpcodecs/Makefile index cd3e801ef4..7839afe6f1 100644 --- a/libmpcodecs/Makefile +++ b/libmpcodecs/Makefile @@ -21,7 +21,6 @@ AUDIO_SRCS_OPT=ad_acm.c \ ad_dmo.c \ ad_dshow.c \ ad_faad.c \ - ad_ffmpeg.c \ ad_libdv.c \ ad_libmad.c \ ad_libvorbis.c \ @@ -29,6 +28,13 @@ AUDIO_SRCS_OPT=ad_acm.c \ ad_realaud.c \ ad_twin.c \ +ifeq ($(CONFIG_LIBAVCODEC),yes) +AUDIO_SRCS_OPT+=ad_ffmpeg.c +endif +ifeq ($(CONFIG_LIBAVCODEC_SO),yes) +AUDIO_SRCS_OPT+=ad_ffmpeg.c +endif + AUDIO_SRCS=dec_audio.c \ ad.c \ $(AUDIO_SRCS_LIB) \ @@ -49,7 +55,6 @@ VIDEO_SRCS_NAT=vd_hmblck.c \ VIDEO_SRCS_OPT=vd_divx4.c \ vd_dmo.c \ vd_dshow.c \ - vd_ffmpeg.c\ vd_libdv.c \ vd_odivx.c \ vd_qtvideo.c \ @@ -62,6 +67,13 @@ VIDEO_SRCS_OPT=vd_divx4.c \ vd_xvid.c \ vd_zrmjpeg.c \ +ifeq ($(CONFIG_LIBAVCODEC),yes) +VIDEO_SRCS_OPT+=vd_ffmpeg.c +endif +ifeq ($(CONFIG_LIBAVCODEC_SO),yes) +VIDEO_SRCS_OPT+=vd_ffmpeg.c +endif + VIDEO_SRCS=dec_video.c \ vd.c \ $(VIDEO_SRCS_NAT) \ @@ -94,7 +106,6 @@ VFILTER_SRCS=vf.c \ vf_flip.c \ vf_format.c \ vf_framestep.c \ - vf_fspp.c \ vf_halfpack.c \ vf_harddup.c \ vf_hqdn3d.c \ @@ -103,8 +114,6 @@ VFILTER_SRCS=vf.c \ vf_ilpack.c \ vf_ivtc.c \ vf_kerndeint.c \ - vf_lavc.c \ - vf_lavcdeint.c \ vf_mirror.c \ vf_noformat.c \ vf_noise.c \ @@ -113,7 +122,6 @@ VFILTER_SRCS=vf.c \ vf_phase.c \ vf_pp7.c \ vf_pullup.c \ - vf_qp.c \ vf_rectangle.c \ vf_remove_logo.c \ vf_rgb2bgr.c \ @@ -124,7 +132,6 @@ VFILTER_SRCS=vf.c \ vf_smartblur.c \ vf_softpulldown.c \ vf_softskip.c \ - vf_spp.c \ vf_swapuv.c \ vf_telecine.c \ vf_test.c \ @@ -132,13 +139,19 @@ VFILTER_SRCS=vf.c \ vf_tile.c \ vf_tinterlace.c \ vf_unsharp.c \ - vf_uspp.c \ vf_vo.c \ vf_yuvcsp.c \ vf_yuy2.c \ vf_yvu9.c \ vf_screenshot.c \ +VFILTER_LAVC_SRCS += vf_uspp.c \ + vf_fspp.c \ + vf_lavc.c \ + vf_lavcdeint.c \ + vf_qp.c \ + vf_spp.c \ + ifeq ($(CONFIG_LIBPOSTPROC),yes) VFILTER_SRCS += vf_pp.c endif @@ -146,20 +159,36 @@ ifeq ($(CONFIG_LIBPOSTPROC_SO),yes) VFILTER_SRCS += vf_pp.c endif +ifeq ($(CONFIG_LIBAVCODEC),yes) +VFILTER_SRCS += $(VFILTER_LAVC_SRCS) +endif +ifeq ($(CONFIG_LIBAVCODEC_SO),yes) +VFILTER_SRCS += $(VFILTER_LAVC_SRCS) +endif + ENCODER_SRCS=ae.c \ ae_pcm.c \ ve.c \ ve_divx4.c \ - ve_lavc.c \ ve_libdv.c \ ve_nuv.c \ ve_qtvideo.c \ ve_raw.c \ ve_vfw.c \ - ve_x264.c \ ve_xvid4.c \ ve_xvid.c \ +ifeq ($(CONFIG_LIBAVCODEC),yes) +ENCODER_SRCS+=ve_lavc.c +endif +ifeq ($(CONFIG_LIBAVCODEC_SO),yes) +ENCODER_SRCS+=ve_lavc.c +endif + +ifeq ($(X264),yes) +ENCODER_SRCS+=ve_x264.c +endif + NATIVE_SRCS=native/minilzo.c \ native/nuppelvideo.c \ native/RTjpegN.c \ @@ -202,7 +231,6 @@ ifeq ($(CONFIG_LIBAVCODEC),yes) LIBAV_INC += -I../libavcodec ENCODER_SRCS += ae_lavc.c endif - ifeq ($(CONFIG_LIBAVCODEC_SO),yes) ENCODER_SRCS += ae_lavc.c endif diff --git a/libmpcodecs/ad_ffmpeg.c b/libmpcodecs/ad_ffmpeg.c index 0f8d667c26..10cb2137e1 100644 --- a/libmpcodecs/ad_ffmpeg.c +++ b/libmpcodecs/ad_ffmpeg.c @@ -6,8 +6,6 @@ #include "mp_msg.h" #include "help_mp.h" -#ifdef USE_LIBAVCODEC - #include "ad_internal.h" #include "bswap.h" @@ -166,7 +164,3 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m } return len; } - -#endif - - diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index faf7b6a33f..21e1d9626b 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -7,8 +7,6 @@ #include "mp_msg.h" #include "help_mp.h" -#ifdef USE_LIBAVCODEC - #include "bswap.h" #include "vd_internal.h" @@ -1121,5 +1119,3 @@ uint8_t *source[3]= {src->data[0], src->data[1], src->data[2]}; } #endif // HAVE_XVMC - -#endif diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index 2ef0065767..afc5f787a7 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -11,8 +11,6 @@ #include "config.h" -#ifdef USE_LIBAVCODEC - #include "mp_msg.h" #include "help_mp.h" @@ -1089,4 +1087,3 @@ vf_info_t ve_info_lavc = { }; //===========================================================================// -#endif diff --git a/libmpcodecs/ve_x264.c b/libmpcodecs/ve_x264.c index 8e51796bd8..9015e9e4fb 100644 --- a/libmpcodecs/ve_x264.c +++ b/libmpcodecs/ve_x264.c @@ -33,8 +33,6 @@ #include "config.h" #include "mp_msg.h" -#ifdef HAVE_X264 - #include "m_option.h" #include "codec-cfg.h" #include "stream.h" @@ -553,4 +551,3 @@ vf_info_t ve_info_x264 = { "(C) 2004 LINUX4MEDIA GmbH; (C) 2004 Ark Linux", vf_open }; -#endif diff --git a/libmpcodecs/vf_fspp.c b/libmpcodecs/vf_fspp.c index a44163bddb..f2c577ea2e 100644 --- a/libmpcodecs/vf_fspp.c +++ b/libmpcodecs/vf_fspp.c @@ -38,8 +38,6 @@ #include "config.h" -#ifdef USE_LIBAVCODEC - #include "mp_msg.h" #include "cpudetect.h" @@ -2129,5 +2127,3 @@ static void row_fdct_mmx(DCTELEM *data, const uint8_t *pixels, int line_size, } #endif // HAVE_MMX - -#endif //USE_LIBAVCODEC diff --git a/libmpcodecs/vf_lavc.c b/libmpcodecs/vf_lavc.c index 11e79d5cae..59f5c9cf46 100644 --- a/libmpcodecs/vf_lavc.c +++ b/libmpcodecs/vf_lavc.c @@ -7,8 +7,6 @@ #include "mp_msg.h" #include "help_mp.h" -#ifdef USE_LIBAVCODEC - #include "img_format.h" #include "mp_image.h" #include "vf.h" @@ -230,4 +228,3 @@ vf_info_t vf_info_lavc = { }; //===========================================================================// -#endif diff --git a/libmpcodecs/vf_lavcdeint.c b/libmpcodecs/vf_lavcdeint.c index 392fa79d50..36c5349e6e 100644 --- a/libmpcodecs/vf_lavcdeint.c +++ b/libmpcodecs/vf_lavcdeint.c @@ -7,8 +7,6 @@ #include "mp_msg.h" #include "help_mp.h" -#ifdef USE_LIBAVCODEC - #include "img_format.h" #include "mp_image.h" #include "vf.h" @@ -189,6 +187,3 @@ vf_info_t vf_info_lavcdeint = { //===========================================================================// - -#endif /* USE_LIBAVCODEC */ - diff --git a/libmpcodecs/vf_qp.c b/libmpcodecs/vf_qp.c index ecacd08a2b..898ca99582 100644 --- a/libmpcodecs/vf_qp.c +++ b/libmpcodecs/vf_qp.c @@ -24,8 +24,6 @@ #include "config.h" -#ifdef USE_LIBAVCODEC - #include "mp_msg.h" #include "cpudetect.h" @@ -196,5 +194,3 @@ vf_info_t vf_info_qp = { open, NULL }; - -#endif //USE_LIBAVCODEC diff --git a/libmpcodecs/vf_spp.c b/libmpcodecs/vf_spp.c index 780a4aa8ad..a0f1e0b648 100644 --- a/libmpcodecs/vf_spp.c +++ b/libmpcodecs/vf_spp.c @@ -32,8 +32,6 @@ #include "config.h" -#ifdef USE_LIBAVCODEC - #include "mp_msg.h" #include "cpudetect.h" @@ -629,5 +627,3 @@ vf_info_t vf_info_spp = { open, NULL }; - -#endif //USE_LIBAVCODEC diff --git a/libmpcodecs/vf_uspp.c b/libmpcodecs/vf_uspp.c index 80d1388430..fab6ca47ae 100644 --- a/libmpcodecs/vf_uspp.c +++ b/libmpcodecs/vf_uspp.c @@ -24,8 +24,6 @@ #include "config.h" -#ifdef USE_LIBAVCODEC - #include "mp_msg.h" #include "cpudetect.h" @@ -408,5 +406,3 @@ vf_info_t vf_info_uspp = { open, NULL }; - -#endif //USE_LIBAVCODEC |