do Linux build of encore

This commit is contained in:
CasualPokePlayer 2024-03-05 18:23:02 -08:00
parent 1bbc54f29f
commit 62dd38f77f
3 changed files with 5 additions and 2 deletions

BIN
Assets/dll/libencore.so Executable file

Binary file not shown.

5
encore/build_release.sh Normal file → Executable file
View File

@ -8,9 +8,12 @@ if [ -z "$CXX" ]; then export CXX="clang++"; fi
# Note that Debian 10's stdlibc++ is too old (nearly no c++20 support), so at least Debian 11 must be used to compile this core
# At least cmake 3.20 must be present too, so get cmake from bullseye-backports
# TODO: Not sure if the above applies since core update, also Vulkan code does not compile under Debian 11's stdlibc++ (needs at least GCC 11)
# Possibly want to just statically link in stdlibc++?
rm -rf build
mkdir build
cd build
cmake ../encore -DCMAKE_BUILD_TYPE=Release -DENABLE_LTO=ON -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CXX_FLAGS="-Wno-deprecated -include limits.h" -G Ninja
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DENABLE_VULKAN=OFF -G Ninja
ninja

@ -1 +1 @@
Subproject commit ab248a1beb2c7993f1da92afa4da663802643904
Subproject commit 438249f25aefd2d750aa0d7a45f4bb35da047a3e