Adding upstream version 1.6.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
6b42c9b733
commit
e82bec3657
871 changed files with 8481 additions and 1502 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
usage() {
|
||||
echo "Usage: build.sh [-b [release|debug]] "
|
||||
|
@ -19,6 +20,7 @@ usage() {
|
|||
echo " fallback download all dependencies"
|
||||
echo " and build them as shared libaries"
|
||||
echo " cross use cross toolchain to build"
|
||||
echo " coverage build coverage report"
|
||||
echo ""
|
||||
echo "configs with muon:"
|
||||
echo " [default] minimal static build"
|
||||
|
@ -58,6 +60,8 @@ cd "$(git rev-parse --show-toplevel)" || exit 1
|
|||
|
||||
BUILDDIR="$(pwd)/.build-ci"
|
||||
|
||||
fn_exists() { declare -F "$1" > /dev/null; }
|
||||
|
||||
config_meson_default() {
|
||||
CC="${CC}" "${MESON}" setup \
|
||||
--werror \
|
||||
|
@ -95,6 +99,16 @@ config_meson_cross() {
|
|||
"${BUILDDIR}"
|
||||
}
|
||||
|
||||
config_meson_coverage() {
|
||||
CC="${CC}" "${MESON}" setup \
|
||||
--werror \
|
||||
--buildtype="${BUILDTYPE}" \
|
||||
--wrap-mode=nofallback \
|
||||
-Dlibdbus=enabled \
|
||||
-Db_coverage=true \
|
||||
"${BUILDDIR}"
|
||||
}
|
||||
|
||||
build_meson() {
|
||||
"${MESON}" compile \
|
||||
-C "${BUILDDIR}"
|
||||
|
@ -105,6 +119,12 @@ test_meson() {
|
|||
-C "${BUILDDIR}"
|
||||
}
|
||||
|
||||
test_meson_coverage() {
|
||||
"${MESON}" test \
|
||||
-C "${BUILDDIR}"
|
||||
ninja -C "${BUILDDIR}" coverage --verbose
|
||||
}
|
||||
|
||||
tools_build_samurai() {
|
||||
mkdir -p "${BUILDDIR}"/build-tools
|
||||
git clone --depth 1 https://github.com/michaelforney/samurai.git \
|
||||
|
@ -178,5 +198,5 @@ if [[ "${BUILDTOOL}" == "muon" ]]; then
|
|||
fi
|
||||
|
||||
config_"${BUILDTOOL}"_"${CONFIG}"
|
||||
build_"${BUILDTOOL}"
|
||||
test_"${BUILDTOOL}"
|
||||
fn_exists "build_${BUILDTOOL}_${CONFIG}" && "build_${BUILDTOOL}_${CONFIG}" || build_"${BUILDTOOL}"
|
||||
fn_exists "test_${BUILDTOOL}_${CONFIG}" && "test_${BUILDTOOL}_${CONFIG}" || test_"${BUILDTOOL}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue