加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile.uk 5.17 KB
一键复制 编辑 原始数据 按行查看 历史
王国琨 提交于 2024-03-19 02:34 . lib/yuv: port lib-yuv to tenonos
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 The TenonOS Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
# Library registration
################################################################################
$(eval $(call addlib_s,libyuv,$(CONFIG_LIBYUV)))
################################################################################
# Sources
################################################################################
LIBYUV_COMMIT=772bddaed79860d05f5d3b5ade09ec251b8cbbdb
LIBYUV_URL=https://chromium.googlesource.com/libyuv/libyuv/+archive/$(LIBYUV_COMMIT).tar.gz
ifeq ($(CONFIG_LIBYUV),y)
$(eval $(call fetch,libyuv,$(LIBYUV_URL)))
endif
################################################################################
# Helpers
################################################################################
LIBYUV_SRC = $(LIBYUV_ORIGIN)
################################################################################
# Library includes
################################################################################
CINCLUDES-$(CONFIG_LIBYUV) += -I$(LIBYUV_SRC)/include
CXXINCLUDES-$(CONFIG_LIBYUV) += -I$(LIBYUV_SRC)/include
################################################################################
# Global flags
################################################################################
GCC_INSTALLDIR_FLAGS := -idirafter $(shell LC_ALL=C $(CC) -v 2>&1 | \
$(SED) -e '/^COLLECT_LTO_WRAPPER=\(.*\)\/lto-wrapper/!d' -e 's//\1/')/include
ifdef CONFIG_ARCH_X86_64
LIBYUV_CFLAGS-$(CONFIG_ARCH_X86_64) += $(GCC_INSTALLDIR_FLAGS)
LIBYUV_CXXFLAGS-$(CONFIG_ARCH_X86_64) += $(GCC_INSTALLDIR_FLAGS)
endif
ifdef CONFIG_ARCH_ARM_64
LIBYUV_CFLAGS-$(CONFIG_ARCH_ARM_64) += $(GCC_INSTALLDIR_FLAGS)
LIBYUV_CXXFLAGS-$(CONFIG_ARCH_ARM_64) += $(GCC_INSTALLDIR_FLAGS)
endif
################################################################################
# Library sources
################################################################################
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/rotate_neon64.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/convert_to_i420.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/row_lsx.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_neon.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/rotate_win.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_rgb.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/rotate_msa.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/row_common.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/convert_from.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/mjpeg_validate.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/mjpeg_decoder.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_lsx.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/rotate_neon.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/convert_argb.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_msa.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/rotate_argb.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/convert_from_argb.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_uv.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/compare_gcc.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/compare_common.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/row_msa.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/rotate_any.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_common.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/row_win.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_gcc.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/compare_win.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/row_neon64.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/cpu_id.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/convert_jpeg.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/rotate_lsx.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_any.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/planar_functions.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_argb.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_neon64.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/convert.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/compare_neon64.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/rotate.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/rotate_common.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/row_rvv.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/row_any.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/row_neon.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/compare_msa.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/compare_neon.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_rvv.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/scale_win.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/convert_to_argb.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/rotate_gcc.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/compare.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/row_gcc.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/video_common.cc
LIBYUV_SRCS-y += $(LIBYUV_SRC)/source/row_lasx.cc
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化