[mapguide-commits] r6971 - in branches/2.4/MgDev: . Desktop

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Aug 30 11:44:23 PDT 2012


Author: jng
Date: 2012-08-30 11:44:23 -0700 (Thu, 30 Aug 2012)
New Revision: 6971

Added:
   branches/2.4/MgDev/Desktop/dll_excludes.txt
   branches/2.4/MgDev/Desktop/nuget_prepare.bat
   branches/2.4/MgDev/Desktop/package_excludes.txt
   branches/2.4/MgDev/Desktop/samples_exclude.txt
Modified:
   branches/2.4/MgDev/build_desktop.bat
Log:
mg-desktop build tweaks to facilitate bundling of samples and easy nuget packaging

Added: branches/2.4/MgDev/Desktop/dll_excludes.txt
===================================================================
--- branches/2.4/MgDev/Desktop/dll_excludes.txt	                        (rev 0)
+++ branches/2.4/MgDev/Desktop/dll_excludes.txt	2012-08-30 18:44:23 UTC (rev 6971)
@@ -0,0 +1,9 @@
+SampleExtension.dll
+MgMapGuideCommon.dll
+OSGeo.MapGuide.Desktop.dll
+OSGeo.MapGuide.Foundation.dll
+OSGeo.MapGuide.Geometry.dll
+OSGeo.MapGuide.PlatformBase.dll
+OSGeo.MapGuide.Viewer.Desktop.dll
+OSGeo.MapGuide.Viewer.dll
+OSGeo.MapGuide.Viewer.xml
\ No newline at end of file

Added: branches/2.4/MgDev/Desktop/nuget_prepare.bat
===================================================================
--- branches/2.4/MgDev/Desktop/nuget_prepare.bat	                        (rev 0)
+++ branches/2.4/MgDev/Desktop/nuget_prepare.bat	2012-08-30 18:44:23 UTC (rev 6971)
@@ -0,0 +1,30 @@
+ at echo off
+rem Top-level build script for mg-desktop
+rem
+rem Author: Jackie Ng (jumpinjackie at gmail.com)
+rem
+rem You must call setenvironment[64].bat first with any appropriate
+rem parameters before calling this script
+
+IF "%NUGET_TARGET%" == "" SET NUGET_TARGET=net40
+SET NUGET_CONTENT=%CD%\nuget\%NUGET_TARGET%\content\%NUGET_TARGET%\mg-desktop
+SET NUGET_LIB=%CD%\nuget\%NUGET_TARGET%\lib\%NUGET_TARGET%
+
+echo [install]: Copy files to nuget staging
+%XCOPY% "bin\%TYPEBUILD%\FDO" "%NUGET_CONTENT%\FDO" /EXCLUDE:package_excludes.txt
+%XCOPY% "bin\%TYPEBUILD%\Dictionaries" "%NUGET_CONTENT%\Dictionaries" /EXCLUDE:package_excludes.txt
+%XCOPY% "bin\%TYPEBUILD%\Resources" "%NUGET_CONTENT%\Resources" /EXCLUDE:package_excludes.txt
+%XCOPY% "bin\%TYPEBUILD%\Schema" "%NUGET_CONTENT%\Schema" /EXCLUDE:package_excludes.txt
+xcopy /y "bin\%TYPEBUILD%\*.dll" "%NUGET_CONTENT%" /EXCLUDE:dll_excludes.txt
+copy /y "bin\%TYPEBUILD%\Platform.ini" "%NUGET_CONTENT%"
+copy /y "bin\%TYPEBUILD%\OSGeo.*.dll" "%NUGET_LIB%"
+copy /y "bin\%TYPEBUILD%\OSGeo.MapGuide.Viewer.xml" "%NUGET_LIB%"
+echo mg-desktop is ready for nuget packaging and publishing
+goto quit
+
+
+:error
+echo [ERROR]: There was an error building the component
+exit /B 1
+
+:quit
\ No newline at end of file

Added: branches/2.4/MgDev/Desktop/package_excludes.txt
===================================================================
--- branches/2.4/MgDev/Desktop/package_excludes.txt	                        (rev 0)
+++ branches/2.4/MgDev/Desktop/package_excludes.txt	2012-08-30 18:44:23 UTC (rev 6971)
@@ -0,0 +1,15 @@
+.pdb
+.exp
+.lib
+MgMapGuideCommon.dll
+OSGeo.FDO.dll
+OSGeo.FDO.Common.dll
+OSGeo.FDO.Geometry.dll
+OSGeo.FDO.Spatial.dll
+OSGeo.FDO.Providers.MySQL.Overrides.dll
+OSGeo.FDO.Providers.ODBC.Overrides.dll
+OSGeo.FDO.Providers.Rdbms.dll
+OSGeo.FDO.Providers.Rdbms.Overrides.dll
+OSGeo.FDO.Providers.SHP.Overrides.dll
+OSGeo.FDO.Providers.SQLServerSpatial.Overrides.dll
+OSGeo.FDO.Providers.WMS.Overrides.dll
\ No newline at end of file

Added: branches/2.4/MgDev/Desktop/samples_exclude.txt
===================================================================
--- branches/2.4/MgDev/Desktop/samples_exclude.txt	                        (rev 0)
+++ branches/2.4/MgDev/Desktop/samples_exclude.txt	2012-08-30 18:44:23 UTC (rev 6971)
@@ -0,0 +1,6 @@
+bin
+obj
+Lib
+.svn
+_svn
+.suo
\ No newline at end of file

Modified: branches/2.4/MgDev/build_desktop.bat
===================================================================
--- branches/2.4/MgDev/build_desktop.bat	2012-08-30 18:10:00 UTC (rev 6970)
+++ branches/2.4/MgDev/build_desktop.bat	2012-08-30 18:44:23 UTC (rev 6971)
@@ -13,6 +13,7 @@
 rem ==================================================
 
 SET MG_OUTPUT_DESKTOP=%MG_OUTPUT%\Desktop
+SET MG_OUTPUT_SAMPLES=%MG_OUTPUT%\DesktopSamples
 SET VS_SLN_SUFFIX=
 IF "%VC_COMPILER_VERSION%" == "10" SET VS_SLN_SUFFIX=_VS2010
 
@@ -31,6 +32,13 @@
 popd
 echo [install]: binaries
 %XCOPY% "Desktop\bin\%TYPEBUILD%" "%MG_OUTPUT_DESKTOP%" /EXCLUDE:svn_excludes.txt+%CONFIGURATION%_excludes.txt
+pushd "Desktop\bin\%TYPEBUILD%"
+del MgMapGuideCommon.dll
+popd
+echo [install]: Samples
+pushd Desktop
+%XCOPY% Samples "%MG_OUTPUT_SAMPLES%" /EXCLUDE:samples_exclude.txt
+popd
 goto quit
 
 :error



More information about the mapguide-commits mailing list