Fix build issues: add missing libraries and includes, fix vpc and cpp issues.

This commit is contained in:
2020-12-25 18:47:31 +01:00
parent 0acc2c38ae
commit b69d8a9586
207 changed files with 167851 additions and 6 deletions

View File

@ -98,11 +98,11 @@ $Project
-$Lib tier1
-$Implib vstdlib
$Lib "$SRCDIR\thirdparty\telemetry\lib\telemetry32.link" [$WIN32]
$Lib "$SRCDIR\thirdparty\telemetry\lib\telemetry64.link" [$WIN64]
// $Lib "$SRCDIR\thirdparty\telemetry\lib\telemetry32.link" [$WIN32]
// $Lib "$SRCDIR\thirdparty\telemetry\lib\telemetry64.link" [$WIN64]
$LibExternal "$SRCDIR/thirdparty/telemetry/lib/libtelemetryx86.link" [$LINUX32]
$LibExternal "$SRCDIR/thirdparty/telemetry/lib/libtelemetryx64.link" [$LINUX64]
// $LibExternal "$SRCDIR/thirdparty/telemetry/lib/libtelemetryx86.link" [$LINUX32]
// $LibExternal "$SRCDIR/thirdparty/telemetry/lib/libtelemetryx64.link" [$LINUX64]
}
}

View File

@ -1774,6 +1774,7 @@ void CVProfile::Validate( CValidator &validator, tchar *pchName )
#endif // VPROF_ENABLED
#define RAD_TELEMTRY_MISSING
#ifdef RAD_TELEMETRY_ENABLED
TelemetryData g_Telemetry;
@ -1848,6 +1849,9 @@ static void UpdateTelemetryThreadNames()
static bool TelemetryInitialize()
{
#ifdef RAD_TELEMTRY_MISSING
return false;
#else
if( g_tmContext )
{
TmConnectionStatus status = tmGetConnectionStatus( g_tmContext );
@ -1938,10 +1942,12 @@ static bool TelemetryInitialize()
UpdateTelemetryThreadNames();
return true;
#endif
}
static void TelemetryShutdown( bool InDtor = false )
{
#ifndef RAD_TELEMTRY_MISSING
if( g_tmContext )
{
// Msg can't be called here as tier0 may have already been shut down...
@ -1963,6 +1969,7 @@ static void TelemetryShutdown( bool InDtor = false )
tmShutdown();
g_TelemetryLoaded = false;
}
#endif
}
// Helper class to initialize Telemetry.