-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better: generate tktest.res from a separate tktest.rc
- Loading branch information
jan.nijtmans
committed
Jan 3, 2024
1 parent
b842461
commit 854ac6e
Showing
2 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
// | ||
// Version Resource Script | ||
// | ||
|
||
#include <windows.h> | ||
#include <tk.h> | ||
|
||
// | ||
// build-up the name suffix that defines the type of build this is. | ||
// | ||
#if TCL_THREADS | ||
#define SUFFIX_THREADS "t" | ||
#else | ||
#define SUFFIX_THREADS "" | ||
#endif | ||
|
||
#if STATIC_BUILD | ||
#define SUFFIX_STATIC "s" | ||
#else | ||
#define SUFFIX_STATIC "" | ||
#endif | ||
|
||
#if DEBUG && !UNCHECKED | ||
#define SUFFIX_DEBUG "g" | ||
#else | ||
#define SUFFIX_DEBUG "" | ||
#endif | ||
|
||
#define SUFFIX SUFFIX_THREADS SUFFIX_STATIC SUFFIX_DEBUG | ||
|
||
|
||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION TK_MAJOR_VERSION,TK_MINOR_VERSION,TK_RELEASE_LEVEL,TK_RELEASE_SERIAL | ||
PRODUCTVERSION TK_MAJOR_VERSION,TK_MINOR_VERSION,TK_RELEASE_LEVEL,TK_RELEASE_SERIAL | ||
FILEFLAGSMASK 0x3fL | ||
#ifdef DEBUG | ||
FILEFLAGS VS_FF_DEBUG | ||
#else | ||
FILEFLAGS 0x0L | ||
#endif | ||
FILEOS VOS__WINDOWS32 | ||
FILETYPE VFT_APP | ||
FILESUBTYPE 0x0L | ||
BEGIN | ||
BLOCK "StringFileInfo" | ||
BEGIN | ||
BLOCK "040904b0" | ||
BEGIN | ||
VALUE "FileDescription", "Tktest Application\0" | ||
VALUE "OriginalFilename", "tktest.exe\0" | ||
VALUE "FileVersion", TK_PATCH_LEVEL | ||
VALUE "LegalCopyright", "Copyright \251 1987-2022 Regents of the University of California and other parties\0" | ||
VALUE "ProductName", "Tk " TK_VERSION " for Windows\0" | ||
VALUE "ProductVersion", TK_PATCH_LEVEL | ||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
BEGIN | ||
VALUE "Translation", 0x409, 1200 | ||
END | ||
END | ||
|
||
// | ||
// Icon | ||
// | ||
// The icon whose name or resource ID is lexigraphically first, is used | ||
// as the application's icon. | ||
// | ||
|
||
app ICON DISCARDABLE "wish.ico" | ||
|
||
#if STATIC_BUILD | ||
#include "tk_base.rc" | ||
#endif | ||
|
||
// | ||
// This enables themed scrollbars in XP by trying to use comctl32 v6. | ||
// | ||
|
||
#ifndef RT_MANIFEST | ||
#define RT_MANIFEST 24 | ||
#endif | ||
#ifndef CREATEPROCESS_MANIFEST_RESOURCE_ID | ||
#define CREATEPROCESS_MANIFEST_RESOURCE_ID 1 | ||
#endif | ||
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "tktest.exe.manifest" |