diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-09-19 18:56:20 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-09-19 19:33:31 +0300 |
commit | 459960c19b5d056a0c5430b9da8d92c5a5562236 (patch) | |
tree | 4bb6219651d8bd3fcdadeb838987e0bfac26235d /main | |
parent | 8aca159e622fe92d91bbe45fdccd02608c22817d (diff) |
[Build] Add release switch to configure.
Diffstat (limited to 'main')
-rw-r--r-- | main/configure.in | 8 | ||||
-rw-r--r-- | main/xbuild.include | 12 |
2 files changed, 20 insertions, 0 deletions
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 |