// Keep this in alphabetical order to ease identification of image indices!
// After a change in this file probably image indices have to be adopted.
// -> Adopt e.g. associations.cpp accordingly (indices start at 0).
A_MAIN_ICON      ICON "src/resources/icons/app.ico"
PROJECT_FILE     ICON "src/resources/icons/cbp.ico"
SOURCE_FILE_ASM  ICON "src/resources/icons/asm.ico"
SOURCE_FILE_C    ICON "src/resources/icons/c.ico"
SOURCE_FILE_CPP  ICON "src/resources/icons/cpp.ico"
SOURCE_FILE_H    ICON "src/resources/icons/h.ico"
SOURCE_FILE_JAVA ICON "src/resources/icons/j.ico"
SOURCE_FILE_X_CG ICON "src/resources/icons/cg.ico"
SOURCE_FILE_X_D  ICON "src/resources/icons/d.ico"
SOURCE_FILE_X_F  ICON "src/resources/icons/f.ico"
SOURCE_FILE_X_RC ICON "src/resources/icons/rc.ico"
WORKSPACE_FILE   ICON "src/resources/icons/csd.ico"
// WXICON_AAA
// WXICON_SMALL_CDROM
// WXICON_SMALL_CLOSED_FOLDER
// WXICON_SMALL_COMPUTER
// WXICON_SMALL_DRIVE
// WXICON_SMALL_FILE
// WXICON_SMALL_FLOPPY
// WXICON_SMALL_OPEN_FOLDER
// WXICON_SMALL_REMOVABLE
X_PRJ_FILE_DEV   ICON "src/resources/icons/dev.ico"
X_PRJ_FILE_DSP   ICON "src/resources/icons/dsp.ico"
X_PRJ_FILE_DSW   ICON "src/resources/icons/dsw.ico"
X_PRJ_FILE_PROJ  ICON "src/resources/icons/proj.ico"

// wxBITMAP_STD_COLOURS    BITMAP "wx/msw/colours.bmp"
// is the only thing needed from:
//#include <wx/msw/wx.rc>
// additional icons contributed due to this include are commented above

#include <windows.h>
#include <wx/msw/rcdefs.h>

///////////////////////////////////////////////////////////////////////////////
// Specify the processor architecture (wxWidgets seems not to do this correctly)
#if defined(_M_AMD64)
  #if  defined(WX_CPU_X86)
    #undef WX_CPU_X86
  #endif
  #if !defined(WX_CPU_AMD64)
    #define WX_CPU_AMD64
  #endif
#elif defined(_M_IA64)
  #if  defined(WX_CPU_X86)
    #undef WX_CPU_X86
  #endif
  #if !defined(WX_CPU_IA64)
    #define WX_CPU_IA64
  #endif
#elif defined(_M_IX86) || defined(_X86_)
  #if !defined(WX_CPU_X86)
    #define WX_CPU_X86
  #endif
#endif

///////////////////////////////////////////////////////////////////////////////
// Version information
VS_VERSION_INFO    VERSIONINFO
  FILEVERSION      20,03,0,0
  PRODUCTVERSION   20,03,0,1
  FILEFLAGSMASK    0x3fL // VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
  // Can be a combination of the following OR'ed flags:
  //   VS_FF_DEBUG,        VS_FF_PATCHED,      VS_FF_PRERELEASE,
  //   VS_FF_PRIVATEBUILD, VS_FF_SPECIALBUILD, VS_FFI_FILEFLAGSMASK
  FILEFLAGS        0x1L  // VS_FF_DEBUG|VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE
#else
  FILEFLAGS        0x0L  // final version
