Open maxsharabayko opened 2 years ago
Additionally the information printed in scripts/ShowProjectConfig.cmake
from https://github.com/Haivision/srt/pull/2161 could be used to construct a generated .h|.cpp
source file(s) so that the top level build information could be accessed programmatically in the srt library itself. This would allow us to store the project build configuration in the library itself, so that it could be available when the user only has access to the prebuilt library.
Both runtime and buildtime configuration transparency would be very useful.
Also, it might be useful to print out some of this information during library initialization if possible.
It might be worth adding an SRT API function to retrieve the build configuration of SRT.
Possible items:
USE_BUSY_WAITING
build option).Plus utility function to convert the structure to
std::string
.P.S. The idea is initially suggested by @jlsantiago0.