KVIrc 5.2.0
Developer APIs
KviBuildInfo.h
Go to the documentation of this file.
1#ifndef _KVI_BUILDINFO_H_
2#define _KVI_BUILDINFO_H_
3//=============================================================================
4//
5// File : KviBuildInfo.h
6// Creation date : Sat 19 Apr 2008 17:01:57 by Szymon Stefanek
7//
8// This file is part of the KVIrc IRC Client distribution
9// Copyright (C) 2008 Szymon Stefanek <s.stefanek at libero dot it>
10// Copyright (C) 2008 Elvio Basello <hellvis69 at netsons dot org>
11//
12// This program is FREE software. You can redistribute it and/or
13// modify it under the terms of the GNU General Public License
14// as published by the Free Software Foundation; either version 2
15// of the License, or (at your option) any later version.
16//
17// This program is distributed in the HOPE that it will be USEFUL,
18// but WITHOUT ANY WARRANTY; without even the implied warranty of
19// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20// See the GNU General Public License for more details.
21//
22// You should have received a copy of the GNU General Public License
23// along with this program. If not, write to the Free Software Foundation,
24// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25//
26//=============================================================================
27
34#include "kvi_settings.h"
35#include "kvi_sourcesdate.h"
36#include <QStringList>
37
38class QString;
39
40extern KVILIB_API const QStringList feature_list;
41
51namespace KviBuildInfo
52{
57 extern KVILIB_API QString buildDate();
58
63 extern KVILIB_API QString buildSourcesDate();
64
69 extern KVILIB_API QString buildCommand();
70
77 extern KVILIB_API QString buildFlags();
78
85 extern KVILIB_API QString buildSystemName();
86
93 extern KVILIB_API QString buildCPU();
94
101 extern KVILIB_API QString buildCompiler();
102
109 extern KVILIB_API QString buildCompilerFlags();
110
115 extern KVILIB_API const char * buildType();
116
121 extern KVILIB_API QString buildRevision();
122
127 extern KVILIB_API QString qtVersion();
128
133 extern KVILIB_API QString features();
134}
135
136#endif
KVILIB_API const QStringList feature_list
Definition KviBuildInfo.cpp:33
This file contains compile time settings.
#define KVILIB_API
Definition kvi_settings.h:124
Sources date.
This namespace contains information gathered at KVIrc build time.
Definition KviBuildInfo.cpp:100
QString buildRevision()
Returns the Git revision number of the local repository.
Definition KviBuildInfo.cpp:158
QString features()
Returns the list of features compiled in the KVIrc executable.
Definition KviBuildInfo.cpp:172
QString qtVersion()
Returns the Qt version used to build the KVIrc executable.
Definition KviBuildInfo.cpp:167
QString buildCommand()
Returns the build command used by cmake to create the KVIrc executable.
Definition KviBuildInfo.cpp:111
QString buildDate()
Retrieve the latest kvilib/kvirc build date.
Definition KviBuildInfo.cpp:101
QString buildSourcesDate()
Returns the date tag applied to the currently compiled Git sources.
Definition KviBuildInfo.cpp:106
QString buildFlags()
Returns the build flags.
Definition KviBuildInfo.cpp:116
QString buildSystemName()
Returns the name part of the system.
Definition KviBuildInfo.cpp:121
QString buildCompiler()
Returns a description of the compiler.
Definition KviBuildInfo.cpp:135
QString buildCompilerFlags()
Returns a description of the compiler flags.
Definition KviBuildInfo.cpp:140
QString buildCPU()
Returns a description of the CPU.
Definition KviBuildInfo.cpp:130
const char * buildType()
Returns the type of build.
Definition KviBuildInfo.cpp:149