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