2016-04-07 08:01:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
if [ "$TRAVIS_OS_NAME" != "osx" ]; then
|
|
|
|
sudo apt-get update -qq || true
|
2016-05-11 05:33:41 +00:00
|
|
|
sudo apt-get install -qq -y --no-install-recommends libusb-1.0.0-dev libgtk-3-dev
|
2016-04-07 08:01:20 +00:00
|
|
|
else
|
|
|
|
brew install libusb
|
|
|
|
fi
|
|
|
|
|
2016-05-02 15:01:53 +00:00
|
|
|
if [ "$BUILD_SYSTEM" == "cmake" ]; then
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
else
|
|
|
|
./autogen.sh
|
2016-05-11 05:33:41 +00:00
|
|
|
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
|
|
|
|
./configure
|
|
|
|
else
|
|
|
|
./configure --with-gtk-gui
|
|
|
|
fi
|
2016-05-02 15:01:53 +00:00
|
|
|
make
|
|
|
|
fi
|