Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ARM64 CMake variable for 64-bit targets #347

Merged
merged 1 commit into from
Oct 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ SET(PROJECT_VER_PATCH 0)
SET(PROJECT_VER "${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}.${PROJECT_VER_PATCH}")
SET(PROJECT_APIVER "${PROJECT_VER}")

set(BUILD_MMAL TRUE)
set(BUILD_MMAL_APPS TRUE)
if(ARM64)
set(BUILD_MMAL FALSE)
set(BUILD_MMAL_APPS FALSE)
else()
set(BUILD_MMAL TRUE)
set(BUILD_MMAL_APPS TRUE)
endif()
set(vmcs_root ${PROJECT_SOURCE_DIR})
get_filename_component(VIDEOCORE_ROOT . ABSOLUTE)

Expand Down Expand Up @@ -61,7 +66,9 @@ endif()
add_subdirectory(interface/vcos)
add_subdirectory(interface/vmcs_host)
add_subdirectory(interface/vchiq_arm)
add_subdirectory(interface/khronos)
if(NOT ARM64)
add_subdirectory(interface/khronos)
endif()

#add_subdirectory(opensrc/tools/lua)
if(BUILD_MMAL)
Expand All @@ -75,7 +82,9 @@ if(BUILD_MMAL_APPS)
add_subdirectory(host_applications/android/apps/vidtex)
endif(BUILD_MMAL_APPS)

add_subdirectory(middleware/openmaxil)
if(NOT ARM64)
add_subdirectory(middleware/openmaxil)
endif()

# 3d demo code
#if(NOT ANDROID)
Expand Down
12 changes: 8 additions & 4 deletions host_applications/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# linux apps

add_subdirectory(libs/bcm_host)
if(NOT ARM64)
add_subdirectory(libs/bcm_host)
endif()
add_subdirectory(apps/gencmd)
add_subdirectory(apps/tvservice)
add_subdirectory(apps/vcmailbox)
add_subdirectory(apps/raspicam)
add_subdirectory(libs/sm)
add_subdirectory(apps/smem)
if(NOT ARM64)
add_subdirectory(apps/raspicam)
add_subdirectory(libs/sm)
add_subdirectory(apps/smem)
endif()
add_subdirectory(libs/debug_sym)
add_subdirectory(apps/dtoverlay)
add_subdirectory(apps/dtmerge)
Expand Down
1 change: 1 addition & 0 deletions makefiles/cmake/vmcs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ elseif (${WIN32})
else()
message(FATAL_ERROR,"Unknown system type")
endif()
set (ARM64 OFF CACHE BOOL "Whether target is ARM64")

# construct the vmcs config header file
add_definitions(-DHAVE_VMCS_CONFIG)
Expand Down