From f4e6a71348753a99fbe99c4a8aabf29a55422ed5 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 30 Jul 2010 20:13:47 +0000 Subject: QPID-2765 - WinSdk does not have the .NET Binding examples Patch from Chuck Rolke git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@980936 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/bindings/qpid/dotnet/ReadMe.txt | 78 ++++-- ...rg.apache.qpid.messaging.sessionreceiver.csproj | 81 ++++++ .../dotnet/bld/bld-org.apache.qpid.messaging.sln | 52 ++++ .../bld/bld-org.apache.qpid.messaging.vcproj | 300 +++++++++++++++++++++ 4 files changed, 495 insertions(+), 16 deletions(-) create mode 100644 cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.sessionreceiver.csproj create mode 100644 cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.sln create mode 100644 cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.vcproj (limited to 'cpp/bindings') diff --git a/cpp/bindings/qpid/dotnet/ReadMe.txt b/cpp/bindings/qpid/dotnet/ReadMe.txt index faa1b79d4b..61f29bddc4 100644 --- a/cpp/bindings/qpid/dotnet/ReadMe.txt +++ b/cpp/bindings/qpid/dotnet/ReadMe.txt @@ -1,48 +1,94 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + Qpid.cpp.bindings.qpid.dotnet binding package. 1. Features =========== -A. This binding package provides a .NET Interop wrapper around the C++ - Qpid Messaging interface. It exposes the Messaging interface through +A. This binding package provides a .NET Interop wrapper around the + Qpid C++ Messaging interface. It exposes the Messaging interface through a series of managed code classes that may be used by any .NET language. -B. A sessionreceiver assembly provides session callback functionality - above the C++ layer. +B. A sessionreceiver assembly provides session message callback functionality. 2. Prerequisites ================ -A. A build of the Qpid C++ libraries is available. +A. From a fresh check-out of Qpid sources, execute an in-source CMake. + This command puts the CMake output files in the same directories + as the Qpid source files. + + > cd cpp + > cmake -i -B. Refer to this library using environment variable QPID_BUILD_ROOT. - for example: SET QPID_BUILD_ROOT=D:\users\submitter\svn\qpid\cpp +B. Build the qpid-cpp solution. -3. Building the solution -======================== + > qpid-cpp.sln + Select Configuration Debug + Select Platform Win32 + Compile the ALL_BUILD project -A. The solution is cpp\bindings\qpid\dotnet\org.apache.qpid.messaging.sln +3. Building the Dotnet Binding solution +======================================= -B. Build the solution (Debug only - Release is not set up yet). +A. Open solution file cpp\bindings\qpid\dotnet\org.apache.qpid.messaging.sln + Select Configuration Debug + Select Platform x86 + Compile the solution -C. Project output goes to %QPID_BUILD_ROOT%\src\Debug. This puts all the - solution artifacts is the same directory as the C++ DLLs. - 4. Running the examples -====================== +======================= A. csharp.direct.receiver B. csharp.direct.sender + C. csharp.map.receiver D. csharp.map.sender + E. csharp.map.callback.receiver F. csharp.map.callback.sender +G. csharp.example.server +H. visualbasic.example.server +I. csharp.example.client + +J. csharp.example.drain +K. csharp.example.spout +L. csharp.example.declare_queues + +M. csharp.example.helloworld +N. powershell.example.helloworld + 5. Running the tests ==================== -A. messaging.test +A. TBD + +6. Notes +======== + +A. Directory cpp\bindings\qpid\dotnet\bld holds a solution file and two + project files that are executed during automated winsdk builds. + These are not meant to be run interactively. + diff --git a/cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.sessionreceiver.csproj b/cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.sessionreceiver.csproj new file mode 100644 index 0000000000..b8168afdd4 --- /dev/null +++ b/cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.sessionreceiver.csproj @@ -0,0 +1,81 @@ + + + + Debug + AnyCPU + 9.0.21022 + 2.0 + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05} + Library + Properties + org.apache.qpid.messaging.sessionreceiver + org.apache.qpid.messaging.sessionreceiver + v3.5 + 512 + + + true + full + false + ..\..\..\..\..\..\src\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + ..\..\..\..\..\..\src\Release\ + TRACE + prompt + 4 + + + true + ..\..\..\..\..\..\src\Debug\ + DEBUG;TRACE + full + x86 + prompt + + + ..\..\..\..\..\..\src\Release\ + TRACE + true + pdbonly + x86 + prompt + + + + + 3.5 + + + 3.5 + + + 3.5 + + + + + + + + + + + {AA5A3B83-5F98-406D-A01C-5A921467A57D} + Org.Apache.Qpid.Messaging + + + + + \ No newline at end of file diff --git a/cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.sln b/cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.sln new file mode 100644 index 0000000000..79e22cb3b8 --- /dev/null +++ b/cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.sln @@ -0,0 +1,52 @@ +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Org.Apache.Qpid.Messaging", "bld-org.apache.qpid.messaging.vcproj", "{AA5A3B83-5F98-406D-A01C-5A921467A57D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "org.apache.qpid.messaging.sessionreceiver", "bld-org.apache.qpid.messaging.sessionreceiver.csproj", "{B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|Win32 = Debug|Win32 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + Release|Win32 = Release|Win32 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Debug|Mixed Platforms.Build.0 = Debug|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Debug|Win32.ActiveCfg = Debug|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Debug|Win32.Build.0 = Debug|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Debug|x86.ActiveCfg = Debug|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Debug|x86.Build.0 = Debug|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Release|Any CPU.ActiveCfg = Release|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Release|Mixed Platforms.ActiveCfg = Release|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Release|Mixed Platforms.Build.0 = Release|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Release|Win32.ActiveCfg = Release|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Release|Win32.Build.0 = Release|Win32 + {AA5A3B83-5F98-406D-A01C-5A921467A57D}.Release|x86.ActiveCfg = Release|Win32 + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Debug|Win32.ActiveCfg = Debug|Any CPU + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Debug|x86.ActiveCfg = Debug|x86 + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Debug|x86.Build.0 = Debug|x86 + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Release|Any CPU.Build.0 = Release|Any CPU + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Release|Win32.ActiveCfg = Release|Any CPU + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Release|x86.ActiveCfg = Release|x86 + {B0A51CEC-30A2-4C2E-90BE-AE95107EAA05}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + EndGlobalSection +EndGlobal diff --git a/cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.vcproj b/cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.vcproj new file mode 100644 index 0000000000..14e67dec67 --- /dev/null +++ b/cpp/bindings/qpid/dotnet/bld/bld-org.apache.qpid.messaging.vcproj @@ -0,0 +1,300 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.1