fix: restore linux mingw client build and gm smoke

This commit is contained in:
Claude
2026-04-17 21:53:59 +02:00
parent 2fe362e0a9
commit dfe0baabce
48 changed files with 432 additions and 103 deletions

View File

@@ -1,13 +1,29 @@
file(GLOB_RECURSE FILE_SOURCES "*.h" "*.c" "*.cpp")
foreach(_source IN LISTS FILE_SOURCES)
if(IS_SYMLINK "${_source}")
list(REMOVE_ITEM FILE_SOURCES "${_source}")
endif()
endforeach()
list(APPEND FILE_SOURCES "${CMAKE_SOURCE_DIR}/src/UserInterface/GUIDKeyCompat.cpp")
add_executable(UserInterface WIN32 ${FILE_SOURCES} ${CMAKE_SOURCE_DIR}/src/UserInterface/UserInterface.rc)
set_target_properties(UserInterface PROPERTIES LINK_FLAGS "/level='requireAdministrator' /uiAccess='false'"
set_target_properties(UserInterface PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME_DEBUG "Metin2_Debug"
OUTPUT_NAME_RELEASE "Metin2_Release"
OUTPUT_NAME_RELWITHDEBINFO "Metin2_RelWithDebInfo"
)
if(MSVC)
set_target_properties(UserInterface PROPERTIES LINK_FLAGS "/level='requireAdministrator' /uiAccess='false'")
endif()
target_include_directories(UserInterface PRIVATE
$<$<COMPILE_LANGUAGE:RC>:${CMAKE_SOURCE_DIR}/src/UserInterface>
)
target_link_libraries(UserInterface
AudioLib
Discord
@@ -25,6 +41,7 @@ target_link_libraries(UserInterface
SpeedTreeLib
SphereLib
PackLib
EterLib
lzo2
libzstd_static
@@ -32,17 +49,23 @@ target_link_libraries(UserInterface
DirectX
Granny
SpeedTree
$<$<CXX_COMPILER_ID:MSVC>:SpeedTree>
Python
WebView
ws2_32
imm32
winmm
strmiids
amstrmid
dmoguids
ddraw
version
Dbghelp
$<$<CXX_COMPILER_ID:MSVC>:Dbghelp>
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:dbghelp>
EterImageLib
AudioLib
PythonModules
EterBase
)
GroupSourcesByFolder(UserInterface)