[DEV] revove dependency of the build date (use external lib)
This commit is contained in:
parent
9678d46cb1
commit
421dc0c404
@ -29,8 +29,22 @@
|
|||||||
#include <ewol/widget/meta/Parameter.h>
|
#include <ewol/widget/meta/Parameter.h>
|
||||||
#include <ewol/widget/WidgetManager.h>
|
#include <ewol/widget/WidgetManager.h>
|
||||||
#include <ewol/eObject/EObject.h>
|
#include <ewol/eObject/EObject.h>
|
||||||
|
#include <date/date.h>
|
||||||
|
|
||||||
|
namespace appl
|
||||||
|
{
|
||||||
|
etk::UString GetVersion(void)
|
||||||
|
{
|
||||||
|
#define FIRST_YEAR (2010)
|
||||||
|
etk::UString tmpOutput = (date::GetYear()-FIRST_YEAR);
|
||||||
|
tmpOutput += ".";
|
||||||
|
tmpOutput += date::GetMonth();
|
||||||
|
tmpOutput += ".";
|
||||||
|
tmpOutput += date::GetDay();
|
||||||
|
return tmpOutput;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#undef __class__
|
#undef __class__
|
||||||
@ -55,11 +69,19 @@ class ParameterAboutGui : public widget::Sizer
|
|||||||
SubWidgetAdd(mySpacer);
|
SubWidgetAdd(mySpacer);
|
||||||
}
|
}
|
||||||
etk::UString tmpLabel = "<left>";
|
etk::UString tmpLabel = "<left>";
|
||||||
tmpLabel += " <b>Editeur De N'ours</b> : v";
|
tmpLabel += " <b>Editeur De N'ours</b> : v:";
|
||||||
//tmpLabel += APPL_VERSION_TAG_NAME;
|
tmpLabel += appl::GetVersion();
|
||||||
tmpLabel += "<br/>";
|
tmpLabel += "<br/>";
|
||||||
tmpLabel += " <b>Build Time</b> : ";
|
tmpLabel += " <b>Build Time</b> : ";
|
||||||
//tmpLabel += BUILD_TIME;
|
tmpLabel += date::GetYear();
|
||||||
|
tmpLabel += "/";
|
||||||
|
tmpLabel += date::GetMonth();
|
||||||
|
tmpLabel += "/";
|
||||||
|
tmpLabel += date::GetDay();
|
||||||
|
tmpLabel += " ";
|
||||||
|
tmpLabel += date::GetHour();
|
||||||
|
tmpLabel += "h";
|
||||||
|
tmpLabel += date::GetMinute();
|
||||||
tmpLabel += "<br/>";
|
tmpLabel += "<br/>";
|
||||||
tmpLabel += " <b>Website</b> : https://github.com/HeeroYui/edn<br/>";
|
tmpLabel += " <b>Website</b> : https://github.com/HeeroYui/edn<br/>";
|
||||||
tmpLabel += " <b>License</b> : GPL v3<br/>";
|
tmpLabel += " <b>License</b> : GPL v3<br/>";
|
||||||
|
@ -50,14 +50,8 @@ def Create(target):
|
|||||||
|
|
||||||
myModule.AddModuleDepend('ewol')
|
myModule.AddModuleDepend('ewol')
|
||||||
|
|
||||||
now = datetime.datetime.now()
|
|
||||||
|
|
||||||
versionID=str(now.year-2012)+"."+str(now.month)+"."+str(now.day)
|
|
||||||
|
|
||||||
myModule.CompileFlags_CC([
|
myModule.CompileFlags_CC([
|
||||||
"-DPROJECT_NAME=\"\\\""+myModule.name+"\\\"\"",
|
"-DPROJECT_NAME=\"\\\""+myModule.name+"\\\"\""])
|
||||||
"-DAPPL_VERSION_TAG_NAME=\"\\\""+versionID+"\\\"\"",
|
|
||||||
"-DBUILD_TIME=\"\\\""+str(now.day)+"/"+str(now.month)+"/"+str(now.year)+"\\\"\""])
|
|
||||||
|
|
||||||
myModule.CopyFile('../data/icon.png','icon.png')
|
myModule.CopyFile('../data/icon.png','icon.png')
|
||||||
|
|
||||||
@ -91,6 +85,8 @@ def Create(target):
|
|||||||
myModule.CopyFile("../data/Font/freefont/FreeSerif.ttf","fonts/FreeSerif.ttf")
|
myModule.CopyFile("../data/Font/freefont/FreeSerif.ttf","fonts/FreeSerif.ttf")
|
||||||
myModule.CopyFolder("../data/Font/freefont/FreeMon*.ttf","fonts/")
|
myModule.CopyFolder("../data/Font/freefont/FreeMon*.ttf","fonts/")
|
||||||
|
|
||||||
|
now = datetime.datetime.now()
|
||||||
|
versionID=str(now.year-2012)+"."+str(now.month)+"."+str(now.day)
|
||||||
|
|
||||||
# set the package properties :
|
# set the package properties :
|
||||||
myModule.pkgSet("VERSION", versionID)
|
myModule.pkgSet("VERSION", versionID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user