curl.rc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /***************************************************************************
  2. * _ _ ____ _
  3. * Project ___| | | | _ \| |
  4. * / __| | | | |_) | |
  5. * | (__| |_| | _ <| |___
  6. * \___|\___/|_| \_\_____|
  7. *
  8. * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  9. *
  10. * This software is licensed as described in the file COPYING, which
  11. * you should have received as part of this distribution. The terms
  12. * are also available at https://curl.se/docs/copyright.html.
  13. *
  14. * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. * copies of the Software, and permit persons to whom the Software is
  16. * furnished to do so, under the terms of the COPYING file.
  17. *
  18. * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. * KIND, either express or implied.
  20. *
  21. * SPDX-License-Identifier: curl
  22. *
  23. ***************************************************************************/
  24. #include <winver.h>
  25. #include "tool_version.h"
  26. LANGUAGE 0, 0
  27. #define RC_VERSION CURL_VERSION_MAJOR, CURL_VERSION_MINOR, CURL_VERSION_PATCH, 0
  28. VS_VERSION_INFO VERSIONINFO
  29. FILEVERSION RC_VERSION
  30. PRODUCTVERSION RC_VERSION
  31. FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
  32. #if defined(DEBUGBUILD) || defined(_DEBUG)
  33. FILEFLAGS VS_FF_DEBUG
  34. #else
  35. FILEFLAGS 0L
  36. #endif
  37. FILEOS VOS__WINDOWS32
  38. FILETYPE VFT_APP
  39. FILESUBTYPE 0L
  40. BEGIN
  41. BLOCK "StringFileInfo"
  42. BEGIN
  43. BLOCK "040904b0"
  44. BEGIN
  45. VALUE "CompanyName", "curl, https://curl.se/\0"
  46. VALUE "FileDescription", "The curl executable\0"
  47. VALUE "FileVersion", CURL_VERSION "\0"
  48. VALUE "InternalName", "curl\0"
  49. VALUE "OriginalFilename", "curl.exe\0"
  50. VALUE "ProductName", "The curl executable\0"
  51. VALUE "ProductVersion", CURL_VERSION "\0"
  52. VALUE "LegalCopyright", "Copyright (C) " CURL_COPYRIGHT "\0"
  53. VALUE "License", "https://curl.se/docs/copyright.html\0"
  54. END
  55. END
  56. BLOCK "VarFileInfo"
  57. BEGIN
  58. VALUE "Translation", 0x409, 1200
  59. END
  60. END
  61. /* Manifest */
  62. #if defined(CURL_EMBED_MANIFEST)
  63. /* String escaping rules:
  64. https://msdn.microsoft.com/library/aa381050
  65. Application Manifest doc, including the list of 'supportedOS Id's:
  66. https://msdn.microsoft.com/library/aa374191 */
  67. #ifndef CREATEPROCESS_MANIFEST_RESOURCE_ID
  68. #define CREATEPROCESS_MANIFEST_RESOURCE_ID 1
  69. #endif
  70. #ifndef RT_MANIFEST
  71. #define RT_MANIFEST 24
  72. #endif
  73. #define _STR(macro) _STR_(macro)
  74. #define _STR_(macro) #macro
  75. CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST
  76. BEGIN
  77. "<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?>"
  78. "<assembly xmlns=""urn:schemas-microsoft-com:asm.v1"" manifestVersion=""1.0"">"
  79. "<assemblyIdentity name=""The curl executable"" version="""
  80. _STR(LIBCURL_VERSION_MAJOR) "."
  81. _STR(LIBCURL_VERSION_MINOR) "."
  82. _STR(LIBCURL_VERSION_PATCH) ".0"" type=""win32""/>"
  83. "<compatibility xmlns=""urn:schemas-microsoft-com:compatibility.v1"">"
  84. "<application>"
  85. "<supportedOS Id=""{e2011457-1546-43c5-a5fe-008deee3d3f0}""/>" /* Vista / Server 2008 */
  86. "<supportedOS Id=""{35138b9a-5d96-4fbd-8e2d-a2440225f93a}""/>" /* 7 / Server 2008 R2 */
  87. "<supportedOS Id=""{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}""/>" /* 8 / Server 2012 */
  88. "<supportedOS Id=""{1f676c76-80e1-4239-95bb-83d0f6d0da78}""/>" /* 8.1 / Server 2012 R2 */
  89. "<supportedOS Id=""{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}""/>" /* 10 / Server 2016 */
  90. "</application>"
  91. "</compatibility>"
  92. "<trustInfo xmlns=""urn:schemas-microsoft-com:asm.v3"">"
  93. "<security>"
  94. "<requestedPrivileges>"
  95. "<requestedExecutionLevel level=""asInvoker"" uiAccess=""false""/>"
  96. "</requestedPrivileges>"
  97. "</security>"
  98. "</trustInfo>"
  99. "</assembly>"
  100. END
  101. #endif