Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ if(DISABLE_SECURITY_TOKEN)
add_definitions(-DDISABLE_SECURITY_TOKEN)
endif()

option(PLAYER_TELEMETRY_SUPPORT "Enable player telemetry support" OFF)

if(PLAYER_TELEMETRY_SUPPORT)
message(STATUS "PLAYER_TELEMETRY_SUPPORT set")
set(LIBPLAYERGSTINTERFACE_DEFINES "${LIBPLAYERGSTINTERFACE_DEFINES} -DPLAYER_TELEMETRY_SUPPORT")
endif()

# Option for building pi-cli
option(BUILD_PICLI "Build the pi-cli test project" OFF)

Expand Down
4 changes: 4 additions & 0 deletions playerLogManager/PlayerLogManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ if( (LEVEL) >= PlayerLogManager::mwLoglevel ) \
#define MW_LOG_DEBUG(FORMAT, ...) MW_LOG(mLOGLEVEL_DEBUG, FORMAT, ##__VA_ARGS__)
#define MW_LOG_INFO(FORMAT, ...) MW_LOG(mLOGLEVEL_INFO, FORMAT, ##__VA_ARGS__)
#define MW_LOG_WARN(FORMAT, ...) MW_LOG(mLOGLEVEL_WARN, FORMAT, ##__VA_ARGS__)
#ifdef PLAYER_TELEMETRY_SUPPORT
#define MW_LOG_MIL(FORMAT, ...) MW_LOG(mLOGLEVEL_MIL, FORMAT, ##__VA_ARGS__)
#else
#define MW_LOG_MIL(FORMAT, ...) do {} while(0)
#endif
#define MW_LOG_ERR(FORMAT, ...) MW_LOG(mLOGLEVEL_ERROR, FORMAT, ##__VA_ARGS__)

#endif /* PLAYER_LOG_MANAGER_H */
Loading