#endif
  // Can be one of the following values:
  //   VOS_UNKNOWN,       VOS_DOS,        VOS_NT,
  //   VOS__WINDOWS16,    VOS__WINDOWS32, VOS_DOS_WINDOWS16,
  //   VOS_DOS_WINDOWS32, VOS_NT_WINDOWS32
  FILEOS           VOS_NT_WINDOWS32
  // Can be one of the following values:
  //   VFT_UNKNOWN, VFT_APP, VFT_DLL, VFT_DRV, VFT_FONT, VFT_VXD, VFT_STATIC_LIB
  FILETYPE         VFT_APP
  // In case of VFT_DRV in FILETYPE:
  //   VFT2_UNKNOWN,         VFT2_DRV_COMM,     VFT2_DRV_PRINTER,
  //   VFT2_DRV_KEYBOARD,    VFT2_DRV_LANGUAGE, VFT2_DRV_DISPLAY,
  //   VFT2_DRV_MOUSE,       VFT2_DRV_NETWORK,  VFT2_DRV_SYSTEM,
  //   VFT2_DRV_INSTALLABLE, VFT2_DRV_SOUND,    VFT2_DRV_VERSIONED_PRINTER
  // In case of VFT_FONT in FILETYPE:
  //   VFT2_UNKNOWN, VFT2_FONT_RASTER, VFT2_FONT_VECTOR, VFT2_FONT_TRUETYPE
  FILESUBTYPE      VFT2_UNKNOWN // not used
{
  BLOCK "StringFileInfo"
  {
    BLOCK "040904E4" // Lang=US English, CharSet=Windows Multilingual
    {
      VALUE "Build",            "March 2020\0"
      VALUE "Comments",         "Cross-platform IDE built around wxWidgets, designed to be extensible and configurable. Licensed under GPL3.\0"
      VALUE "CompanyName",      "Code::Blocks Team\0"
      VALUE "Developer",        "Code::Blocks Team\0"
      VALUE "FileDescription",  "Code::Blocks IDE\0"
      VALUE "FileVersion",      "20.03.0.0\0"
      VALUE "InternalName",     "Code::Blocks\0"
      VALUE "LegalCopyright",   "Copyright (C) 2004-2021 Code::Blocks Team\0"
      VALUE "LegalTrademarks",  "All rights reserved.\0"
      VALUE "OriginalFilename", "codeblocks.exe\0"
      VALUE "PrivateBuild",     "\0"
      VALUE "ProductName",      "Code::Blocks\0"
      VALUE "ProductVersion",   "20.03.0.1\0"
      VALUE "SpecialBuild",     "\0"
      VALUE "Support",          "mandrav at codeblocks.org\0"
      VALUE "Users",            "Unlimited.\0"
    } // BLOCK "040904E4"
  } // BLOCK "StringFileInfo"
  BLOCK "VarFileInfo"
  {
    VALUE "Translation", 0x409, 1252 // 1252 = 0x04E4
  } // BLOCK "VarFileInfo"
}

///////////////////////////////////////////////////////////////////////////////
// Manifest file
#if !defined(wxUSE_NO_MANIFEST) || (wxUSE_NO_MANIFEST == 0)
  // see "about isolated applications" topic in MSDN
  #ifdef ISOLATION_AWARE_ENABLED
    #define wxMANIFEST_ID ISOLATIONAWARE_MANIFEST_RESOURCE_ID
  #else
    #define wxMANIFEST_ID CREATEPROCESS_MANIFEST_RESOURCE_ID
  #endif

  #if defined(WX_CPU_AMD64)
    #if defined(cbDPI_AWARE_ON)
        wxMANIFEST_ID RT_MANIFEST "amd64_dpi_aware_on.manifest"
        #warning Manifest: amd64_dpi_aware_on.manifest
    #else
        wxMANIFEST_ID RT_MANIFEST "amd64.manifest"
        #warning Manifest: amd64.manifest
    #endif
  #elif defined(WX_CPU_IA64)
    wxMANIFEST_ID RT_MANIFEST "ia64.manifest"
    #warning Manifest: ia64.manifest
  #elif defined(WX_CPU_X86)
    wxMANIFEST_ID RT_MANIFEST "x86.manifest"
    #warning Manifest: x86.manifest
  #else
    #error No platform defined! Unable to embed manifest file.
  #endif
#endif // !defined(wxUSE_NO_MANIFEST) || (wxUSE_NO_MANIFEST == 0)
