-
Notifications
You must be signed in to change notification settings - Fork 37
Add support for compiling against the sdk2013 branch #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for compiling against the sdk2013 branch #173
Conversation
…urce.Python into engine_sdk2013
There are some things in KeyValues.cpp that are not supported in c++11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Please read my comments and make the appropriate changes. Once that is done, I will merge your PR. But before merging the whole branch, we will need to fix the compiling issue on Windows.
@@ -277,7 +277,7 @@ Set(SOURCEPYTHON_KEYVALUES_MODULE_HEADERS | |||
|
|||
Set(SOURCEPYTHON_KEYVALUES_MODULE_SOURCES | |||
core/modules/keyvalues/keyvalues_wrap.cpp | |||
${SOURCESDK}/tier1/KeyValues.cpp | |||
${SOURCESDK}/public/tier1/KeyValues.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That line could be removed completely as it gets included in shared.make.
@@ -3,8 +3,11 @@ | |||
# Purpose: This is the CMake file for the sdk2013 branch. | |||
# ------------------------------------------------------------------ | |||
|
|||
Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \ | |||
-DINTERFACEVERSION_SERVERGAMEDLL=\"ServerGameDLL010\"") | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a note that these two lines should be removed once the SDK has been updated:
https://github.com/alliedmodders/hl2sdk/blob/3957adff10fe20d38a62fa8c018340bf2618742b/public/eiface.h#L459-L467
@@ -115,7 +115,7 @@ Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-invalid-offsetof -Wno-reorder") | |||
|
|||
# Others | |||
Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=sse -msse -m32 -fno-strict-aliasing") | |||
Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -fno-threadsafe-statics -v -fvisibility=hidden") | |||
Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -static-libgcc -static-libstdc++ -fno-threadsafe-statics -v -fvisibility=hidden") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static-libstdc++
doesn't compile well with CS:GO. Once you start the server SP will fail to load with undefined symbol: _zdlpv
.
This resolves the compiling issues and seems to work after testing, the data files for sdk2013 aren't included however.