Defining pre build command to build one file each time

Sysprogs forums Forums VisualGDB Defining pre build command to build one file each time

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35322
    gboy
    Participant

    I’m running Visual Studio Community 2015 w/ VisualGDB, working on an STM32 project.  I would like to instruct the tool to build one particular file with each build.  Is there a way to force recompilation on a file by file basis?  If so, where do I implement that command and what is the format for that command?

     

    #35323
    support
    Keymaster

    Hi,

    There isn’t any specific setting that would do that directly, but you could try adding a pre-build step that would regenerate some header file, and including that file from all sources that you would like to be rebuilt.

    #35324
    gboy
    Participant

    Thanks for the tip.  Where exactly are pre-build steps like that added in VisualGDB?  (and what’s the format of the command to regenerate such a header file?)

     

    #35325
    support
    Keymaster

    Hi,

    You can configure custom pre-build steps via VisualGDB Project Properties -> Custom Build Steps.

    As for the command line, it’s something for you to figure out. VisualGDB can run arbitrary command lines at different times during the build as configured via VisualGDB Project Properties, but it’s up to the user to make sure these command lines make sense and work as expected.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.