Makefile 3.9 KB

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