Compare commits

...
Author SHA1 Message Date
Vasilii Rogin a4722bc083 Bump cache version 2025-06-03 19:03:50 +03:00
Vasilii Rogin 8bf90077a9 Add check for v141_xp toolset 2025-06-03 18:57:32 +03:00
Vasilii Rogin 779eb87f53 Use toolset as option 2025-06-03 18:49:48 +03:00
Vasilii Rogin 3d10e54852 Fix generator for linux-base 2025-06-03 18:47:14 +03:00
github-actions[bot] 65ed0fcde2 chore: auto-format with clang-format 2025-06-03 15:42:08 +00:00
Vasilii Rogin f08c427a52 Add check for win32 and xp support 2025-06-03 18:41:27 +03:00
Vasilii Rogin 7ff64df022 Disable libcpmt 2025-06-03 18:07:51 +03:00
4 changed files with 23 additions and 6 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ jobs:
uses: actions/cache@v4
with:
path: out
key: windows-${{ matrix.arch }}-cmake-v3
key: windows-${{ matrix.arch }}-cmake-v4
- name: Configure
shell: cmd
+5 -1
View File
@@ -314,7 +314,7 @@ endif()
if(WIN32)
target_link_libraries(${EXECUTABLE_NAME}
winmm
libcpmt
# libcpmt # Disabled, was causing issues on VS2019 builing from UI
)
endif()
@@ -325,6 +325,10 @@ if(WIN32)
)
endif()
if (MSVC AND CMAKE_GENERATOR_TOOLSET STREQUAL "v141_xp")
add_definitions(-DTOOLSET_V141_XP)
endif()
if(APPLE)
if(IOS)
set(RESOURCES
+4 -4
View File
@@ -30,8 +30,8 @@
],
"generator": "Visual Studio 16 2019",
"architecture": "Win32",
"toolset": "v141_xp",
"cacheVariables": {
"CMAKE_GENERATOR_TOOLSET": "v141_xp",
"CMAKE_C_FLAGS": "/D_WIN32_WINNT=0x0501",
"CMAKE_CXX_FLAGS": "/D_WIN32_WINNT=0x0501 /D_STATIC_CPPLIB",
"CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>"
@@ -61,7 +61,8 @@
},
"cacheVariables": {
"FALLOUT_VENDORED": "OFF"
}
},
"generator": "Unix Makefiles"
},
{
"name": "linux-x86-base",
@@ -74,8 +75,7 @@
"CMAKE_CXX_FLAGS": "-m32",
"CMAKE_SYSTEM_NAME": "Linux",
"CMAKE_SYSTEM_PROCESSOR": "i386"
},
"generator": "Unix Makefiles"
}
},
{
"name": "linux-x86-debug",
+13
View File
@@ -16,6 +16,19 @@
#include "platform/ios/paths.h"
#endif
#if defined(_WIN32) && !defined(_WIN64)
#ifndef _WIN32_WINNT
#error "_WIN32_WINNT is not defined. It must be set to 0x0501 for Windows XP compatibility."
#elif _WIN32_WINNT != 0x0501
#error "_WIN32_WINNT must be exactly 0x0501 for Windows XP compatibility in 32-bit builds."
#endif
#ifndef TOOLSET_V141_XP
#error "TOOLSET_V141_XP is not used."
#endif
#endif
namespace fallout {
// 0x51E444