mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-22 15:33:49 +01:00
16 lines
337 B
Bash
16 lines
337 B
Bash
|
#!/bin/bash -e
|
||
|
|
||
|
install_linux_deps() {
|
||
|
local pkgs=(cmake libgd-dev libsqlite3-dev libleveldb-dev libpq-dev libhiredis-dev)
|
||
|
|
||
|
sudo apt-get update
|
||
|
sudo apt-get install -y --no-install-recommends ${pkgs[@]} "$@"
|
||
|
}
|
||
|
|
||
|
run_build() {
|
||
|
cmake . -DCMAKE_BUILD_TYPE=Debug \
|
||
|
-DENABLE_LEVELDB=1 -DENABLE_POSTGRESQL=1 -DENABLE_REDIS=1
|
||
|
|
||
|
make -j2
|
||
|
}
|