mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
f1cc82b8c7
* implement enable/disable on runtime for: - smoothing - kodi - udplistener - boblight * implement enable/disable for forwarder refactor component * - implement grabber enable/disable at runtime - big grabber refactoring. now with common base class for all grabbers * implement enable/disable at runtime for bb detector * osx fix * try to fix cutted travis output for osx build
33 lines
797 B
Bash
Executable File
33 lines
797 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# for executing in non travis environment
|
|
[ -z "$TRAVIS_OS_NAME" ] && TRAVIS_OS_NAME="$( uname -s | tr '[:upper:]' '[:lower:]' )"
|
|
|
|
|
|
######################################
|
|
## COMPILE HYPERION
|
|
|
|
# compile hyperion on osx
|
|
if [[ $TRAVIS_OS_NAME == 'osx' ]]
|
|
then
|
|
procs=$(sysctl -n hw.ncpu | xargs)
|
|
echo "Processes: $procs"
|
|
|
|
mkdir build || exit 1
|
|
cd build
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=ON -Wno-dev .. || exit 2
|
|
make -j$procs || exit 3
|
|
# make -j$(nproc) package || exit 4 # currently osx(dmg) package creation not implemented
|
|
fi
|
|
|
|
# compile hyperion on linux
|
|
if [[ $TRAVIS_OS_NAME == 'linux' ]]
|
|
then
|
|
mkdir build || exit 1
|
|
cd build
|
|
cmake -DPLATFORM=x86-dev -DCMAKE_BUILD_TYPE=Release .. || exit 2
|
|
make -j$(nproc) || exit 3
|
|
make -j$(nproc) package || exit 4
|
|
fi
|
|
|