mkclass_target(sysloglogger.ti sysloglogger.thpp)
set(base_SOURCES
- application.cpp application.thpp array.cpp configerror.cpp console.cpp context.cpp
+ application.cpp application-version.cpp application.thpp array.cpp configerror.cpp console.cpp context.cpp
convert.cpp debuginfo.cpp dictionary.cpp dynamicobject.cpp dynamicobject.thpp dynamictype.cpp
exception.cpp fifo.cpp filelogger.cpp filelogger.thpp initialize.cpp json.cpp logger.cpp logger.thpp
netstring.cpp networkstream.cpp object.cpp primitivetype.cpp process.cpp
value-operators.cpp workqueue.cpp
)
+set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/application-version.cpp PROPERTY EXCLUDE_UNITY_BUILD TRUE)
+
if(ICINGA2_UNITY_BUILD)
mkunity_target(base base_SOURCES)
endif()
--- /dev/null
+/******************************************************************************
+ * Icinga 2 *
+ * Copyright (C) 2012-2014 Icinga Development Team (http://www.icinga.org) *
+ * *
+ * This program is free software; you can redistribute it and/or *
+ * modify it under the terms of the GNU General Public License *
+ * as published by the Free Software Foundation; either version 2 *
+ * of the License, or (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software Foundation *
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
+ ******************************************************************************/
+
+#include "base/application.hpp"
+#include "icinga-version.h"
+
+using namespace icinga;
+
+String Application::GetVersion(void)
+{
+ return VERSION;
+}
+
#include "base/convert.hpp"
#include "base/scriptvariable.hpp"
#include "base/process.hpp"
-#include "icinga-version.h"
#include <sstream>
#include <boost/algorithm/string/classification.hpp>
#include <boost/foreach.hpp>
return tp;
}
-String Application::GetVersion(void)
-{
- return VERSION;
-}
-
double Application::GetStartTime(void)
{
return m_StartTime;