Return-Path: X-Original-To: apmail-qpid-commits-archive@www.apache.org Delivered-To: apmail-qpid-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B9099E49 for ; Tue, 6 Dec 2011 21:11:19 +0000 (UTC) Received: (qmail 84175 invoked by uid 500); 6 Dec 2011 21:11:19 -0000 Delivered-To: apmail-qpid-commits-archive@qpid.apache.org Received: (qmail 84151 invoked by uid 500); 6 Dec 2011 21:11:19 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 84144 invoked by uid 99); 6 Dec 2011 21:11:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 21:11:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,WEIRD_QUOTING X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 21:11:17 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id CC4C82388A56 for ; Tue, 6 Dec 2011 21:10:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1211152 - /qpid/trunk/qpid/cpp/bld-winsdk.ps1 Date: Tue, 06 Dec 2011 21:10:56 -0000 To: commits@qpid.apache.org From: chug@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111206211056.CC4C82388A56@eris.apache.org> Author: chug Date: Tue Dec 6 21:10:56 2011 New Revision: 1211152 URL: http://svn.apache.org/viewvc?rev=1211152&view=rev Log: QPID-2643 Visual Studio 2010 Use separate directories for each version of Visual Studio. This lets parallel build use private sandboxes and work better. In examples-cmake, emit a batch script that has the correct cmake generator already chosen. Modified: qpid/trunk/qpid/cpp/bld-winsdk.ps1 Modified: qpid/trunk/qpid/cpp/bld-winsdk.ps1 URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/bld-winsdk.ps1?rev=1211152&r1=1211151&r2=1211152&view=diff ============================================================================== --- qpid/trunk/qpid/cpp/bld-winsdk.ps1 (original) +++ qpid/trunk/qpid/cpp/bld-winsdk.ps1 Tue Dec 6 21:10:56 2011 @@ -33,13 +33,14 @@ # The version number embedded in the built executables and libraries # comes from qpid/cpp/src/CMakeWinVersions.cmake. # 3. Args[2] holds the Visual Studio version handle "VS2010" -# Defaults to VS2008. -# 4. Args[3] holds the architecture handle "x86" or "x64". -# Defaults to x86. +# Either VS2008 or VS2010. Defaults to VS2008. +# 4. Args[3] holds the architecture handle "x86" +# Either x86 or x64. Defaults to x86. # 5. This file exists in directory kitroot/qpid/cpp. -# A new directory (kitroot/x86 or kitroot/x64) will be created. -# 6. The x86 an x64 dirs are where cmake will run. -# 7. Boost was built with the same version of Visual Studio +# The kit is built in a directory \-. +# For example: \x86-VS2008 +# 6. The - dirs are where cmake will run. +# 7. Boost must have been built with the same version of Visual Studio # and the same architecture as this build. # 8. Boost directories must not be on the path. # 9. cmake, 7z, and devenv are already on the path. @@ -123,7 +124,7 @@ function BuildAPlatform [string] $install_dir = "install_$randomness" [string] $preserve_dir = "preserve_$randomness" [string] $zipfile = "qpid-cpp-$platform-$vsName-$ver.zip" - [string] $platform_dir = "$global:currentDirectory/$platform" + [string] $platform_dir = "$global:currentDirectory/$platform-$vsName" [string] $qpid_cpp_src = "$global:currentDirectory/$qpid_cpp_dir" [string] $msvcVer = "" @@ -318,6 +319,16 @@ function BuildAPlatform $src = Resolve-Path "$global:sourceDirectory/cpp/examples/winsdk-cmake" $dst = Join-Path $install_dir "examples\examples-cmake" Copy-Item "$src\*" -destination "$dst\" + + # Create a batch file that will run examples-cmake with the correct generator + $dst = Join-Path $install_dir "examples\examples-cmake\run-cmake.bat" + "REM" | Out-File -filepath $dst + "REM run-cmake.bat" | Out-File -filepath $dst -append + "REM" | Out-File -filepath $dst -append + "REM Runs cmake to build native C++ example solution and" | Out-File -filepath $dst -append + "REM projects for this WinSDK: $platform $vsName" | Out-File -filepath $dst -append + "REM" | Out-File -filepath $dst -append + "cmake -G ""$cmakeGenerator"" ." | Out-File -filepath $dst -append # Zip the /bin PDB files &'7z' a -mx9 ".\$install_dir\bin\Debug\symbols-debug.zip" ".\$install_dir\bin\DebugPDB\*.pdb" --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscribe@qpid.apache.org