ejson/lutin_ejson-test.py

36 lines
985 B
Python
Raw Normal View History

#!/usr/bin/python
2015-05-08 22:37:25 +02:00
import lutin.module as module
import lutin.tools as tools
import datetime
2013-12-23 22:38:46 +01:00
def get_desc():
return "e-json test application"
def create(target):
# module name is 'edn' and type binary.
2015-09-24 21:44:04 +02:00
my_module = module.Module(__file__, 'ejson-test', 'BINARY')
# 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'])
2015-09-24 21:44:04 +02:00
my_module.add_module_depend(['ejson', 'gtest'])
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")
# add the currrent module at the
2015-09-24 21:44:04 +02:00
return my_module