[rygel] build: Add some autogen shortcuts



commit 7a6397aaa271a4dae661af58b0819787d68c06d8
Author: Jens Georg <jensg openismus com>
Date:   Thu Oct 17 14:49:39 2013 +0200

    build: Add some autogen shortcuts

 autogen.sh |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index efbbd0b..3cd0ee9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -29,14 +29,21 @@ which gnome-autogen.sh || {
     exit 1
 }
 
+DEFAULT_ARGS="--enable-vala --enable-valadoc --enable-maintainer-mode  --enable-debug  
--enable-example-plugins --enable-mediathek-plugin --enable-gst-launch-plugin --enable-strict-valac"
+
 mkdir -p m4
 
+if [ $1 = "devel" ]; then
+    DEFAULT_ARGS="$DEFAULT_ARGS --enable-uninstalled --enable-debug --disable-apidocs"
+    shift
+elif [$1 = "release" ]; then
+    DEFAULT_ARGS="$DEFAULT_ARGS --enable-apidocs --disable-debug"
+    shift
+fi
+
 # require automak 1.11 for vala support
 REQUIRED_AUTOMAKE_VERSION=1.11 \
 REQUIRED_AUTOCONF_VERSION=2.64 \
 REQUIRED_LIBTOOL_VERSION=2.2.6 \
 REQUIRED_INTLTOOL_VERSION=0.40.0 \
-bash gnome-autogen.sh --enable-vala --enable-valadoc --enable-maintainer-mode --enable-debug \
-                 --enable-example-plugins \
-                 --enable-mediathek-plugin --enable-gst-launch-plugin \
-                 --enable-strict-valac "$@"
+bash gnome-autogen.sh $DEFAULT_ARGS "$@"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]