Compare commits

...
3 changed files with 24 additions and 4 deletions
+8 -2
View File
@@ -24,8 +24,10 @@ option(FALLOUT_VENDORED "Use vendored third-party libraries" ON)
if(ANDROID)
add_library(${EXECUTABLE_NAME} SHARED)
elseif(APPLE)
add_executable(${EXECUTABLE_NAME} MACOSX_BUNDLE)
else()
add_executable(${EXECUTABLE_NAME} WIN32 MACOSX_BUNDLE)
add_executable(${EXECUTABLE_NAME})
endif()
# Git Info
@@ -312,7 +314,7 @@ endif()
if(WIN32)
target_link_libraries(${EXECUTABLE_NAME}
winmm
libcpmt
# libcpmt # Disabled, was causing issues on VS2019 builing from UI
)
endif()
@@ -323,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
+3 -2
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",
+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