diff libmpcodecs/Makefile @ 17523:f0e7712385dc

Move conditional compilation out of the code and into the build system.
author diego
date Tue, 31 Jan 2006 23:36:12 +0000
parents ce1ba8fd57e7
children cc6cf286e337
line wrap: on
line diff
--- a/libmpcodecs/Makefile	Tue Jan 31 23:24:08 2006 +0000
+++ b/libmpcodecs/Makefile	Tue Jan 31 23:36:12 2006 +0000
@@ -21,7 +21,6 @@
                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 @@
                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_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 @@
                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 @@
              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 @@
              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 @@
              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 @@
              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 @@
              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 @@
 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 @@
 LIBAV_INC += -I../libavcodec
 ENCODER_SRCS += ae_lavc.c
 endif
-
 ifeq ($(CONFIG_LIBAVCODEC_SO),yes)
 ENCODER_SRCS += ae_lavc.c
 endif