ewol/sources/ewol/ewol.cpp

58 lines
1.1 KiB
C++

/**
* @author Edouard DUPIN
*
* @copyright 2011, Edouard DUPIN, all right reserved
*
* @license BSD v3 (see license file)
*/
#include <ewol/ewol.h>
#include <ewol/widget/WidgetManager.h>
#include <ewol/renderer/eContext.h>
#include <ewol/commandLine.h>
#include <etk/os/FSNode.h>
#include <ewol/Dimension.h>
#include <date/date.h>
#undef __class__
#define __class__ "ewol"
etk::UString ewol::getCompilationMode(void) {
#ifdef MODE_RELEASE
return "Release";
#else
return "Debug";
#endif
}
etk::UString ewol::getBoardType(void) {
#ifdef __TARGET_OS__Linux
return "Linux";
#elif defined(__TARGET_OS__Android)
return "Android";
#elif defined(__TARGET_OS__Windows)
return "Windows";
#elif defined(__TARGET_OS__IOs)
return "IOs";
#elif defined(__TARGET_OS__MacOs)
return "MacOs";
#else
return "Unknown";
#endif
}
etk::UString ewol::getVersion(void) {
#define FIRST_YEAR (2011)
etk::UString tmpOutput = (date::getYear()-FIRST_YEAR);
tmpOutput += ".";
tmpOutput += date::getMonth();
tmpOutput += ".";
tmpOutput += date::getDay();
return tmpOutput;
}