Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-09-2009, 01:46 PM
abcdetech abcdetech is online now
Registered User
 
Join Date: 04-30-2008
Posts: 18
Question How to customize the Output Directory in the Make VS2005 step?

Hi,

I have a question about updating the Output Directories in the Make VS steps.

Let's say my VS projects have multiple configurations such as:
Debug
Release
DebugMT
ReleaseMT
.......

I want to build my projects in ALL configurations.
I want to have my outputs to be sorted out accordign to a configutation in which they were built:

c:\WORK_ROOT\Debug\bin\ABC.dll
c:\WORK_ROOT\Release\bin\ABC.dll
c:\WORK_ROOT\DebugMT\bin\ABC_MT.dll
c:\WORK_ROOT\ReleaseMT\bin\ABC_MT.dll

is there a variable for Configuration? So I can specify my Output Directory as:

%WORK_ROOT%\$Config\bin

Does VisualBuildPro generate any variable which corresponds to a current building configuration ($Config) ? See attachment for more info.

Thank you

Last edited by abcdetech; 07-09-2009 at 02:31 PM.
Reply With Quote
  #2  
Old 07-09-2009, 06:06 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,723
Something like

c:\WORK_ROOT\$(ConfigurationName)\bin

in the Output directory field on the Project/Solution tab of the Make VS.NET action should work.

http://www.kinook.com/VisBuildPro/Ma...olutiontab.htm

http://msdn.microsoft.com/en-us/library/c02as0cs.aspx
Reply With Quote
  #3  
Old 07-31-2009, 10:10 AM
abcdetech abcdetech is online now
Registered User
 
Join Date: 04-30-2008
Posts: 18
thank you.

the Output directory field on the Project/Solution tab works perfectly for me, very useful feature.

I have another similar question.

How do I do a similar thing to Librarian Output File?

What I want to do, I want to replace in all .vcproj files :

<Tool Name="VCLibrarianTool" OutputFile=".\debug\LibraryName.lib"/>

with

<Tool Name="VCLibrarianTool" OutputFile="$(OutDir)\LibraryName.lib"/>

In other words I want to keep developer's library file name but output into my desired location. To replace ".\debug\LibraryName.lib" with $(OutDir)\LibraryName.lib"

What is the best way to do it?

I don't see such ability in the Make VS steps. I tried the Write XML file (but it doesn't allow a replace operation)

thank you
Reply With Quote
  #4  
Old 07-31-2009, 11:22 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,723
See attached sample, and also see http://www.kinook.com/VisBuildPro/Manual/regex.htm for more help with regular expressions.
Attached Files
File Type: bld repl_lib.bld (884 Bytes, 405 views)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 07:28 PM.


Copyright 1999-2019 Kinook Software, Inc.