/**
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

#include <windows.h>

#define CPP_TOSTR_HELPER(n)         #n
#define CPP_TOSTR(n)                CPP_TOSTR_HELPER(n)

#if defined(_VENDOR_NUM)
# define ZLIB_VERSION_MICRO         _VENDOR_NUM
#else
# define ZLIB_VERSION_MICRO         0
#endif
#if defined(_VENDOR_SFX)
# define ZLIB_VERSION_VENDOR        CPP_TOSTR(_VENDOR_SFX)
#else
# define ZLIB_VERSION_VENDOR        ""
#endif

#define ZLIB_VERSION_CSV            1,3,1, ZLIB_VERSION_MICRO
#define ZLIB_VERSION_STR            "1.3.1" ZLIB_VERSION_VENDOR
#define ZLIB_DLL_LIBNAME            "libzlib-1.dll"

CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST  "llzlib.manifest"

VS_VERSION_INFO VERSIONINFO
  FILEVERSION     ZLIB_VERSION_CSV
  PRODUCTVERSION  ZLIB_VERSION_CSV
  FILEFLAGSMASK   VS_FFI_FILEFLAGSMASK
 FILEFLAGS    0
 FILEOS       VOS_NT_WINDOWS32
 FILETYPE     VFT_DLL
 FILESUBTYPE  VFT2_UNKNOWN
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
    BEGIN
      VALUE "OriginalFilename", ZLIB_DLL_LIBNAME

      VALUE "Comments",         "For more information visit http://www.zlib.net/"
      VALUE "CompanyName",      "Zlib.net project"
      VALUE "FileDescription",  "Zlib data compression and zip file I/O library"
      VALUE "FileVersion",      ZLIB_VERSION_STR
      VALUE "InternalName",     ZLIB_DLL_LIBNAME
      VALUE "LegalCopyright",   "(C) 1995-2022 Jean-loup Gailly & Mark Adler"
      VALUE "LegalTrademarks",  ""
      VALUE "OriginalFilename", ZLIB_DLL_LIBNAME
      VALUE "ProductName",      "zlib"
      VALUE "ProductVersion",   ZLIB_VERSION_STR

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