mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-08 16:56:08 +00:00
switch to vcpkg+cmake build system
This commit is contained in:
10
scripts/debian/1-install-deps.sh
Executable file
10
scripts/debian/1-install-deps.sh
Executable 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
scripts/debian/2-configure.sh
Executable file
5
scripts/debian/2-configure.sh
Executable 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
scripts/debian/3-build-tests.sh
Executable file
5
scripts/debian/3-build-tests.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
cmake --build bin --parallel -t BeamMP-Server-tests
|
||||
5
scripts/debian/3-build.sh
Executable file
5
scripts/debian/3-build.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
cmake --build bin --parallel -t BeamMP-Server
|
||||
9
scripts/debian/4-install-runtime-deps.sh
Executable file
9
scripts/debian/4-install-runtime-deps.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user