mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 00:21:35 +00:00
Added ability to turn off sending of stats in CMake configuration
This commit is contained in:
parent
a9802f82f4
commit
9a737a0622
2 changed files with 17 additions and 0 deletions
|
@ -639,6 +639,12 @@ elseif( FLUIDSYNTH_FOUND )
|
||||||
add_definitions( -DHAVE_FLUIDSYNTH )
|
add_definitions( -DHAVE_FLUIDSYNTH )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
option( SEND_ANON_STATS "Enable sending of anonymous hardware statistics" ON )
|
||||||
|
|
||||||
|
if( NOT SEND_ANON_STATS )
|
||||||
|
add_definitions( -DNO_SEND_STATS )
|
||||||
|
endif()
|
||||||
|
|
||||||
# Project files should be aware of the header files. We can GLOB these since
|
# Project files should be aware of the header files. We can GLOB these since
|
||||||
# there's generally a new cpp for every header so this file will get changed
|
# there's generally a new cpp for every header so this file will get changed
|
||||||
if( WIN32 )
|
if( WIN32 )
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
|
||||||
|
#ifdef NO_SEND_STATS
|
||||||
|
|
||||||
|
void D_DoAnonStats()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#else // !NO_SEND_STATS
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define _WIN32_WINNT 0x0501
|
#define _WIN32_WINNT 0x0501
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
@ -276,3 +285,5 @@ void D_DoAnonStats()
|
||||||
std::thread t1(D_DoHTTPRequest, requeststring);
|
std::thread t1(D_DoHTTPRequest, requeststring);
|
||||||
t1.detach();
|
t1.detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // NO_SEND_STATS
|
||||||
|
|
Loading…
Reference in a new issue