]> git.sesse.net Git - ffmpeg/blob - tests/checkasm/Makefile
avformat/avformat, utils: Make av_find_best_stream const-correct
[ffmpeg] / 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 hevc_pel.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                              += av_tx.o
54 AVUTILOBJS                              += fixed_dsp.o
55 AVUTILOBJS                              += float_dsp.o
56
57 CHECKASMOBJS-$(CONFIG_AVUTIL)  += $(AVUTILOBJS)
58
59 CHECKASMOBJS-$(ARCH_AARCH64)            += aarch64/checkasm.o
60 CHECKASMOBJS-$(HAVE_ARMV5TE_EXTERNAL)   += arm/checkasm.o
61 CHECKASMOBJS-$(HAVE_X86ASM)             += x86/checkasm.o
62
63 CHECKASMOBJS += $(CHECKASMOBJS-yes) checkasm.o
64 CHECKASMOBJS := $(sort $(CHECKASMOBJS:%=tests/checkasm/%))
65
66 -include $(CHECKASMOBJS:.o=.d)
67
68 CHECKASMDIRS := $(sort $(dir $(CHECKASMOBJS)))
69 $(CHECKASMOBJS): | $(CHECKASMDIRS)
70 OUTDIRS += $(CHECKASMDIRS)
71
72 tests/checkasm/checkasm.o: CFLAGS += -Umain
73
74 CHECKASM := tests/checkasm/checkasm$(EXESUF)
75
76 $(CHECKASM): $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS)
77         $(LD) $(LDFLAGS) $(LDEXEFLAGS) $(LD_O) $(CHECKASMOBJS) $(FF_STATIC_DEP_LIBS) $(EXTRALIBS-avcodec) $(EXTRALIBS-avfilter) $(EXTRALIBS-avformat) $(EXTRALIBS-avutil) $(EXTRALIBS-swresample) $(EXTRALIBS)
78
79 checkasm: $(CHECKASM)
80
81 testclean:: checkasmclean
82
83 checkasmclean:
84         $(RM) $(CHECKASM) $(CLEANSUFFIXES:%=tests/checkasm/%) $(CLEANSUFFIXES:%=tests/checkasm/$(ARCH)/%)
85
86 .PHONY: checkasm