1 Star 1 Fork 1

上海老李/libyuv

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 2.14 KB
一键复制 编辑 原始数据 按行查看 历史
# This is a generic makefile for libyuv for gcc.
# make -f linux.mk CXX=clang++
PREFIX:=/usr
EXEC_PREFIX:=$(PREFIX)
LIBDIR:=$(PREFIX)/lib/
INCDIR:=$(PREFIX)/include/
CXX?=g++
CXXFLAGS?=-O2 -fomit-frame-pointer -fpic
CXXFLAGS+=-Iinclude/
LDFLAGS = -shared
LOCAL_OBJ_FILES := \
source/compare.o \
source/compare_common.o \
source/compare_gcc.o \
source/convert.o \
source/convert_argb.o \
source/convert_from.o \
source/convert_from_argb.o \
source/convert_to_argb.o \
source/convert_to_i420.o \
source/cpu_id.o \
source/planar_functions.o \
source/rotate.o \
source/rotate_argb.o \
source/rotate_mips.o \
source/row_any.o \
source/row_common.o \
source/row_mips.o \
source/row_gcc.o \
source/scale.o \
source/scale_any.o \
source/scale_argb.o \
source/scale_common.o \
source/scale_mips.o \
source/scale_gcc.o \
source/video_common.o
.cc.o:
$(CXX) -c $(CXXFLAGS) $*.cc -o $*.o
all: libyuv.a libyuv.so convert libyuv.pc
libyuv.a: $(LOCAL_OBJ_FILES)
$(AR) $(ARFLAGS) $@ $(LOCAL_OBJ_FILES)
libyuv.so: $(LOCAL_OBJ_FILES)
$(CXX) $(CXXFLAGS) $(LOCAL_OBJ_FILES) -o $@ $(LDFLAGS)
# A test utility that uses libyuv conversion.
convert: util/convert.cc libyuv.a
$(CXX) $(CXXFLAGS) -Iutil/ -o $@ util/convert.cc libyuv.a
clean:
/bin/rm -f source/*.o *.ii *.s libyuv.a convert
libyuv.pc: libyuv.pc.in
sed -e "s;@prefix@;$(PREFIX);" -e "s;@exec_prefix@;$(EXEC_PREFIX);" -e "s;@libdir@;$(LIBDIR);" -e "s;@includedir@;$(INCDIR);" libyuv.pc.in > $@
install: libyuv.a libyuv.so libyuv.pc
install -d -m 755 $(DESTDIR)/$(LIBDIR)
install -d -m 755 $(DESTDIR)/$(INCDIR)
install -d -m 755 $(DESTDIR)/$(INCDIR)/libyuv
install -d -m 755 $(DESTDIR)/$(LIBDIR)/pkgconfig
install -m 644 libyuv.a $(DESTDIR)/$(LIBDIR)
install -m 644 libyuv.so $(DESTDIR)/$(LIBDIR)
install -m 644 libyuv.pc $(DESTDIR)/$(LIBDIR)/pkgconfig
install -m 644 include/libyuv.h $(DESTDIR)/$(INCDIR)
install -m 644 include/libyuv/* $(DESTDIR)/$(INCDIR)/libyuv
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/nwaycn/libyuv.git
git@gitee.com:nwaycn/libyuv.git
nwaycn
libyuv
libyuv
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385