diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /media/libyuv/linux.mk | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/libyuv/linux.mk')
-rw-r--r-- | media/libyuv/linux.mk | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/media/libyuv/linux.mk b/media/libyuv/linux.mk new file mode 100644 index 000000000..ee5a3a707 --- /dev/null +++ b/media/libyuv/linux.mk @@ -0,0 +1,81 @@ +# This is a generic makefile for libyuv for gcc. +# make -f linux.mk CXX=clang++ + +CC?=gcc +CFLAGS?=-O2 -fomit-frame-pointer +CFLAGS+=-Iinclude/ + +CXX?=g++ +CXXFLAGS?=-O2 -fomit-frame-pointer +CXXFLAGS+=-Iinclude/ + +LOCAL_OBJ_FILES := \ + source/compare.o \ + source/compare_common.o \ + source/compare_gcc.o \ + source/compare_neon64.o \ + source/compare_neon.o \ + source/compare_win.o \ + source/convert_argb.o \ + source/convert.o \ + source/convert_from_argb.o \ + source/convert_from.o \ + source/convert_jpeg.o \ + source/convert_to_argb.o \ + source/convert_to_i420.o \ + source/cpu_id.o \ + source/mjpeg_decoder.o \ + source/mjpeg_validate.o \ + source/planar_functions.o \ + source/rotate_any.o \ + source/rotate_argb.o \ + source/rotate.o \ + source/rotate_common.o \ + source/rotate_gcc.o \ + source/rotate_mips.o \ + source/rotate_neon64.o \ + source/rotate_neon.o \ + source/rotate_win.o \ + source/row_any.o \ + source/row_common.o \ + source/row_gcc.o \ + source/row_mips.o \ + source/row_neon64.o \ + source/row_neon.o \ + source/row_win.o \ + source/scale_any.o \ + source/scale_argb.o \ + source/scale.o \ + source/scale_common.o \ + source/scale_gcc.o \ + source/scale_mips.o \ + source/scale_neon64.o \ + source/scale_neon.o \ + source/scale_win.o \ + source/video_common.o + +.cc.o: + $(CXX) -c $(CXXFLAGS) $*.cc -o $*.o + +.c.o: + $(CC) -c $(CFLAGS) $*.c -o $*.o + +all: libyuv.a convert cpuid psnr + +libyuv.a: $(LOCAL_OBJ_FILES) + $(AR) $(ARFLAGS) $@ $(LOCAL_OBJ_FILES) + +# A C++ test utility that uses libyuv conversion. +convert: util/convert.cc libyuv.a + $(CXX) $(CXXFLAGS) -Iutil/ -o $@ util/convert.cc libyuv.a + +# A standalone test utility +psnr: util/psnr.cc + $(CXX) $(CXXFLAGS) -Iutil/ -o $@ util/psnr.cc util/psnr_main.cc util/ssim.cc + +# A C test utility that uses libyuv conversion from C. +cpuid: util/cpuid.c libyuv.a + $(CC) $(CFLAGS) -o $@ util/cpuid.c libyuv.a + +clean: + /bin/rm -f source/*.o *.ii *.s libyuv.a convert cpuid psnr |