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
Prev Previous commit
Next Next commit
This would resolve an issue with the wrong inteface being defined.
  • Loading branch information
TheCreeper committed Dec 15, 2016
commit e5a6f3d9a0c81028aed0c0488edd8b367c5fe33d
5 changes: 4 additions & 1 deletion src/makefiles/branch/sdk2013.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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

# ------------------------------------------------------------------
# Set the engine version.
# ------------------------------------------------------------------
Set(SOURCE_ENGINE "sdk2013")
add_definitions(-DENGINE_SDK2013)
add_definitions(-DENGINE_SDK2013)