CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    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
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    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
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

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

    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
  •  





Click Here to Expand Forum to Full Width

Featured