[frogr] meson: Support passing --buildtype=<type> to the configure script adapter
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] meson: Support passing --buildtype=<type> to the configure script adapter
- Date: Tue, 23 May 2017 21:07:25 +0000 (UTC)
commit eeca552ed7bdd668e98b49f14e6805aec9e16518
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Tue May 23 19:14:22 2017 +0100
meson: Support passing --buildtype=<type> to the configure script adapter
Also, pass --buildtype=release it not specified, which is closer to what
we would expect from an autotools based project by default.
configure | 30 +++++++++++++++++-------------
1 files changed, 17 insertions(+), 13 deletions(-)
---
diff --git a/configure b/configure
index a7292f8..5b22543 100755
--- a/configure
+++ b/configure
@@ -55,6 +55,7 @@ sanitycheck() {
sanitycheck MESON 'meson'
sanitycheck NINJA 'ninja' 'ninja-build'
+build_type='release'
enable_header_bar='-Denable-header-bar=true'
enable_video='-Denable-video=true'
@@ -70,6 +71,7 @@ while (($# > 0)); do
--libdir) read_arg libdir "$@" || shift;;
--mandir) read_arg mandir "$@" || shift;;
--includedir) read_arg includedir "$@" || shift;;
+ --buildtype) read_arg build_type "$@" || shift;;
--enable-header-bar) enable_header_bar='-Denable-header-bar=true';;
--disable-header-bar) enable_header_bar='-Denable-header-bar=false';;
--enable-video) enable_video='-Denable-video=true';;
@@ -124,6 +126,7 @@ END
echo "Summary:"
echo " meson:....... ${MESON}"
echo " ninja:....... ${NINJA}"
+echo " build type:.. ${build_type}"
echo " prefix:...... ${prefix}"
echo " bindir:...... ${bindir}"
echo " sbindir:..... ${sbindir}"
@@ -138,18 +141,19 @@ echo " additional:.."
echo " - ${enable_header_bar} ${enable_video}"
exec ${MESON} \
- --prefix=${prefix} \
- --libdir=${libdir} \
- --libexecdir=${libexecdir} \
- --datadir=${datadir} \
- --sysconfdir=${sysconfdir} \
- --bindir=${bindir} \
- --includedir=${includedir} \
- --mandir=${mandir} \
- --default-library shared \
- ${enable_header_bar} \
- ${enable_video} \
- ${builddir} \
- ${srcdir}
+ --buildtype=${build_type} \
+ --prefix=${prefix} \
+ --libdir=${libdir} \
+ --libexecdir=${libexecdir} \
+ --datadir=${datadir} \
+ --sysconfdir=${sysconfdir} \
+ --bindir=${bindir} \
+ --includedir=${includedir} \
+ --mandir=${mandir} \
+ --default-library shared \
+ ${enable_header_bar} \
+ ${enable_video} \
+ ${builddir} \
+ ${srcdir}
# vim: ai ts=8 noet sts=2 ft=sh
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]