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_LLVIDDSP) += llviddsp.o 13AVCODECOBJS-$(CONFIG_LLVIDENCDSP) += llviddspenc.o 14AVCODECOBJS-$(CONFIG_VP8DSP) += vp8dsp.o 15AVCODECOBJS-$(CONFIG_VIDEODSP) += videodsp.o 16 17# decoders/encoders 18AVCODECOBJS-$(CONFIG_AAC_DECODER) += aacpsdsp.o \ 19 sbrdsp.o 20AVCODECOBJS-$(CONFIG_ALAC_DECODER) += alacdsp.o 21AVCODECOBJS-$(CONFIG_DCA_DECODER) += synth_filter.o 22AVCODECOBJS-$(CONFIG_EXR_DECODER) += exrdsp.o 23AVCODECOBJS-$(CONFIG_HUFFYUV_DECODER) += huffyuvdsp.o 24AVCODECOBJS-$(CONFIG_JPEG2000_DECODER) += jpeg2000dsp.o 25AVCODECOBJS-$(CONFIG_OPUS_DECODER) += opusdsp.o 26AVCODECOBJS-$(CONFIG_PIXBLOCKDSP) += pixblockdsp.o 27AVCODECOBJS-$(CONFIG_HEVC_DECODER) += hevc_add_res.o hevc_idct.o hevc_sao.o hevc_pel.o 28AVCODECOBJS-$(CONFIG_UTVIDEO_DECODER) += utvideodsp.o 29AVCODECOBJS-$(CONFIG_V210_DECODER) += v210dec.o 30AVCODECOBJS-$(CONFIG_V210_ENCODER) += v210enc.o 31AVCODECOBJS-$(CONFIG_VP9_DECODER) += vp9dsp.o 32 33CHECKASMOBJS-$(CONFIG_AVCODEC) += $(AVCODECOBJS-yes) 34 35# libavfilter tests 36AVFILTEROBJS-$(CONFIG_AFIR_FILTER) += af_afir.o 37AVFILTEROBJS-$(CONFIG_BLEND_FILTER) += vf_blend.o 38AVFILTEROBJS-$(CONFIG_COLORSPACE_FILTER) += vf_colorspace.o 39AVFILTEROBJS-$(CONFIG_EQ_FILTER) += vf_eq.o 40AVFILTEROBJS-$(CONFIG_GBLUR_FILTER) += vf_gblur.o 41AVFILTEROBJS-$(CONFIG_HFLIP_FILTER) += vf_hflip.o 42AVFILTEROBJS-$(CONFIG_THRESHOLD_FILTER) += vf_threshold.o 43AVFILTEROBJS-$(CONFIG_NLMEANS_FILTER) += vf_nlmeans.o 44 45CHECKASMOBJS-$(CONFIG_AVFILTER) += $(AVFILTEROBJS-yes) 46 47# swscale tests 48SWSCALEOBJS += sw_rgb.o sw_scale.o 49 50CHECKASMOBJS-$(CONFIG_SWSCALE) += $(SWSCALEOBJS) 51 52# libavutil tests 53AVUTILOBJS += fixed_dsp.o 54AVUTILOBJS += float_dsp.o 55 56CHECKASMOBJS-$(CONFIG_AVUTIL) += $(AVUTILOBJS) 57 58CHECKASMOBJS-$(ARCH_AARCH64) += aarch64/checkasm.o 59CHECKASMOBJS-$(HAVE_ARMV5TE_EXTERNAL) += arm/checkasm.o 60CHECKASMOBJS-$(HAVE_X86ASM) += x86/checkasm.o 61 62CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o 63CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%)) 64 65-include $(CHECKASMOBJS:.o=.d) 66 67CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS))) 68$(CHECKASMOBJS): | $(CHECKASMDIRS) 69OUTDIRS += $(CHECKASMDIRS) 70 71tests/checkasm/checkasm.o: CFLAGS += -Umain 72 73CHECKASM := tests/checkasm/checkasm$(EXESUF) 74 75$(CHECKASM): $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) 76 $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS-avcodec) $(EXTRALIBS-avfilter) $(EXTRALIBS-avformat) $(EXTRALIBS-avutil) $(EXTRALIBS-swresample) $(EXTRALIBS) 77 78checkasm: $(CHECKASM) 79 80testclean:: checkasmclean 81 82checkasmclean: 83 $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%) 84 85.PHONY: checkasm 86