@ -36,6 +36,10 @@ include(VSForceXPToolchain) # Force XP toolchain for Visual Studio
@@ -36,6 +36,10 @@ include(VSForceXPToolchain) # Force XP toolchain for Visual Studio
project ( HLSDK-PORTABLE )
# X a s h 3 D F W G S L i b r a r y N a m i n g S c h e m e c o m p l i a n c e
# s e e d o c u m e n t a t i o n : h t t p s : / / g i t h u b . c o m / F W G S / x a s h 3 d - f w g s / b l o b / m a s t e r / D o c u m e n t a t i o n / e x t e n s i o n s / l i b r a r y - n a m i n g . m d
include ( LibraryNaming )
# - - - - - - - - - - - - - -
# U S E R D E F I N E S \
# # # # # # # # # # # # # # # # \
@ -47,17 +51,13 @@ option(USE_VOICEMGR "Enable VOICE MANAGER." OFF)
@@ -47,17 +51,13 @@ option(USE_VOICEMGR "Enable VOICE MANAGER." OFF)
option ( BUILD_CLIENT "Build client dll" ON )
option ( BUILD_SERVER "Build server dll" ON )
if ( CMAKE_SIZEOF_VOID_P EQUAL 4 OR
( ( WIN32 O R $ { C M A K E _ S Y S T E M _ N A M E } S T R E Q U A L " L i n u x " )
AND ( CMAKE_SYSTEM_PROCESSOR STREQUAL "x64"
O R C M A K E _ S Y S T E M _ P R O C E S S O R S T R E Q U A L " x 8 6 _ 6 4 "
O R C M A K E _ S Y S T E M _ P R O C E S S O R S T R E Q U A L " a m d 6 4 " ) ) )
if ( CMAKE_SIZEOF_VOID_P EQUAL 4 OR ( ( XASH_WIN32 OR XASH_LINUX ) AND XASH_AMD64 ) )
option ( 64BIT "Disable auto -m32 appending to compiler flags" OFF )
else ( )
option ( 64BIT "Disable auto -m32 appending to compiler flags" ON )
endif ( )
if ( ( WIN32 OR ${ CMAKE_SYSTEM_NAME } STREQUAL "Linux" OR APPLE ) AND NOT 64BIT )
if ( ( XASH_ WIN32 OR XASH_LINUX OR XASH_APPLE ) AND ( ( XASH_AMD64 AND NOT 64BIT ) OR XASH_X86 ) )
option ( GOLDSOURCE_SUPPORT "Build goldsource compatible client library" ON )
else ( )
option ( GOLDSOURCE_SUPPORT "Build goldsource compatible client library" OFF )
@ -109,10 +109,6 @@ if(64BIT AND CMAKE_SIZEOF_VOID_P EQUAL 4)
@@ -109,10 +109,6 @@ if(64BIT AND CMAKE_SIZEOF_VOID_P EQUAL 4)
message ( FATAL_ERROR "You enabled XASH_64BIT, but compiler can't create 64 bit code!" )
endif ( )
# X a s h 3 D F W G S L i b r a r y N a m i n g S c h e m e c o m p l i a n c e
# s e e d o c u m e n t a t i o n : h t t p s : / / g i t h u b . c o m / F W G S / x a s h 3 d - f w g s / b l o b / m a s t e r / D o c u m e n t a t i o n / e x t e n s i o n s / l i b r a r y - n a m i n g . m d
include ( LibraryNaming )
if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
message ( STATUS "Building for 64 Bit" )
else ( )
@ -131,7 +127,7 @@ else()
@@ -131,7 +127,7 @@ else()
add_definitions ( -D_CRT_SILENCE_NONCONFORMING_TGMATH_H )
endif ( )
if ( VITA )
if ( XASH_PS VITA)
add_compile_options ( -fno-use-cxa-atexit )
endif ( )