mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-16 21:10:10 +00:00
Added cmake variable to set the component (currently UHD or MPM). so the banner printed by the log_resource would reference the correct component. Added accessor function and appropriate calls in log.cpp. Signed-off-by: michael-west <michael.west@ettus.com>
24 lines
No EOL
520 B
C++
24 lines
No EOL
520 B
C++
//
|
|
// Copyright 2010-2012 Ettus Research LLC
|
|
// Copyright 2018 Ettus Research, a National Instruments Company
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
//
|
|
|
|
#include <uhd/version.hpp>
|
|
#include <uhd/utils/static.hpp>
|
|
#include <uhd/utils/log.hpp>
|
|
#include <boost/version.hpp>
|
|
#include <iostream>
|
|
|
|
std::string uhd::get_version_string(void){
|
|
return "@UHD_VERSION@";
|
|
}
|
|
|
|
std::string uhd::get_abi_string(void){
|
|
return UHD_VERSION_ABI_STRING;
|
|
}
|
|
|
|
std::string uhd::get_component(void){
|
|
return "@UHD_COMPONENT@";
|
|
} |