#include <winver.h>

#pragma code_page(65001)

IDI_ICON1 ICON DISCARDABLE "resources/zeal.ico"

#define VER_COMPANYNAME_STR "${PROJECT_COMPANY_NAME}"
#define VER_FILEDESCRIPTION_STR "${PROJECT_DESCRIPTION}"
#define VER_FILEVERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH}
#define VER_FILEVERSION_STR "${PROJECT_VERSION}"
#define VER_INTERNALNAME_STR "${PROJECT_NAME}"
#define VER_LEGALCOPYRIGHT_STR "${PROJECT_COPYRIGHT}"
#define VER_LEGALTRADEMARKS1_STR ""
#define VER_LEGALTRADEMARKS2_STR ""
#define VER_ORIGINALFILENAME_STR "${PROJECT_OUTPUT_NAME}.exe"
#define VER_PRODUCTNAME_STR "${PROJECT_NAME}"
#define VER_PRODUCTVERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH}
#define VER_PRODUCTVERSION_STR "${PROJECT_VERSION}"

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

VS_VERSION_INFO VERSIONINFO
FILEVERSION    	VER_FILEVERSION
PRODUCTVERSION 	VER_PRODUCTVERSION
FILEFLAGSMASK  	VS_FFI_FILEFLAGSMASK
//TODO: Set file flags.
//FILEFLAGS     (VER_PRIVATEBUILD|VER_PRERELEASE|VER_DEBUG)
FILEFLAGS       0
FILEOS         	VOS__WINDOWS32
FILETYPE       	VFT_DLL
FILESUBTYPE    	VFT2_UNKNOWN
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904B0"
        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 "LegalTrademarks1", VER_LEGALTRADEMARKS1_STR
            VALUE "LegalTrademarks2", VER_LEGALTRADEMARKS2_STR
            VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
            VALUE "ProductName",      VER_PRODUCTNAME_STR
            VALUE "ProductVersion",   VER_PRODUCTVERSION_STR
        END
    END

    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x0409, 1200
    END
END
