Added an easy to use build script for debian based distributions
This commit is contained in:
parent
dd60af2e46
commit
aeb033072c
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#A script to build working executables for debian
|
||||||
|
|
||||||
|
#WARNING: This will not work on debian wheezy.
|
||||||
|
# The network code was partially rewritten to use SFML2 which is not available on that distribution
|
||||||
|
|
||||||
|
DEV_PACKAGES=( zlib1g-dev libpng-dev libgl1-mesa-dev libsdl1.2-dev libsfml-dev libgtkmm-2.4-dev libopenal-dev libwxgtk2.8-dev libgtkglextmm-x11-1.2-dev )
|
||||||
|
|
||||||
|
BUILD_PACKAGES=( build-essential cmake git ${DEV_PACKAGES[*]} zip )
|
||||||
|
|
||||||
|
BUILD_DIRECTORY="build"
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install ${BUILD_PACKAGES[*]}
|
||||||
|
|
||||||
|
if [ -d "$BUILD_DIRECTORY" ]; then
|
||||||
|
rm -r "$BUILD_DIRECTORY"
|
||||||
|
fi
|
||||||
|
mkdir "$BUILD_DIRECTORY"
|
||||||
|
cd build
|
||||||
|
# cmake -DCMAKE_BUILD_TYPE=Debug ..
|
||||||
|
cmake ..
|
||||||
|
make
|
Loading…
Reference in New Issue