Menu

#5644 BUILD: MSVC git revision tracked globally

Tools
closed-fixed
Julien
None
5
2011-04-24
2011-04-08
No

This was reported on IRC yesterday.

The scripts/revision.vbs script used in the visual studio project files to determine the git revision apparently stores this in a global environment variable SCUMMVM_REVISION_STRING. This breaks in the situation where you do multiple builds in parallel, or where you have one working copy with git revision detection enabled and one with it disabled.

Discussion

  • Julien

    Julien - 2011-04-22
    • milestone: --> Tools
    • assigned_to: nobody --> littleboy
     
  • Julien

    Julien - 2011-04-22

    When I implemented this behavior, I looked at all the other solutions and it looked like the nicer one. From what I could find, setting a preprocessor define in the pre-build step from an external script isn't really easy :)

    The easy solution is to just modify internal_version.h, but since it's under version control, it would be a pain to deal with.
    To fix the current problem, I could add a define to builds with revision detection enabled and only use the environment variable in those cases, but this will break when building from two different branches in parallel.

    I'm going to have another look at it (conditional include of a generated .h file with the proper define looks like a better solution and would allow proper concurrent builds).

     
  • Julien

    Julien - 2011-04-22

    I've opened a pull request with the changes (since they affect files in base/). Can you please test again with the branch code and see if the concurrent builds/separate working copies issues are fixed?

    I tested a couple cases with MSVC10, but it will need some testing with earlier versions of Visual Studio.

    https://github.com/scummvm/scummvm/pull/22

     
  • Julien

    Julien - 2011-04-24

    Should be fixed in 11b907e.

     
  • Julien

    Julien - 2011-04-24
    • status: open --> closed-fixed
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.