2022-09-22 08:56:07 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
export HUATUO_IL2CPP_SOURCE_DIR=$(pushd ../LocalIl2CppData-OSXEditor/il2cpp > /dev/null && pwd && popd > /dev/null)
|
|
|
|
export IPHONESIMULATOR_VERSION=
|
|
|
|
|
|
|
|
rm -rf build
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2022-10-08 18:04:33 +08:00
|
|
|
cmake -DCMAKE_SYSTEM_PROCESSOR=arm64 -DCMAKE_OSX_ARCHITECTURES=arm64 ..
|
2022-09-22 08:56:07 +08:00
|
|
|
make -j24
|
|
|
|
|
|
|
|
if [ -f "libil2cpp.a" ]
|
|
|
|
then
|
|
|
|
echo 'build succ'
|
|
|
|
else
|
|
|
|
echo "build fail"
|
|
|
|
exit 1
|
|
|
|
fi
|