#include <windows.h>

#include "tarstamp.h"
#include "config.h"

#include "../libcob/version.h"
#define VCS_REF 5112

#define STRINGIZE_DETAIL_(v) #v
#define STRINGIZE(v) STRINGIZE_DETAIL_(v)

//
// Version Information resources
//

LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
//LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US

#ifndef DEBUG
#define VER_DEBUG                   0
#else
#define VER_DEBUG                   VS_FF_DEBUG
#endif

VS_VERSION_INFO    VERSIONINFO
  FILEVERSION      __LIBCOB_VERSION,__LIBCOB_VERSION_MINOR,__LIBCOB_VERSION_PATCHLEVEL,PATCH_LEVEL
  PRODUCTVERSION   __LIBCOB_VERSION,__LIBCOB_VERSION_MINOR,__LIBCOB_VERSION_PATCHLEVEL,PATCH_LEVEL

  FILEOS           VOS_NT_WINDOWS32

  FILETYPE         VFT_APP
  FILESUBTYPE      VFT2_UNKNOWN // not used for VTF_APP

  FILEFLAGSMASK    VS_FFI_FILEFLAGSMASK
  FILEFLAGS        (VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE|VER_DEBUG) // VS_FF_PATCHED

{
  BLOCK "StringFileInfo"
  {
    BLOCK "040904E4" // Lang=US English, CharSet=Windows Multilingual
    {
      // VALUE "Comments",         "Free for general use, including commercial (distribution bound to GPL).\0"
      // VALUE "CompanyName",      "No Company\0"
      VALUE "FileDescription",  PACKAGE_NAME " compiler, supporting most COBOL dialects with lots of extensions"
      VALUE "FileVersion",      STRINGIZE(__LIBCOB_VERSION)"."STRINGIZE(__LIBCOB_VERSION_MINOR)"."STRINGIZE(__LIBCOB_VERSION_PATCHLEVEL)"."STRINGIZE(VCS_REF)
      VALUE "InternalName",     "cobc"
      VALUE "LegalCopyright",   "Copyright (C) 2001-2023 Free Software Foundation, Inc."
      VALUE "LegalTrademarks",  "Compiler: GNU General Public License v3 - see COPYING,\x0ADocumentation: GNU Free Documentation License."
      VALUE "OriginalFilename", "cobc.exe"
      VALUE "ProductName",      PACKAGE_NAME " compiler"
      VALUE "ProductVersion",   PACKAGE_VERSION "." STRINGIZE(COB_NUM_TAR_DATE) " - r" STRINGIZE(VCS_REF)
      // Should be set if VS_FF_PRIVATEBUILD is set:
      VALUE "PrivateBuild",     "Built from SVN (branch: gnucobol-3.x)"
      // Should be set if VS_FF_SPECIALBUILD is set (including description what it was build for):
      VALUE "SpecialBuild",     ""

      /* Non-Standard entries */
      VALUE "Build",            "July 2023"
      VALUE "Developer",        "Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart and many others (see AUTHORS and THANKS)"
      VALUE "Support",          "https://www.gnu.org/software/gnucobol/"
      VALUE "Users",            "Unlimited."
    } // BLOCK "040904E4"
  } // BLOCK "StringFileInfo"
  BLOCK "VarFileInfo"
  {
    VALUE "Translation", 0x409, 1252 // 1252 = 0x04E4
  } // BLOCK "VarFileInfo"
}

