Skip to content

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

Merged
merged 9 commits into from
Jun 4, 2017
Merged

Add support for compiling against the sdk2013 branch #173

merged 9 commits into from
Jun 4, 2017

Conversation

TheCreeper
Copy link

This resolves the compiling issues and seems to work after testing, the data files for sdk2013 aren't included however.

Copy link
Member

@Ayuto Ayuto left a 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
Copy link
Member

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\"")

Copy link
Member

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")
Copy link
Member

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.

@Ayuto Ayuto merged commit a390640 into Source-Python-Dev-Team:engine_sdk2013 Jun 4, 2017
Ayuto added a commit that referenced this pull request Jun 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants