summaryrefslogtreecommitdiff
path: root/tools/meson-build.sh
blob: 302749d8ed71ceec641a0de0824eee9118fb15e7 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
set -eux

src="$1"
dst="$2"
target="$3"
options="$4"

[ -d "$dst" ] || meson "$src" "$dst" $options
ninja -C "$dst" "$target"