[DEV] update new lutin 0.8.0

This commit is contained in:
Edouard DUPIN 2015-10-14 21:21:03 +02:00
parent b6111d1317
commit a678f05638

View File

@ -3,26 +3,36 @@ import lutin.module as module
import lutin.tools as tools import lutin.tools as tools
import datetime import datetime
def get_type():
return "LIBRARY"
def get_desc(): def get_desc():
return "Date buid date of the program" return "Date buid date of the program"
def get_licence():
return "APACHE-2"
def create(target): def get_compagny_type():
# module name is 'edn' and type binary. return "com"
my_module = module.Module(__file__, 'date', 'LIBRARY')
# add the file to compile:
def get_compagny_name():
return "atria-soft"
def get_maintainer():
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
def get_version():
return [0,1]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([ my_module.add_src_file([
'date/date.cpp' 'date/date.cpp'
]) ])
my_module.add_header_file([ my_module.add_header_file([
'date/date.h' 'date/date.h'
]) ])
now = datetime.datetime.now() now = datetime.datetime.now()
my_module.compile_flags('c++', [ my_module.compile_flags('c++', [
'-Wno-write-strings', '-Wno-write-strings',
'-Wall', '-Wall',
@ -32,10 +42,7 @@ def create(target):
"-DBUILD_HOUR=\""+str(now.hour)+"\"", "-DBUILD_HOUR=\""+str(now.hour)+"\"",
"-DBUILD_MINUTE=\""+str(now.minute)+"\"", "-DBUILD_MINUTE=\""+str(now.minute)+"\"",
"-DBUILD_SECOND=\""+str(now.second)+"\""]) "-DBUILD_SECOND=\""+str(now.second)+"\""])
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(tools.get_current_path(__file__))
# add the currrent module at the
return my_module return my_module