[mapguide-commits] r9098 - sandbox/jng/diet_v2/MgDev/Oem

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Nov 24 04:12:39 PST 2016


Author: jng
Date: 2016-11-24 04:12:39 -0800 (Thu, 24 Nov 2016)
New Revision: 9098

Removed:
   sandbox/jng/diet_v2/MgDev/Oem/setenvironment.bat
Modified:
   sandbox/jng/diet_v2/MgDev/Oem/build.bat
Log:
- Parameterize some Oem component versions in build.bat
- Remove Oem\setenvironment.bat as this is a relic of the old diet branch

Modified: sandbox/jng/diet_v2/MgDev/Oem/build.bat
===================================================================
--- sandbox/jng/diet_v2/MgDev/Oem/build.bat	2016-11-24 11:34:12 UTC (rev 9097)
+++ sandbox/jng/diet_v2/MgDev/Oem/build.bat	2016-11-24 12:12:39 UTC (rev 9098)
@@ -5,6 +5,10 @@
 SET MG_OEM_ACTION=build
 SET MG_OEM_BUILD_PACK_SUFFIX=trunk-%date:~10,4%%date:~4,2%%date:~7,2%
 SET MG_CORE_COUNT=1
+SET CSMAP_VS_SUFFIX=VC140
+SET HTTPD_VER=2.4.18
+SET PHP_VER=5.6.23
+SET TOMCAT_VER=7.0.68
 :study_params
 if (%1)==() goto start_build
 
@@ -79,7 +83,7 @@
 :do_build
 echo [build]: OEM [%MG_OEM_CONFIG%,%MG_OEM_PLATFORM%] to: %MG_OEM_OUTPUT% [%MG_CORE_COUNT% cores, suffix: %MG_OEM_BUILD_PACK_SUFFIX%]
 msbuild /p:Configuration=%MG_OEM_CONFIG%;Platform=%MG_OEM_PLATFORM% /t:build /m:%MG_CORE_COUNT% oem.sln
-msbuild /p:Configuration=%MG_OEM_CONFIG%;Platform=%MG_OEM_PLATFORM% /t:build /m:%MG_CORE_COUNT% CsMap\VC140\OpenSource.sln
+msbuild /p:Configuration=%MG_OEM_CONFIG%;Platform=%MG_OEM_PLATFORM% /t:build /m:%MG_CORE_COUNT% CsMap\%CSMAP_VS_SUFFIX%\OpenSource.sln
 xcopy /S /Y /I "%CD%\ACE" "%MG_OEM_OUTPUT%\ACE" /EXCLUDE:ace_ignore.txt
 xcopy /S /Y /I "%CD%\CsMap" "%MG_OEM_OUTPUT%\CsMap" /EXCLUDE:csmap_ignore.txt
 xcopy /S /Y /I "%CD%\CppUnit-1.9.14" "%MG_OEM_OUTPUT%\CppUnit-1.9.14" /EXCLUDE:ignore.txt
@@ -89,9 +93,9 @@
 xcopy /S /Y /I "%CD%\FDO\ProviderList" "%MG_OEM_OUTPUT%\FDO\ProviderList"
 xcopy /S /Y /I "%CD%\GEOS" "%MG_OEM_OUTPUT%\GEOS" /EXCLUDE:ignore.txt
 xcopy /S /Y /I "%CD%\httpd" "%MG_OEM_OUTPUT%\httpd"
-xcopy /R /D /Y "%CD%\LinuxApt\httpd-2.4.10.tar.bz2" "%MG_OEM_OUTPUT%\LinuxApt\"
-xcopy /R /D /Y "%CD%\LinuxApt\php-5.5.17.tar.bz2" "%MG_OEM_OUTPUT%\LinuxApt\"
-xcopy /R /D /Y "%CD%\LinuxApt\apache-tomcat-7.0.56.tar.gz" "%MG_OEM_OUTPUT%\LinuxApt\"
+xcopy /R /D /Y "%CD%\LinuxApt\httpd-%HTTPD_VER%.tar.bz2" "%MG_OEM_OUTPUT%\LinuxApt\"
+xcopy /R /D /Y "%CD%\LinuxApt\php-%PHP_VER%.tar.bz2" "%MG_OEM_OUTPUT%\LinuxApt\"
+xcopy /R /D /Y "%CD%\LinuxApt\apache-tomcat-%TOMCAT_VER%.tar.gz" "%MG_OEM_OUTPUT%\LinuxApt\"
 xcopy /R /D /Y "%CD%\LinuxApt\server.xml" "%MG_OEM_OUTPUT%\LinuxApt\"
 xcopy /S /Y /I "%CD%\jsoncpp" "%MG_OEM_OUTPUT%\jsoncpp" /EXCLUDE:ignore.txt
 xcopy /S /Y /I "%CD%\php" "%MG_OEM_OUTPUT%\php"
