diff options
| author | Charles E. Rolke <chug@apache.org> | 2011-12-06 21:10:56 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2011-12-06 21:10:56 +0000 |
| commit | 0ab4257b4b9f9c6ecc5b1595e9d3e141107cb2ee (patch) | |
| tree | f69e8eec633911f4fb28e15f59816774a054b497 /cpp | |
| parent | 2010a37bee0ab63e876665fc4049f322cf37f999 (diff) | |
| download | qpid-python-0ab4257b4b9f9c6ecc5b1595e9d3e141107cb2ee.tar.gz | |
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.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1211152 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/bld-winsdk.ps1 | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/cpp/bld-winsdk.ps1 b/cpp/bld-winsdk.ps1 index cf90188d7c..7c691c99d9 100644 --- a/cpp/bld-winsdk.ps1 +++ b/cpp/bld-winsdk.ps1 @@ -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 <kitroot>\<arch>-<VSversion>. +# For example: <kitroot>\x86-VS2008 +# 6. The <arch>-<VSversion> 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" |
