mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2024-11-29 01:33:46 +00:00
Update drone.io build script
This commit is contained in:
parent
f094f31477
commit
7176472526
1 changed files with 6 additions and 3 deletions
|
@ -1,17 +1,20 @@
|
||||||
Configuration for drone.io
|
Configuration for drone.io
|
||||||
|
|
||||||
|
git submodule update --init
|
||||||
cd ..
|
cd ..
|
||||||
wget --no-check-certificate --quiet https://cmake.org/files/v3.4/cmake-3.4.1-Linux-x86_64.sh
|
wget --no-check-certificate --quiet https://cmake.org/files/v3.4/cmake-3.4.1-Linux-x86_64.sh
|
||||||
echo y > cmake.input
|
echo y > cmake.input
|
||||||
echo n >> cmake.input
|
echo n >> cmake.input
|
||||||
sudo sh cmake-3.4.1-Linux-x86_64.sh --prefix=/opt < cmake.input > /dev/null
|
sudo sh cmake-3.4.1-Linux-x86_64.sh --prefix=/opt < cmake.input > /dev/null
|
||||||
export PATH=/opt/bin:$PATH
|
export PATH=/opt/bin:$PATH
|
||||||
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test > /dev/null 2>&1
|
||||||
sudo add-apt-repository ppa:smfengler/ppa > /dev/null 2>&1
|
sudo add-apt-repository ppa:smfengler/ppa > /dev/null 2>&1
|
||||||
sudo add-apt-repository ppa:boost-latest/ppa > /dev/null 2>&1
|
sudo add-apt-repository ppa:boost-latest/ppa > /dev/null 2>&1
|
||||||
sudo apt-get -qq update
|
sudo apt-get -qq update
|
||||||
sudo apt-get -qq install libyaml-cpp-dev libboost1.55-dev libboost-program-options1.55-dev
|
sudo apt-get -qq install libyaml-cpp-dev libboost1.55-dev libboost-program-options1.55-dev libmagic-dev gcc-5 g++-5
|
||||||
echo 2 | sudo update-alternatives --config gcc
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
|
||||||
|
echo 3 | sudo update-alternatives --config gcc
|
||||||
mkdir dindexer_build
|
mkdir dindexer_build
|
||||||
cd dindexer_build
|
cd dindexer_build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug ../dindexer
|
cmake -DCMAKE_BUILD_TYPE=Release ../dindexer
|
||||||
make
|
make
|
||||||
|
|
Loading…
Reference in a new issue