[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 #!/usr/bin/python
import lutin.module as module import lutin.debug as debug
import lutin.tools as tools import lutin.tools as tools
@ -24,89 +24,88 @@ 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_src_file([ my_module.add_src_file([
'ege/debug.cpp', 'ege/debug.cpp',
'ege/AudioElement.cpp', 'ege/AudioElement.cpp',
'ege/AudioEngine.cpp', 'ege/AudioEngine.cpp',
'ege/camera/Camera.cpp', 'ege/camera/Camera.cpp',
'ege/camera/View.cpp', 'ege/camera/View.cpp',
'ege/camera/FPS.cpp', 'ege/camera/FPS.cpp',
'ege/CollisionShapeCreator.cpp', 'ege/CollisionShapeCreator.cpp',
'ege/physics/Engine.cpp', 'ege/physics/Engine.cpp',
'ege/elements/Element.cpp', 'ege/elements/Element.cpp',
'ege/elements/ElementBase.cpp', 'ege/elements/ElementBase.cpp',
'ege/elements/ElementPhysic.cpp', 'ege/elements/ElementPhysic.cpp',
'ege/Particule.cpp', 'ege/Particule.cpp',
'ege/ParticuleEngine.cpp', 'ege/ParticuleEngine.cpp',
'ege/ParticuleSimple.cpp', 'ege/ParticuleSimple.cpp',
'ege/widget/Mesh.cpp', 'ege/widget/Mesh.cpp',
'ege/widget/Scene.cpp', 'ege/widget/Scene.cpp',
'ege/Environement.cpp', 'ege/Environement.cpp',
'ege/resource/Mesh.cpp', 'ege/resource/Mesh.cpp',
'ege/resource/MeshEmf.cpp', 'ege/resource/MeshEmf.cpp',
'ege/resource/MeshGird.cpp', 'ege/resource/MeshGird.cpp',
'ege/resource/MeshCube.cpp', 'ege/resource/MeshCube.cpp',
'ege/resource/MeshObj.cpp', 'ege/resource/MeshObj.cpp',
'ege/resource/ParticuleMesh.cpp', 'ege/resource/ParticuleMesh.cpp',
'ege/resource/tools/icoSphere.cpp', 'ege/resource/tools/icoSphere.cpp',
'ege/resource/tools/isoSphere.cpp', 'ege/resource/tools/isoSphere.cpp',
'ege/resource/tools/viewBox.cpp', 'ege/resource/tools/viewBox.cpp',
'ege/Light.cpp', 'ege/Light.cpp',
'ege/Material.cpp', 'ege/Material.cpp',
'ege/physicsShape/PhysicsShape.cpp', 'ege/physicsShape/PhysicsShape.cpp',
'ege/physicsShape/PhysicsBox.cpp', 'ege/physicsShape/PhysicsBox.cpp',
'ege/physicsShape/PhysicsCapsule.cpp', 'ege/physicsShape/PhysicsCapsule.cpp',
'ege/physicsShape/PhysicsCone.cpp', 'ege/physicsShape/PhysicsCone.cpp',
'ege/physicsShape/PhysicsConvexHull.cpp', 'ege/physicsShape/PhysicsConvexHull.cpp',
'ege/physicsShape/PhysicsCylinder.cpp', 'ege/physicsShape/PhysicsCylinder.cpp',
'ege/physicsShape/PhysicsSphere.cpp', 'ege/physicsShape/PhysicsSphere.cpp',
'ege/Ray.cpp', 'ege/Ray.cpp',
]) ])
my_module.copy_path('data/ParticuleMesh.*') my_module.copy_path('data/ParticuleMesh.*')
my_module.add_depend(['ewol', 'bullet-physics']) my_module.add_depend(['ewol', 'bullet-physics'])
my_module.add_flag('c++', [ my_module.add_flag('c++', [
'-Wno-write-strings', '-Wno-write-strings',
'-Wmissing-field-initializers', '-Wmissing-field-initializers',
'-Wall']) '-Wall'])
my_module.add_header_file([ my_module.add_header_file([
'ege/debug.hpp', 'ege/debug.hpp',
'ege/AudioElement.hpp', 'ege/AudioElement.hpp',
'ege/AudioEngine.hpp', 'ege/AudioEngine.hpp',
'ege/camera/Camera.hpp', 'ege/camera/Camera.hpp',
'ege/camera/View.hpp', 'ege/camera/View.hpp',
'ege/camera/FPS.hpp', 'ege/camera/FPS.hpp',
'ege/CollisionShapeCreator.hpp', 'ege/CollisionShapeCreator.hpp',
'ege/physics/Engine.hpp', 'ege/physics/Engine.hpp',
'ege/elements/Element.hpp', 'ege/elements/Element.hpp',
'ege/elements/ElementBase.hpp', 'ege/elements/ElementBase.hpp',
'ege/elements/ElementPhysic.hpp', 'ege/elements/ElementPhysic.hpp',
'ege/Particule.hpp', 'ege/Particule.hpp',
'ege/ParticuleEngine.hpp', 'ege/ParticuleEngine.hpp',
'ege/ParticuleSimple.hpp', 'ege/ParticuleSimple.hpp',
'ege/widget/Mesh.hpp', 'ege/widget/Mesh.hpp',
'ege/widget/Scene.hpp', 'ege/widget/Scene.hpp',
'ege/Environement.hpp', 'ege/Environement.hpp',
'ege/resource/Mesh.hpp', 'ege/resource/Mesh.hpp',
'ege/resource/ParticuleMesh.hpp', 'ege/resource/ParticuleMesh.hpp',
'ege/resource/tools/icoSphere.hpp', 'ege/resource/tools/icoSphere.hpp',
'ege/resource/tools/isoSphere.hpp', 'ege/resource/tools/isoSphere.hpp',
'ege/resource/tools/viewBox.hpp', 'ege/resource/tools/viewBox.hpp',
'ege/resource/tools/Face.hpp', 'ege/resource/tools/Face.hpp',
'ege/resource/tools/FaceIndexing.hpp', 'ege/resource/tools/FaceIndexing.hpp',
'ege/Light.hpp', 'ege/Light.hpp',
'ege/Material.hpp', 'ege/Material.hpp',
'ege/physicsShape/PhysicsShape.hpp', 'ege/physicsShape/PhysicsShape.hpp',
'ege/physicsShape/PhysicsBox.hpp', 'ege/physicsShape/PhysicsBox.hpp',
'ege/physicsShape/PhysicsCapsule.hpp', 'ege/physicsShape/PhysicsCapsule.hpp',
'ege/physicsShape/PhysicsCone.hpp', 'ege/physicsShape/PhysicsCone.hpp',
'ege/physicsShape/PhysicsConvexHull.hpp', 'ege/physicsShape/PhysicsConvexHull.hpp',
'ege/physicsShape/PhysicsCylinder.hpp', 'ege/physicsShape/PhysicsCylinder.hpp',
'ege/physicsShape/PhysicsSphere.hpp', 'ege/physicsShape/PhysicsSphere.hpp',
'ege/Ray.hpp', 'ege/Ray.hpp',
]) ])
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(".")
return my_module return True

View File

@ -1,7 +1,6 @@
#!/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 datetime
def get_type(): def get_type():
@ -31,35 +30,27 @@ def get_maintainer():
def get_version(): def get_version():
return [0,1] return [0,1]
def create(target, module_name): def configure(target, my_module):
# module name is 'edn' and type binary.
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([ my_module.add_src_file([
'appl/debug.cpp', 'appl/debug.cpp',
'appl/main.cpp', 'appl/main.cpp',
'appl/Windows.cpp' 'appl/Windows.cpp'
]) ])
my_module.add_depend('ege') my_module.add_depend('ege')
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(".")
my_module.copy_path("data/*") my_module.copy_path("data/*")
my_module.add_flag('c++', [ my_module.add_flag('c++', [
"-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"",
"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
]) ])
# set the package properties: # 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("SECTION", ["Game"])
my_module.set_pkg("PRIORITY", "optional") my_module.set_pkg("PRIORITY", "optional")
my_module.set_pkg("DESCRIPTION", get_desc()) return True
my_module.set_pkg("NAME", get_name())
return my_module

View File

@ -1,7 +1,6 @@
#!/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 datetime
def get_type(): def get_type():
@ -31,37 +30,28 @@ def get_maintainer():
def get_version(): def get_version():
return [0,1] return [0,1]
def create(target, module_name): def configure(target, my_module):
# module name is 'edn' and type binary.
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([ my_module.add_src_file([
'appl/debug.cpp', 'appl/debug.cpp',
'appl/main.cpp', 'appl/main.cpp',
'appl/Windows.cpp' 'appl/Windows.cpp'
]) ])
my_module.add_depend('ege') my_module.add_depend('ege')
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(".")
my_module.copy_path("data/*") my_module.copy_path("data/*")
my_module.add_flag('c++', [ my_module.add_flag('c++', [
"-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"",
"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
]) ])
# set the package properties : # 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("SECTION", ["Game"])
my_module.set_pkg("PRIORITY", "optional") 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 True
return my_module

View File

@ -1,7 +1,6 @@
#!/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 datetime
def get_type(): def get_type():
@ -31,37 +30,28 @@ def get_maintainer():
def get_version(): def get_version():
return [0,1] return [0,1]
def create(target, module_name): def configure(target, my_module):
# module name is 'edn' and type binary.
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([ my_module.add_src_file([
'appl/debug.cpp', 'appl/debug.cpp',
'appl/main.cpp', 'appl/main.cpp',
'appl/Windows.cpp' 'appl/Windows.cpp'
]) ])
my_module.add_depend('ege') my_module.add_depend('ege')
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(".")
my_module.copy_path("data/*") my_module.copy_path("data/*")
my_module.add_flag('c++', [ my_module.add_flag('c++', [
"-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"",
"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
]) ])
# set the package properties: # 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("SECTION", ["Game"])
my_module.set_pkg("PRIORITY", "optional") 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 True
return my_module

View File

@ -1,7 +1,6 @@
#!/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 datetime
def get_type(): def get_type():
@ -31,36 +30,28 @@ def get_maintainer():
def get_version(): def get_version():
return [0,1] return [0,1]
def create(target, module_name): def configure(target, my_module):
# module name is 'edn' and type binary.
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([ my_module.add_src_file([
'appl/debug.cpp', 'appl/debug.cpp',
'appl/main.cpp', 'appl/main.cpp',
'appl/Windows.cpp' 'appl/Windows.cpp'
]) ])
my_module.add_depend('ege') my_module.add_depend('ege')
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(".")
my_module.copy_path("data/*") my_module.copy_path("data/*")
my_module.add_flag('c++', [ my_module.add_flag('c++', [
"-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"",
"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
]) ])
# set the package properties: # 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("SECTION", ["Game"])
my_module.set_pkg("PRIORITY", "optional") 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 #!/usr/bin/python
import lutin.module as module import lutin.debug as debug
import lutin.tools as tools import lutin.tools as tools
import datetime
def get_type(): def get_type():
@ -31,35 +30,27 @@ def get_maintainer():
def get_version(): def get_version():
return [0,1] return [0,1]
def create(target, module_name): def configure(target, my_module):
# module name is 'edn' and type binary.
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([ my_module.add_src_file([
'appl/debug.cpp', 'appl/debug.cpp',
'appl/main.cpp', 'appl/main.cpp',
'appl/Windows.cpp' 'appl/Windows.cpp'
]) ])
my_module.add_depend('ege') my_module.add_depend('ege')
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(".")
my_module.copy_path("data/*") my_module.copy_path("data/*")
my_module.add_flag('c++', [ my_module.add_flag('c++', [
"-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"",
"-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\""
]) ])
# set the package properties: # 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("SECTION", ["Development"])
my_module.set_pkg("PRIORITY", "optional") my_module.set_pkg("PRIORITY", "optional")
my_module.set_pkg("DESCRIPTION", get_desc()) return True
my_module.set_pkg("NAME", get_name())
return my_module