[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 2e9f2cb20f
commit 7a0e0ab117
6 changed files with 39 additions and 35 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
@ -24,13 +24,16 @@ def get_maintainer():
def get_version():
return "version.txt"
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_depend(['etk', 'enet', 'ememory', 'eproperty'])
def configure(target, my_module):
my_module.add_depend([
'etk',
'enet',
'ememory',
'eproperty'])
my_module.add_src_file([
'zeus/debug.cpp'
])
my_module.add_path(tools.get_current_path(__file__))
my_module.add_path(".")
my_module.add_src_file([
'zeus/AbstractFunction.cpp',
'zeus/FutureBase.cpp',
@ -81,7 +84,7 @@ def create(target, module_name):
my_module.add_flag('c++', "-Wno-unsequenced", export=True)
# build in C++ mode
my_module.compile_version("c++", 2011)
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,15 +24,14 @@ 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())
my_module.add_path(tools.get_current_path(__file__))
def configure(target, my_module):
my_module.add_path(".")
my_module.add_depend(['zeus'])
my_module.add_src_file([
'appl/debug.cpp',
'appl/main.cpp'
])
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,15 +24,14 @@ 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())
my_module.add_path(tools.get_current_path(__file__))
def configure(target, my_module):
my_module.add_path(".")
my_module.add_depend(['zeus'])
my_module.add_src_file([
'appl/debug.cpp',
'appl/main.cpp'
])
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,16 +24,18 @@ 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())
my_module.add_path(tools.get_current_path(__file__))
my_module.add_depend(['zeus', 'ejson'])
def configure(target, my_module):
my_module.add_path(".")
my_module.add_depend([
'zeus',
'ejson'
])
my_module.add_src_file([
'appl/debug.cpp',
'appl/main.cpp'
])
my_module.add_flag('c++', "-DSERVICE_NAME=\"\\\"" + module_name[5:] + "\\\"\"")
return my_module
my_module.add_flag('c++', "-DSERVICE_NAME=\"\\\"" + my_module.get_name()[5:] + "\\\"\"")
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,9 +24,8 @@ 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())
my_module.add_path(tools.get_current_path(__file__))
def configure(target, my_module):
my_module.add_path(".")
my_module.add_depend(['zeus'])
my_module.add_src_file([
'appl/debug.cpp',
@ -35,7 +34,7 @@ def create(target, module_name):
'appl/GateWay.cpp',
'appl/main.cpp'
])
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,16 +24,18 @@ 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())
my_module.add_path(tools.get_current_path(__file__))
my_module.add_depend(['zeus', 'ejson'])
def configure(target, my_module):
my_module.add_path(".")
my_module.add_depend([
'zeus',
'ejson'
])
my_module.add_src_file([
'appl/debug.cpp',
'appl/main.cpp'
])
my_module.add_flag('c++', "-DSERVICE_NAME=\"\\\"" + module_name[5:] + "\\\"\"")
return my_module
my_module.add_flag('c++', "-DSERVICE_NAME=\"\\\"" + my_module.get_name()[5:] + "\\\"\"")
return True