[mapguide-commits] r9100 - sandbox/jng/diet_v2/MgDev_Slim
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Nov 24 04:33:01 PST 2016
Author: jng
Date: 2016-11-24 04:33:01 -0800 (Thu, 24 Nov 2016)
New Revision: 9100
Added:
sandbox/jng/diet_v2/MgDev_Slim/prebuild.sh
Modified:
sandbox/jng/diet_v2/MgDev_Slim/
Log:
Bring across prebuild.sh from the old diet branch and svn link in configure.in
Property changes on: sandbox/jng/diet_v2/MgDev_Slim
___________________________________________________________________
Modified: svn:externals
- ../Installer Installer
/mapguide/trunk/Tools/MgInstantSetup InstantSetup
../MgDev/BuildTools BuildTools
../MgDev/Server Server
../MgDev/Web Web
../MgDev/Common Common
../MgDev/Desktop Desktop
../MgDev/Doc Doc
../MgDev/UnitTest UnitTest
../MgDev/nuget nuget
../MgDev/base_package_excludes.txt base_package_excludes.txt
../MgDev/csmap_excludes.txt csmap_excludes.txt
../MgDev/debug_excludes.txt debug_excludes.txt
../MgDev/debug64_excludes.txt debug64_excludes.txt
../MgDev/desktop_package_excludes.txt desktop_package_excludes.txt
../MgDev/dll_excludes.txt dll_excludes.txt
../MgDev/dotnet_excludes.txt dotnet_excludes.txt
../MgDev/dotnetapi_excludes.txt dotnetapi_excludes.txt
../MgDev/dotnetxml_excludes.txt dotnetxml_excludes.txt
../MgDev/java_excludes.txt java_excludes.txt
../MgDev/mapagent_excludes.txt mapagent_excludes.txt
../MgDev/package_excludes.txt package_excludes.txt
../MgDev/php_excludes.txt php_excludes.txt
../MgDev/release_excludes.txt release_excludes.txt
../MgDev/release64_excludes.txt release64_excludes.txt
../MgDev/svn_excludes.txt svn_excludes.txt
../MgDev/viewer_package_excludes.txt viewer_package_excludes.txt
../MgDev/build.bat build.bat
../MgDev/build_desktop.bat build_desktop.bat
../MgDev/nuget_pack.bat nuget_pack.bat
../MgDev/nuget_prepare.bat nuget_prepare.bat
../MgDev/prepare_webtier_components.bat prepare_webtier_components.bat
../MgDev/run_tests.bat run_tests.bat
../MgDev/setenvironment.bat setenvironment.bat
../MgDev/setenvironment64.bat setenvironment64.bat
../MgDev/stampassemblies.bat stampassemblies.bat
../MgDev/updateversion.vbs updateversion.vbs
+ ../Installer Installer
/mapguide/trunk/Tools/MgInstantSetup InstantSetup
../MgDev/BuildTools BuildTools
../MgDev/Server Server
../MgDev/Web Web
../MgDev/Common Common
../MgDev/Desktop Desktop
../MgDev/Doc Doc
../MgDev/UnitTest UnitTest
../MgDev/nuget nuget
../MgDev/configure.in configure.in
../MgDev/base_package_excludes.txt base_package_excludes.txt
../MgDev/csmap_excludes.txt csmap_excludes.txt
../MgDev/debug_excludes.txt debug_excludes.txt
../MgDev/debug64_excludes.txt debug64_excludes.txt
../MgDev/desktop_package_excludes.txt desktop_package_excludes.txt
../MgDev/dll_excludes.txt dll_excludes.txt
../MgDev/dotnet_excludes.txt dotnet_excludes.txt
../MgDev/dotnetapi_excludes.txt dotnetapi_excludes.txt
../MgDev/dotnetxml_excludes.txt dotnetxml_excludes.txt
../MgDev/java_excludes.txt java_excludes.txt
../MgDev/mapagent_excludes.txt mapagent_excludes.txt
../MgDev/package_excludes.txt package_excludes.txt
../MgDev/php_excludes.txt php_excludes.txt
../MgDev/release_excludes.txt release_excludes.txt
../MgDev/release64_excludes.txt release64_excludes.txt
../MgDev/svn_excludes.txt svn_excludes.txt
../MgDev/viewer_package_excludes.txt viewer_package_excludes.txt
../MgDev/build.bat build.bat
../MgDev/build_desktop.bat build_desktop.bat
../MgDev/nuget_pack.bat nuget_pack.bat
../MgDev/nuget_prepare.bat nuget_prepare.bat
../MgDev/prepare_webtier_components.bat prepare_webtier_components.bat
../MgDev/run_tests.bat run_tests.bat
../MgDev/setenvironment.bat setenvironment.bat
../MgDev/setenvironment64.bat setenvironment64.bat
../MgDev/stampassemblies.bat stampassemblies.bat
../MgDev/updateversion.vbs updateversion.vbs
Added: sandbox/jng/diet_v2/MgDev_Slim/prebuild.sh
===================================================================
--- sandbox/jng/diet_v2/MgDev_Slim/prebuild.sh (rev 0)
+++ sandbox/jng/diet_v2/MgDev_Slim/prebuild.sh 2016-11-24 12:33:01 UTC (rev 9100)
@@ -0,0 +1,152 @@
+#
+#! /bin/bash
+#
+
+#
+# MapGuide Open Source build script.
+#
+
+#**********************************************************
+# Initialization
+#**********************************************************
+
+echo "MapGuide Open Source build script for OEM components"
+INSTALLDIR=/usr/local/mapguideopensource
+CLEAN_FLAG=0
+BUILD_CPU=32
+BUILD_CONFIG=release
+while [ $# -gt 0 ]; do # Until you run out of parameters...
+ case "$1" in
+ -prefix|--prefix)
+ INSTALLDIR="$2"
+ shift
+ ;;
+ -clean|--clean)
+ CLEAN_FLAG=1
+ shift
+ ;;
+ -build|--build)
+ BUILD_CPU=$2
+ shift
+ ;;
+ -config|--config)
+ BUILD_CONFIG=$2
+ shift
+ ;;
+ -help|--help)
+ echo "Usage: $0 (options)"
+ echo "Options:"
+ echo " --prefix [installation directory]"
+ echo " --clean [clean all objects and binaries in Oem]"
+ echo " --build [32(default)|64]"
+ echo " --config [release(default)|debug]"
+ echo " --help [Display usage]"
+ exit
+ ;;
+ esac
+ shift # Check next set of parameters.
+done
+
+echo "OEM Build Initialization ............................"
+echo "Oem Libraries will be installed at: ${INSTALLDIR}"
+
+LIB_NAME=""
+
+#**********************************************************
+# Generic Functions
+#**********************************************************
+
+check_build()
+{
+ error=$?
+ if [ $error -ne 0 ]; then
+ echo "$LIB_NAME: Error build failed ($error)................."
+ exit $error
+ fi
+}
+
+check_clean()
+{
+ error=$?
+ if [ $error -ne 0 ]; then
+ echo "$LIB_NAME: Error clean failed ($error)................."
+ exit $error
+ fi
+}
+
+#**********************************************************
+# Build AGG 2.4
+# Notes: none
+#**********************************************************
+
+init_agg()
+{
+ LIB_NAME="AGG 2.4"
+}
+
+build_agg()
+{
+ pushd agg-2.4
+ if [ $BUILD_CPU -eq 64 ]; then
+ make EXTRACXXFLAGS="-fPIC -m64"
+ else
+ make
+ fi
+ check_build
+ popd
+}
+
+clean_agg()
+{
+ pushd agg-2.4
+ make clean
+ check_clean
+ popd
+}
+
+#**********************************************************
+# Build Fusion
+# Notes: requires Apache Ant
+#**********************************************************
+
+init_fusion()
+{
+ LIB_NAME="Fusion"
+}
+
+build_fusion()
+{
+ pushd fusion
+ ant prepare
+ ant compress
+ popd
+}
+
+clean_fusion()
+{
+ pushd fusion
+ ant clean
+ popd
+}
+
+#**********************************************************
+# Script loop
+#**********************************************************
+
+pushd Oem
+for lib in fusion agg;
+do
+ echo "$lib: Initialization..........................."
+ init_"$lib"
+
+ if test "$CLEAN_FLAG" = "1"; then
+ echo "$lib: Clean ....................................."
+ clean_"$lib"
+ echo "$lib: Clean Successful .........................."
+ else
+ echo "$lib: Configure/Build ..........................."
+ build_"$lib"
+ echo "$lib: Build Successful .........................."
+ fi
+done
+popd
More information about the mapguide-commits
mailing list