加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile.uk 3.22 KB
一键复制 编辑 原始数据 按行查看 历史
# 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.
################################################################################
# App registration
################################################################################
$(eval $(call addlib,appobjectdetectionmicro))
################################################################################
# APP flags
################################################################################
TFLITE_MICRO_FLAG = \
-DTF_LITE_STATIC_MEMORY \
-DTF_LITE_DISABLE_X86_NEON
ifdef CONFIG_ARCH_ARM_64
GCC_INSTALLDIR_FLAGS := -idirafter $(shell LC_ALL=C $(CC) -v 2>&1 | \
$(SED) -e '/^COLLECT_LTO_WRAPPER=\(.*\)\/lto-wrapper/!d' -e 's//\1/')/include
TFLITE_MICRO_FLAG += $(GCC_INSTALLDIR_FLAGS)
endif
################################################################################
# App entry
################################################################################
ifeq ($(CONFIG_APPOBJECTDETECTIONMICRO_CUSTOM_MAIN),y)
APPOBJECTDETECTIONMICRO_SRCS-y += $(APPOBJECTDETECTIONMICRO_BASE)/main.c
endif
ifeq ($(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_HELLOWORLD), y)
DEMO_HELLOWORLD_BASE=$(APPOBJECTDETECTIONMICRO_BASE)/examples/hello_world
APPOBJECTDETECTIONMICRO_SRCS-$(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_HELLOWORLD) += $(DEMO_HELLOWORLD_BASE)/hello_world_test.cc
APPOBJECTDETECTIONMICRO_SRCS-$(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_HELLOWORLD) += $(DEMO_HELLOWORLD_BASE)/models/hello_world_float_model_data.cc
APPOBJECTDETECTIONMICRO_SRCS-$(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_HELLOWORLD) += $(DEMO_HELLOWORLD_BASE)/models/hello_world_int8_model_data.cc
CXXINCLUDES-$(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_HELLOWORLD) += -I$(DEMO_HELLOWORLD_BASE)/
CINCLUDES-$(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_HELLOWORLD) += -I$(DEMO_HELLOWORLD_BASE)/
APPOBJECTDETECTIONMICRO_CFLAGS-y += $(TFLITE_MICRO_FLAG)
APPOBJECTDETECTIONMICRO_CXXFLAGS-y += $(TFLITE_MICRO_FLAG)
endif
ifeq ($(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_PERSON_DETECTION), y)
DEMO_PERSON_DETECTION_BASE=$(APPOBJECTDETECTIONMICRO_BASE)/examples/person_detection/src
APPOBJECTDETECTIONMICRO_SRCS-$(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_PERSON_DETECTION) += $(wildcard $(DEMO_PERSON_DETECTION_BASE)/*.cc)
APPOBJECTDETECTIONMICRO_SRCS-$(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_PERSON_DETECTION) := $(sort $(APPOBJECTDETECTIONMICRO_SRCS-$(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_PERSON_DETECTION)))
CXXINCLUDES-$(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_PERSON_DETECTION) += -I$(DEMO_PERSON_DETECTION_BASE)/
CINCLUDES-$(CONFIG_APPOBJECTDETECTIONMICRO_DEMO_PERSON_DETECTION) += -I$(DEMO_PERSON_DETECTION_BASE)/
APPOBJECTDETECTIONMICRO_CFLAGS-y += $(TFLITE_MICRO_FLAG)
APPOBJECTDETECTIONMICRO_CXXFLAGS-y += $(TFLITE_MICRO_FLAG)
endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化