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