prstrms.rc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "prinit.h"
  6. #include <winver.h>
  7. #define MY_LIBNAME "prstrms"
  8. #define MY_FILEDESCRIPTION "PRSTRMS Library"
  9. #define STRINGIZE(x) #x
  10. #define STRINGIZE2(x) STRINGIZE(x)
  11. #define PR_VMAJOR_STR STRINGIZE2(PR_VMAJOR)
  12. #ifdef _DEBUG
  13. #define MY_DEBUG_STR " (debug)"
  14. #define MY_FILEFLAGS_1 VS_FF_DEBUG
  15. #else
  16. #define MY_DEBUG_STR ""
  17. #define MY_FILEFLAGS_1 0x0L
  18. #endif
  19. #if PR_BETA
  20. #define MY_FILEFLAGS_2 MY_FILEFLAGS_1|VS_FF_PRERELEASE
  21. #else
  22. #define MY_FILEFLAGS_2 MY_FILEFLAGS_1
  23. #endif
  24. #ifdef WINNT
  25. #define MY_FILEOS VOS_NT_WINDOWS32
  26. #define MY_INTERNAL_NAME "lib" MY_LIBNAME PR_VMAJOR_STR
  27. #else
  28. #define MY_FILEOS VOS__WINDOWS32
  29. #define MY_INTERNAL_NAME MY_LIBNAME PR_VMAJOR_STR
  30. #endif
  31. /////////////////////////////////////////////////////////////////////////////
  32. //
  33. // Version-information resource
  34. //
  35. VS_VERSION_INFO VERSIONINFO
  36. FILEVERSION PR_VMAJOR,PR_VMINOR,PR_VPATCH,0
  37. PRODUCTVERSION PR_VMAJOR,PR_VMINOR,PR_VPATCH,0
  38. FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
  39. FILEFLAGS MY_FILEFLAGS_2
  40. FILEOS MY_FILEOS
  41. FILETYPE VFT_DLL
  42. FILESUBTYPE 0x0L // not used
  43. BEGIN
  44. BLOCK "StringFileInfo"
  45. BEGIN
  46. BLOCK "040904B0" // Lang=US English, CharSet=Unicode
  47. BEGIN
  48. VALUE "CompanyName", "Mozilla Foundation\0"
  49. VALUE "FileDescription", MY_FILEDESCRIPTION MY_DEBUG_STR "\0"
  50. VALUE "FileVersion", PR_VERSION "\0"
  51. VALUE "InternalName", MY_INTERNAL_NAME "\0"
  52. VALUE "OriginalFilename", MY_INTERNAL_NAME ".dll\0"
  53. VALUE "ProductName", "Netscape Portable Runtime\0"
  54. VALUE "ProductVersion", PR_VERSION "\0"
  55. END
  56. END
  57. BLOCK "VarFileInfo"
  58. BEGIN
  59. VALUE "Translation", 0x409, 1200
  60. END
  61. END