aboutsummaryrefslogtreecommitdiff
path: root/extra/meson/files/cl-meson
blob: d822d81ad5005fc65f911b945b09b9b3ea322e58 (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
#!/bin/sh -e
# Wrapper for meson, we disable all auto features by default, and disable
# any downloads from subproject wrappers. We want the builds to be as
# reproducible as possible, and we want to be adding features most of the
# time instead of removing them.
#
# Unfortunately, there are lots of people who lack the ability to read the
# documentation of meson (which is really simple by the way), and declare
# features as 'combo' type instead of 'feature' type. This means that you
# shouldn't rely entirely on the '--auto-features=disabled', because those
# people declare their features as string lists.
# https://mesonbuild.com/Build-options.html#features

exec meson setup \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --libexecdir=lib \
    --sbindir=bin \
    --mandir=share/man \
    --buildtype=release \
    --auto-features=disabled \
    --wrap-mode=nodownload \
    "$@"