forked from opencv/opencv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request opencv#18323 from liqi-c:tengine-lite-update
Tengine lite update * update tengine * Modify for arm32 build. * format optimization * add teng_ befor some tengine api * update graph_t to teng_graph_t * update graph_t to teng_graph_t * Code structure optimization * optimization * optimization * remove space * update tengine url Co-authored-by: liqi <[email protected]>
- Loading branch information
Showing
6 changed files
with
209 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
# Author: [email protected] or https://github.com/BUG1989 | ||
# [email protected] | ||
# [email protected] | ||
# | ||
|
||
SET(TENGINE_COMMIT_VERSION "8a4c58e0e05cd850f4bb0936a330edc86dc0e28c") | ||
SET(TENGINE_COMMIT_VERSION "e89cf8870de2ff0a80cfe626c0b52b2a16fb302e") | ||
SET(OCV_TENGINE_DIR "${OpenCV_BINARY_DIR}/3rdparty/libtengine") | ||
SET(OCV_TENGINE_SOURCE_PATH "${OCV_TENGINE_DIR}/Tengine-${TENGINE_COMMIT_VERSION}") | ||
|
||
|
@@ -32,11 +31,10 @@ IF(EXISTS "${OCV_TENGINE_SOURCE_PATH}") | |
SET(Tengine_FOUND ON) | ||
SET(BUILD_TENGINE ON) | ||
ELSE() | ||
SET(OCV_TENGINE_FILENAME "${TENGINE_COMMIT_VERSION}.zip")#name2 | ||
SET(OCV_TENGINE_URL "https://github.com/OAID/Tengine/archive/") #url2 | ||
SET(tengine_md5sum f51ca8f3963faeeff3f019a6f6edc206) #md5sum2 | ||
SET(OCV_TENGINE_FILENAME "${TENGINE_COMMIT_VERSION}.zip")#name | ||
SET(OCV_TENGINE_URL "https://github.com/OAID/Tengine/archive/") #url | ||
SET(tengine_md5sum 23f61ebb1dd419f1207d8876496289c5) #md5sum | ||
|
||
#MESSAGE(STATUS "**** TENGINE DOWNLOAD BEGIN ****") | ||
ocv_download(FILENAME ${OCV_TENGINE_FILENAME} | ||
HASH ${tengine_md5sum} | ||
URL | ||
|
@@ -62,24 +60,17 @@ ENDIF() | |
if(BUILD_TENGINE) | ||
SET(HAVE_TENGINE 1) | ||
|
||
# android system | ||
if(ANDROID) | ||
if(${ANDROID_ABI} STREQUAL "armeabi-v7a") | ||
SET(CONFIG_ARCH_ARM32 ON) | ||
elseif(${ANDROID_ABI} STREQUAL "arm64-v8a") | ||
SET(CONFIG_ARCH_ARM64 ON) | ||
endif() | ||
else() | ||
if(NOT ANDROID) | ||
# linux system | ||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL arm) | ||
SET(CONFIG_ARCH_ARM32 ON) | ||
SET(TENGINE_TOOLCHAIN_FLAG "-march=armv7-a") | ||
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64) ## AARCH64 | ||
SET(CONFIG_ARCH_ARM64 ON) | ||
SET(TENGINE_TOOLCHAIN_FLAG "-march=armv8-a") | ||
endif() | ||
endif() | ||
|
||
SET(BUILT_IN_OPENCV ON) ## set for tengine compile discern . | ||
SET(Tengine_INCLUDE_DIR "${OCV_TENGINE_SOURCE_PATH}/core/include" CACHE INTERNAL "") | ||
SET(Tengine_INCLUDE_DIR "${OCV_TENGINE_SOURCE_PATH}/include" CACHE INTERNAL "") | ||
if(EXISTS "${OCV_TENGINE_SOURCE_PATH}/CMakeLists.txt") | ||
add_subdirectory("${OCV_TENGINE_SOURCE_PATH}" "${OCV_TENGINE_DIR}/build") | ||
else() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.