User forums > Using Code::Blocks

Creating Version Info

<< < (2/4) > >>

MortenMacFly:

--- Quote from: JGM on August 25, 2007, 06:09:36 pm ---I think that the plugin should also generate an rc file under windows, that should be a feature maybe. :roll:

--- End quote ---
Definitely. In fact the version info I use is even more detailed than the one you have just shown. Here is how it looks like:

--- Code: ---LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US

VS_VERSION_INFO    VERSIONINFO
  FILEVERSION      1,0,0,1
  PRODUCTVERSION   1,0,0,1
  FILEFLAGSMASK    0x3fL // VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
  FILEFLAGS        0x1L  // VS_FF_DEBUG|VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE
#else
  FILEFLAGS        0x0L  // final version
#endif
  FILEOS           VOS_NT_WINDOWS32
  FILETYPE         VFT_APP
  FILESUBTYPE      VFT2_UNKNOWN // not used
{
  BLOCK "StringFileInfo"
  {
    BLOCK "040904E4" // Lang=US English, CharSet=Windows Multilingual
    {
      VALUE "Build",            "August 2007\0"
      VALUE "Comments",         "Free for personal use only.\0"
      VALUE "CompanyName",      "Fake Company\0"
      VALUE "Developer",        "The Developer\0"
      VALUE "FileDescription",  "Application implementing something\0"
      VALUE "FileVersion",      "1.0.000\0"
      VALUE "InternalName",     "AppInternalName\0"
      VALUE "LegalCopyright",   "Copyright (C) 2007 Fake Company\0"
      VALUE "LegalTrademarks",  "All rights reserved.\0"
      VALUE "OriginalFilename", "TheEXE.exe\0"
      VALUE "PrivateBuild",     "\0"
      VALUE "ProductName",      "The EXE\0"
      VALUE "ProductVersion",   "1.0.000\0"
      VALUE "SpecialBuild",     "\0"
      VALUE "Support",          "TheEXE at fake-domain.com\0"
      VALUE "Users",            "Unlimited.\0"
    } // BLOCK "040904E4"
  } // BLOCK "StringFileInfo"
  BLOCK "VarFileInfo"
  {
    VALUE "Translation", 0x409, 1252 // 1252 = 0x04E4
  } // BLOCK "VarFileInfo"
}

--- End code ---
As you can see - a file version plugin (windows only) should offer a lot more than you describe. And a lot of it has nothing to do with versioning. So honestly: I think it's better to handle these things in another plugin (for Windows only). Hence this one *might* use the macros of the autoversioning plugin... (IMHO).
With regards, Morten.

JGM:

--- Quote from: MortenMacFly on August 25, 2007, 07:30:45 pm ---I think it's better to handle these things in another plugin (for Windows only). Hence this one *might* use the macros of the autoversioning plugin... (IMHO).
With regards, Morten.

--- End quote ---

Ok I will do the plugin, as I will benefit from it also :) I will also follow your opinion of using the autoversioning plugin when available for the macros.

What name you think it should be for the plugin? I doesn't have any idea :?.

MortenMacFly:

--- Quote from: JGM on August 25, 2007, 07:47:35 pm ---Ok I will do the plugin, as I will benefit from it also :)

--- End quote ---
I honestly didn't mean to push you to that step - but I'm looking forward to it... ;-)


--- Quote from: JGM on August 25, 2007, 07:47:35 pm ---What name you think it should be for the plugin?

--- End quote ---
VersionInfo plugin? ;-)

JGM:

--- Quote from: MortenMacFly on August 25, 2007, 07:59:53 pm ---I honestly didn't mean to push you to that step - but I'm looking forward to it... ;-)

--- End quote ---

Thats okay :)


--- Quote from: MortenMacFly on August 25, 2007, 07:59:53 pm ---VersionInfo plugin? ;-)

--- End quote ---

OK, now I'm going to work on my car to change the oil, filter and sparks. When I finish that and the every day tasks of the home, I will start on it. Is good to improve my programming skills and exercise my mind. :D

THe plugin should be something easy.

raph:
One step further would mean to build some kind of ResourceBuilder plugin.
It would be able to
- customize application executable icon
- add icons, bitmaps, binary files to executable
- add version info
- add menus, string tables, accelerators
thus creating the .rc file automatically.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version