[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 #!/usr/bin/python
import lutin.module as module import lutin.debug as debug
import lutin.tools as tools import lutin.tools as tools
@ -27,8 +27,7 @@ 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([
@ -39,6 +38,6 @@ def create(target, module_name):
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

View File

@ -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,8 +24,7 @@ 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([
@ -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

View File

@ -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