mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
MinGW: Support utf-16 encoded love.rc
This commit is contained in:
@@ -1777,6 +1777,12 @@ if(MSVC OR MINGW)
|
||||
extra/windows/love.rc
|
||||
extra/windows/love.ico
|
||||
)
|
||||
|
||||
if(MINGW)
|
||||
# UTF-16 flags passed to windres. windres invokes gcc as preprocessor
|
||||
# -> gcc outputs utf8, so windres must read-in codepage 65001 (utf8)
|
||||
set(CMAKE_RC_FLAGS ${CMAKE_RC_FLAGS} "-c 65001 --preprocessor-arg=-finput-charset=UTF-16LE")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_library(${LOVE_LIB_NAME} SHARED ${LOVE_LIB_SRC} ${LOVE_RC})
|
||||
|
||||
Reference in New Issue
Block a user