mirror of
https://github.com/SSimco/Cemu.git
synced 2024-11-23 05:19:40 +00:00
Added arm64 toolchain cmake file
This commit is contained in:
parent
4c929264fe
commit
860966a946
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,6 +17,7 @@
|
||||
.idea/
|
||||
|
||||
build/
|
||||
build_arm
|
||||
cmake-build-*/
|
||||
out/
|
||||
.cache/
|
||||
|
11
build_arm.sh
Executable file
11
build_arm.sh
Executable 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
|
9
cmake/debian-arm64toolchain.cmake
Normal file
9
cmake/debian-arm64toolchain.cmake
Normal 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")
|
Loading…
Reference in New Issue
Block a user