Initial re-upload of spice2x-24-08-24
This commit is contained in:
29
build/defs.cpp
Normal file
29
build/defs.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "defs.h"
|
||||
|
||||
const char VERSION_STRING[] = {
|
||||
VERSION_MAJOR_INIT,
|
||||
'.',
|
||||
VERSION_MINOR_INIT,
|
||||
'-', 'V', '-',
|
||||
BUILD_YEAR_CH0, BUILD_YEAR_CH1, BUILD_YEAR_CH2, BUILD_YEAR_CH3,
|
||||
'-',
|
||||
BUILD_MONTH_CH0, BUILD_MONTH_CH1,
|
||||
'-',
|
||||
BUILD_DAY_CH0, BUILD_DAY_CH1,
|
||||
'T',
|
||||
BUILD_HOUR_CH0, BUILD_HOUR_CH1,
|
||||
':',
|
||||
BUILD_MIN_CH0, BUILD_MIN_CH1,
|
||||
':',
|
||||
BUILD_SEC_CH0, BUILD_SEC_CH1,
|
||||
'\0'
|
||||
};
|
||||
|
||||
const char VERSION_STRING_CFG[] = {
|
||||
BUILD_YEAR_CH0, BUILD_YEAR_CH1, BUILD_YEAR_CH2, BUILD_YEAR_CH3,
|
||||
'-',
|
||||
BUILD_MONTH_CH0, BUILD_MONTH_CH1,
|
||||
'-',
|
||||
BUILD_DAY_CH0, BUILD_DAY_CH1,
|
||||
'\0'
|
||||
};
|
||||
102
build/defs.h
Normal file
102
build/defs.h
Normal file
@@ -0,0 +1,102 @@
|
||||
#pragma once
|
||||
|
||||
#include "version_num.h"
|
||||
|
||||
// Example of __DATE__ string: "Jul 27 2012"
|
||||
// 01234567890
|
||||
|
||||
#define BUILD_YEAR_CH0 (__DATE__[ 7])
|
||||
#define BUILD_YEAR_CH1 (__DATE__[ 8])
|
||||
#define BUILD_YEAR_CH2 (__DATE__[ 9])
|
||||
#define BUILD_YEAR_CH3 (__DATE__[10])
|
||||
|
||||
#define BUILD_MONTH_IS_JAN (__DATE__[0] == 'J' && __DATE__[1] == 'a' && __DATE__[2] == 'n')
|
||||
#define BUILD_MONTH_IS_FEB (__DATE__[0] == 'F')
|
||||
#define BUILD_MONTH_IS_MAR (__DATE__[0] == 'M' && __DATE__[1] == 'a' && __DATE__[2] == 'r')
|
||||
#define BUILD_MONTH_IS_APR (__DATE__[0] == 'A' && __DATE__[1] == 'p')
|
||||
#define BUILD_MONTH_IS_MAY (__DATE__[0] == 'M' && __DATE__[1] == 'a' && __DATE__[2] == 'y')
|
||||
#define BUILD_MONTH_IS_JUN (__DATE__[0] == 'J' && __DATE__[1] == 'u' && __DATE__[2] == 'n')
|
||||
#define BUILD_MONTH_IS_JUL (__DATE__[0] == 'J' && __DATE__[1] == 'u' && __DATE__[2] == 'l')
|
||||
#define BUILD_MONTH_IS_AUG (__DATE__[0] == 'A' && __DATE__[1] == 'u')
|
||||
#define BUILD_MONTH_IS_SEP (__DATE__[0] == 'S')
|
||||
#define BUILD_MONTH_IS_OCT (__DATE__[0] == 'O')
|
||||
#define BUILD_MONTH_IS_NOV (__DATE__[0] == 'N')
|
||||
#define BUILD_MONTH_IS_DEC (__DATE__[0] == 'D')
|
||||
|
||||
#define BUILD_MONTH_CH0 \
|
||||
((BUILD_MONTH_IS_OCT || BUILD_MONTH_IS_NOV || BUILD_MONTH_IS_DEC) ? '1' : '0')
|
||||
|
||||
#define BUILD_MONTH_CH1 \
|
||||
( \
|
||||
(BUILD_MONTH_IS_JAN) ? '1' : \
|
||||
(BUILD_MONTH_IS_FEB) ? '2' : \
|
||||
(BUILD_MONTH_IS_MAR) ? '3' : \
|
||||
(BUILD_MONTH_IS_APR) ? '4' : \
|
||||
(BUILD_MONTH_IS_MAY) ? '5' : \
|
||||
(BUILD_MONTH_IS_JUN) ? '6' : \
|
||||
(BUILD_MONTH_IS_JUL) ? '7' : \
|
||||
(BUILD_MONTH_IS_AUG) ? '8' : \
|
||||
(BUILD_MONTH_IS_SEP) ? '9' : \
|
||||
(BUILD_MONTH_IS_OCT) ? '0' : \
|
||||
(BUILD_MONTH_IS_NOV) ? '1' : \
|
||||
(BUILD_MONTH_IS_DEC) ? '2' : \
|
||||
/* error default */ '?' \
|
||||
)
|
||||
|
||||
#define BUILD_DAY_CH0 ((__DATE__[4] >= '0') ? (__DATE__[4]) : '0')
|
||||
#define BUILD_DAY_CH1 (__DATE__[ 5])
|
||||
|
||||
// Example of __TIME__ string: "21:06:19"
|
||||
// 01234567
|
||||
|
||||
#define BUILD_HOUR_CH0 (__TIME__[0])
|
||||
#define BUILD_HOUR_CH1 (__TIME__[1])
|
||||
|
||||
#define BUILD_MIN_CH0 (__TIME__[3])
|
||||
#define BUILD_MIN_CH1 (__TIME__[4])
|
||||
|
||||
#define BUILD_SEC_CH0 (__TIME__[6])
|
||||
#define BUILD_SEC_CH1 (__TIME__[7])
|
||||
|
||||
#if VERSION_MAJOR > 100
|
||||
|
||||
#define VERSION_MAJOR_INIT \
|
||||
((VERSION_MAJOR / 100) + '0'), \
|
||||
(((VERSION_MAJOR % 100) / 10) + '0'), \
|
||||
((VERSION_MAJOR % 10) + '0')
|
||||
|
||||
#elif VERSION_MAJOR > 10
|
||||
|
||||
#define VERSION_MAJOR_INIT \
|
||||
((VERSION_MAJOR / 10) + '0'), \
|
||||
((VERSION_MAJOR % 10) + '0')
|
||||
|
||||
#else
|
||||
|
||||
#define VERSION_MAJOR_INIT \
|
||||
(VERSION_MAJOR + '0')
|
||||
|
||||
#endif
|
||||
|
||||
#if VERSION_MINOR > 100
|
||||
|
||||
#define VERSION_MINOR_INIT \
|
||||
((VERSION_MINOR / 100) + '0'), \
|
||||
(((VERSION_MINOR % 100) / 10) + '0'), \
|
||||
((VERSION_MINOR % 10) + '0')
|
||||
|
||||
#elif VERSION_MINOR > 10
|
||||
|
||||
#define VERSION_MINOR_INIT \
|
||||
((VERSION_MINOR / 10) + '0'), \
|
||||
((VERSION_MINOR % 10) + '0')
|
||||
|
||||
#else
|
||||
|
||||
#define VERSION_MINOR_INIT \
|
||||
(VERSION_MINOR + '0')
|
||||
|
||||
#endif
|
||||
|
||||
extern const char VERSION_STRING[];
|
||||
extern const char VERSION_STRING_CFG[];
|
||||
3
build/icon.h
Normal file
3
build/icon.h
Normal file
@@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#define MAINICON 20
|
||||
BIN
build/icon.ico
Normal file
BIN
build/icon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 139 KiB |
3
build/icon.rc
Normal file
3
build/icon.rc
Normal file
@@ -0,0 +1,3 @@
|
||||
#include "icon.h"
|
||||
|
||||
MAINICON ICON "icon.ico"
|
||||
4
build/manifest.h
Normal file
4
build/manifest.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#define CREATEPROCESS_MANIFEST_RESOURCE_ID 1
|
||||
#define RT_MANIFEST 24
|
||||
30
build/manifest.manifest
Normal file
30
build/manifest.manifest
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
|
||||
<assemblyIdentity version="1.0.0.0" processorArchitecture="*" name="spice.exe" type="win32"/>
|
||||
<description>SpiceTools</description>
|
||||
<asmv3:application>
|
||||
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
|
||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
|
||||
<dpiAware>true</dpiAware>
|
||||
</asmv3:windowsSettings>
|
||||
</asmv3:application>
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
processorArchitecture="*"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*"
|
||||
/>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
||||
30
build/manifest.rc
Normal file
30
build/manifest.rc
Normal file
@@ -0,0 +1,30 @@
|
||||
#include "manifest.h"
|
||||
#include "winuser.h"
|
||||
|
||||
#ifdef __GNUC__
|
||||
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "manifest.manifest"
|
||||
#endif
|
||||
|
||||
1 VERSIONINFO
|
||||
FILEVERSION 1,0,0,0
|
||||
PRODUCTVERSION 1,0,0,0
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "080904E4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", ""
|
||||
VALUE "FileDescription", "SpiceTools"
|
||||
VALUE "FileVersion", "1.0.0.0"
|
||||
VALUE "InternalName", "spice32"
|
||||
VALUE "LegalCopyright", ""
|
||||
VALUE "OriginalFilename", "spice32.exe"
|
||||
VALUE "ProductName", "SpiceTools"
|
||||
VALUE "ProductVersion", "1.0.0.0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x809, 1252
|
||||
END
|
||||
END
|
||||
30
build/manifest64.rc
Normal file
30
build/manifest64.rc
Normal file
@@ -0,0 +1,30 @@
|
||||
#include "manifest.h"
|
||||
#include "winuser.h"
|
||||
|
||||
#ifdef __GNUC__
|
||||
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "manifest.manifest"
|
||||
#endif
|
||||
|
||||
1 VERSIONINFO
|
||||
FILEVERSION 1,0,0,0
|
||||
PRODUCTVERSION 1,0,0,0
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "080904E4"
|
||||
BEGIN
|
||||
VALUE "CompanyName", ""
|
||||
VALUE "FileDescription", "SpiceTools"
|
||||
VALUE "FileVersion", "1.0.0.0"
|
||||
VALUE "InternalName", "spice64"
|
||||
VALUE "LegalCopyright", ""
|
||||
VALUE "OriginalFilename", "spice64.exe"
|
||||
VALUE "ProductName", "SpiceTools"
|
||||
VALUE "ProductVersion", "1.0.0.0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x809, 1252
|
||||
END
|
||||
END
|
||||
1
build/patches.json
Normal file
1
build/patches.json
Normal file
File diff suppressed because one or more lines are too long
9
build/resource.h
Normal file
9
build/resource.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#define IDC_STATIC -1
|
||||
#define IDD_DIALOG1 129
|
||||
#define IDR_CHANGELOG 130
|
||||
#define IDR_LICENSES 131
|
||||
#define IDR_PATCHES 132
|
||||
#define IDR_README 133
|
||||
#define IDR_DSEGFONT 134
|
||||
4
build/version_num.h
Normal file
4
build/version_num.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#pragma once
|
||||
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 0
|
||||
Reference in New Issue
Block a user