mirror of
https://github.com/Yours3lf/rpi-vk-driver.git
synced 2024-11-28 10:24:15 +01:00
9bda8097bd
----------------------------------------------- -j support. Yocto needs this. Move external references into toolchain to avoid conflict with Yocto Sysroot. Move CPU tuning into toolchain. Clang uses a different tuning scheme. Python required check for Yocto. Correct usage of project details. Required for packaging step. Organize key/value to enable central place to change Toolchain path is discovered based on toolchain triple. Minimum requirement is to add toolchain bin path to your path. Add install_user step to replace install.sh Allow overriding user name. Username will not always be 'pi'. zlib.h and zconf.h from raspbian rootfs (missing form rpi toolchain sysroot) rename drm-uapi to match yocto -> libdrm packaging, testing, and rpath for unit tests stick with sdk branches CMake documentation -> BUILD.md Move -Wall to global.cmake, which makes for easier filtering Rename toolchain.cmake as it is GCC specific vulkaninfo from vulkan-tools
51 lines
1.2 KiB
CMake
51 lines
1.2 KiB
CMake
cmake_minimum_required (VERSION 3.10.2)
|
|
|
|
cmake_policy(SET CMP0048 NEW)
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug, Release, or MinSizeRel." FORCE)
|
|
message(STATUS "CMAKE_BUILD_TYPE not set, defaulting to Release.")
|
|
endif()
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
|
|
|
if(NOT BUILD_NUMBER)
|
|
set(BUILD_NUMBER 1.0.0)
|
|
endif()
|
|
|
|
project (rpi-vulkan-driver
|
|
VERSION ${BUILD_NUMBER}
|
|
DESCRIPTION "Driver for Broadcom Videocore IV GPU"
|
|
LANGUAGES C CXX
|
|
)
|
|
|
|
include(options)
|
|
include(sysroot)
|
|
include(global)
|
|
include(vulkan)
|
|
|
|
add_subdirectory(brcm)
|
|
add_subdirectory(QPUassembler)
|
|
add_subdirectory(driver)
|
|
|
|
include(packaging)
|
|
|
|
include(CTest)
|
|
|
|
if(BUILD_TESTING)
|
|
add_subdirectory(test)
|
|
endif()
|
|
|
|
add_custom_target(uninstall
|
|
"${CMAKE_COMMAND}" -P "${CMAKE_SOURCE_DIR}/cmake/uninstall.cmake"
|
|
)
|
|
|
|
add_custom_target(uninstall-vulkan
|
|
"${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/vulkan-headers-prefix/src/vulkan-headers-build/cmake_uninstall.cmake"
|
|
)
|
|
|
|
add_custom_target(clean-vulkan
|
|
"${CMAKE_COMMAND}" -E remove_directory "${CMAKE_BINARY_DIR}/vulkan-headers-prefix"
|
|
"${CMAKE_COMMAND}" -E remove_directory "${CMAKE_BINARY_DIR}/vulkan-loader-prefix"
|
|
)
|