exml/lutin_exml-test.py

36 lines
978 B
Python
Raw Normal View History

2013-06-21 20:56:22 +02:00
#!/usr/bin/python
2015-05-08 22:41:54 +02:00
import lutin.module as module
import lutin.tools as tools
2013-06-21 20:56:22 +02:00
import datetime
2013-12-23 22:38:46 +01:00
def get_desc():
return "e-xml test software"
def create(target):
2013-06-21 20:56:22 +02:00
# module name is 'edn' and type binary.
2015-09-24 21:44:04 +02:00
my_module = module.Module(__file__, 'exml-test', 'BINARY')
2013-06-21 20:56:22 +02:00
# add the file to compile:
2015-09-24 21:44:04 +02:00
my_module.add_src_file([
'test/main.cpp'])
2013-06-21 20:56:22 +02:00
2015-09-24 21:44:04 +02:00
my_module.add_module_depend(['exml', 'gtest'])
2013-06-21 20:56:22 +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_xml tester soft")
my_module.pkg_set("NAME", "exml_tester")
2013-06-21 20:56:22 +02:00
# add the currrent module at the
2015-09-24 21:44:04 +02:00
return my_module
2013-06-21 20:56:22 +02:00