mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
be89d520d7
The newer UCRT runtime has native support for UTF-8, including forcing it as the active codepage even before `main()` is called. This means the c runtime will properly convert windows WCHAR:s into UTF-8 bytes, as early as the argv/argc params to `main()` . Whereas MSVCRT does not support this reliably and required us to use `wmain()`. Only MSVC supports using manifest files directly as source files. The solution for other Windows toolchains is to use a .rc file.
21 lines
888 B
CMake
21 lines
888 B
CMake
add_library(test_lib INTERFACE)
|
|
if(WIN32)
|
|
target_compile_definitions(test_lib INTERFACE MSWIN)
|
|
endif()
|
|
target_link_libraries(test_lib INTERFACE nvim_bin)
|
|
|
|
add_executable(tty-test EXCLUDE_FROM_ALL tty-test.c)
|
|
add_executable(shell-test EXCLUDE_FROM_ALL shell-test.c)
|
|
# Fake pwsh (powershell) for testing make_filter_cmd(). #16271
|
|
add_executable(pwsh-test EXCLUDE_FROM_ALL shell-test.c)
|
|
add_executable(printargs-test EXCLUDE_FROM_ALL printargs-test.c)
|
|
add_executable(printenv-test EXCLUDE_FROM_ALL printenv-test.c)
|
|
add_executable(streams-test EXCLUDE_FROM_ALL streams-test.c)
|
|
|
|
target_link_libraries(tty-test PRIVATE test_lib)
|
|
target_link_libraries(shell-test PRIVATE test_lib)
|
|
target_link_libraries(pwsh-test PRIVATE test_lib)
|
|
target_link_libraries(printargs-test PRIVATE test_lib)
|
|
target_link_libraries(printenv-test PRIVATE test_lib)
|
|
target_link_libraries(streams-test PRIVATE test_lib)
|