#include <winver.h>
#include "git-version.h"

#define _QUOTE(x) #x
#define QUOTE(x) _QUOTE(x)
#define CONCAT(x,y) x ## y

#define VER_COMPANYNAME_STR         "Team Free-astro"

#define VER_PRODUCTVERSION          @SIRIL_MAJOR_VERSION@,@SIRIL_MINOR_VERSION@,@SIRIL_MICRO_VERSION@,0
#define VER_PRODUCTVERSION_STR      "@SIRIL_MAJOR_VERSION@.@SIRIL_MINOR_VERSION@.@SIRIL_MICRO_VERSION@\0"
#define VER_PRODUCTNAME_STR         @PACKAGE_NAME@

#define VER_FILEVERSION             @SIRIL_MAJOR_VERSION@,@SIRIL_MINOR_VERSION@,@SIRIL_MICRO_VERSION@,0
#define VER_FILEVERSION_STR         "@SIRIL_MAJOR_VERSION@.@SIRIL_MINOR_VERSION@.@SIRIL_MICRO_VERSION@.0\0"

#define VER_FILEDESCRIPTION_STR     @PACKAGE_NAME@
#define VER_INTERNALNAME_STR        QUOTE(INTERNALNAME_STR)
#define VER_ORIGINALFILENAME_STR    QUOTE(ORIGINALFILENAME_STR)

#define VER_LEGALCOPYRIGHT_STR      "Copyright © 2012-" SIRIL_GIT_LAST_COMMIT_YEAR

1 ICON QUOTE(TOP_SRCDIR) "/platform-specific/windows/siril.ico" 
2 ICON QUOTE(TOP_SRCDIR) "/platform-specific/windows/text-x-seq.ico"

1 VERSIONINFO
FILEVERSION     VER_FILEVERSION
PRODUCTVERSION  VER_PRODUCTVERSION
BEGIN
  BLOCK "StringFileInfo"
  BEGIN
    BLOCK "040904E4"
    BEGIN
      VALUE "CompanyName", VER_COMPANYNAME_STR
      VALUE "FileDescription", VER_FILEDESCRIPTION_STR
      VALUE "FileVersion", VER_FILEVERSION_STR
      VALUE "InternalName", VER_INTERNALNAME_STR
      VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
      VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
      VALUE "ProductName", VER_PRODUCTNAME_STR
      VALUE "ProductVersion", VER_PRODUCTVERSION_STR
    END
  END

  BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x409, 1252
  END
END
