diff options
-rwxr-xr-x | configure | 12 | ||||
-rw-r--r-- | main/configure.in | 8 | ||||
-rw-r--r-- | main/xbuild.include | 12 |
3 files changed, 31 insertions, 1 deletions
@@ -2,6 +2,7 @@ VERSION=2.1.0 profile=default tests=no +release=no prefix=NONE test -e "$CONFIG_SITE" && . "$CONFIG_SITE" test "$prefix" = NONE && prefix=/usr/local @@ -10,7 +11,7 @@ usage () { profiles=`ls profiles | sed -e "s/$/,/g" | fmt | sed -e 's/,$//' -e "s/ChangeLog, //"` echo "" - echo "Usage : configure [--prefix=PREFIX] [--select] [--profile=PROFILE]" + echo "Usage : configure [--prefix=PREFIX] [--select] [--profile=PROFILE] [--release-builds]" echo "" echo "This script allows selecting and configuring a set of MonoDevelop" echo "modules to be included in an integrated build." @@ -49,6 +50,9 @@ usage () echo "--enable-tests" echo " Build the md test suite" echo "" + echo "--enable-release" + echo " Builds md in release mode" + echo "" echo "--profile=PROFILE" echo "" echo " Configure the build system using the provided profile." @@ -167,6 +171,9 @@ configure_packages () prefixarg="" fi done + if test xyes == x$release; then + ops="$ops --enable-release" + fi title="Configuring package: $path" nc=`echo $title | wc -m` @@ -225,6 +232,9 @@ while test x$1 != x; do --enable-tests) tests=yes ;; + --enable-release) + release=yes + ;; --prefix=*) prefix=`echo $1 | sed 's/--prefix=//'` ;; diff --git a/main/configure.in b/main/configure.in index 3322da7dc5..aeadc95918 100644 --- a/main/configure.in +++ b/main/configure.in @@ -178,6 +178,13 @@ AC_ARG_ENABLE(git, AM_CONDITIONAL(ENABLE_GIT, test x$enable_git = xyes) +AC_ARG_ENABLE(release, + AC_HELP_STRING([--enable-release], + [build release mode [default=no]]), + enable_release=${enableval}, enable_release=no) + +AM_CONDITIONAL(RELEASE_BUILDS, [test x$enable_release = xyes]) + platform_bindings="" # Gnome platform addin @@ -374,4 +381,5 @@ echo " * Subversion (Unix): $enable_subversion" echo " * Git: $enable_git" echo " * Platform bindings: $platform_bindings" echo " * Unit tests: $enable_tests" +echo " * Release builds: $enable_release" echo "" diff --git a/main/xbuild.include b/main/xbuild.include index 46cc92b49f..493d09a0de 100644 --- a/main/xbuild.include +++ b/main/xbuild.include @@ -2,16 +2,28 @@ ALL_CSPROJ=$(wildcard *.csproj) MAIN_SLN=$(top_builddir)/Main.sln if ENABLE_MACPLATFORM +if RELEASE_BUILDS +PROFILE_NAME=ReleaseMac +else PROFILE_NAME=DebugMac endif +endif if ENABLE_GNOMEPLATFORM +if RELEASE_BUILDS +PROFILE_NAME=ReleaseGnome +else PROFILE_NAME=DebugGnome endif +endif if ENABLE_WINDOWSPLATFORM +if RELEASE_BUILDS +PROFILE_NAME=ReleaseWin32 +else PROFILE_NAME=DebugWin32 endif +endif XBUILD=xbuild XBUILD_VERBOSITY=normal |