Added arm64 toolchain cmake file

This commit is contained in:
SSimco 2024-08-26 12:20:37 +03:00
parent 4c929264fe
commit 860966a946
3 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@ -17,6 +17,7 @@
.idea/
build/
build_arm
cmake-build-*/
out/
.cache/

11
build_arm.sh Executable file
View File

@ -0,0 +1,11 @@
#! /bin/env bash
# rm -rf build_arm
set -e
cmake -S . -B build_arm -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DENABLE_VCPKG=OFF \
-DCMAKE_TOOLCHAIN_FILE=./cmake/debian-arm64toolchain.cmake \
-DENABLE_WAYLAND=OFF \
-DENABLE_HIDAPI=OFF \
-DENABLE_NSYSHID_LIBUSB=OFF \
-G Ninja
cmake --build build_arm

View File

@ -0,0 +1,9 @@
set(CMAKE_SYSTEM_NAME "Linux")
set(CMAKE_SYSTEM_PROCESSOR "aarch64")
set(CMAKE_ASM_COMPILER_TARGET aarch64-linux-gnu)
set(CMAKE_C_COMPILER clang-16)
set(CMAKE_C_COMPILER_TARGET aarch64-linux-gnu)
set(CMAKE_CXX_COMPILER clang++-16)
set(CMAKE_CXX_COMPILER_TARGET aarch64-linux-gnu)
set(PKG_CONFIG_EXECUTABLE "aarch64-linux-gnu-pkg-config")
set(PKGCONFIG_EXECUTABLE "aarch64-linux-gnu-pkg-config")