1# libavcodec tests 2# subsystems 3AVCODECOBJS-$(CONFIG_AUDIODSP) += audiodsp.o 4AVCODECOBJS-$(CONFIG_BLOCKDSP) += blockdsp.o 5AVCODECOBJS-$(CONFIG_BSWAPDSP) += bswapdsp.o 6AVCODECOBJS-$(CONFIG_FLACDSP) += flacdsp.o 7AVCODECOBJS-$(CONFIG_FMTCONVERT) += fmtconvert.o 8AVCODECOBJS-$(CONFIG_G722DSP) += g722dsp.o 9AVCODECOBJS-$(CONFIG_H264DSP) += h264dsp.o 10AVCODECOBJS-$(CONFIG_H264PRED) += h264pred.o 11AVCODECOBJS-$(CONFIG_H264QPEL) += h264qpel.o 12AVCODECOBJS-$(CONFIG_IDCTDSP) += idctdsp.o 13AVCODECOBJS-$(CONFIG_LLVIDDSP) += llviddsp.o 14AVCODECOBJS-$(CONFIG_LLVIDENCDSP) += llviddspenc.o 15AVCODECOBJS-$(CONFIG_ME_CMP) += motion.o 16AVCODECOBJS-$(CONFIG_VC1DSP) += vc1dsp.o 17AVCODECOBJS-$(CONFIG_VP8DSP) += vp8dsp.o 18AVCODECOBJS-$(CONFIG_VIDEODSP) += videodsp.o 19 20# decoders/encoders 21AVCODECOBJS-$(CONFIG_AAC_DECODER) += aacpsdsp.o \ 22 sbrdsp.o 23AVCODECOBJS-$(CONFIG_ALAC_DECODER) += alacdsp.o 24AVCODECOBJS-$(CONFIG_DCA_DECODER) += synth_filter.o 25AVCODECOBJS-$(CONFIG_EXR_DECODER) += exrdsp.o 26AVCODECOBJS-$(CONFIG_HUFFYUV_DECODER) += huffyuvdsp.o 27AVCODECOBJS-$(CONFIG_JPEG2000_DECODER) += jpeg2000dsp.o 28AVCODECOBJS-$(CONFIG_OPUS_DECODER) += opusdsp.o 29AVCODECOBJS-$(CONFIG_PIXBLOCKDSP) += pixblockdsp.o 30AVCODECOBJS-$(CONFIG_HEVC_DECODER) += hevc_add_res.o hevc_idct.o hevc_sao.o hevc_pel.o 31AVCODECOBJS-$(CONFIG_UTVIDEO_DECODER) += utvideodsp.o 32AVCODECOBJS-$(CONFIG_V210_DECODER) += v210dec.o 33AVCODECOBJS-$(CONFIG_V210_ENCODER) += v210enc.o 34AVCODECOBJS-$(CONFIG_VP9_DECODER) += vp9dsp.o 35 36CHECKASMOBJS-$(CONFIG_AVCODEC) += $(AVCODECOBJS-yes) 37 38# libavfilter tests 39AVFILTEROBJS-$(CONFIG_AFIR_FILTER) += af_afir.o 40AVFILTEROBJS-$(CONFIG_BLEND_FILTER) += vf_blend.o 41AVFILTEROBJS-$(CONFIG_COLORSPACE_FILTER) += vf_colorspace.o 42AVFILTEROBJS-$(CONFIG_EQ_FILTER) += vf_eq.o 43AVFILTEROBJS-$(CONFIG_GBLUR_FILTER) += vf_gblur.o 44AVFILTEROBJS-$(CONFIG_HFLIP_FILTER) += vf_hflip.o 45AVFILTEROBJS-$(CONFIG_THRESHOLD_FILTER) += vf_threshold.o 46AVFILTEROBJS-$(CONFIG_NLMEANS_FILTER) += vf_nlmeans.o 47 48CHECKASMOBJS-$(CONFIG_AVFILTER) += $(AVFILTEROBJS-yes) 49 50# swscale tests 51SWSCALEOBJS += sw_gbrp.o sw_rgb.o sw_scale.o 52 53CHECKASMOBJS-$(CONFIG_SWSCALE) += $(SWSCALEOBJS) 54 55# libavutil tests 56AVUTILOBJS += av_tx.o 57AVUTILOBJS += fixed_dsp.o 58AVUTILOBJS += float_dsp.o 59 60CHECKASMOBJS-$(CONFIG_AVUTIL) += $(AVUTILOBJS) 61 62CHECKASMOBJS-$(ARCH_AARCH64) += aarch64/checkasm.o 63CHECKASMOBJS-$(HAVE_ARMV5TE_EXTERNAL) += arm/checkasm.o 64CHECKASMOBJS-$(HAVE_X86ASM) += x86/checkasm.o 65 66CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o 67CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%)) 68 69-include $(CHECKASMOBJS:.o=.d) 70 71CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS))) 72$(CHECKASMOBJS): | $(CHECKASMDIRS) 73OUTDIRS += $(CHECKASMDIRS) 74 75tests/checkasm/checkasm.o: CFLAGS += -Umain 76 77CHECKASM := tests/checkasm/checkasm$(EXESUF) 78 79$(CHECKASM): $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) 80 $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS-avcodec) $(EXTRALIBS-avfilter) $(EXTRALIBS-avformat) $(EXTRALIBS-avutil) $(EXTRALIBS-swresample) $(EXTRALIBS) 81 82checkasm: $(CHECKASM) 83 84testclean:: checkasmclean 85 86checkasmclean: 87 $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%) 88 89.PHONY: checkasm 90