ReFuel.FreeType/build_native.sh

34 lines
1.3 KiB
Bash
Raw Normal View History

2024-03-23 09:56:10 +01:00
#!/bin/bash
cd $(dirname "$0")
2024-06-20 11:46:07 +02:00
export CMAKE_DIR="$PWD/docker-cross-compiler/cmake"
2024-04-04 22:34:38 +02:00
export NOINSTALL=1
2024-06-20 11:46:07 +02:00
export REFUEL_ADDITIONAL_CMAKE="-D BUILD_SHARED_LIBS=true -D NO_SONAME=true"
2024-03-23 09:56:10 +01:00
2024-06-20 14:04:39 +02:00
# Clang Builds
./docker-cross-compiler/sh/build_native.sh "$PWD" "osx-arm64 osx-x64"
# GCC Builds
export REFUEL_ADDITIONAL_CMAKE="$REFUEL_ADDITIONAL_CMAKE -D CMAKE_CXX_FLAGS=\"-static-libgcc -static-libstdc++ -fno-exceptions\""
./docker-cross-compiler/sh/build_native.sh "$PWD" "linux-arm linux-arm64 linux-x64 win-x64 win-x86"
2024-04-04 22:27:03 +02:00
# Copy out natives from their respective directories into runtimes
mkdir -p \
./runtimes/linux-arm/native \
./runtimes/linux-arm64/native \
./runtimes/linux-x64/native \
./runtimes/win-x64/native \
2024-04-06 15:47:03 +02:00
./runtimes/win-x86/native \
./runtimes/osx-arm64 \
./runtimes/osx-x64
2024-04-04 22:27:03 +02:00
cp ./out/linux-arm/libfreetype.so runtimes/linux-arm/native/libfreetype.so
cp ./out/linux-arm64/libfreetype.so runtimes/linux-arm64/native/libfreetype.so
cp ./out/linux-x64/libfreetype.so runtimes/linux-x64/native/libfreetype.so
cp ./out/win-x64/libfreetype.dll runtimes/win-x64/native/libfreetype.dll
cp ./out/win-x86/libfreetype.dll runtimes/win-x86/native/libfreetype.dll
2024-04-06 15:47:03 +02:00
cp ./out/osx-arm64/libfreetype.dylib runtimes/osx-arm64/native/libfreetype.dylib
cp ./out/osx-x64/libfreetype.dylib runtimes/osx-x64/native/libfreetype.dylib
2024-04-04 22:27:03 +02:00
dotnet build