[mapguide-commits] r6604 - branches/2.4/MgDev

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Mon Apr 30 11:34:00 EDT 2012


Author: jng
Date: 2012-04-30 08:33:59 -0700 (Mon, 30 Apr 2012)
New Revision: 6604

Modified:
   branches/2.4/MgDev/build_desktop.bat
Log:
Modify build_desktop.bat to build the desktop .net solution with a default configuration/platform. Valid invocations include:
 - build_desktop.bat [builds for x86]
 - build_desktop.bat x86 [builds for x86]
 - build_desktop.bat x64 [builds for x64]

Modified: branches/2.4/MgDev/build_desktop.bat
===================================================================
--- branches/2.4/MgDev/build_desktop.bat	2012-04-29 22:11:03 UTC (rev 6603)
+++ branches/2.4/MgDev/build_desktop.bat	2012-04-30 15:33:59 UTC (rev 6604)
@@ -16,11 +16,16 @@
 SET VS_SLN_SUFFIX=
 IF "%VC_COMPILER_VERSION%" == "10" SET VS_SLN_SUFFIX=_VS2010
 
+SET DESKTOP_PLATFORM_UNMANAGED=Win32
+SET DESKTOP_PLATFORM=%1
+IF "%DESKTOP_PLATFORM%" == "" SET DESKTOP_PLATFORM=x86
+IF "%DESKTOP_PLATFORM%" == "x64" SET DESKTOP_PLATFORM_UNMANAGED=x64
+
 pushd Desktop
-echo [build]: Desktop API
-%MSBUILD% MgDesktopApi%VS_SLN_SUFFIX%.sln
-echo [build]: .net components
-%MSBUILD% MgDesktopDotNet%VS_SLN_SUFFIX%.sln
+echo [build]: Desktop API (%DESKTOP_PLATFORM_UNMANAGED%)
+%MSBUILD% /p:Platform=%DESKTOP_PLATFORM_UNMANAGED% MgDesktopApi%VS_SLN_SUFFIX%.sln
+echo [build]: .net components (%DESKTOP_PLATFORM%)
+%MSBUILD% /p:Platform=%DESKTOP_PLATFORM% MgDesktopDotNet%VS_SLN_SUFFIX%.sln
 popd
 echo [install]: binaries
 %XCOPY% "Desktop\bin\%TYPEBUILD%" "%MG_OUTPUT_DESKTOP%" /EXCLUDE:svn_excludes.txt+%CONFIGURATION%_excludes.txt
\ No newline at end of file



More information about the mapguide-commits mailing list