From b85bd118908cebf2765db4d827c7e51115ce847e Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Fri, 4 Jun 2010 21:11:04 +0000 Subject: Windows SDK work: * Added message_drain & message_spout programs back into the SDK examples * Modified messaging example project files to use qpidmessaging library (instead of old qpidclient lib) * Removed all x64 configurations from the example messaging projects as we don't include the x64 libs in the SDK * Put import libs in lib directory to separate them from dlls * Removed use of BOOST_ROOT env var from example projects as no boost headers are needed by the SDK git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@951572 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bld-winsdk.ps1 | 19 +- cpp/examples/examples.sln | 32 +-- cpp/examples/messaging/messaging_client.vcproj | 221 +++------------------ cpp/examples/messaging/messaging_drain.vcproj | 183 +---------------- .../messaging/messaging_map_receiver.vcproj | 221 +++------------------ cpp/examples/messaging/messaging_map_sender.vcproj | 221 +++------------------ cpp/examples/messaging/messaging_server.vcproj | 221 +++------------------ cpp/examples/messaging/messaging_spout.vcproj | 182 +---------------- cpp/examples/old-examples.sln | 12 -- 9 files changed, 159 insertions(+), 1153 deletions(-) (limited to 'cpp') diff --git a/cpp/bld-winsdk.ps1 b/cpp/bld-winsdk.ps1 index 3e13c18ad7..8618160259 100644 --- a/cpp/bld-winsdk.ps1 +++ b/cpp/bld-winsdk.ps1 @@ -59,11 +59,13 @@ devenv qpid-cpp.sln /build "Release|Win32" /project docs-user-api devenv qpid-cpp.sln /build "Debug|Win32" /project INSTALL devenv qpid-cpp.sln /build "Release|Win32" /project INSTALL -# This is kludgy until we have more than one entry as the array declaration syntax +# This would be kludgy if we have only one entry as the array declaration syntax # can't cope with just one nested array -$move1=('bin/boost/*','bin') -$move=@(0) -$move[0]=$move1 +# Target must be a directory +$move=( + ('bin/*.lib','lib'), + ('bin/boost/*.dll','bin') +) $preserve=( 'include/qpid/agent', @@ -77,16 +79,12 @@ $preserve=( $remove=( 'bin/qpidd.exe', 'bin/qpidbroker*.*', 'bin/qmfengine*.*', 'bin/qpidxarm*.*', - 'bin/boost_regex*.*', 'bin/boost*.lib', + 'bin/boost_regex*.*', 'bin/boost', 'conf', 'examples/direct', 'examples/failover', 'examples/fanout', - 'examples/messaging/drain.cpp', - 'examples/messaging/spout.cpp', - 'examples/messaging/messaging_drain.vcproj', - 'examples/messaging/messaging_spout.vcproj', 'examples/pub-sub', 'examples/qmf-console', 'examples/request-response', @@ -100,8 +98,7 @@ $remove=( # Move some files around in the install tree foreach ($pattern in $move) { $target = Join-Path $install_dir $pattern[1] - $tparent = Split-Path -parent $target - New-Item -force -type directory $tparent + New-Item -force -type directory $target Move-Item -force -path "$install_dir/$($pattern[0])" -destination "$install_dir/$($pattern[1])" } # Copy aside the files to preserve diff --git a/cpp/examples/examples.sln b/cpp/examples/examples.sln index 14dcc3477f..4a26ac7c7c 100644 --- a/cpp/examples/examples.sln +++ b/cpp/examples/examples.sln @@ -26,15 +26,11 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "messaging_map_receiver", "m EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "messaging_map_sender", "messaging\messaging_map_sender.vcproj", "{3B9EA507-FECA-1BAD-1FEE-AE349A6B75AA}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "messaging_queue_receiver", "messaging\messaging_queue_receiver.vcproj", "{64932FB7-FECA-1BAD-1FEE-AE349A6B75AA}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "messaging_queue_sender", "messaging\messaging_queue_sender.vcproj", "{2668EEDD-FECA-1BAD-1FEE-AE349A6B75AA}" -EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "messaging_server", "messaging\messaging_server.vcproj", "{E0A50687-FECA-1BAD-1FEE-AE349A6B75AA}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "messaging_topic_receiver", "messaging\messaging_topic_receiver.vcproj", "{64979B71-FECA-1BAD-1FEE-AE349A6B75AA}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "messaging_drain", "messaging\messaging_drain.vcproj", "{D79791E5-C593-4F23-B545-0CE72D181F2A}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "messaging_topic_sender", "messaging\messaging_topic_sender.vcproj", "{E068EA69-FECA-1BAD-1FEE-AE349A6B75AA}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "messaging_spout", "messaging\messaging_spout.vcproj", "{D3115AC9-91C4-4D79-BCAC-DE837C70F1EA}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -54,26 +50,18 @@ Global {3B9EA507-FECA-1BAD-1FEE-AE349A6B75AA}.Debug|Win32.Build.0 = Debug|Win32 {3B9EA507-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.ActiveCfg = Release|Win32 {3B9EA507-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.Build.0 = Release|Win32 - {64932FB7-FECA-1BAD-1FEE-AE349A6B75AA}.Debug|Win32.ActiveCfg = Debug|Win32 - {64932FB7-FECA-1BAD-1FEE-AE349A6B75AA}.Debug|Win32.Build.0 = Debug|Win32 - {64932FB7-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.ActiveCfg = Release|Win32 - {64932FB7-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.Build.0 = Release|Win32 - {2668EEDD-FECA-1BAD-1FEE-AE349A6B75AA}.Debug|Win32.ActiveCfg = Debug|Win32 - {2668EEDD-FECA-1BAD-1FEE-AE349A6B75AA}.Debug|Win32.Build.0 = Debug|Win32 - {2668EEDD-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.ActiveCfg = Release|Win32 - {2668EEDD-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.Build.0 = Release|Win32 {E0A50687-FECA-1BAD-1FEE-AE349A6B75AA}.Debug|Win32.ActiveCfg = Debug|Win32 {E0A50687-FECA-1BAD-1FEE-AE349A6B75AA}.Debug|Win32.Build.0 = Debug|Win32 {E0A50687-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.ActiveCfg = Release|Win32 {E0A50687-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.Build.0 = Release|Win32 - {64979B71-FECA-1BAD-1FEE-AE349A6B75AA}.Debug|Win32.ActiveCfg = Debug|Win32 - {64979B71-FECA-1BAD-1FEE-AE349A6B75AA}.Debug|Win32.Build.0 = Debug|Win32 - {64979B71-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.ActiveCfg = Release|Win32 - {64979B71-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.Build.0 = Release|Win32 - {E068EA69-FECA-1BAD-1FEE-AE349A6B75AA}.Debug|Win32.ActiveCfg = Debug|Win32 - {E068EA69-FECA-1BAD-1FEE-AE349A6B75AA}.Debug|Win32.Build.0 = Debug|Win32 - {E068EA69-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.ActiveCfg = Release|Win32 - {E068EA69-FECA-1BAD-1FEE-AE349A6B75AA}.Release|Win32.Build.0 = Release|Win32 + {D79791E5-C593-4F23-B545-0CE72D181F2A}.Debug|Win32.ActiveCfg = Debug|Win32 + {D79791E5-C593-4F23-B545-0CE72D181F2A}.Debug|Win32.Build.0 = Debug|Win32 + {D79791E5-C593-4F23-B545-0CE72D181F2A}.Release|Win32.ActiveCfg = Release|Win32 + {D79791E5-C593-4F23-B545-0CE72D181F2A}.Release|Win32.Build.0 = Release|Win32 + {D3115AC9-91C4-4D79-BCAC-DE837C70F1EA}.Debug|Win32.ActiveCfg = Debug|Win32 + {D3115AC9-91C4-4D79-BCAC-DE837C70F1EA}.Debug|Win32.Build.0 = Debug|Win32 + {D3115AC9-91C4-4D79-BCAC-DE837C70F1EA}.Release|Win32.ActiveCfg = Release|Win32 + {D3115AC9-91C4-4D79-BCAC-DE837C70F1EA}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/cpp/examples/messaging/messaging_client.vcproj b/cpp/examples/messaging/messaging_client.vcproj index e2f8c26d1a..f6e5da08e3 100644 --- a/cpp/examples/messaging/messaging_client.vcproj +++ b/cpp/examples/messaging/messaging_client.vcproj @@ -26,15 +26,12 @@ ProjectGUID="{80B58CBC-FECA-1BAD-1FEE-AE349A6B75AA}" RootNamespace="messaging_client" Keyword="Win32Proj" - SignManifests="true" + TargetFrameworkVersion="0" > - @@ -45,7 +42,6 @@ IntermediateDirectory="Debug\messaging_client\I386" ConfigurationType="1" CharacterSet="0" - > + @@ -116,6 +115,9 @@ + @@ -126,7 +128,6 @@ IntermediateDirectory="Release\messaging_client\I386" ConfigurationType="1" CharacterSet="0" - > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Filter="cpp;cxx;cc;c;C" + > + RelativePath="client.cpp" + > + > + RelativePath="CMakeLists.txt" + > + ExcludedFromBuild="true" + > + Name="VCCustomBuildTool" + /> - - - - - - + ExcludedFromBuild="true" + > + Name="VCCustomBuildTool" + /> diff --git a/cpp/examples/messaging/messaging_drain.vcproj b/cpp/examples/messaging/messaging_drain.vcproj index ea7704c341..78f89d6cc3 100644 --- a/cpp/examples/messaging/messaging_drain.vcproj +++ b/cpp/examples/messaging/messaging_drain.vcproj @@ -26,14 +26,12 @@ ProjectGUID="{D79791E5-C593-4F23-B545-0CE72D181F2A}" RootNamespace="messaging_drain" Keyword="Win32Proj" + TargetFrameworkVersion="0" > - @@ -63,7 +61,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -367,6 +202,10 @@ RelativePath="drain.cpp" > + + diff --git a/cpp/examples/messaging/messaging_map_receiver.vcproj b/cpp/examples/messaging/messaging_map_receiver.vcproj index ed806c0a53..a928198203 100644 --- a/cpp/examples/messaging/messaging_map_receiver.vcproj +++ b/cpp/examples/messaging/messaging_map_receiver.vcproj @@ -26,15 +26,12 @@ ProjectGUID="{92D8F5AA-FECA-1BAD-1FEE-AE349A6B75AA}" RootNamespace="messaging_map_receiver" Keyword="Win32Proj" - SignManifests="true" + TargetFrameworkVersion="0" > - @@ -45,7 +42,6 @@ IntermediateDirectory="Debug\messaging_map_receiver\I386" ConfigurationType="1" CharacterSet="0" - > + @@ -116,6 +115,9 @@ + @@ -126,7 +128,6 @@ IntermediateDirectory="Release\messaging_map_receiver\I386" ConfigurationType="1" CharacterSet="0" - > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Filter="cpp;cxx;cc;c;C" + > + RelativePath="map_receiver.cpp" + > + > + RelativePath="CMakeLists.txt" + > + ExcludedFromBuild="true" + > + Name="VCCustomBuildTool" + /> - - - - - - + ExcludedFromBuild="true" + > + Name="VCCustomBuildTool" + /> diff --git a/cpp/examples/messaging/messaging_map_sender.vcproj b/cpp/examples/messaging/messaging_map_sender.vcproj index 55d16063c5..29b31143b1 100644 --- a/cpp/examples/messaging/messaging_map_sender.vcproj +++ b/cpp/examples/messaging/messaging_map_sender.vcproj @@ -26,15 +26,12 @@ ProjectGUID="{3B9EA507-FECA-1BAD-1FEE-AE349A6B75AA}" RootNamespace="messaging_map_sender" Keyword="Win32Proj" - SignManifests="true" + TargetFrameworkVersion="0" > - @@ -45,7 +42,6 @@ IntermediateDirectory="Debug\messaging_map_sender\I386" ConfigurationType="1" CharacterSet="0" - > + @@ -116,6 +115,9 @@ + @@ -126,7 +128,6 @@ IntermediateDirectory="Release\messaging_map_sender\I386" ConfigurationType="1" CharacterSet="0" - > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Filter="cpp;cxx;cc;c;C" + > + RelativePath="map_sender.cpp" + > + > + RelativePath="CMakeLists.txt" + > + ExcludedFromBuild="true" + > + Name="VCCustomBuildTool" + /> - - - - - - + ExcludedFromBuild="true" + > + Name="VCCustomBuildTool" + /> diff --git a/cpp/examples/messaging/messaging_server.vcproj b/cpp/examples/messaging/messaging_server.vcproj index 5a4f614dd2..38d43e7b0b 100644 --- a/cpp/examples/messaging/messaging_server.vcproj +++ b/cpp/examples/messaging/messaging_server.vcproj @@ -26,15 +26,12 @@ ProjectGUID="{E0A50687-FECA-1BAD-1FEE-AE349A6B75AA}" RootNamespace="messaging_server" Keyword="Win32Proj" - SignManifests="true" + TargetFrameworkVersion="0" > - @@ -45,7 +42,6 @@ IntermediateDirectory="Debug\messaging_server\I386" ConfigurationType="1" CharacterSet="0" - > + @@ -116,6 +115,9 @@ + @@ -126,7 +128,6 @@ IntermediateDirectory="Release\messaging_server\I386" ConfigurationType="1" CharacterSet="0" - > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Filter="cpp;cxx;cc;c;C" + > + RelativePath="server.cpp" + > + > + RelativePath="CMakeLists.txt" + > + ExcludedFromBuild="true" + > + Name="VCCustomBuildTool" + /> - - - - - - + ExcludedFromBuild="true" + > + Name="VCCustomBuildTool" + /> diff --git a/cpp/examples/messaging/messaging_spout.vcproj b/cpp/examples/messaging/messaging_spout.vcproj index b4b941fef7..e10b00f8a4 100644 --- a/cpp/examples/messaging/messaging_spout.vcproj +++ b/cpp/examples/messaging/messaging_spout.vcproj @@ -32,9 +32,6 @@ - @@ -64,7 +61,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -364,6 +198,10 @@ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > + + diff --git a/cpp/examples/old-examples.sln b/cpp/examples/old-examples.sln index 7b84ba80e3..7f2fa3e8b0 100644 --- a/cpp/examples/old-examples.sln +++ b/cpp/examples/old-examples.sln @@ -58,10 +58,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tradedemo_topic_listener", EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tradedemo_topic_publisher", "tradedemo\tradedemo_topic_publisher.vcproj", "{E614CC2C-FECA-1BAD-23CE-CD4095BD3C8B}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "messaging_drain", "messaging\messaging_drain.vcproj", "{D79791E5-C593-4F23-B545-0CE72D181F2A}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "messaging_spout", "messaging\messaging_spout.vcproj", "{D3115AC9-91C4-4D79-BCAC-DE837C70F1EA}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 @@ -144,14 +140,6 @@ Global {E614CC2C-FECA-1BAD-23CE-CD4095BD3C8B}.Debug|Win32.Build.0 = Debug|Win32 {E614CC2C-FECA-1BAD-23CE-CD4095BD3C8B}.Release|Win32.ActiveCfg = Release|Win32 {E614CC2C-FECA-1BAD-23CE-CD4095BD3C8B}.Release|Win32.Build.0 = Release|Win32 - {D79791E5-C593-4F23-B545-0CE72D181F2A}.Debug|Win32.ActiveCfg = Debug|Win32 - {D79791E5-C593-4F23-B545-0CE72D181F2A}.Debug|Win32.Build.0 = Debug|Win32 - {D79791E5-C593-4F23-B545-0CE72D181F2A}.Release|Win32.ActiveCfg = Release|Win32 - {D79791E5-C593-4F23-B545-0CE72D181F2A}.Release|Win32.Build.0 = Release|Win32 - {D3115AC9-91C4-4D79-BCAC-DE837C70F1EA}.Debug|Win32.ActiveCfg = Debug|Win32 - {D3115AC9-91C4-4D79-BCAC-DE837C70F1EA}.Debug|Win32.Build.0 = Debug|Win32 - {D3115AC9-91C4-4D79-BCAC-DE837C70F1EA}.Release|Win32.ActiveCfg = Release|Win32 - {D3115AC9-91C4-4D79-BCAC-DE837C70F1EA}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE -- cgit v1.2.1