[DEV] Update new lutin 2.2.0 (no legacy support)

This commit is contained in:
Edouard DUPIN 2016-10-04 23:41:29 +02:00
parent c47fbd2108
commit 8494698338
3 changed files with 21 additions and 24 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
@ -27,18 +27,17 @@ def get_maintainer():
def get_version():
return "version.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
def configure(target, my_module):
my_module.add_extra_flags()
# add the file to compile:
my_module.add_src_file([
'sample/debug.cpp',
'sample/main.cpp'
])
'sample/debug.cpp',
'sample/main.cpp'
])
# build in C++ mode
my_module.compile_version("c++", 2011)
my_module.add_depend('elog')
my_module.add_path('sample')
return my_module
return True

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
@ -24,23 +24,22 @@ def get_maintainer():
def get_version():
return "version.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
def configure(target, my_module):
my_module.add_extra_flags()
# add the file to compile:
my_module.add_src_file([
'elog/debug.cpp',
'elog/log.cpp',
'elog/elog.cpp'
])
'elog/debug.cpp',
'elog/log.cpp',
'elog/elog.cpp'
])
if "IOs" in target.get_type():
my_module.add_src_file('elog/logIOs.m')
my_module.add_header_file([
'elog/log.hpp',
'elog/elog.hpp'
])
'elog/log.hpp',
'elog/elog.hpp'
])
if target.get_mode() == "debug":
# Bor backtrace display :
@ -71,7 +70,7 @@ def create(target, module_name):
else:
my_module.add_depend("pthread")
my_module.add_path(tools.get_current_path(__file__))
return my_module
my_module.add_path(".")
return True

View File

@ -1,5 +1,5 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
import lutin.debug as debug
@ -25,8 +25,7 @@ def get_compagny_name():
def get_maintainer():
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
def configure(target, my_module):
my_module.add_src_file([
'test-debug/debug.cpp'
])
@ -34,7 +33,7 @@ def create(target, module_name):
'test-debug/debug.hpp'
])
my_module.add_depend('etk')
my_module.add_path(tools.get_current_path(__file__))
return my_module
my_module.add_path(".")
return True