-
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
Changes from all commits
1201b3c
c7810fa
06720ff
4db8f54
2b37a47
f777680
dce972b
e5a6f3d
61bd094
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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: |
||
# ------------------------------------------------------------------ | ||
# Set the engine version. | ||
# ------------------------------------------------------------------ | ||
Set(SOURCE_ENGINE "sdk2013") | ||
add_definitions(-DENGINE_SDK2013) | ||
add_definitions(-DENGINE_SDK2013) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ Set(SOURCEPYTHON_LINK_LIBRARIES | |
) | ||
|
||
|
||
If(SOURCE_ENGINE MATCHES "bms") | ||
If(SOURCE_ENGINE MATCHES "bms" OR SOURCE_ENGINE MATCHES "sdk2013") | ||
Set(SOURCEPYTHON_LINK_LIBRARIES | ||
"${SOURCEPYTHON_LINK_LIBRARIES}" | ||
${SOURCESDK_LIB}/public/linux32/mathlib.a | ||
|
@@ -96,12 +96,12 @@ EndIf() | |
# General definitions | ||
Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_LINUX -DPOSIX -DLINUX -DGNUC -DCOMPILER_GCC") | ||
|
||
if(SOURCE_ENGINE MATCHES "orangebox" OR SOURCE_ENGINE MATCHES "bms") | ||
if(SOURCE_ENGINE MATCHES "orangebox" OR SOURCE_ENGINE MATCHES "bms" OR SOURCE_ENGINE MATCHES "sdk2013") | ||
Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNO_MALLOC_OVERRIDE") | ||
Endif() | ||
|
||
# Function alias | ||
If(NOT SOURCE_ENGINE MATCHES "bms") | ||
If(NOT SOURCE_ENGINE MATCHES "bms" AND NOT SOURCE_ENGINE MATCHES "sdk2013") | ||
Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp") | ||
Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dstrnicmp=strncasecmp -D_snprintf=snprintf") | ||
Set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp") | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
|
||
# ------------------------------------------------------------------ | ||
|
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.