[mapguide-commits] r8649 - sandbox/jng/diet_oem

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri May 1 22:09:06 PDT 2015


Author: jng
Date: 2015-05-01 22:09:06 -0700 (Fri, 01 May 2015)
New Revision: 8649

Added:
   sandbox/jng/diet_oem/ace_ignore.txt
   sandbox/jng/diet_oem/buildpack_readme.txt
   sandbox/jng/diet_oem/csmap_ignore.txt
   sandbox/jng/diet_oem/dbxml_ignore.txt
   sandbox/jng/diet_oem/ignore.txt
Modified:
   sandbox/jng/diet_oem/
   sandbox/jng/diet_oem/build.bat
Log:
Update build.bat to generate a "buildpack" archive, containing the headers, libs and pre-compiled binaries of all our thirdparty components.

Also remove the fusion external link as that has been moved back under MgDev\Oem


Property changes on: sandbox/jng/diet_oem
___________________________________________________________________
Modified: svn:externals
   - /metacrs/csmap/trunk/CsMapDev CsMap
/fusion/trunk fusion

   + /metacrs/csmap/trunk/CsMapDev CsMap


Added: sandbox/jng/diet_oem/ace_ignore.txt
===================================================================
--- sandbox/jng/diet_oem/ace_ignore.txt	                        (rev 0)
+++ sandbox/jng/diet_oem/ace_ignore.txt	2015-05-02 05:09:06 UTC (rev 8649)
@@ -0,0 +1,10 @@
+.sln
+.vcxproj
+.vcproj
+.mwc
+ACE\ACE_Wrappers\ASNMP
+ACE\ACE_Wrappers\include
+ACE\ACE_Wrappers\bin
+ACE\ACE_Wrappers\etc
+ACE\ACE_Wrappers\obj
+ACE\ACE_Wrappers\obj64
\ No newline at end of file

Modified: sandbox/jng/diet_oem/build.bat
===================================================================
--- sandbox/jng/diet_oem/build.bat	2015-05-01 18:25:48 UTC (rev 8648)
+++ sandbox/jng/diet_oem/build.bat	2015-05-02 05:09:06 UTC (rev 8649)
@@ -3,6 +3,7 @@
 SET MG_OEM_PLATFORM=x64
 SET MG_OEM_CONFIG=Release
 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
 :study_params
 if (%1)==() goto start_build
@@ -68,9 +69,30 @@
 goto custom_error
 
 :do_build
-echo [build]: OEM [%MG_OEM_CONFIG%,%MG_OEM_PLATFORM%] to: %MG_OEM_OUTPUT% [%MG_CORE_COUNT% cores]
+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\VC110\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
+xcopy /S /Y /I "%CD%\dbxml" "%MG_OEM_OUTPUT%\dbxml" /EXCLUDE:dbxml_ignore.txt
+xcopy /S /Y /I "%CD%\DWFTK" "%MG_OEM_OUTPUT%\DWFTK" /EXCLUDE:ignore.txt
+xcopy /S /Y /I "%CD%\gd" "%MG_OEM_OUTPUT%\gd" /EXCLUDE:ignore.txt
+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 /S /Y /I "%CD%\jsoncpp" "%MG_OEM_OUTPUT%\jsoncpp" /EXCLUDE:ignore.txt
+xcopy /S /Y /I "%CD%\php" "%MG_OEM_OUTPUT%\php"
+xcopy /S /Y /I "%CD%\SWIGEx" "%MG_OEM_OUTPUT%\SWIGEx"
+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 *
+popd
 goto quit
 
 :do_clean

Added: sandbox/jng/diet_oem/buildpack_readme.txt
===================================================================
--- sandbox/jng/diet_oem/buildpack_readme.txt	                        (rev 0)
+++ sandbox/jng/diet_oem/buildpack_readme.txt	2015-05-02 05:09:06 UTC (rev 8649)
@@ -0,0 +1,59 @@
+MapGuide OEM Buildpack README
+=============================
+
+This document describes the MapGuide OEM buildpack
+
+Purpose
+=======
+
+MapGuide relies on many thirdparty components. The source code for these components are included with the source for MapGuide. This is a blessing and a curse.
+
+ - It's a blessing it means all the source code is there to build MapGuide from the ground up. No need to try and find these dependencies, it's all together
+ - It's a curse because these components:
+    - Have to be built everytime MapGuide is built adding to overall build times, according to our previous build systems. These components only have to be built once
+    - Adds extra size burden to the MapGuide source tree. This is 1.9GB of source code and other various files!
+
+This build pack aims to alleviate such problems by including the necessary headers, precompiled binaries and import libraries that allow you to build MapGuide 
+without needing to download and build the source for all thirdparty components.
+
+With this build pack, you now only just have to build the MapGuide source, which when free of the Oem source now weighs in under 300MB uncompressed, with build times
+up to twice as fast.
+
+What's included in this buildpack
+=================================
+
+ * Headers, libs, supporting data files and pre-compiled binaries (where applicable) for:
+    * ACE
+    * CS-Map (includes dictionary data files)
+    * CppUnit
+    * DBXML
+        * Xerces
+        * db
+        * xqilla
+    * DWF Toolkit
+    * GD
+    * GEOS
+    * httpd
+    * jsoncpp
+    * php
+ * Supporting build tools and utilities:
+    * SWIG
+    * IMake (SWIG preparation tool)
+    * SetAssemblyVersion (for stamping version numbers to AssemblyInfo.cs files)
+    * 7-zip
+
+Usage
+=====
+
+ 1. Extract this archive to a location of your choice
+ 2. In a Visual Studio command-line prompt, run setenvironment.bat from the extracted location
+    a. Pass -p=Win32|x64 to set the desired CPU platform (default is x64)
+    b. Pass -c=Debug|Release to set the desired configuration (default is Release)
+ 3.a. For an IDE build, type devenv to launch Visual Studio and have it pull in the environment variables set by setenvironment.bat
+ 3.b. For a command-line build, run build.bat from the MapGuide source root
+ 
+Important Notes
+===============
+
+Any build whether it's IDE or command-line must use the same platform/configuration as you have set via setenvironment.bat. If you set (Release, x64) then you must
+build from the IDE or command-line using the same platform/configuration
\ No newline at end of file