@@ -99,16 +103,15 @@
 xcopy /S /Y /I "%CD%\WebTools" "%MG_OEM_OUTPUT%\WebTools"
 copy /Y setenvironment.bat "%MG_OEM_OUTPUT%"
 copy /Y buildpack_readme.txt "%MG_OEM_OUTPUT%"
-SET SEVENZ=%CD%\WebTools\7-zip\7z.exe
 pushd %MG_OEM_OUTPUT%
-%SEVENZ% a -t7z -sfx -mx9 -aoa mapguide-buildpack-%MG_OEM_CONFIG%-%MG_OEM_PLATFORM%-%MG_OEM_BUILD_PACK_SUFFIX%.exe *
+7z a -t7z -sfx -mx9 -aoa mapguide-buildpack-%MG_OEM_CONFIG%-%MG_OEM_PLATFORM%-%MG_OEM_BUILD_PACK_SUFFIX%.exe *
 popd
 goto quit
 
 :do_clean
 echo [clean]: OEM [%MG_OEM_CONFIG%,%MG_OEM_PLATFORM%] to: %MG_OEM_OUTPUT%
 msbuild /p:Configuration=%MG_OEM_CONFIG%;Platform=%MG_OEM_PLATFORM% /t:clean oem.sln
-msbuild /p:Configuration=%MG_OEM_CONFIG%;Platform=%MG_OEM_PLATFORM% /t:clean CsMap\VC110\OpenSource.sln
+msbuild /p:Configuration=%MG_OEM_CONFIG%;Platform=%MG_OEM_PLATFORM% /t:clean CsMap\%CSMAP_VS_SUFFIX%\OpenSource.sln
 goto quit
 
 :custom_error_no_help

