-
August 5th, 2011, 03:21 AM
#1
Custom build, additional dependencies
Is there a way to tell the VS2010 compiler/make to use an entire project subfolder as an additional dependency in a custom build step ?
I'll explain.
Suppose I have a C++ Application project with with following Project Solution layout
Code:
Solution 'MyApp' (1 project)
MyApp
External Dependencies
Header Files
MyApp.h
resource.h
StdAfx.h
Source Files
MyApp.cpp
MyDataParameters.bar
StdAfx.cpp
Resource Files
MyApp.ico
MyApp.rc2
MyDataFiles Files
MyData1.foo
MyData2.foo
MyData3.foo
I have a Custom Build Step defined on MyDataParameters.bar.
Is there a way that I can automagically tell VS2010 that it should add all the files in the 'MyDataFiles Files' folder as additional dependencies for that Custom Build Step?
This is a simplified example of course. I know I can do this manually by specifying
MyData1.foo;MyData2.foo;MyData3.foo
But I'm needing this for a couple hundred projects and the number of additional dependencies per project amounts to several dozen up to several hundred in some projects. Setting the dependencies manually is extremely annoying and error prone.
The list of files to be processed gets changed regularly which is why doing it manually is such an annoyance.
-
August 5th, 2011, 10:41 AM
#2
Re: Custom build, additional dependencies
Originally Posted by OReubens
[...]
But I'm needing this for a couple hundred projects and the number of additional dependencies per project amounts to several dozen up to several hundred in some projects. Setting the dependencies manually is extremely annoying and error prone.
[...]
This case, it's time to deal with Project Property Sheets
-
August 5th, 2011, 11:58 AM
#3
Re: Custom build, additional dependencies
yes, already in the process of changing the VS2008 projects to use a set of those.
But that doesn't answer my original question...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|