Add Apple Silicon support

This commit is contained in:
SamJakob
2023-11-08 15:04:19 +00:00
parent 4d50c3db49
commit 5d27a6cb4b
7 changed files with 62 additions and 15 deletions

20
src/subbuild-mac-arm.sh Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
set -e
# Default flags
CMFLAGS="-D CMAKE_BUILD_TYPE:STRING=Release"
# Make for intel
cmake $CMFLAGS -D TARGETOS=MacArm . && make scyther-mac
echo
echo
echo "---------------------------------------------------------"
echo "Built the Mac ARM binary"
# Copy to the correct locations
cp scyther-mac ../gui/Scyther/scyther-mac-arm
echo Copied the files to their respective locations
echo "---------------------------------------------------------"