mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-09 23:06:47 +03:00
fix(app): resource compilation on MinGW
This commit is contained in:
parent
c9829ca5e1
commit
0fb3dea2ee
@ -3,11 +3,9 @@ if (WHOA_SYSTEM_WIN)
|
||||
|
||||
add_executable(Whoa WIN32 ${PRIVATE_SOURCES})
|
||||
|
||||
# Set debug icon and description if in debug mode
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
target_compile_definitions(Whoa
|
||||
PRIVATE
|
||||
-DWHOA_APP_DEBUG
|
||||
)
|
||||
set(CMAKE_RC_FLAGS ${CMAKE_RC_FLAGS} -DWHOA_APP_DEBUG)
|
||||
endif ()
|
||||
|
||||
target_link_libraries(Whoa
|
||||
|
@ -1,5 +1,9 @@
|
||||
#pragma code_page(65001) // UTF-8
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define WHOA_APP_DEBUG
|
||||
#endif
|
||||
|
||||
#ifdef WHOA_APP_DEBUG
|
||||
BlizzardIcon.ico ICON DISCARDABLE "debug/Whoa.ico"
|
||||
#else
|
||||
@ -20,7 +24,7 @@ BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "000004B0"
|
||||
BEGIN
|
||||
#ifdef _DEBUG
|
||||
#ifdef WHOA_APP_DEBUG
|
||||
VALUE "FileDescription", L"Whoa (Debug)"
|
||||
#else
|
||||
VALUE "FileDescription", L"Whoa (Release)"
|
||||
@ -28,7 +32,7 @@ VALUE "FileDescription", L"Whoa (Release)"
|
||||
VALUE "CompanyName", L"Blizzard Entertainment"
|
||||
VALUE "FileVersion", L"3.3.5.12340"
|
||||
VALUE "InternalName", L"World of Warcraft"
|
||||
VALUE "LegalCopyright", L"Copyright © 2004"
|
||||
VALUE "LegalCopyright", L"Copyright \xA9 2004"
|
||||
VALUE "LegalTrademarks", L""
|
||||
VALUE "OriginalFilename", L"Whoa.exe"
|
||||
VALUE "ProductName", L"World of Warcraft"
|
||||
|
Loading…
Reference in New Issue
Block a user