summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2015-07-01 21:17:40 +0000
committerCharles E. Rolke <chug@apache.org>2015-07-01 21:17:40 +0000
commitbb88cf3dcb42328d3615c37026dd190a5bf18606 (patch)
tree7d68f4d979f73fcfc53389e1eba935dd0913b348 /qpid/cpp
parentb0031ee308b7f9f10bb78f079ff0505a29aa39cd (diff)
downloadqpid-python-bb88cf3dcb42328d3615c37026dd190a5bf18606.tar.gz
QPID-6611: Getting Visual Studio executables to run from where they are built.
Leaving cmake as-is, this patch adds current VS build folder to the PATH. It further adds an arg to make-install.bat to select a build configuration: git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1688738 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/bindings/qpid/dotnet/configure-windows.ps113
1 files changed, 10 insertions, 3 deletions
diff --git a/qpid/cpp/bindings/qpid/dotnet/configure-windows.ps1 b/qpid/cpp/bindings/qpid/dotnet/configure-windows.ps1
index a698dc88ba..c9ed769e97 100644
--- a/qpid/cpp/bindings/qpid/dotnet/configure-windows.ps1
+++ b/qpid/cpp/bindings/qpid/dotnet/configure-windows.ps1
@@ -331,10 +331,14 @@ REM >
REM
REM The solution was generated with cmake command line:
REM $cmakeLine
+SET se_buildconfig=%1
ECHO %PATH% | FINDSTR /I boost > NUL
IF %ERRORLEVEL% EQU 0 ECHO WARNING: Boost is defined in your path multiple times!
SET PATH=$boostRoot\lib;%PATH%
SET QPID_BUILD_ROOT=$buildRoot
+IF NOT DEFINED se_buildconfig (GOTO :CONT)
+SET PATH=%QPID_BUILD_ROOT%\src\%se_buildconfig%;%PATH%
+:CONT
ECHO Environment set for $slnName $studioVersion $vsPlatform $nBits-bit development.
")
Write-Host " $buildRoot\$outfileName"
@@ -385,15 +389,18 @@ function WriteMakeInstallBat
[string] $vsEnvironment,
[string] $vsBuildTarget
)
-
+ $newTarget = $vsBuildTarget -replace "Debug", "%mi_buildconfig%"
$out = @("@ECHO OFF
REM
REM Call this command procedure from a command prompt to run 'make install'
+REM %1 selects build configuration. Defaults to Debug
REM
setlocal
-call $varfileName
+SET mi_buildconfig=%1
+IF NOT DEFINED mi_buildconfig (SET mi_buildconfig=Debug)
+call $varfileName %mi_buildconfig%
call $vsEnvironment
-devenv qpid-cpp.sln /build $vsBuildTarget /project INSTALL
+devenv qpid-cpp.sln /build $newTarget /project INSTALL
endlocal
")
Write-Host " $buildRoot\$outfileName"