[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 68aec2aeae
commit 96e1e298e1
6 changed files with 134 additions and 182 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,8 +24,7 @@ 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_src_file([
'ege/debug.cpp',
'ege/AudioElement.cpp',
@ -106,7 +105,7 @@ def create(target, module_name):
'ege/physicsShape/PhysicsSphere.hpp',
'ege/Ray.hpp',
])
my_module.add_path(tools.get_current_path(__file__))
return my_module
my_module.add_path(".")
return True

View File

@ -1,7 +1,6 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
import datetime
def get_type():
@ -31,9 +30,7 @@ def get_maintainer():
def get_version():
return [0,1]
def create(target, module_name):
# module name is 'edn' and type binary.
my_module = module.Module(__file__, module_name, get_type())
def configure(target, my_module):
my_module.add_src_file([
'appl/debug.cpp',
@ -43,7 +40,7 @@ def create(target, module_name):
my_module.add_depend('ege')
my_module.add_path(tools.get_current_path(__file__))
my_module.add_path(".")
my_module.copy_path("data/*")
@ -53,13 +50,7 @@ def create(target, module_name):
])
# set the package properties:
my_module.set_pkg("VERSION_CODE", "0")
my_module.set_pkg("COMPAGNY_TYPE", get_compagny_type())
my_module.set_pkg("COMPAGNY_NAME", get_compagny_name())
my_module.set_pkg("MAINTAINER", get_maintainer())
my_module.set_pkg("SECTION", ["Game"])
my_module.set_pkg("PRIORITY", "optional")
my_module.set_pkg("DESCRIPTION", get_desc())
my_module.set_pkg("NAME", get_name())
return my_module
return True

View File

@ -1,7 +1,6 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
import datetime
def get_type():
@ -31,9 +30,7 @@ def get_maintainer():
def get_version():
return [0,1]
def create(target, module_name):
# module name is 'edn' and type binary.
my_module = module.Module(__file__, module_name, get_type())
def configure(target, my_module):
my_module.add_src_file([
'appl/debug.cpp',
@ -43,7 +40,7 @@ def create(target, module_name):
my_module.add_depend('ege')
my_module.add_path(tools.get_current_path(__file__))
my_module.add_path(".")
my_module.copy_path("data/*")
@ -53,15 +50,8 @@ def create(target, module_name):
])
# set the package properties :
my_module.set_pkg("VERSION_CODE", "0")
my_module.set_pkg("COMPAGNY_TYPE", get_compagny_type())
my_module.set_pkg("COMPAGNY_NAME", get_compagny_name())
my_module.set_pkg("MAINTAINER", get_maintainer())
my_module.set_pkg("SECTION", ["Game"])
my_module.set_pkg("PRIORITY", "optional")
my_module.set_pkg("DESCRIPTION", get_desc())
my_module.set_pkg("NAME", get_name())
# add the currrent module at the
return my_module
return True

View File

@ -1,7 +1,6 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
import datetime
def get_type():
@ -31,9 +30,7 @@ def get_maintainer():
def get_version():
return [0,1]
def create(target, module_name):
# module name is 'edn' and type binary.
my_module = module.Module(__file__, module_name, get_type())
def configure(target, my_module):
my_module.add_src_file([
'appl/debug.cpp',
@ -43,7 +40,7 @@ def create(target, module_name):
my_module.add_depend('ege')
my_module.add_path(tools.get_current_path(__file__))
my_module.add_path(".")
my_module.copy_path("data/*")
@ -53,15 +50,8 @@ def create(target, module_name):
])
# set the package properties:
my_module.set_pkg("VERSION_CODE", "0")
my_module.set_pkg("COMPAGNY_TYPE", get_compagny_type())
my_module.set_pkg("COMPAGNY_NAME", get_compagny_name())
my_module.set_pkg("MAINTAINER", get_maintainer())
my_module.set_pkg("SECTION", ["Game"])
my_module.set_pkg("PRIORITY", "optional")
my_module.set_pkg("DESCRIPTION", get_desc())
my_module.set_pkg("NAME", get_name())
# add the currrent module at the
return my_module
return True

View File

@ -1,7 +1,6 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
import datetime
def get_type():
@ -31,9 +30,7 @@ def get_maintainer():
def get_version():
return [0,1]
def create(target, module_name):
# module name is 'edn' and type binary.
my_module = module.Module(__file__, module_name, get_type())
def configure(target, my_module):
my_module.add_src_file([
'appl/debug.cpp',
@ -43,7 +40,7 @@ def create(target, module_name):
my_module.add_depend('ege')
my_module.add_path(tools.get_current_path(__file__))
my_module.add_path(".")
my_module.copy_path("data/*")
@ -53,14 +50,8 @@ def create(target, module_name):
])
# set the package properties:
my_module.set_pkg("VERSION_CODE", "0")
my_module.set_pkg("COMPAGNY_TYPE", get_compagny_type())
my_module.set_pkg("COMPAGNY_NAME", get_compagny_name())
my_module.set_pkg("MAINTAINER", get_maintainer())
my_module.set_pkg("SECTION", ["Game"])
my_module.set_pkg("PRIORITY", "optional")
my_module.set_pkg("DESCRIPTION", get_desc())
my_module.set_pkg("NAME", get_name())
return my_module
return True

View File

@ -1,7 +1,6 @@
#!/usr/bin/python
import lutin.module as module
import lutin.debug as debug
import lutin.tools as tools
import datetime
def get_type():
@ -31,9 +30,7 @@ def get_maintainer():
def get_version():
return [0,1]
def create(target, module_name):
# module name is 'edn' and type binary.
my_module = module.Module(__file__, module_name, get_type())
def configure(target, my_module):
my_module.add_src_file([
'appl/debug.cpp',
@ -43,7 +40,7 @@ def create(target, module_name):
my_module.add_depend('ege')
my_module.add_path(tools.get_current_path(__file__))
my_module.add_path(".")
my_module.copy_path("data/*")
@ -53,13 +50,7 @@ def create(target, module_name):
])
# set the package properties:
my_module.set_pkg("VERSION_CODE", "0")
my_module.set_pkg("COMPAGNY_TYPE", get_compagny_type())
my_module.set_pkg("COMPAGNY_NAME", get_compagny_name())
my_module.set_pkg("MAINTAINER", get_maintainer())
my_module.set_pkg("SECTION", ["Development"])
my_module.set_pkg("PRIORITY", "optional")
my_module.set_pkg("DESCRIPTION", get_desc())
my_module.set_pkg("NAME", get_name())
return my_module
return True