switch to vcpkg+cmake build system

This commit is contained in:
Lion Kortlepel
2023-12-04 15:31:03 +01:00
parent a28e31d080
commit fff1f56631
14 changed files with 472 additions and 275 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
set -ex
apt-get update -y
apt-get upgrade -y
apt-get install -y liblua5.3-0 liblua5.3-dev
apt-get install -y curl zip unzip tar
apt-get install -y cmake make git g++
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
set -ex
cmake . -B bin -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -s -Wl,-z,norelro -Wl,--hash-style=gnu -Wl,--build-id=none -Wl,-z,noseparate-code -ffunction-sections -fdata-sections -Wl,--gc-sections" -DBeamMP-Server_ENABLE_LTO=ON || cat "$SOURCE"/server/bin/vcpkg-bootstrap.log
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
set -ex
cmake --build bin --parallel -t BeamMP-Server-tests
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
set -ex
cmake --build bin --parallel -t BeamMP-Server
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
set -ex
apt-get update -y
apt-get upgrade -y
apt-get install -y liblua5.3-0 curl