代码拉取完成,页面将自动刷新
同步操作将从 huawei hiai foundation/hiai_ddk 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
cmake_minimum_required(VERSION 3.14)
project(hiai VERSION 1.0 LANGUAGES C CXX)
### set c++ standard to c++11.
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
list(APPEND CMAKE_MODULE_PATH ${ROOT_DIR}/build/core/himake)
include(hi_make)
find_package(Python)
### redirect output directory
set(output_prefix ${ROOT_DIR}/out/hiai/${ANDROID_ABI})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${output_prefix}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${output_prefix}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${output_prefix}/static)
### global constant
set(HI_SYSTEM_NAME "HI_ANDROID_NDK")
### feature switch
hi_cc_feature_option(AI_USE_LOG_STATIC ON)
hi_cc_feature_option(AI_USE_LOG_SHARED OFF)
hi_cc_feature_option(HIAI_DDK ON)
hi_cc_feature_option(AI_SUPPORT_STATIC_LOAD_RUNTIME ON)
hi_cc_feature_option(AI_SUPPORT_AIPP_API ON)
hi_cc_feature_option(AI_SUPPORT_MODEL_BUILDER_COMPATIBLE ON)
hi_cc_feature_option(AI_SUPPORT_AIPP_COMPATIBLE ON)
hi_cc_feature_option(AI_SUPPORT_GRAPH_API ON)
hi_cc_feature_option(AI_SUPPORT_PLUGIN_COMPATIBLE ON)
hi_cc_feature_option(AI_SUPPORT_LEGACY_APP_COMPATIBLE ON)
hi_cc_feature_option(AI_SUPPORT_LEGACY_ROM_COMPATIBLE ON)
hi_cc_feature_option(AI_SUPPORT_BUILT_MODEL_SAVE ON)
hi_cc_feature_option(AI_SUPPORT_SPECIAL_3RD_MODEL ON)
hi_cc_feature_option(AI_SUPPORT_UPGRADE_APK ON)
hi_cc_feature_option(STATIC_IR_GRAPH_PROTO ON)
hi_cc_feature_option(AI_SUPPORT_PRIORITY_EXTEND OFF)
hi_cc_feature_option(AI_SUPPORT_LOG_LEVEL_SETTING OFF)
hi_cc_feature_option(AI_SUPPORT_CL_CUSTOMIZATION OFF)
hi_cc_default(
NAME
hiai::default_inc
INCS
${CMAKE_CURRENT_SOURCE_DIR}/api/framework
${CMAKE_CURRENT_SOURCE_DIR}/api/infra
${CMAKE_CURRENT_SOURCE_DIR}/inc
${CMAKE_CURRENT_SOURCE_DIR}/inc/framework
${CMAKE_CURRENT_SOURCE_DIR}/src/framework/inc
${CMAKE_CURRENT_SOURCE_DIR}/src/framework
${CMAKE_CURRENT_SOURCE_DIR}/third_party/bounds_checking_function/include
)
## external deps
hi_add_subdirectory(build/core/cmake/external)
hi_add_subdirectory(api/framework)
hi_add_subdirectory(inc/framework)
### src
hi_add_subdirectory(src/infra)
hi_add_subdirectory(src/framework)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。