diff options
| author | Charles E. Rolke <chug@apache.org> | 2011-12-02 23:11:32 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2011-12-02 23:11:32 +0000 |
| commit | 5166b43ae82b89aa58ebb42d0d8ede81b202c52c (patch) | |
| tree | 4e60d00170032a6cf4594e3157cadfcc1c3afbcd /qpid/cpp/bld-winsdk.ps1 | |
| parent | 300c81906776ed563e6ddabfc82e7cc9d4769f47 (diff) | |
| download | qpid-python-5166b43ae82b89aa58ebb42d0d8ede81b202c52c.tar.gz | |
QPID-2643 Visual Studio 2010
In the SDK build script remove VS2008 projects and replace them
with a CMakeLists.txt that can generate example projects and solutions
on demand for any version of Visual Studio.
Tidy up the actual CMake script.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1209774 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bld-winsdk.ps1')
| -rw-r--r-- | qpid/cpp/bld-winsdk.ps1 | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/qpid/cpp/bld-winsdk.ps1 b/qpid/cpp/bld-winsdk.ps1 index f3d126713e..cf90188d7c 100644 --- a/qpid/cpp/bld-winsdk.ps1 +++ b/qpid/cpp/bld-winsdk.ps1 @@ -253,6 +253,7 @@ function BuildAPlatform 'examples/tradedemo', 'examples/*.sln', 'examples/*.vcproj', + 'examples/messaging/*.vcproj', 'include', 'plugins') @@ -292,9 +293,10 @@ function BuildAPlatform # Set top level info files to DOS line endings
Unix2Dos "$install_dir/README-winsdk.txt"
Unix2Dos "$install_dir/LICENSE"
- Unix2Dos "$install_dir/NOTICE"
+ Unix2Dos "$install_dir/NOTICE" + Unix2Dos "$install_dir/examples/README.txt"
- # Install the .NET binding examples + # Install the .NET binding example source code New-Item -path $(Join-Path $(Get-Location) $install_dir) -name dotnet_examples -type directory New-Item -path $(Join-Path $(Get-Location) $install_dir/dotnet_examples) -name examples -type directory @@ -302,14 +304,19 @@ function BuildAPlatform $dst = Resolve-Path "$install_dir/dotnet_examples" Copy-Item "$src\" -destination "$dst\" -recurse -force - $src = Resolve-Path "$qpid_cpp_src/bindings/qpid/dotnet/winsdk_sources/$msvcVer" - $dst = Resolve-Path "$install_dir/dotnet_examples" - Copy-Item "$src\*" -destination "$dst\" -recurse -force - - # Construct the examples' msvc-versioned solution/projects - New-Item $(Join-Path $install_dir "examples\msvc") -type Directory | Out-Null + Remove-Item -recurse "$install_dir/dotnet_examples/examples/msvc9" + Remove-Item -recurse "$install_dir/dotnet_examples/examples/msvc10" + + # TODO: Fix up the .NET binding example solution/projects before including them. + # $src = Resolve-Path "$qpid_cpp_src/bindings/qpid/dotnet/winsdk_sources/$msvcVer" + # $dst = Resolve-Path "$install_dir/dotnet_examples" + # Copy-Item "$src\*" -destination "$dst\" -recurse -force + + # For the C++ examples: install a CMakeLists.txt file so customers can build + # their own Visual Studio solutions and projects. + New-Item $(Join-Path $install_dir "examples\examples-cmake") -type Directory | Out-Null $src = Resolve-Path "$global:sourceDirectory/cpp/examples/winsdk-cmake" - $dst = Join-Path $install_dir "examples\msvc" + $dst = Join-Path $install_dir "examples\examples-cmake" Copy-Item "$src\*" -destination "$dst\" # Zip the /bin PDB files
@@ -325,6 +332,8 @@ function BuildAPlatform Copy-Item -force -path "./src/RelWithDebInfo/org.apache.qpid.messaging*.dll" -destination "$install_dir/bin/Release/" Copy-Item -force -path "./src/RelWithDebInfo/org.apache.qpid.messaging*.pdb" -destination "$install_dir/bin/Release/" + # TODO: What happened to the .NET binding PDB files? + # Create a new zip for the whole kit. # Exclude *.pdb so as not include the debug symbols twice if (Test-Path $zipfile) {Remove-Item $zipfile} |
