2013-07-31 21:35:45 +02:00
|
|
|
#!/usr/bin/python
|
2015-05-08 22:37:25 +02:00
|
|
|
import lutin.module as module
|
|
|
|
import lutin.tools as tools
|
2013-07-31 21:35:45 +02:00
|
|
|
import datetime
|
|
|
|
|
2013-12-23 22:38:46 +01:00
|
|
|
def get_desc():
|
|
|
|
return "e-json test application"
|
|
|
|
|
|
|
|
|
|
|
|
def create(target):
|
2013-07-31 21:35:45 +02:00
|
|
|
# module name is 'edn' and type binary.
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module = module.Module(__file__, 'ejson-test', 'BINARY')
|
2013-07-31 21:35:45 +02:00
|
|
|
|
|
|
|
# add the file to compile:
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_src_file([
|
2015-01-12 21:12:44 +01:00
|
|
|
'test/test.cpp'])
|
2013-07-31 21:35:45 +02:00
|
|
|
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.add_module_depend(['ejson', 'gtest'])
|
2013-07-31 21:35:45 +02:00
|
|
|
|
|
|
|
now = datetime.datetime.now()
|
|
|
|
versionID=str(now.year-2012)+"."+str(now.month)+"."+str(now.day)
|
|
|
|
|
|
|
|
# set the package properties :
|
2015-09-24 21:44:04 +02:00
|
|
|
my_module.pkg_set("VERSION", versionID)
|
|
|
|
my_module.pkg_set("COMPAGNY_TYPE", "org")
|
|
|
|
my_module.pkg_set("COMPAGNY_NAME", "Edouard DUPIN")
|
|
|
|
my_module.pkg_set("MAINTAINER", ["Mr DUPIN Edouard <yui.heero@gmail.com>"])
|
|
|
|
my_module.pkg_set("SECTION", ["Development"])
|
|
|
|
my_module.pkg_set("PRIORITY", "optional")
|
|
|
|
my_module.pkg_set("DESCRIPTION", "e-json tester soft")
|
|
|
|
my_module.pkg_set("NAME", "exml_tester")
|
2013-07-31 21:35:45 +02:00
|
|
|
|
|
|
|
# add the currrent module at the
|
2015-09-24 21:44:04 +02:00
|
|
|
return my_module
|
2013-07-31 21:35:45 +02:00
|
|
|
|