#
# Copyright 2021 The Modelbox Project Authors. All Rights Reserved.
#
# 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.
cmake_minimum_required(VERSION 3.10)
set(CPACK_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "")
set(CPACK_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE INTERNAL "")
function(MODELBOX_CPACK)
set(CPACK_RPM_COMPONENT_INSTALL ON PARENT_SCOPE)
set(CPACK_DEB_COMPONENT_INSTALL ON PARENT_SCOPE)
set(CPACK_ARCHIVE_COMPONENT_INSTALL OFF PARENT_SCOPE)
set(CPACK_SET_DESTDIR ON PARENT_SCOPE)
set(CPACK_STRIP_FILES ON PARENT_SCOPE)
find_program(TAR tar)
find_program(DPKG dpkg)
find_program(RPM rpm)
set(MODELBOX_PACK_NAME "${CPACK_PACKAGE_NAME}")
if(NOT CPACK_PACKAGE_NAME)
set(MODELBOX_PACK_NAME "${CMAKE_PROJECT_NAME}")
endif()
if(TAR)
set(CPACK_GENERATOR "${CPACK_GENERATOR}TGZ;")
endif()
if (NOT STANDALONE)
if(DPKG)
set(CPACK_GENERATOR "${CPACK_GENERATOR}DEB;")
endif()
if(RPM)
set(CPACK_GENERATOR "${CPACK_GENERATOR}RPM;")
endif()
endif()
set(CPACK_GENERATOR "${CPACK_GENERATOR}" PARENT_SCOPE)
set(CPACK_COMPONENT_CPU-DEVICE-FLOWUNIT_DESCRIPTION "Modelbox CPU flowunit plugins" PARENT_SCOPE)
set(CPACK_COMPONENT_CPU-DEVICE-FLOWUNIT-DEVEL_DESCRIPTION "Modelbox CPU flowunit plugins - development" PARENT_SCOPE)
set(CPACK_COMPONENT_ASCEND-DEVICE-FLOWUNIT_DESCRIPTION "Modelbox Ascend flowunit plugins" PARENT_SCOPE)
set(CPACK_COMPONENT_ASCEND-DEVICE-FLOWUNIT-DEVEL_DESCRIPTION "Modelbox Ascend flowunit plugins - development" PARENT_SCOPE)
set(CPACK_COMPONENT_CUDA-DEVICE-FLOWUNIT_DESCRIPTION "Modelbox Cuda flowunit plugins" PARENT_SCOPE)
set(CPACK_COMPONENT_CUDA-DEVICE-FLOWUNIT-DEVEL_DESCRIPTION "Modelbox Cuda flowunit plugins - development" PARENT_SCOPE)
set(CPACK_COMPONENT_GRAPH-GRAPHVIZ_DESCRIPTION "Modelbox graph parser for graphviz" PARENT_SCOPE)
set(CPACK_COMPONENT_VIRTUALDRIVER-DRIVER-INFERENCE_DESCRIPTION "Modelbox virtual plugin for inference" PARENT_SCOPE)
set(CPACK_COMPONENT_VIRTUALDRIVER-DRIVER-PYTHON_DESCRIPTION "Modelbox virtual plugin for python" PARENT_SCOPE)
set(CPACK_COMPONENT_SOLUTION_DESCRIPTION "Modelbox solutions" PARENT_SCOPE)
set(CPACK_COMPONENT_SERVER_DESCRIPTION "Modelbox service" PARENT_SCOPE)
set(CPACK_COMPONENT_SERVER-DEVEL_DESCRIPTION "Modelbox service - development" PARENT_SCOPE)
set(CPACK_COMPONENT_DOCUMENT_DESCRIPTION "Modelbox document" PARENT_SCOPE)
set(CPACK_COMPONENT_LIBMODELBOX_DESCRIPTION "Modelbox framework library" PARENT_SCOPE)
set(CPACK_COMPONENT_LIBMODELBOX-DEVEL_DESCRIPTION "Modelbox framework library - development" PARENT_SCOPE)
# deb package configuration
set(CPACK_DEBIAN_ENABLE_COMPONENT_DEPENDS ON PARENT_SCOPE)
set(CPACK_DEBIAN_CPU-DEVICE-FLOWUNIT_PACKAGE_SECTION "libs" PARENT_SCOPE)
set(CPACK_DEBIAN_CPU-DEVICE-FLOWUNIT_PACKAGE_DEPENDS "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_DEBIAN_CPU-DEVICE-FLOWUNIT_PACKAGE_CONTROL_EXTRA ${CPACK_SOURCE_DIR}/debian/postinst PARENT_SCOPE)
set(CPACK_DEBIAN_CUDA-DEVICE-FLOWUNIT_PACKAGE_SECTION "libs" PARENT_SCOPE)
set(CPACK_DEBIAN_CUDA-DEVICE-FLOWUNIT_PACKAGE_DEPENDS "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_DEBIAN_CUDA-DEVICE-FLOWUNIT_PACKAGE_CONTROL_EXTRA ${CPACK_SOURCE_DIR}/debian/postinst PARENT_SCOPE)
set(CPACK_DEBIAN_ASCEND-DEVICE-FLOWUNIT_PACKAGE_SECTION "libs" PARENT_SCOPE)
set(CPACK_DEBIAN_ASCEND-DEVICE-FLOWUNIT_PACKAGE_DEPENDS "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_DEBIAN_ASCEND-DEVICE-FLOWUNIT_PACKAGE_CONTROL_EXTRA ${CPACK_SOURCE_DIR}/debian/postinst PARENT_SCOPE)
set(CPACK_DEBIAN_GRAPH-GRAPHVIZE_PACKAGE_SECTION "libs" PARENT_SCOPE)
set(CPACK_DEBIAN_GRAPH-GRAPHVIZE_PACKAGE_DEPENDS "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_DEBIAN_GRAPH-GRAPHVIZE_PACKAGE_CONTROL_EXTRA ${CPACK_SOURCE_DIR}/debian/postinst PARENT_SCOPE)
set(CPACK_DEBIAN_VIRTUALDRIVER-DRIVER-INFERENCE_PACKAGE_SECTION "libs" PARENT_SCOPE)
set(CPACK_DEBIAN_VIRTUALDRIVER-DRIVER-INFERENCE_PACKAGE_DEPENDS "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_DEBIAN_VIRTUALDRIVER-DRIVER_PACKAGE_CONTROL_EXTRA ${CPACK_SOURCE_DIR}/debian/postinst PARENT_SCOPE)
set(CPACK_DEBIAN_VIRTUALDRIVER-DRIVER-PYTHON_PACKAGE_SECTION "libs" PARENT_SCOPE)
set(CPACK_DEBIAN_VIRTUALDRIVER-DRIVER-PYTHON_PACKAGE_DEPENDS "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_DEBIAN_VIRTUALDRIVER-DRIVER-PYTHON_PACKAGE_CONTROL_EXTRA ${CPACK_SOURCE_DIR}/debian/postinst PARENT_SCOPE)
set(CPACK_DEBIAN_DEMO_PACKAGE_SECTION "libs" PARENT_SCOPE)
set(CPACK_DEBIAN_DEMO_PACKAGE_DEPENDS "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_DEBIAN_DEMO_PACKAGE_CONTROL_EXTRA ${CPACK_SOURCE_DIR}/debian/postinst PARENT_SCOPE)
configure_file(${CPACK_SOURCE_DIR}/debian/modelbox-server/postinst.in ${CPACK_BINARY_DIR}/debian/modelbox-server/postinst @ONLY)
configure_file(${CPACK_SOURCE_DIR}/debian/modelbox-server/postrm.in ${CPACK_BINARY_DIR}/debian/modelbox-server/postrm @ONLY)
configure_file(${CPACK_SOURCE_DIR}/debian/modelbox-server/conffiles.in ${CPACK_BINARY_DIR}/debian/modelbox-server/conffiles @ONLY)
set(CPACK_DEBIAN_SERVER_PACKAGE_SECTION "s" PARENT_SCOPE)
set(CPACK_DEBIAN_SERVER_PACKAGE_DEPENDS "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_DEBIAN_SERVER_PACKAGE_CONTROL_EXTRA
${CPACK_BINARY_DIR}/debian/modelbox-server/postinst
${CPACK_BINARY_DIR}/debian/modelbox-server/postrm
${CPACK_BINARY_DIR}/debian/modelbox-server/postinst/conffiles PARENT_SCOPE)
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Huawei Technologies Co., Ltd." PARENT_SCOPE)
# rpm package configuration
set(CPACK_PACKAGE_RELOCATABLE OFF PARENT_SCOPE)
set(CPACK_RPM_PACKAGE_AUTOREQ OFF PARENT_SCOPE)
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
"/usr/local"
"/usr/local/bin"
"/usr/local/lib"
"/usr/local/lib64"
"/usr/local/etc"
"/usr/local/include"
"/usr/lib/systemd"
${CMAKE_INSTALL_FULL_BINDIR}
${CMAKE_INSTALL_FULL_INCLUDEDIR}
${CMAKE_INSTALL_FULL_LIBDIR}
"${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig"
${SYSTEMDSYSTEMUNITDIR} PARENT_SCOPE)
set(CPACK_RPM_CPU-DEVICE-FLOWUNIT_PACKAGE_REQUIRES "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_RPM_CPU-DEVICE-FLOWUNIT_POST_INSTALL_SCRIPT_FILE ${CPACK_SOURCE_DIR}/rpm/postscript PARENT_SCOPE)
set(CPACK_RPM_CUDA-DEVICE-FLOWUNIT_PACKAGE_REQUIRES "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_RPM_CUDA-DEVICE-FLOWUNIT_POST_INSTALL_SCRIPT_FILE ${CPACK_SOURCE_DIR}/rpm/postscript PARENT_SCOPE)
set(CPACK_RPM_ASCEND-DEVICE-FLOWUNIT_PACKAGE_REQUIRES "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_RPM_ASCEND-DEVICE-FLOWUNIT_POST_INSTALL_SCRIPT_FILE ${CPACK_SOURCE_DIR}/rpm/postscript PARENT_SCOPE)
set(CPACK_RPM_GRAPH-GRAPHVIZE_PACKAGE_REQUIRES "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_RPM_GRAPH-GRAPHVIZE_POST_INSTALL_SCRIPT_FILE ${CPACK_SOURCE_DIR}/rpm/postscript PARENT_SCOPE)
set(CPACK_RPM_VIRTUALDRIVER-DRIVER-INFERENCE_PACKAGE_REQUIRES "${MODELBOX_PACK_NAME}-libmodelbox" PARENT_SCOPE)
set(CPACK_RPM_VIRTUALDRIVER-DRIVER-INFERENCE_POST_INSTALL_SCRIPT_FILE ${CPACK_SOURCE_DIR}/rpm/postscript PARENT_SCOPE)
set(CPACK_RPM_VI
没有合适的资源?快使用搜索试试~ 我知道了~
modelbox-AI应用开发和运行框架
共1305个文件
cc:442个
h:299个
txt:200个
需积分: 5 0 下载量 143 浏览量
2024-08-15
13:47:56
上传
评论
收藏 11.22MB ZIP 举报
温馨提示
ModelBox是一个适用于端边云场景的AI推理应用开发框架,提供了基于Pipeline的并行执行流程,能帮助AI应用开发者较快的开发出高效,高性能,以及支持软硬协同优化的AI应用
资源推荐
资源详情
资源评论
收起资源包目录
modelbox-AI应用开发和运行框架 (1305个子文件)
ascend_crop_yuv 24KB
ascend_padding_yuv 30KB
ascend_resize_yuv 18KB
Dockerfile.ascend.base 3KB
manager_monitor.c 24KB
manager.c 12KB
conf.c 11KB
manager_conf.c 7KB
util.c 5KB
manager_monitor_client.c 4KB
log.c 3KB
common.c 3KB
node_test.cc 145KB
mockflow.cc 130KB
modelbox_api.cc 58KB
graph_checker_test.cc 55KB
data_context.cc 51KB
data_context_test.cc 50KB
tensorrt_inference_flowunit.cc 41KB
flowunit_data_executor.cc 41KB
graph_checker.cc 39KB
editor_plugin.cc 38KB
device_test.cc 37KB
driver.cc 36KB
graph.cc 33KB
serving.cc 32KB
obs_client.cc 29KB
match_stream.cc 28KB
server_test.cc 28KB
node.cc 28KB
demo_test.cc 27KB
virtual_node_test.cc 26KB
graph_test.cc 26KB
modelbox_engine.cc 26KB
tensorflow_inference_common.cc 25KB
flow_test.cc 25KB
driver_test.cc 25KB
blocking_queue_test.cc 24KB
device_memory.cc 23KB
flowunit_data_executor_test.cc 22KB
torch_inference_flowunit.cc 22KB
video_decoder_flowunit.cc 22KB
resize_flowunit_test.cc 21KB
http_helper.cc 21KB
configuration.cc 21KB
buffer.cc 21KB
profiler_test.cc 20KB
mindspore_inference.cc 20KB
car_flow_test.cc 19KB
rockchip_api.cc 19KB
modelbox_fuse.cc 19KB
flowunit.cc 19KB
ascend_memory.cc 18KB
crypto.cc 18KB
nvcodec_video_decoder.cc 18KB
flowunit_test.cc 18KB
cuda_memory.cc 18KB
configuration_test.cc 17KB
tensorflow_inference_mock.cc 17KB
padding_flowunit.cc 17KB
statistics.cc 17KB
httpserver_sync_test.cc 17KB
atc_inference.cc 17KB
modelbox_plugin.cc 16KB
video_demuxer_flowunit.cc 16KB
flow.cc 16KB
data_source_parser_flowunit_test.cc 16KB
configuration.cc 16KB
performance.cc 16KB
output_broker_flowunit.cc 16KB
virtualdriver_python.cc 16KB
buffer_list.cc 16KB
flowunit_manager.cc 15KB
ffmpeg_video_encoder.cc 15KB
dis_output_broker.cc 15KB
flow_graph_desc.cc 15KB
tensorrt_inference_flowunit_test.cc 15KB
dlengine_inference.cc 15KB
utils.cc 15KB
image_process.cc 15KB
flow_scheduler.cc 15KB
video_encoder_flowunit.cc 15KB
torch_inference_flowunit_test.cc 15KB
virtualdriver_java.cc 15KB
driver.cc 15KB
video_decoder_flowunit.cc 15KB
vcn_restful_wrapper.cc 14KB
flowunit_group.cc 14KB
virtualdriver_inference.cc 14KB
popen.cc 14KB
video_decoder_flowunit.cc 14KB
nv_image_decoder_test.cc 13KB
local_camera_flowunit.cc 13KB
graph_manager.cc 13KB
rknpu2_inference.cc 13KB
video_out_flowunit.cc 13KB
draw_bbox_flowunit_test.cc 13KB
control_msg.cc 13KB
virtual_node.cc 13KB
flowunit_desc.cc 13KB
共 1305 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 7362
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 与 FrontendMasters 课程 JavaScript 和 React 模式相关的 repo.zip
- win11系统有ie浏览器,打开ie浏览器自动跳转edge浏览器解决方案
- 基于Spark的新闻推荐系统源码+文档说明(高分项目)
- 27个常用分布函数详细汇总-名称+类别+用途+概率密度曲线+公式-PPT版本
- 一个易于使用的多线程库,用于用 Java 创建 Discord 机器人 .zip
- 最新2024行政区划5级数据结构和数据总集
- 《实战突击Java Web项目集成开发》源码.zip
- 不同语言的删除重复字符实现.pdf
- 嵌入式系统应用-LVGL的应用-智能时钟 part 3
- jdk 官方版v1.7 64位
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功