blob: e130c6cb142c1d3d0d30d9aebf4281a01064fe25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
cflags="CFLAGS=${CFLAGS-}"
cxxflags="CXXFLAGS=${CXXFLAGS-}"
args=()
for arg in "$@"; do
case "$arg" in
CFLAGS=*)
cflags="$arg"
;;
CXXFLAGS=*)
cxxflags="$arg"
;;
*)
args+=("$arg")
esac
done
export "${cflags?}" "${cxxflags?}"
set -x
exec meson build "${args[@]}"
|