Added: sandbox/jng/diet_oem/csmap_ignore.txt
===================================================================
--- sandbox/jng/diet_oem/csmap_ignore.txt	                        (rev 0)
+++ sandbox/jng/diet_oem/csmap_ignore.txt	2015-05-02 05:09:06 UTC (rev 8649)
@@ -0,0 +1,11 @@
+CsMap\CsMapConsoleUtilities
+CsMap\Data
+CsMap\Documentation
+CsMap\Source
+CsMap\TestCpp
+CsMap\VC90
+CsMap\VC100
+CsMap\VC110
+CsMap\VC120
+CsMap\obj110
+CS_TestCpp
\ No newline at end of file

Added: sandbox/jng/diet_oem/dbxml_ignore.txt
===================================================================
--- sandbox/jng/diet_oem/dbxml_ignore.txt	                        (rev 0)
+++ sandbox/jng/diet_oem/dbxml_ignore.txt	2015-05-02 05:09:06 UTC (rev 8649)
@@ -0,0 +1,20 @@
+dbxml\db-4.8.26
+dbxml\xerces-c-src
+dbxml\xqilla
+dbxml\jar
+dbxml\jar64
+dbxml\dbxml\build_unix
+dbxml\dbxml\build_windows
+dbxml\dbxml\dist
+dbxml\dbxml\docs
+dbxml\dbxml\examples
+dbxml\dbxml\include
+dbxml\dbxml\src
+dbxml\dbxml\test
+dbxml\dbxml\aclocal.m4
+dbxml\dbxml\configure
+dbxml\dbxml\configure.in
+dbxml\dbxml\LICENSE
+dbxml\dbxml\Makefile.am
+dbxml\dbxml\Makefile.in
+dbxml\dbxml\README
\ No newline at end of file

Added: sandbox/jng/diet_oem/ignore.txt
===================================================================
--- sandbox/jng/diet_oem/ignore.txt	                        (rev 0)
+++ sandbox/jng/diet_oem/ignore.txt	2015-05-02 05:09:06 UTC (rev 8649)
@@ -0,0 +1,100 @@
+.pm
+.pl
+.py
+.lst
+.vcxproj
+.filters
+.gnu
+.cpp
+.cxx
+.cc
+.obj
+.tlog
+.mpb
+.mpd
+.mpc
+.mpc
+.mwc
+.features
+.lastbuildstate
+.html
+.doxygen
+.sln
+.exe
+.ini
+.spl
+.sh
+.idb
+.res
+.bin
+vc110.pdb
+.m4
+.in
+.guess
+.am
+.dsw
+.dsp
+.vcproj
+.zip
+.dsm
+.txt
+.xml
+.xsl
+.spec
+.sub
+.wwtpl
+.dox
+.opt
+.bmp
+.jpg
+.jpeg
+.png
+.gif
+.pro
+.rc
+.rc2
+.bat
+.java
+.awk
+.htm
+.html
+.pdf
+.i
+.src
+.xq
+.xsd
+.vc
+Makefile
+README
+CppUnit-1.9.14\config
+CppUnit-1.9.14\contrib
+CppUnit-1.9.14\doc
+CppUnit-1.9.14\examples
+CppUnit-1.9.14\src
+DWFTK\develop\global\build
+DWFTK\develop\global\rc
+GEOS\capi
+GEOS\cmake
+GEOS\doc
+GEOS\macros
+GEOS\php
+GEOS\src
+GEOS\swig
+GEOS\tests
+GEOS\tools
+gd\freetype\builds
+gd\freetype\devel
+gd\freetype\docs
+gd\freetype\src
+gd\lpng\contrib
+gd\lpng\projects\beos
+gd\lpng\projects\cbuilder5
+gd\lpng\projects\visualc6
+gd\lpng\projects\visualc8
+gd\lpng\scripts
+jsoncpp\doc
+jsoncpp\makefiles
+jsoncpp\scons-local-0.97
+jsoncpp\scons-tools
+jsoncpp\src
+jsoncpp\test
\ No newline at end of file



More information about the mapguide-commits mailing list