mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
Add a VS2015 debugging version of libprotobuf.lib
In order to properly build SourceMod in debug mode on Windows, we need to have the `libprotobuf.lib` that was linked with the MSVC 2015 toolset. This was created using the following steps: 1) Download the protobuf 2.5.0 ZIP file from here: https://github.com/protocolbuffers/protobuf/releases/download/v2.5.0/protobuf-2.5.0.zip 2) Add macro definitions for the following in `common.h`: ``` #if defined(_WIN32) && !defined(min) #define min(a,b) __min(a,b) #define max(a,b) __max(a,b) #endif #define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS ``` 3) Open the solution file in VS 2022 and migrate it from the old file format 4) Right click the "libprotobuf" project and... - Switch Platform Toolset to "Visual Studio 2015 (v140)" - Switch Target Platform Version to "10.0.19041.0" - Code Generation -> Runtime Library -> /MTd - Preprocessor Definitions -> Add -> _ITERATOR_DEBUG_LEVEL=0 5) Build the `libprotobuf` project, and that's it!
This commit is contained in:
parent
da376c88b0
commit
09b83ca1d3
BIN
lib/win32/debug/vs2015/libprotobuf.lib
Normal file
BIN
lib/win32/debug/vs2015/libprotobuf.lib
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user