[DEV] Update new lutin 2.2.0 (no legacy support)
This commit is contained in:
parent
c47fbd2108
commit
8494698338
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
import lutin.module as module
|
import lutin.debug as debug
|
||||||
import lutin.tools as tools
|
import lutin.tools as tools
|
||||||
|
|
||||||
|
|
||||||
@ -27,18 +27,17 @@ def get_maintainer():
|
|||||||
def get_version():
|
def get_version():
|
||||||
return "version.txt"
|
return "version.txt"
|
||||||
|
|
||||||
def create(target, module_name):
|
def configure(target, my_module):
|
||||||
my_module = module.Module(__file__, module_name, get_type())
|
|
||||||
my_module.add_extra_flags()
|
my_module.add_extra_flags()
|
||||||
# add the file to compile:
|
# add the file to compile:
|
||||||
my_module.add_src_file([
|
my_module.add_src_file([
|
||||||
'sample/debug.cpp',
|
'sample/debug.cpp',
|
||||||
'sample/main.cpp'
|
'sample/main.cpp'
|
||||||
])
|
])
|
||||||
# build in C++ mode
|
# build in C++ mode
|
||||||
my_module.compile_version("c++", 2011)
|
my_module.compile_version("c++", 2011)
|
||||||
my_module.add_depend('elog')
|
my_module.add_depend('elog')
|
||||||
my_module.add_path('sample')
|
my_module.add_path('sample')
|
||||||
return my_module
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
import lutin.module as module
|
import lutin.debug as debug
|
||||||
import lutin.tools as tools
|
import lutin.tools as tools
|
||||||
|
|
||||||
|
|
||||||
@ -24,23 +24,22 @@ def get_maintainer():
|
|||||||
def get_version():
|
def get_version():
|
||||||
return "version.txt"
|
return "version.txt"
|
||||||
|
|
||||||
def create(target, module_name):
|
def configure(target, my_module):
|
||||||
my_module = module.Module(__file__, module_name, get_type())
|
|
||||||
my_module.add_extra_flags()
|
my_module.add_extra_flags()
|
||||||
# add the file to compile:
|
# add the file to compile:
|
||||||
my_module.add_src_file([
|
my_module.add_src_file([
|
||||||
'elog/debug.cpp',
|
'elog/debug.cpp',
|
||||||
'elog/log.cpp',
|
'elog/log.cpp',
|
||||||
'elog/elog.cpp'
|
'elog/elog.cpp'
|
||||||
])
|
])
|
||||||
|
|
||||||
if "IOs" in target.get_type():
|
if "IOs" in target.get_type():
|
||||||
my_module.add_src_file('elog/logIOs.m')
|
my_module.add_src_file('elog/logIOs.m')
|
||||||
|
|
||||||
my_module.add_header_file([
|
my_module.add_header_file([
|
||||||
'elog/log.hpp',
|
'elog/log.hpp',
|
||||||
'elog/elog.hpp'
|
'elog/elog.hpp'
|
||||||
])
|
])
|
||||||
|
|
||||||
if target.get_mode() == "debug":
|
if target.get_mode() == "debug":
|
||||||
# Bor backtrace display :
|
# Bor backtrace display :
|
||||||
@ -71,7 +70,7 @@ def create(target, module_name):
|
|||||||
else:
|
else:
|
||||||
my_module.add_depend("pthread")
|
my_module.add_depend("pthread")
|
||||||
|
|
||||||
my_module.add_path(tools.get_current_path(__file__))
|
my_module.add_path(".")
|
||||||
return my_module
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
import lutin.module as module
|
import lutin.debug as debug
|
||||||
import lutin.tools as tools
|
import lutin.tools as tools
|
||||||
import lutin.debug as debug
|
import lutin.debug as debug
|
||||||
|
|
||||||
@ -25,8 +25,7 @@ def get_compagny_name():
|
|||||||
def get_maintainer():
|
def get_maintainer():
|
||||||
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
||||||
|
|
||||||
def create(target, module_name):
|
def configure(target, my_module):
|
||||||
my_module = module.Module(__file__, module_name, get_type())
|
|
||||||
my_module.add_src_file([
|
my_module.add_src_file([
|
||||||
'test-debug/debug.cpp'
|
'test-debug/debug.cpp'
|
||||||
])
|
])
|
||||||
@ -34,7 +33,7 @@ def create(target, module_name):
|
|||||||
'test-debug/debug.hpp'
|
'test-debug/debug.hpp'
|
||||||
])
|
])
|
||||||
my_module.add_depend('etk')
|
my_module.add_depend('etk')
|
||||||
my_module.add_path(tools.get_current_path(__file__))
|
my_module.add_path(".")
|
||||||
return my_module
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user