From acce0e5452752f5346d3f6eacf10658bf4b21f0d Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Tue, 30 Jan 2018 05:04:01 -0600 Subject: [PATCH] Fix building msvc12 project * Don't try to embed manifest (it causes build to fail because it's specified in win_resource.rc). * Fix curl include path. * Compile sys_autoupdater.c. * Make quake3 debug link to msvcrtd.lib instead of msvcrt.lib to fix unresolved external symbol __imp___CrtDbgReportW. * Fix q3_ui dll output directory. * Fix opus path filter. * Use UseOfMfc false and CharacterSet NotSet. * Fix header paths and remove non-existent files. --- misc/msvc12/cgame.vcxproj | 4 + misc/msvc12/game.vcxproj | 4 + misc/msvc12/opengl1.vcxproj | 4 + misc/msvc12/opengl2.vcxproj | 4 + misc/msvc12/q3_ui.vcxproj | 28 +-- misc/msvc12/quake3.vcxproj | 35 ++-- misc/msvc12/quake3.vcxproj.filters | 283 ++++++++++++++--------------- misc/msvc12/ui.vcxproj | 8 +- 8 files changed, 196 insertions(+), 174 deletions(-) diff --git a/misc/msvc12/cgame.vcxproj b/misc/msvc12/cgame.vcxproj index 6aa1afce..f740c5fa 100644 --- a/misc/msvc12/cgame.vcxproj +++ b/misc/msvc12/cgame.vcxproj @@ -27,21 +27,25 @@ DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet diff --git a/misc/msvc12/game.vcxproj b/misc/msvc12/game.vcxproj index abd03969..8aa2a512 100644 --- a/misc/msvc12/game.vcxproj +++ b/misc/msvc12/game.vcxproj @@ -26,21 +26,25 @@ DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet diff --git a/misc/msvc12/opengl1.vcxproj b/misc/msvc12/opengl1.vcxproj index 5427d376..2bc878e9 100644 --- a/misc/msvc12/opengl1.vcxproj +++ b/misc/msvc12/opengl1.vcxproj @@ -26,21 +26,25 @@ DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet diff --git a/misc/msvc12/opengl2.vcxproj b/misc/msvc12/opengl2.vcxproj index 2f91590e..5a837890 100644 --- a/misc/msvc12/opengl2.vcxproj +++ b/misc/msvc12/opengl2.vcxproj @@ -27,21 +27,25 @@ DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet DynamicLibrary v120 false + NotSet diff --git a/misc/msvc12/q3_ui.vcxproj b/misc/msvc12/q3_ui.vcxproj index 9a345618..e59a237b 100644 --- a/misc/msvc12/q3_ui.vcxproj +++ b/misc/msvc12/q3_ui.vcxproj @@ -26,25 +26,25 @@ DynamicLibrary v120 false - MultiByte + NotSet DynamicLibrary v120 false - MultiByte + NotSet DynamicLibrary v120 false - MultiByte + NotSet DynamicLibrary v120 false - MultiByte + NotSet @@ -66,24 +66,28 @@ <_ProjectFileVersion>12.0.30501.0 - ..\..\build\q3_ui_debug_ta\ - ..\..\build\q3_ui_debug_ta\ + ..\..\build\debug_ta-msvc12-x86\missionpack\ + ..\..\build\debug_ta-msvc12-x86\missionpack\q3_ui\ true + uix86_old - ..\..\build\q3_ui_release_ta\ - ..\..\build\q3_ui_release_ta\ + ..\..\build\release_ta-msvc12-x86\missionpack\ + ..\..\build\release_ta-msvc12-x86\missionpack\q3_ui\ false + uix86_old - ..\..\build\q3_ui_release\ - ..\..\build\q3_ui_release\ + ..\..\build\release-msvc12-x86\baseq3\ + ..\..\build\release-msvc12-x86\baseq3\q3_ui\ false + uix86 - ..\..\build\q3_ui_debug\ - ..\..\build\q3_ui_debug\ + ..\..\build\debug-msvc12-x86\baseq3\ + ..\..\build\debug-msvc12-x86\baseq3\q3_ui\ true + uix86 diff --git a/misc/msvc12/quake3.vcxproj b/misc/msvc12/quake3.vcxproj index 7a35e8e8..992fc5ea 100644 --- a/misc/msvc12/quake3.vcxproj +++ b/misc/msvc12/quake3.vcxproj @@ -26,21 +26,25 @@ Application v120 false + NotSet Application v120 - Static + false + NotSet Application v120 false + NotSet Application v120 false + NotSet @@ -66,24 +70,28 @@ ..\..\build\release_ta-msvc12-x86\client\ false ioquake3.x86 + false ..\..\build\debug-msvc12-x86\ ..\..\build\debug-msvc12-x86\client\ true ioquake3.x86 + false ..\..\build\release-msvc12-x86\ ..\..\build\release-msvc12-x86\client\ false ioquake3.x86 + false ..\..\build\debug_ta-msvc12-x86\ ..\..\build\debug_ta-msvc12-x86\client\ true ioquake3.x86 + false @@ -97,7 +105,7 @@ MaxSpeed AnySuitable - ..\..\code\SDL2\include;..\..\code\libcurl-7.35.0;..\..\code\AL;..\..\code\opus-1.1.4\include;..\..\code\opus-1.1.4\celt;..\..\code\opus-1.1.4\silk;..\..\code\opus-1.1.4\silk\float;..\..\code\zlib;..\..\code\jpeg-8c;%(AdditionalIncludeDirectories) + ..\..\code\SDL2\include;..\..\code\curl-7.54.0\include;..\..\code\AL;..\..\code\opus-1.1.4\include;..\..\code\opus-1.1.4\celt;..\..\code\opus-1.1.4\silk;..\..\code\opus-1.1.4\silk\float;..\..\code\zlib;..\..\code\jpeg-8c;%(AdditionalIncludeDirectories) _WIN32;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;BOTLIB;USE_ICON;USE_CURL;USE_CURL_DLOPEN;USE_OPENAL;USE_OPENAL_DLOPEN;USE_VOIP;OPUS_BUILD;HAVE_LRINTF;FLOATING_POINT;FLOAT_APPROX;USE_ALLOCA;MISSIONPACK;USE_RENDERER_DLOPEN;%(PreprocessorDefinitions) true MultiThreaded @@ -149,7 +157,7 @@ Disabled - ..\..\code\SDL2\include;..\..\code\libcurl-7.35.0;..\..\code\AL;..\..\code\opus-1.1.4\include;..\..\code\opus-1.1.4\celt;..\..\code\opus-1.1.4\silk;..\..\code\opus-1.1.4\silk\float;..\..\code\zlib;..\..\code\jpeg-8c;%(AdditionalIncludeDirectories) + ..\..\code\SDL2\include;..\..\code\curl-7.54.0\include;..\..\code\AL;..\..\code\opus-1.1.4\include;..\..\code\opus-1.1.4\celt;..\..\code\opus-1.1.4\silk;..\..\code\opus-1.1.4\silk\float;..\..\code\zlib;..\..\code\jpeg-8c;%(AdditionalIncludeDirectories) _WIN32;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;BOTLIB;USE_ICON;USE_CURL;USE_CURL_DLOPEN;USE_OPENAL;USE_OPENAL_DLOPEN;USE_VOIP;OPUS_BUILD;HAVE_LRINTF;FLOATING_POINT;FLOAT_APPROX;USE_ALLOCA;USE_INTERNAL_JPEG;USE_RENDERER_DLOPEN;%(PreprocessorDefinitions) MultiThreadedDebugDLL @@ -171,7 +179,7 @@ ..\winquake.res - user32.lib;advapi32.lib;winmm.lib;wsock32.lib;ws2_32.lib;SDL2main.lib;SDL2.lib;OpenGL32.lib;msvcrt.lib;psapi.lib;gdi32.lib;%(AdditionalDependencies) + user32.lib;advapi32.lib;winmm.lib;wsock32.lib;ws2_32.lib;SDL2main.lib;SDL2.lib;OpenGL32.lib;msvcrtd.lib;psapi.lib;gdi32.lib;%(AdditionalDependencies) $(OutDir)ioquake3.x86.exe true ..\..\code\libs\win32;%(AdditionalLibraryDirectories) @@ -202,7 +210,7 @@ MaxSpeed AnySuitable - ..\..\code\SDL2\include;..\..\code\libcurl-7.35.0;..\..\code\AL;..\..\code\opus-1.1.4\include;..\..\code\opus-1.1.4\celt;..\..\code\opus-1.1.4\silk;..\..\code\opus-1.1.4\silk\float;..\..\code\zlib;..\..\code\jpeg-8c;%(AdditionalIncludeDirectories) + ..\..\code\SDL2\include;..\..\code\curl-7.54.0\include;..\..\code\AL;..\..\code\opus-1.1.4\include;..\..\code\opus-1.1.4\celt;..\..\code\opus-1.1.4\silk;..\..\code\opus-1.1.4\silk\float;..\..\code\zlib;..\..\code\jpeg-8c;%(AdditionalIncludeDirectories) _WIN32;WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;BOTLIB;USE_ICON;USE_CURL;USE_CURL_DLOPEN;USE_OPENAL;USE_OPENAL_DLOPEN;USE_VOIP;OPUS_BUILD;HAVE_LRINTF;FLOATING_POINT;FLOAT_APPROX;USE_ALLOCA;USE_INTERNAL_JPEG;USE_RENDERER_DLOPEN;%(PreprocessorDefinitions) true MultiThreaded @@ -248,7 +256,7 @@ Disabled - ..\..\code\SDL2\include;..\..\code\libcurl-7.35.0;..\..\code\AL;..\..\code\opus-1.1.4\include;..\..\code\opus-1.1.4\celt;..\..\code\opus-1.1.4\silk;..\..\code\opus-1.1.4\silk\float;..\..\code\zlib;..\..\code\jpeg-8c;%(AdditionalIncludeDirectories) + ..\..\code\SDL2\include;..\..\code\curl-7.54.0\include;..\..\code\AL;..\..\code\opus-1.1.4\include;..\..\code\opus-1.1.4\celt;..\..\code\opus-1.1.4\silk;..\..\code\opus-1.1.4\silk\float;..\..\code\zlib;..\..\code\jpeg-8c;%(AdditionalIncludeDirectories) _WIN32;WIN32;_DEBUG;_WINDOWS;_CRT_SECURE_NO_DEPRECATE;BOTLIB;USE_ICON;USE_CURL;USE_CURL_DLOPEN;USE_OPENAL;USE_OPENAL_DLOPEN;USE_VOIP;OPUS_BUILD;HAVE_LRINTF;FLOATING_POINT;FLOAT_APPROX;USE_ALLOCA;MISSIONPACK;USE_RENDERER_DLOPEN;%(PreprocessorDefinitions) MultiThreadedDebugDLL @@ -270,7 +278,7 @@ ..\winquake.res - user32.lib;advapi32.lib;winmm.lib;wsock32.lib;ws2_32.lib;SDL2main.lib;SDL2.lib;OpenGL32.lib;msvcrt.lib;psapi.lib;gdi32.lib;%(AdditionalDependencies) + user32.lib;advapi32.lib;winmm.lib;wsock32.lib;ws2_32.lib;SDL2main.lib;SDL2.lib;OpenGL32.lib;msvcrtd.lib;psapi.lib;gdi32.lib;%(AdditionalDependencies) $(OutDir)ioquake3.x86.exe true ..\..\code\libs\win32;%(AdditionalLibraryDirectories) @@ -856,6 +864,7 @@ + @@ -930,16 +939,15 @@ - + - @@ -951,15 +959,12 @@ - - - + + + - - - diff --git a/misc/msvc12/quake3.vcxproj.filters b/misc/msvc12/quake3.vcxproj.filters index 0cb1d4b5..73295561 100644 --- a/misc/msvc12/quake3.vcxproj.filters +++ b/misc/msvc12/quake3.vcxproj.filters @@ -60,411 +60,412 @@ + - + opus - + opus - + opus - + opus - + opus - + opus - + opus - + opus - + opus - + opus - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\celt - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float - + opus\silk\float @@ -572,16 +573,15 @@ - + - @@ -593,15 +593,12 @@ - - - + + + - - - botlib diff --git a/misc/msvc12/ui.vcxproj b/misc/msvc12/ui.vcxproj index a5584ba4..78205ec6 100644 --- a/misc/msvc12/ui.vcxproj +++ b/misc/msvc12/ui.vcxproj @@ -26,25 +26,25 @@ DynamicLibrary v120 false - MultiByte + NotSet DynamicLibrary v120 false - MultiByte + NotSet DynamicLibrary v120 false - MultiByte + NotSet DynamicLibrary v120 false - MultiByte + NotSet