Skip to content

Commit

Permalink
[build]: sdk use ARCH64 tell rockit build 32/64 system
Browse files Browse the repository at this point in the history
ARCH64=ON build 64 system
ARCH64=OFF build 32 system

Signed-off-by: aaron.sun <aaron.sun@rock-chips.com>
Change-Id: Ib82470e23c730a0f03c8892abd2012fc5430ddc8
  • Loading branch information
aaron.sun authored and Xingwen Fang committed Nov 6, 2021
1 parent 129f2c3 commit 3ac2a3e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
cmake_minimum_required( VERSION 2.8.8 )
project (rockit)

if (NOT DEFINED ARCH64)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(ARCH64 ON)
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(ARCH64 OFF)
endif()
endif()

option(USE_ROCKIT_TGI "enable rockit tgi" ON)
if (${USE_ROCKIT_TGI})
message("Build rockit tgi")
Expand Down
5 changes: 2 additions & 3 deletions mpi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
cmake_minimum_required( VERSION 2.8.8 )
project (rockit)

include_directories(sdk/include)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
if(ARCH64)
set(ROCKIT_DEP_COMMON_LIBS
${CMAKE_CURRENT_LIST_DIR}/../lib/lib64/librockit.so
)
Expand All @@ -11,7 +10,7 @@ set(ROCKIT_FILE_LIBS
${CMAKE_CURRENT_LIST_DIR}/sdk/lib64/libgraphic_lsf.so
)
set(ROCKIT_DUMPSYS_FILE ${CMAKE_CURRENT_LIST_DIR}/example/bin/bin64/dumpsys)
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
else()
set(ROCKIT_DEP_COMMON_LIBS
${CMAKE_CURRENT_LIST_DIR}/../lib/lib32/librockit.so
)
Expand Down
4 changes: 2 additions & 2 deletions tgi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required( VERSION 2.8.8 )
project (rockit)

include(sdk/RockitConfig.cmake)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
if(ARCH64)
set(ROCKIT_FILE_CONFIGS ${ROCKIT_FILE_CONFIGS}/arch64)
endif()

Expand All @@ -11,7 +11,7 @@ option(USE_ROCKX "enable rockx" ON)
if (${USE_STASTERIA})
set(AI_CAMERA_CONF ${ROCKIT_FILE_CONFIGS}/aicamera_stasteria.json)
else()
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
if(ARCH64)
set(AI_CAMERA_CONF ${ROCKIT_FILE_CONFIGS}/aicamera_uvc_zoom.json)
else()
if(${USE_ROCKX})
Expand Down

0 comments on commit 3ac2a3e

Please sign in to comment.