mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
By default we require gettext 0.19.6 as this is needed to generate a translated version of gnucash.desktop and gnucash.appdata.xml. However this version is not available on some platforms (most notably our own ubuntu 14.04LTS travis instance). By setting ALLOW_OLD_GETTEXT=ON, the build configuration falls back to generating untranslated versions of said files instead.
21 lines
490 B
Bash
21 lines
490 B
Bash
#!/bin/bash -e
|
|
|
|
mkdir -p "$HOME"/.local/share
|
|
|
|
mkdir build
|
|
cd build
|
|
export TZ="America/Los_Angeles"
|
|
|
|
if [[ "$BUILDTYPE" == "cmake-make" ]]; then
|
|
cmake ../gnucash $PLATFORM_CMAKE_OPTS
|
|
make -j 4
|
|
make check || ../afterfailure
|
|
elif [[ "$BUILDTYPE" == "cmake-ninja" ]]; then
|
|
cmake ../gnucash -DWITH_PYTHON=ON -DCMAKE_BUILD_TYPE=debug -G Ninja $PLATFORM_CMAKE_OPTS
|
|
ninja
|
|
ninja check || ../afterfailure;
|
|
else
|
|
echo "Unknown buildtype: \"$BUILDTYPE\". Not building."
|
|
fi
|
|
|