Deleted: sandbox/jng/diet_v2/MgDev/Oem/setenvironment.bat
===================================================================
--- sandbox/jng/diet_v2/MgDev/Oem/setenvironment.bat	2016-11-24 11:34:12 UTC (rev 9097)
+++ sandbox/jng/diet_v2/MgDev/Oem/setenvironment.bat	2016-11-24 12:12:39 UTC (rev 9098)
@@ -1,424 +0,0 @@
- at echo off
-SET MG_OEM_PLATFORM=x64
-SET MG_OEM_CLR_PLATFORM=x64
-SET MG_OEM_PLAT_SHORT=64
-SET MG_OEM_CONFIG=Release
-:study_params
-if (%1)==() goto setvars
-
-if "%1"=="-config"   goto get_config
-if "%1"=="-c"        goto get_config
-
-if "%1"=="-platform" goto get_platform
-if "%1"=="-p"        goto get_platform
-
-if "%1"=="-help"     goto help_show
-if "%1"=="-h"        goto help_show
-
-goto custom_error
-
-:next_param
-shift
-shift
-goto study_params
-
-:get_platform
-SET MG_OEM_PLATFORM=%2
-if "%2"=="Win32" (
-    SET MG_OEM_PLAT_SHORT=
-    SET MG_OEM_CLR_PLATFORM=x86
-    goto next_param
-)
-if "%2"=="x64" goto next_param
-SET ERRORMSG=Unrecognised platform: %2
-goto custom_error
-
-:get_config
-SET MG_OEM_CONFIG=%2
-if "%2"=="Debug" goto next_param
-if "%2"=="debug" (
-    SET MG_OEM_CONFIG=Debug
-    goto next_param
-)
-if "%2"=="Release" goto next_param
-if "%2"=="release" (
-    SET MG_OEM_CONFIG=Release
-    goto next_param
-)
-SET ERRORMSG=Unrecognised config: %2
-goto custom_error
-
-:setvars
-if "%MG_OEM_CONFIG%"=="Debug" (
-    SET MG_OEM_ACE_DEBUG_SUFFIX=d
-    SET MG_OEM_CPPUNIT_DEBUG_SUFFIX=d
-    SET MG_OEM_CSMAP_DEBUG_SUFFIX=d
-    SET MG_OEM_DBXML_DEBUG_SUFFIX=d
-    SET MG_OEM_XERCES_DEBUG_SUFFIX=d
-    SET MG_OEM_DWFTK_DEBUG_SUFFIX=
-    SET MG_OEM_FDO_DEBUG_SUFFIX=
-    SET MG_OEM_GD_DEBUG_SUFFIX=
-    SET MG_OEM_FREETYPE_DEBUG_SUFFIX=_d
-    SET MG_OEM_LIBJPEG_DEBUG_SUFFIX=d
-    SET MG_OEM_LIBPNG_DEBUG_SUFFIX=d
-    SET MG_OEM_ZLIB_DEBUG_SUFFIX=d
-    SET MG_OEM_GEOS_DEBUG_SUFFIX=d
-    SET MG_OEM_JSONCPP_DEBUG_SUFFIX=d
-) else (
-    SET MG_OEM_ACE_DEBUG_SUFFIX=
-    SET MG_OEM_CPPUNIT_DEBUG_SUFFIX=
-    SET MG_OEM_CSMAP_DEBUG_SUFFIX=
-    SET MG_OEM_DBXML_DEBUG_SUFFIX=
-    SET MG_OEM_XERCES_DEBUG_SUFFIX=
-    SET MG_OEM_DWFTK_DEBUG_SUFFIX=
-    SET MG_OEM_FDO_DEBUG_SUFFIX=
-    SET MG_OEM_GD_DEBUG_SUFFIX=
-    SET MG_OEM_FREETYPE_DEBUG_SUFFIX=
-    SET MG_OEM_LIBJPEG_DEBUG_SUFFIX=
-    SET MG_OEM_LIBPNG_DEBUG_SUFFIX=
-    SET MG_OEM_ZLIB_DEBUG_SUFFIX=
-    SET MG_OEM_GEOS_DEBUG_SUFFIX=
-    SET MG_OEM_JSONCPP_DEBUG_SUFFIX=
-)
-
-SET SEVENZ_DIR=%CD%\WebTools\7-zip
-SET SEVENZ=%SEVENZ_DIR%\7z.exe
-SET MG_OEM_HTTPD_VER=2.4.10
-SET MG_OEM_PHP_VER=5.5.17
-SET MG_OEM_TOMCAT_VER=7.0.56
-
-REM ==================== HTTPD ========================
-SET MG_OEM_HTTPD_ROOT=%CD%\LinuxApt\httpd-%MG_OEM_HTTPD_VER%
-SET MG_OEM_HTTPD_LIB_DIR=%CD%\httpd\lib%MG_OEM_PLAT_SHORT%
-SET MG_OEM_HTTPD_LIBS=libhttpd.lib;libapr-1.lib;libaprutil-1.lib
-SET MG_OEM_HTTPD_PACKAGE_NAME=httpd-%MG_OEM_HTTPD_VER%-%MG_OEM_CLR_PLATFORM%-VC11.zip
-REM ==================== PHP ==========================
-SET MG_OEM_PHP_ROOT=%CD%\LinuxApt\php-%MG_OEM_PHP_VER%
-if "%MG_OEM_PLATFORM%"=="x64" (
-SET MG_OEM_PHP_LIB_DIR=%CD%\php\x64\Release_TS
-) else (
-SET MG_OEM_PHP_LIB_DIR=%CD%\php\Release_TS
-)
-SET MG_OEM_PHP_LIBS=php5ts.lib
-SET MG_OEM_PHP_PACKAGE_NAME=php-%MG_OEM_PHP_VER%-%MG_OEM_CLR_PLATFORM%-VC11.zip
-REM ==================== Tomcat =======================
-SET MG_OEM_TOMCAT_PACKAGE_NAME=apache-tomcat-%MG_OEM_TOMCAT_VER%
-SET MG_OEM_TOMCAT_PACKAGE=%CD%\LinuxApt\%MG_OEM_TOMCAT_PACKAGE_NAME%.tar.gz
-
-:check_httpd
-if not exist %MG_OEM_HTTPD_ROOT% goto unpack_httpd
-if not exist %MG_OEM_HTTPD_ROOT%\include goto unpack_httpd
-if not exist %MG_OEM_HTTPD_ROOT%\include\httpd.h goto unpack_httpd
-if not exist %MG_OEM_HTTPD_ROOT%\include\http_config.h goto unpack_httpd
-if not exist %MG_OEM_HTTPD_ROOT%\include\ap_config.h goto unpack_httpd
-if not exist %MG_OEM_HTTPD_ROOT%\include\http_log.h goto unpack_httpd
-if not exist %MG_OEM_HTTPD_ROOT%\include\http_protocol.h goto unpack_httpd
-if not exist %MG_OEM_HTTPD_ROOT%\include\http_main.h goto unpack_httpd
-if not exist %MG_OEM_HTTPD_ROOT%\include\util_script.h goto unpack_httpd
-if not exist %MG_OEM_HTTPD_ROOT%\include\http_core.h goto unpack_httpd
-if not exist %MG_OEM_HTTPD_ROOT%\include\apr_strings.h goto unpack_httpd
-if not exist %MG_OEM_HTTPD_ROOT%\include\apr_tables.h goto unpack_httpd
-goto check_php
-:unpack_httpd
-pushd LinuxApt
-if not exist httpd-%MG_OEM_HTTPD_VER%.tar "%SEVENZ%" x httpd-%MG_OEM_HTTPD_VER%.tar.bz2
-"%SEVENZ%" x -y httpd-%MG_OEM_HTTPD_VER%.tar
-popd
-:check_php
-rem *sigh* there is not a 100% reliable way to nuke a directory in windows from the cmd line to make way 
-rem for a new MapGuide build, meaning we could have empty PHP directories from a previous build that would 
-rem pass the previous iteration of this check to determine if PHP needs to be unpacked. So check for the specific
-rem headers that we know we are going to be using and if a single one of these headers cannot be found then
-rem do the archive unpacking
-if not exist %MG_OEM_PHP_ROOT% goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\ext goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\ext\standard goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\ext\standard\info.h goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\main goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\main\php.h goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\main\php_ini.h goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\main\config.w32.h goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\main\win95nt.h goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\TSRM goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\TSRM\readdir.h goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\Zend goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\Zend\zend.h goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\Zend\zend_exceptions.h goto unpack_php
-if not exist %MG_OEM_PHP_ROOT%\Zend\zend_API.h goto unpack_php
-goto patch_php_headers
-:unpack_php
-pushd LinuxApt
-if not exist php-%MG_OEM_PHP_VER%.tar "%SEVENZ%" x php-%MG_OEM_PHP_VER%.tar.bz2
-"%SEVENZ%" x -y php-%MG_OEM_PHP_VER%.tar
-popd
-:patch_php_headers
-echo Patching PHP headers
-copy /Y %CD%\php\main\*.h %MG_OEM_PHP_ROOT%\main\
-copy /Y %CD%\php\TSRM\*.h %MG_OEM_PHP_ROOT%\TSRM\
-:patch_httpd_headers
-echo Patching HTTPD headers
-copy /Y %CD%\httpd\include\*.h %MG_OEM_HTTPD_ROOT%\include\
-popd
-
-REM ==================== ACE ==========================
-SET MG_OEM_ACE_INC_DIR=%CD%\ACE\ACE_Wrappers
-SET MG_OEM_ACE_LIB_DIR=%CD%\ACE\ACE_Wrappers\lib%MG_OEM_PLAT_SHORT%\%MG_OEM_CONFIG%
-SET MG_OEM_ACE_LIBS=ACE%MG_OEM_ACE_DEBUG_SUFFIX%.lib
-SET MG_OEM_ACE_BIN_DIR=%MG_OEM_ACE_LIB_DIR%
-REM ==================== AGG ==========================
-REM ==================== CppUnit ======================
-SET MG_OEM_CPPUNIT_INC_DIR=%CD%\CppUnit-1.9.14\include
-SET MG_OEM_CPPUNIT_LIB_DIR=%CD%\CppUnit-1.9.14\lib%MG_OEM_PLAT_SHORT%\%MG_OEM_CONFIG%
-SET MG_OEM_CPPUNIT_LIBS=CppUnit%MG_OEM_CPPUNIT_DEBUG_SUFFIX%.lib
-REM ==================== CS-Map =======================
-SET MG_OEM_CSMAP_INC_DIR=%CD%\CsMap\Include
-SET MG_OEM_CSMAP_LIB_DIR=%CD%\CsMap\lib140\%MG_OEM_CONFIG%%MG_OEM_PLAT_SHORT%
-SET MG_OEM_CSMAP_LIBS=csmap%MG_OEM_CSMAP_DEBUG_SUFFIX%.lib
-SET MG_OEM_CSMAP_DICT_DIR=%CD%\CsMap\Dictionaries
-REM ==================== DBXML ========================
-SET MG_OEM_DBXML_INC_DIR=%CD%\dbxml\include\dbxml
-SET MG_OEM_DBXML_LIB_DIR=%CD%\dbxml\lib%MG_OEM_PLAT_SHORT%\%MG_OEM_CONFIG%
-SET MG_OEM_DBXML_LIBS=libdbxml25%MG_OEM_DBXML_DEBUG_SUFFIX%.lib;libdb48%MG_OEM_DBXML_DEBUG_SUFFIX%.lib
-SET MG_OEM_DBXML_BIN_DIR=%CD%\dbxml\bin%MG_OEM_PLAT_SHORT%\%MG_OEM_CONFIG%
-SET MG_OEM_XERCES_INC_DIR=%CD%\dbxml\include
-SET MG_OEM_XERCES_LIB_DIR=%CD%\dbxml\lib%MG_OEM_PLAT_SHORT%\%MG_OEM_CONFIG%
-SET MG_OEM_XERCES_LIBS=xerces-c_3mg%MG_OEM_XERCES_DEBUG_SUFFIX%.lib
-REM ==================== DWFTK ========================
-SET MG_OEM_DWFTK_INC_DIR=%CD%\DWFTK\develop\global\src
-if "%MG_OEM_PLATFORM%"=="x64" (
-    SET MG_OEM_DWFTK_LIB_DIR=%CD%\DWFTK\develop\global\lib\%MG_OEM_PLATFORM%\static\%MG_OEM_CONFIG%\vc10.0
-) else (
-    SET MG_OEM_DWFTK_LIB_DIR=%CD%\DWFTK\develop\global\lib\static\%MG_OEM_CONFIG%\vc10.0
-)
-SET MG_OEM_DWFTK_LIBS=dwfcore_wt.1.7.0%MG_OEM_DWFTK_DEBUG_SUFFIX%.lib;dwftk_wt.7.7.0%MG_OEM_DWFTK_DEBUG_SUFFIX%.lib;whiptk_wt.7.13.601%MG_OEM_DWFTK_DEBUG_SUFFIX%.lib
-SET MG_OEM_DWFTK_LIBS_RENDERERS=%MG_OEM_DWFTK_LIBS%;w3dtk_wt.1.7.1555%MG_OEM_DWFTK_DEBUG_SUFFIX%.lib
-SET MG_OEM_DWFTK_LIBS_DRAWING_SVC=%MG_OEM_DWFTK_LIBS_RENDERERS%
-SET MG_OEM_DWFTK_LIBS_KML_SVC=dwfcore_wt.1.7.0%MG_OEM_DWFTK_DEBUG_SUFFIX%.lib
-SET MG_OEM_DWFTK_LIBS_RESOURCE_SVC=dwfcore_wt.1.7.0%MG_OEM_DWFTK_DEBUG_SUFFIX%.lib
-REM ==================== FDO ==========================
-SET MG_OEM_FDO_ROOT=%CD%\FDO
-SET MG_OEM_FDO_INC_DIR=%MG_OEM_FDO_ROOT%\Inc
-SET MG_OEM_FDO_LIB_DIR=%MG_OEM_FDO_ROOT%\Lib%MG_OEM_PLAT_SHORT%
-SET MG_OEM_FDO_LIBS=FDO%MG_OEM_FDO_DEBUG_SUFFIX%.lib
-REM ==================== GD ===========================
-SET MG_OEM_GD_INC_DIR=%CD%\gd\gd
-SET MG_OEM_GD_LIB_DIR=%CD%\gd\build\win32\gd\%MG_OEM_CONFIG%%MG_OEM_PLAT_SHORT%
-SET MG_OEM_GD_LIBS=gd%MG_OEM_GD_DEBUG_SUFFIX%.lib
-SET MG_OEM_GD_BIN_DIR=%MG_OEM_GD_LIB_DIR%
-SET MG_OEM_FREETYPE_INC_DIR=%CD%\gd\freetype\include
-SET MG_OEM_FREETYPE_LIB_DIR=%CD%\gd\freetype\objs\%MG_OEM_CONFIG%%MG_OEM_PLAT_SHORT%\
-SET MG_OEM_FREETYPE_LIBS=freetype235%MG_OEM_FREETYPE_DEBUG_SUFFIX%.lib
-SET MG_OEM_LIBJPEG_INC_DIR=%CD%\gd\jpeg
-SET MG_OEM_LIBJPEG_LIB_DIR=%CD%\gd\jpeg\%MG_OEM_CONFIG%%MG_OEM_PLAT_SHORT%
-SET MG_OEM_LIBJPEG_LIBS=jpeg%MG_OEM_LIBJPEG_DEBUG_SUFFIX%.lib
-SET MG_OEM_LIBPNG_INC_DIR=%CD%\gd\lpng
-SET MG_OEM_LIBPNG_LIB_DIR=%CD%\gd\lpng\projects\vs\%MG_OEM_CONFIG%%MG_OEM_PLAT_SHORT%
-SET MG_OEM_LIBPNG_LIBS=libpng%MG_OEM_LIBPNG_DEBUG_SUFFIX%.lib
-SET MG_OEM_ZLIB_INC_DIR=%CD%\gd\zlib
-SET MG_OEM_ZLIB_LIB_DIR=%CD%\gd\lpng\projects\vs\%MG_OEM_CONFIG%%MG_OEM_PLAT_SHORT%\ZLib
-SET MG_OEM_ZLIB_LIBS=zlib%MG_OEM_ZLIB_DEBUG_SUFFIX%.lib
-REM ==================== GEOS =========================
-SET MG_OEM_GEOS_INC_DIR=%CD%\geos\include
-SET MG_OEM_GEOS_LIB_DIR=%CD%\geos\VisualStudio\%MG_OEM_CONFIG%%MG_OEM_PLAT_SHORT%
-SET MG_OEM_GEOS_LIBS=GEOS%MG_OEM_GEOS_DEBUG_SUFFIX%.lib
-SET MG_OEM_GEOS_BIN_DIR=%MG_OEM_GEOS_LIB_DIR%
-REM ==================== JSONCPP ======================
-SET MG_OEM_JSONCPP_INC_DIR=%CD%\jsoncpp\include
-SET MG_OEM_JSONCPP_LIB_DIR=%CD%\jsoncpp\lib%MG_OEM_PLAT_SHORT%\%MG_OEM_CONFIG%
-SET MG_OEM_JSONCPP_LIBS=lib_json%MG_OEM_JSONCPP_DEBUG_SUFFIX%.lib
-SET MG_OEM_JSONCPP_BIN_DIR=%MG_OEM_JSONCPP_LIB_DIR%
-REM ==================== SWIG =========================
-SET MG_OEM_SWIG_BIN_DIR=%CD%\SWIGEx\Win32
-SET MG_OEM_SWIG_LIB_DIR=%CD%\SWIGEx\Lib
-REM ==================== IMAKE ========================
-SET MG_OEM_IMAKE_BIN_DIR=%CD%\WebTools\IMake\Win32
-REM ==================== JAVA =========================
-
-SET DEFAULT_JAVA_HOME_32=C:\Program Files (x86)\Java\jdk1.7.0_80
-SET DEFAULT_JAVA_HOME_64=C:\Program Files\Java\jdk1.7.0_80
-IF "%JAVA_HOME%" == "" goto set_default_java
-goto check_paths
-:set_default_java
-    SET JAVA_HOME=%DEFAULT_JAVA_HOME_32%
-    if "%MG_OEM_PLATFORM%"=="x64" SET JAVA_HOME=%DEFAULT_JAVA_HOME_64%
-
-:check_paths
-REM Path sanity checking
-if not exist %MG_OEM_ACE_INC_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_ACE_INC_DIR [%MG_OEM_ACE_INC_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_ACE_LIB_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_ACE_LIB_DIR [%MG_OEM_ACE_LIB_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_CPPUNIT_INC_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_CPPUNIT_INC_DIR [%MG_OEM_CPPUNIT_INC_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_CPPUNIT_LIB_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_CPPUNIT_LIB_DIR [%MG_OEM_CPPUNIT_LIB_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_CSMAP_DICT_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_CSMAP_DICT_DIR [%MG_OEM_CSMAP_DICT_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_CSMAP_INC_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_CSMAP_INC_DIR [%MG_OEM_CSMAP_INC_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_CSMAP_LIB_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_CSMAP_LIB_DIR [%MG_OEM_CSMAP_LIB_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_DBXML_INC_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_DBXML_INC_DIR [%MG_OEM_DBXML_INC_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_DBXML_LIB_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_DBXML_LIB_DIR [%MG_OEM_DBXML_LIB_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_XERCES_INC_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_XERCES_INC_DIR [%MG_OEM_XERCES_INC_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_XERCES_LIB_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_XERCES_LIB_DIR [%MG_OEM_XERCES_LIB_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_HTTPD_ROOT% (
-    SET ERRORMSG=No such path: MG_OEM_HTTPD_ROOT [%MG_OEM_HTTPD_ROOT%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_HTTPD_LIB_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_XERCES_LIB_DIR [%MG_OEM_XERCES_LIB_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_PHP_ROOT% (
-    SET ERRORMSG=No such path: MG_OEM_PHP_ROOT [%MG_OEM_PHP_ROOT%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_PHP_LIB_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_PHP_LIB_DIR [%MG_OEM_PHP_LIB_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_SWIG_BIN_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_SWIG_BIN_DIR [%MG_OEM_SWIG_BIN_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_SWIG_LIB_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_SWIG_LIB_DIR [%MG_OEM_SWIG_LIB_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_IMAKE_BIN_DIR% (
-    SET ERRORMSG=No such path: MG_OEM_IMAKE_BIN_DIR [%MG_OEM_IMAKE_BIN_DIR%]
-    goto custom_error_no_help
-)
-if not exist %MG_OEM_TOMCAT_PACKAGE% echo [warning]: The tomcat package does not exist (%MG_OEM_TOMCAT_PACKAGE%). Building installers may fail
-
-echo ========= Environment Variable Summary ============
-echo Platform: %MG_OEM_PLATFORM%
-echo Configuration: %MG_OEM_CONFIG%
-echo ==================== ACE ==========================
-echo MG_OEM_ACE_INC_DIR = %MG_OEM_ACE_INC_DIR%
-echo MG_OEM_ACE_LIB_DIR = %MG_OEM_ACE_LIB_DIR%
-echo MG_OEM_ACE_LIBS = %MG_OEM_ACE_LIBS%
-echo MG_OEM_ACE_BIN_DIR = %MG_OEM_ACE_BIN_DIR%
-echo ==================== CppUnit ======================
-echo MG_OEM_CPPUNIT_INC_DIR = %MG_OEM_CPPUNIT_INC_DIR%
-echo MG_OEM_CPPUNIT_LIB_DIR = %MG_OEM_CPPUNIT_LIB_DIR%
-echo MG_OEM_CPPUNIT_LIBS = %MG_OEM_CPPUNIT_LIBS%
-echo ==================== CS-Map =======================
-echo MG_OEM_CSMAP_INC_DIR = %MG_OEM_CSMAP_INC_DIR%
-echo MG_OEM_CSMAP_LIB_DIR = %MG_OEM_CSMAP_LIB_DIR%
-echo MG_OEM_CSMAP_LIBS = %MG_OEM_CSMAP_LIBS%
-echo MG_OEM_CSMAP_DICT_DIR = %MG_OEM_CSMAP_DICT_DIR%
-echo ==================== DBXML ========================
-echo MG_OEM_DBXML_BIN_DIR = %MG_OEM_DBXML_BIN_DIR%
-echo MG_OEM_DBXML_INC_DIR = %MG_OEM_DBXML_INC_DIR%
-echo MG_OEM_DBXML_LIB_DIR = %MG_OEM_DBXML_LIB_DIR%
-echo MG_OEM_DBXML_LIBS = %MG_OEM_DBXML_LIBS%
-echo MG_OEM_XERCES_INC_DIR = %MG_OEM_XERCES_INC_DIR%
-echo MG_OEM_XERCES_LIB_DIR = %MG_OEM_XERCES_LIB_DIR%
-echo MG_OEM_XERCES_LIBS = %MG_OEM_XERCES_LIBS%
-echo ==================== DWFTK ========================
-echo MG_OEM_DWFTK_INC_DIR = %MG_OEM_DWFTK_INC_DIR%
-echo MG_OEM_DWFTK_LIB_DIR = %MG_OEM_DWFTK_LIB_DIR%
-echo MG_OEM_DWFTK_LIBS = %MG_OEM_DWFTK_LIBS%
-echo ==================== FDO ==========================
-echo MG_OEM_FDO_INC_DIR = %MG_OEM_FDO_INC_DIR%
-echo MG_OEM_FDO_LIB_DIR = %MG_OEM_FDO_LIB_DIR%
-echo MG_OEM_FDO_LIBS = %MG_OEM_FDO_LIBS%
-echo ==================== GD ===========================
-echo MG_OEM_GD_INC_DIR = %MG_OEM_GD_INC_DIR%
-echo MG_OEM_GD_LIB_DIR = %MG_OEM_GD_LIB_DIR%
-echo MG_OEM_GD_LIBS = %MG_OEM_GD_LIBS%
-echo MG_OEM_FREETYPE_INC_DIR = %MG_OEM_FREETYPE_INC_DIR%
-echo MG_OEM_FREETYPE_LIB_DIR = %MG_OEM_FREETYPE_LIB_DIR%
-echo MG_OEM_FREETYPE_LIBS = %MG_OEM_FREETYPE_LIBS%
-echo MG_OEM_LIBJPEG_INC_DIR = %MG_OEM_LIBJPEG_INC_DIR%
-echo MG_OEM_LIBJPEG_LIB_DIR = %MG_OEM_LIBJPEG_LIB_DIR%
-echo MG_OEM_LIBJPEG_LIBS = %MG_OEM_LIBJPEG_LIBS%
-echo MG_OEM_LIBPNG_INC_DIR = %MG_OEM_LIBPNG_INC_DIR%
-echo MG_OEM_LIBPNG_LIB_DIR = %MG_OEM_LIBPNG_LIB_DIR%
-echo MG_OEM_LIBPNG_LIBS = %MG_OEM_LIBPNG_LIBS%
-echo MG_OEM_ZLIB_INC_DIR = %MG_OEM_ZLIB_INC_DIR%
-echo MG_OEM_ZLIB_LIB_DIR = %MG_OEM_ZLIB_LIB_DIR%
-echo MG_OEM_ZLIB_LIBS = %MG_OEM_ZLIB_LIBS%
-echo ==================== GEOS =========================
-echo MG_OEM_GEOS_BIN_DIR = %MG_OEM_GEOS_BIN_DIR%
-echo MG_OEM_GEOS_INC_DIR = %MG_OEM_GEOS_INC_DIR%
-echo MG_OEM_GEOS_LIB_DIR = %MG_OEM_GEOS_LIB_DIR%
-echo MG_OEM_GEOS_LIBS = %MG_OEM_GEOS_LIBS%
-echo ==================== HTTPD ========================
-echo MG_OEM_HTTPD_ROOT = %MG_OEM_HTTPD_ROOT%
-echo MG_OEM_HTTPD_LIB_DIR = %MG_OEM_HTTPD_LIB_DIR%
-echo MG_OEM_HTTPD_LIBS = %MG_OEM_HTTPD_LIBS%
-echo MG_OEM_HTTPD_PACKAGE_NAME = %MG_OEM_HTTPD_PACKAGE_NAME%
-echo ==================== PHP ==========================
-echo MG_OEM_PHP_INC_DIR = %MG_OEM_PHP_INC_DIR%
-echo MG_OEM_PHP_LIB_DIR = %MG_OEM_PHP_LIB_DIR%
-echo MG_OEM_PHP_LIBS = %MG_OEM_PHP_LIBS%
-echo MG_OEM_PHP_PACKAGE_NAME = %MG_OEM_PHP_PACKAGE_NAME%
-echo ==================== JSONCPP ======================
-echo MG_OEM_JSONCPP_BIN_DIR = %MG_OEM_JSONCPP_BIN_DIR%
-echo MG_OEM_JSONCPP_INC_DIR = %MG_OEM_JSONCPP_INC_DIR%
-echo MG_OEM_JSONCPP_LIB_DIR = %MG_OEM_JSONCPP_LIB_DIR%
-echo MG_OEM_JSONCPP_LIBS = %MG_OEM_JSONCPP_LIBS%
-echo ==================== SWIG =========================
-echo MG_OEM_SWIG_BIN_DIR = %MG_OEM_SWIG_BIN_DIR%
-echo MG_OEM_SWIG_LIB_DIR = %MG_OEM_SWIG_LIB_DIR%
-echo ==================== IMAKE ========================
-echo MG_OEM_IMAKE_BIN_DIR = %MG_OEM_IMAKE_BIN_DIR%
-echo ==================== JAVA =========================
-echo JAVA_HOME = %JAVA_HOME%
-echo ==================== TOMCAT =======================
-echo MG_OEM_TOMCAT_PACKAGE_NAME = %MG_OEM_TOMCAT_PACKAGE_NAME%
-echo MG_OEM_TOMCAT_PACKAGE = %MG_OEM_TOMCAT_PACKAGE%
-goto quit
-
-:custom_error_no_help
-echo [ERROR]: %ERRORMSG%
-SET ERRORMSG=
-exit /B 1
-
-:custom_error
-echo [ERROR]: %ERRORMSG%
-SET ERRORMSG=
-echo Please use the format:
-:help_show
-echo ************************************************************************
-echo build.bat [-h]
-echo           [-a=Action]
-echo           [-o=OutputDirectory]
-echo Help:                  -h[elp]
-echo Action:                -a[ction]=build(default)
-echo                                  clean
-echo ************************************************************************
-:quit
-SET MG_OEM_OUTPUT=
-SET MG_OEM_PLATFORM=
-SET MG_OEM_CONFIG=
-SET MG_OEM_ACTION=
\ No newline at end of file



More information about the mapguide-commits mailing list