1 | /* $Id: TemplateExe.rc 93115 2022-01-01 11:31:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * Resource file template for an executable.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2015-2022 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | *
|
---|
17 | * The contents of this file may alternatively be used under the terms
|
---|
18 | * of the Common Development and Distribution License Version 1.0
|
---|
19 | * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | * VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | * CDDL are applicable instead of those of the GPL.
|
---|
22 | *
|
---|
23 | * You may elect to license modified versions of this file under the
|
---|
24 | * terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | */
|
---|
26 |
|
---|
27 |
|
---|
28 | /*******************************************************************************
|
---|
29 | * Defined Constants And Macros *
|
---|
30 | *******************************************************************************/
|
---|
31 | /* Validate input and deal with optional input. */
|
---|
32 | /** @def IN_FILE_DESCRIPTION
|
---|
33 | * The file description string.
|
---|
34 | */
|
---|
35 | #ifndef IN_FILE_DESCRIPTION
|
---|
36 | # error "Must define the IN_FILE_DESCRIPTION string!"
|
---|
37 | #endif
|
---|
38 | /** @def IN_INTERNAL_NAME
|
---|
39 | * The internal name string, optional (requires IN_FILE_BASENAME then).
|
---|
40 | */
|
---|
41 | #ifndef IN_INTERNAL_NAME
|
---|
42 | # ifndef IN_FILE_BASENAME
|
---|
43 | # error "Must define the IN_FILE_BASENAME or the IN_INTERNAL_NAME string!"
|
---|
44 | # endif
|
---|
45 | # define IN_INTERNAL_NAME IN_FILE_BASENAME
|
---|
46 | #endif
|
---|
47 | /** @def IN_ORIGINAL_NAME
|
---|
48 | * The original name string, optional (requires IN_FILE_BASENAME then).
|
---|
49 | */
|
---|
50 | #ifndef IN_ORIGINAL_NAME
|
---|
51 | # ifndef IN_FILE_BASENAME
|
---|
52 | # error "Must define the IN_FILE_BASENAME or the IN_ORIGINAL_NAME string!"
|
---|
53 | # endif
|
---|
54 | # define IN_ORIGINAL_NAME IN_FILE_BASENAME " .dll"
|
---|
55 | #endif
|
---|
56 | /** @def IN_PRODUCT_NAME
|
---|
57 | * The product name string, optional.
|
---|
58 | */
|
---|
59 | #ifndef IN_PRODUCT_NAME
|
---|
60 | # ifdef IN_GUEST
|
---|
61 | # define IN_PRODUCT_NAME VBOX_RC_PRODUCT_NAME_GA
|
---|
62 | # elif defined(VBOX_IN_PUEL_EXTPACK)
|
---|
63 | # define IN_PRODUCT_NAME VBOX_RC_PRODUCT_NAME_PUEL_EXTPACK
|
---|
64 | # elif defined(VBOX_IN_DTRACE_EXTPACK)
|
---|
65 | # define IN_PRODUCT_NAME VBOX_RC_PRODUCT_NAME_DTRACE_EXTPACK
|
---|
66 | # else
|
---|
67 | # define IN_PRODUCT_NAME VBOX_RC_PRODUCT_NAME
|
---|
68 | # endif
|
---|
69 | #endif
|
---|
70 |
|
---|
71 |
|
---|
72 | /*******************************************************************************
|
---|
73 | * Header Files *
|
---|
74 | *******************************************************************************/
|
---|
75 | #include <Windows.h>
|
---|
76 | #include <VBox/version.h>
|
---|
77 |
|
---|
78 |
|
---|
79 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
---|
80 |
|
---|
81 | #ifdef IN_ICON_FILE
|
---|
82 | IDI_ICON1 ICON IN_ICON_FILE
|
---|
83 | #endif
|
---|
84 |
|
---|
85 | VS_VERSION_INFO VERSIONINFO
|
---|
86 | FILEVERSION VBOX_RC_FILE_VERSION
|
---|
87 | PRODUCTVERSION VBOX_RC_FILE_VERSION
|
---|
88 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
---|
89 | FILEFLAGS VBOX_RC_FILE_FLAGS
|
---|
90 | FILEOS VBOX_RC_FILE_OS
|
---|
91 | FILETYPE VBOX_RC_TYPE_APP
|
---|
92 | FILESUBTYPE VFT2_UNKNOWN
|
---|
93 | BEGIN
|
---|
94 | BLOCK "StringFileInfo"
|
---|
95 | BEGIN
|
---|
96 | BLOCK "040904b0" /* Lang=US English, CodePage=utf-16 */
|
---|
97 | BEGIN
|
---|
98 | VALUE "FileDescription", IN_FILE_DESCRIPTION "\0"
|
---|
99 | VALUE "InternalName", IN_INTERNAL_NAME "\0"
|
---|
100 | VALUE "OriginalFilename", IN_ORIGINAL_NAME "\0"
|
---|
101 | VALUE "CompanyName", VBOX_RC_COMPANY_NAME "\0"
|
---|
102 | VALUE "FileVersion", VBOX_RC_FILE_VERSION_STR
|
---|
103 | VALUE "LegalCopyright", VBOX_RC_LEGAL_COPYRIGHT
|
---|
104 | VALUE "ProductName", IN_PRODUCT_NAME
|
---|
105 | VALUE "ProductVersion", VBOX_RC_PRODUCT_VERSION_STR
|
---|
106 | VBOX_RC_MORE_STRINGS
|
---|
107 | END
|
---|
108 | END
|
---|
109 | BLOCK "VarFileInfo"
|
---|
110 | BEGIN
|
---|
111 | VALUE "Translation", 0x409, 1200 /* Lang=US English, CodePage=utf-16 */
|
---|
112 | END
|
---|
113 | END
|
---|
114 |
|
---|