Custom build, additional dependencies
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Custom build, additional dependencies

  1. #1
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,100

    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.

  2. #2
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,059

    Re: Custom build, additional dependencies

    Quote Originally Posted by OReubens View Post
    [...]
    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
    Ovidiu Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

  3. #3
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,100

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center