// Copyright (C) 2024-2025 Intel Corporation
//
// Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//

#include <winresrc.h>

#include "umf/base.h"

#define UMF_VERNUMBERS @PROJECT_VERSION_MAJOR@,@PROJECT_VERSION_MINOR@,@PROJECT_VERSION_PATCH@,@UMF_VERSION_REVISION@
#define _UMF_VERSION "@UMF_VERSION@"

#ifdef _DEBUG
#define VERSION_DEBUG VS_FF_DEBUG
#else
#define VERSION_DEBUG 0
#endif

#if @UMF_VERSION_PRERELEASE@
#define VERSION_PRERELEASE VS_FF_PRERELEASE
#else
#define VERSION_PRERELEASE 0
#endif

#if @UMF_VERSION_PRIVATE@
#define VERSION_PRIVATE VS_FF_PRIVATEBUILD
#else
#define VERSION_PRIVATE 0
#endif

#if @UMF_VERSION_BUGFIX@
#define VERSION_PATCHED VS_FF_PATCHED
#else
#define VERSION_PATCHED 0
#endif

VS_VERSION_INFO VERSIONINFO
 FILEVERSION UMF_VERNUMBERS
 PRODUCTVERSION UMF_VERNUMBERS
 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
 FILEFLAGS (VERSION_DEBUG | VERSION_PRIVATE | VERSION_PRERELEASE | VERSION_PATCHED)
 FILEOS VOS__WINDOWS32
 FILETYPE VFT_DLL
 FILESUBTYPE 0
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0" // U.S. English, Unicode (0x04b0 == 1200)
        BEGIN
            VALUE "CompanyName", "Intel Corporation\0"
            VALUE "FileDescription", "Unified Memory Framework (UMF) library\0"
            VALUE "FileVersion", _UMF_VERSION "\0"
            VALUE "LegalCopyright", "Copyright 2024-2025, Intel Corporation. All rights reserved.\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "umf.dll\0"
            VALUE "ProductName", "Unified Memory Framework (UMF)\0"
            VALUE "ProductVersion", _UMF_VERSION "\0"
            VALUE "PrivateBuild", "\0"
            VALUE "SpecialBuild", "\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END
