File tree 4 files changed +33
-1
lines changed 4 files changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ indent_style = space
5
5
indent_size = 2
6
6
tab_width = 8
7
7
end_of_line = lf
8
+ charset = utf-8
8
9
spelling_language = en-US
9
10
10
11
[* .md ]
Original file line number Diff line number Diff line change @@ -28,6 +28,21 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
28
28
29
29
set_property (GLOBAL PROPERTY USE_FOLDERS ON )
30
30
31
+ if (MSVC )
32
+ add_compile_options (/source -charset:UTF-8 /execution-charset:UTF-8)
33
+ else ()
34
+ add_compile_options (-finput-charset=UTF-8)
35
+ # Unfortunately, Clang doesn’t support -fexec-charset yet so this next part
36
+ # is GCC only. Luckily, Clang defaults to using UTF-8 for the execution
37
+ # character set [1], so we’re fine. Once Clang gets support for
38
+ # -fexec-charset, we should probably start using it.
39
+ #
40
+ # [1]: <https://discourse.llvm.org/t/rfc-enabling-fexec-charset-support-to-llvm-and-clang-reposting/71512>
41
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
42
+ add_compile_options (-fexec-charset=UTF-8)
43
+ endif ()
44
+ endif ()
45
+
31
46
if (FORCE_COLORED_OUTPUT)
32
47
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
33
48
set (CMAKE_COLOR_DIAGNOSTICS ON )
Original file line number Diff line number Diff line change @@ -274,6 +274,13 @@ set(CPPS
274
274
if (WIN32 )
275
275
set (PLATFORM_LIBS wsock32.lib winmm.lib)
276
276
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB:LIBC" )
277
+ set (MANIFEST ${CMAKE_CURRENT_BINARY_DIR} /Descent3.exe.manifest)
278
+ configure_file (
279
+ ${CMAKE_CURRENT_SOURCE_DIR} /Descent3.exe.manifest.in
280
+ ${MANIFEST}
281
+ @ONLY
282
+ NEWLINE_STYLE WIN32
283
+ )
277
284
endif ()
278
285
279
286
if (UNIX AND NOT APPLE )
@@ -287,7 +294,7 @@ endif()
287
294
288
295
file (GLOB_RECURSE INCS "../lib/*.h" )
289
296
290
- add_executable (Descent3 WIN32 ${HEADERS} ${CPPS} ${INCS} )
297
+ add_executable (Descent3 WIN32 ${HEADERS} ${CPPS} ${INCS} ${MANIFEST} )
291
298
target_link_libraries (Descent3 PRIVATE
292
299
2dlib AudioEncode bitmap cfile czip d3music dd_video ddebug ddio libmve libacm
293
300
fix grtext manage mem misc model module movie stream_audio linux SDL2::SDL2
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" standalone =" yes" ?>
2
+ <assembly manifestVersion =" 1.0" xmlns =" urn:schemas-microsoft-com:asm.v1" >
3
+ <
assemblyIdentity type =
" win32" name =
" DescentDevelopers.Descent3.engine" version =
" @PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@[email protected] " />
4
+ <application >
5
+ <windowsSettings >
6
+ <activeCodePage xmlns =" http://schemas.microsoft.com/SMI/2019/WindowsSettings" >UTF-8</activeCodePage >
7
+ </windowsSettings >
8
+ </application >
9
+ </assembly >
You can’t perform that action at this time.
0 commit comments