2016-12-15 19:22:42 +00:00
|
|
|
#!/bin/bash
|
2016-11-19 07:55:46 +00:00
|
|
|
mkdir -p "${TRAVIS_BUILD_DIR}/build"
|
|
|
|
cd "${TRAVIS_BUILD_DIR}/build" || false
|
2018-05-19 15:13:23 +00:00
|
|
|
|
|
|
|
FLAGS=""
|
|
|
|
|
|
|
|
# Disable all extra modules and X extensions for minimal builds
|
|
|
|
# Most of these should already be turned off because their libraries are not
|
|
|
|
# installed, but some may not be
|
|
|
|
if [ "$POLYBAR_BUILD_TYPE" == "minimal" ]; then
|
|
|
|
FLAGS=(
|
|
|
|
"-DENABLE_PULSEAUDIO=OFF"
|
|
|
|
"-DENABLE_NETWORK=OFF"
|
|
|
|
"-DENABLE_MPD=OFF"
|
|
|
|
"-DENABLE_CURL=OFF"
|
|
|
|
"-DENABLE_ALSA=OFF"
|
|
|
|
"-DENABLE_I3=OFF"
|
|
|
|
"-DWITH_XRM=OFF"
|
|
|
|
"-DWITH_XKB=OFF"
|
|
|
|
"-DWITH_XRANDR_MONITORS=OFF"
|
|
|
|
"-DWITH_XCURSOR=OFF"
|
|
|
|
"-DWITH_XRANDR=ON"
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
2016-11-19 07:55:46 +00:00
|
|
|
cmake \
|
|
|
|
-DCMAKE_CXX_COMPILER="${CXX}" \
|
|
|
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
|
2018-04-07 22:49:51 +00:00
|
|
|
-DCMAKE_BUILD_TYPE="${BUILD_TYPE}" \
|
2018-05-19 15:13:23 +00:00
|
|
|
-DBUILD_TESTS:BOOL="${BUILD_TESTS:-OFF}" \
|
2018-12-14 09:38:40 +00:00
|
|
|
-DBUILD_DOC:BOOL="${BUILD_DOC:-OFF}" \
|
2018-05-19 15:13:23 +00:00
|
|
|
"${FLAGS[@]}" ..
|