summaryrefslogtreecommitdiff
path: root/cpp/bld-winsdk.ps1
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-06-04 21:11:04 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-06-04 21:11:04 +0000
commitb85bd118908cebf2765db4d827c7e51115ce847e (patch)
tree280e154ec8ae81138237c266b0d54627554f3022 /cpp/bld-winsdk.ps1
parent3efdcbe3cb29f5632f3e7e0103a999acb5ade13d (diff)
downloadqpid-python-b85bd118908cebf2765db4d827c7e51115ce847e.tar.gz
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
Diffstat (limited to 'cpp/bld-winsdk.ps1')
-rw-r--r--cpp/bld-winsdk.ps119
1 files changed, 8 insertions, 11 deletions
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