make it easy to spot pesky debug builds

This commit is contained in:
freedom
2023-09-07 04:09:36 -06:00
parent 1b8ec3b152
commit cbe1fb7551
10 changed files with 18 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ set /P GIT_HASH=<%DIR_RELEASE%\.git_hash
set "GIT_HASH=%GIT_HASH:~0,8%"
if "%1" == "debug" (
set CL=/MT /Od /Zi /RTC1 /Fdprogmgr.pdb /fsanitize=address /DUNICODE /DPROGMGR_DEBUG /DPROGMGR_GIT_HASH="%GIT_HASH%"
set CL=/MT /Od /Zi /RTC1 /Fdprogmgr.pdb /fsanitize=address /DUNICODE /D_DEBUG /DPROGMGR_DEBUG /DPROGMGR_GIT_HASH="%GIT_HASH%"
set LINK=/DEBUG
) else (
set CL=/O1 /GS- /DUNICODE /DNDEBUG /DPROGMGR_RELEASE /DPROGMGR_GIT_HASH="%GIT_HASH%"

BIN
progmgr/icons/progmgrd.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Binary file not shown.

View File

@@ -18,6 +18,11 @@
/* Variables */
// Global
#ifdef _DEBUG
BOOL bIsDebugBuild = TRUE;
#else
BOOL bIsDebugBuild = FALSE;
#endif
BOOL bIsDefaultShell = FALSE;
// Handles
HINSTANCE hAppInstance;
@@ -27,7 +32,7 @@ HWND hWndProgMgr = NULL;
HICON hProgMgrIcon = NULL;
HICON hGroupIcon = NULL;
// Global Strings
WCHAR szAppTitle[32];
WCHAR szAppTitle[64];
WCHAR szProgMgr[] = L"progmgr";
WCHAR szWebsite[64];
WCHAR szClass[16];

View File

@@ -39,7 +39,7 @@ extern HWND hWndProgMgr;
extern HICON hProgMgrIcon;
extern HICON hGroupIcon;
// Strings
extern WCHAR szAppTitle[32];
extern WCHAR szAppTitle[64];
extern WCHAR szProgMgr[];
extern WCHAR szWebsite[64];
extern WCHAR szClass[16];

View File

@@ -104,6 +104,9 @@
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
<ManifestFile>$(IntDir)$(TargetName)$(TargetExt).manifest</ManifestFile>
</Link>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
@@ -138,6 +141,9 @@
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
<ManifestFile>$(IntDir)$(TargetName)$(TargetExt).manifest</ManifestFile>
</Link>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>

Binary file not shown.

View File

@@ -21,7 +21,11 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
/* Icon Library */
// Primary
#ifndef _DEBUG
IDI_PROGMGR ICON icons\progmgr.ico
#else
IDI_PROGMGR ICON icons\progmgrd.ico
#endif
IDI_PROGGRP ICON icons\pmgroup.ico
IDI_PROGITM ICON icons\pmitem.ico
IDI_COMMON ICON icons\common.ico