xp-sp3: change grammer to support Qt5.6.3 for xp with sp3 system.

This commit is contained in:
2025-06-25 10:54:04 +08:00
parent 1f9275ed72
commit 60f5cb62b1
26 changed files with 250 additions and 246 deletions

View File

@@ -1,11 +1,11 @@
cmake_minimum_required(VERSION 3.16)
project(frelay VERSION 0.1.3 LANGUAGES CXX)
project(frelay VERSION 0.1.4 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(PROJECT_URL "https://github.com/taynpg/frelay")
set(QT_DEFAULT_MAJOR_VERSION 6)
set(QT_DEFAULT_MAJOR_VERSION 5)
set(QAPPLICATION_CLASS QApplication)
if (MSVC)
@@ -19,15 +19,11 @@ add_definitions(-DCOMPILER_USE_MINGW)
endif()
if(WIN32)
execute_process(COMMAND cmd /c ver
OUTPUT_VARIABLE VER_OUTPUT
OUTPUT_STRIP_TRAILING_WHITESPACE)
if(VER_OUTPUT MATCHES "XP")
message(STATUS "Windows XP platform.")
add_definitions(-D_WIN32_WINNT=0x0501)
if(DEFINED XP_PLATFORM_SUPPORT)
message(STATUS "For Windows XP platform.")
add_definitions(-D_WIN32_WINNT=0x0501)
else()
message(STATUS "Windows NT platform.")
add_definitions(-D_WIN32_WINNT=0x0601)
add_definitions(-D_WIN32_WINNT=0x0601)
endif()
endif()
@@ -39,7 +35,11 @@ include_directories(${PROJECT_BINARY_DIR})
add_definitions(-DFMT_HEADER_ONLY)
include_directories(3rd)
add_subdirectory(3rd/SingleApplication-3.5.2)
if(NOT DEFINED COMPILER_USE_MINGW)
add_subdirectory(crashelper)
endif()
add_subdirectory(Protocol)
add_subdirectory(Server)
add_subdirectory(ClientCore)