mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
61db9f43b8
* Replaced getoptplusplus with QCommandLineParser. Fixes #39 * enabling C++11 if possible * enabling C++11 if possible * fixed gcc compilation issues * fixed linux builds and improved os x build * trying to fix dispmanx * trying to fix dispmanx * simplified travis build script * fixed argumentparser default values * rewrote validator system and made sure default arguments are processed correctly * rewrote validator system and made sure default arguments are processed correctly * fixed bool vs. regular options * oops... removing debug code * reverted screenshot api change
27 lines
798 B
Bash
Executable File
27 lines
798 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# for executing in non travis environment
|
|
[ -z "$TRAVIS_OS_NAME" ] && TRAVIS_OS_NAME="$( uname -s | tr '[:upper:]' '[:lower:]' )"
|
|
|
|
# install osx deps for hyperion compile
|
|
if [[ $TRAVIS_OS_NAME == 'osx' || $TRAVIS_OS_NAME == 'darwin' ]]
|
|
then
|
|
echo "Install OSX deps"
|
|
time brew update
|
|
time brew install qt5 || true
|
|
time brew install libusb || true
|
|
time brew install cmake || true
|
|
time brew install doxygen || true
|
|
|
|
# install linux deps for hyperion compile
|
|
elif [[ $TRAVIS_OS_NAME == 'linux' ]]
|
|
then
|
|
echo "Install linux deps"
|
|
sudo apt-get -qq update
|
|
sudo apt-get install -qq -y qtbase5-dev libqt5serialport5-dev libusb-1.0-0-dev python-dev libxrender-dev libavahi-core-dev libavahi-compat-libdnssd-dev doxygen
|
|
else
|
|
echo "Unsupported platform: $TRAVIS_OS_NAME"
|
|
exit 5
|
|
fi
|
|
|