CubicSDR/travis-ci/build.sh

48 lines
1.3 KiB
Bash
Raw Normal View History

2019-01-07 21:49:50 -05:00
# Liquid-DSP
2019-01-07 22:07:44 -05:00
cd $HOME/build
2019-01-07 21:49:50 -05:00
mkdir jgaeddert/
2019-01-07 22:07:44 -05:00
cd jgaeddert/
git clone https://github.com/jgaeddert/liquid-dsp.git
cd liquid-dsp/
2019-01-07 21:49:50 -05:00
./bootstrap.sh
./configure
2019-01-07 22:00:39 -05:00
make -j2
2019-01-07 21:49:50 -05:00
sudo make install
# Soapy SDR
2019-01-07 22:07:44 -05:00
cd $HOME/build
2019-01-07 21:49:50 -05:00
mkdir pothosware/
2019-01-07 22:07:44 -05:00
cd pothosware/
git clone https://github.com/pothosware/SoapySDR.git
mkdir SoapySDR-build
cd SoapySDR-build
cmake ../SoapySDR -DCMAKE_BUILD_TYPE=Release
2019-01-07 22:00:39 -05:00
make -j2
2019-01-07 21:49:50 -05:00
sudo make install
2019-01-07 22:26:13 -05:00
# wxWidgets
2019-01-07 22:30:14 -05:00
if [ ! -d "$HOME/build/wxWidgets/staticlib" ]
2019-01-07 22:26:13 -05:00
then
2019-01-07 22:30:14 -05:00
cd $HOME/build
2019-01-07 22:17:01 -05:00
mkdir -p $HOME/build/wxWidgets/staticlib
cd wxWidgets
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.2/wxWidgets-3.1.2.tar.bz2
2019-01-07 23:05:10 -05:00
echo "Unpacking wxWidgets (output to null).."
tar -xvjf wxWidgets-3.1.2.tar.bz2 > /dev/null
2019-01-07 22:17:01 -05:00
cd wxWidgets-3.1.2/
./autogen.sh
./configure --with-opengl --disable-shared --enable-monolithic --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-sdltest --enable-unicode --enable-display --enable-propgrid --disable-webkit --disable-webview --disable-webviewwebkit --prefix=`echo $HOME/build/wxWidgets/staticlib` CXXFLAGS="-std=c++0x"
2019-01-07 23:05:10 -05:00
echo "Building wxWidgets (output to null).."
2019-01-07 22:27:55 -05:00
make -j2 > /dev/null
2019-01-07 22:17:01 -05:00
make install
2019-01-07 22:26:13 -05:00
fi
2019-01-07 22:17:01 -05:00
2019-01-07 21:49:50 -05:00
# CubicSDR
2019-01-07 22:07:44 -05:00
cd $HOME/build
2019-01-07 21:49:50 -05:00
mkdir cjcliffe/CubicSDR-build
cd cjcliffe/CubicSDR-build
2019-01-07 22:17:01 -05:00
cmake ../CubicSDR -DCMAKE_BUILD_TYPE=Release -DwxWidgets_CONFIG_EXECUTABLE=$HOME/build/wxWidgets/staticlib/bin/wx-config
2019-01-07 22:00:39 -05:00
make -j2
2019-01-07 22:17:01 -05:00