mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-09 02:09:35 +00:00
Initial android support
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
#if defined( LINUX ) || defined( USE_SDL )
|
||||
#if defined( USE_SDL )
|
||||
|
||||
// We lazily load the SDL shared object, and only reference functions if it's
|
||||
// available, so this can be included on the dedicated server too.
|
||||
|
||||
+4
-8
@@ -313,14 +313,14 @@ static SpewRetval_t _SpewMessage( SpewType_t spewType, const char *pGroupName, i
|
||||
nLevel
|
||||
};
|
||||
|
||||
#ifdef ANDROID
|
||||
__android_log_print( ANDROID_LOG_INFO, "SRCENG", "%s", pTempBuffer );
|
||||
#endif
|
||||
|
||||
g_pSpewInfo = &spewInfo;
|
||||
ret = s_SpewOutputFunc( spewType, pTempBuffer );
|
||||
g_pSpewInfo = (int)NULL;
|
||||
|
||||
#ifdef ANDROID
|
||||
__android_log_print( ANDROID_LOG_INFO, "SRCENGINE", "%s", pTempBuffer );
|
||||
#endif
|
||||
|
||||
switch (ret)
|
||||
{
|
||||
// Asserts put the break into the macro so it occurs in the right place
|
||||
@@ -911,10 +911,6 @@ void COM_TimestampedLog( char const *fmt, ... )
|
||||
XBX_rTimeStampLog( curStamp, string );
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID
|
||||
__android_log_print( ANDROID_LOG_INFO, "SRCENGINE", "%s", string );
|
||||
#endif
|
||||
|
||||
if ( IsPC() )
|
||||
{
|
||||
// If ETW profiling is enabled then do it only.
|
||||
|
||||
+2
-2
@@ -54,7 +54,7 @@ def build(bld):
|
||||
'vcrmode_posix.cpp', #[$POSIX]
|
||||
'vprof.cpp',
|
||||
# 'win32consoleio.cpp', [$WINDOWS]
|
||||
'../tier1/pathmatch.cpp' # [$LINUXALL]
|
||||
#'../tier1/pathmatch.cpp' # [$LINUXALL]
|
||||
]
|
||||
|
||||
includes = [
|
||||
@@ -65,7 +65,7 @@ def build(bld):
|
||||
|
||||
defines = []
|
||||
|
||||
libs = ['DL', 'm', 'LOG']
|
||||
libs = ['DL', 'M', 'LOG']
|
||||
|
||||
install_path = bld.env.LIBDIR
|
||||
|
||||
|
||||
Reference in New Issue
Block a user