v2.0.0
Loading...
Searching...
No Matches
ml_global.h
Go to the documentation of this file.
1//=============================================================================================================
27
28#ifndef ML_GLOBAL_H
29#define ML_GLOBAL_H
30
31//=============================================================================================================
32// INCLUDES
33//=============================================================================================================
34
35#include <utils/buildinfo.h>
36
37//=============================================================================================================
38// QT INCLUDES
39//=============================================================================================================
40
41#include <QtCore/qglobal.h>
42
43//=============================================================================================================
44// DEFINES
45//=============================================================================================================
46
47#if defined(STATICBUILD)
48# define MLSHARED_EXPORT
49#elif defined(MNE_ML_LIBRARY)
50# define MLSHARED_EXPORT Q_DECL_EXPORT
51#else
52# define MLSHARED_EXPORT Q_DECL_IMPORT
53#endif
54
55//=============================================================================================================
60namespace MLLIB{
61
62//=============================================================================================================
66MLSHARED_EXPORT const char* buildDateTime();
67
68//=============================================================================================================
72MLSHARED_EXPORT const char* buildHash();
73
74//=============================================================================================================
78MLSHARED_EXPORT const char* buildHashLong();
79}
80
81#endif // ML_GLOBAL_H
Compile-time helpers that capture the build date, time and git commit hash into the binary.
#define MLSHARED_EXPORT
Definition ml_global.h:48
Tensors, model abstraction, ONNX Runtime inference and Python training drivers used across mne-cpp.
MLSHARED_EXPORT const char * buildDateTime()
Definition ml_global.cpp:30
MLSHARED_EXPORT const char * buildHash()
Definition ml_global.cpp:34
MLSHARED_EXPORT const char * buildHashLong()
Definition ml_global.cpp:38