From 2393c4da350bf0f4c27d777a336cac04854a5ba4 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 14 Oct 2015 21:21:03 +0200 Subject: [PATCH] [DEV] update new lutin 0.8.0 --- lutin_ege.py | 71 ++++++++++++++++--- .../CameraPosition/lutin_egeCameraPosition.py | 37 +++++++--- sample/Collision/lutin_egeCollision.py | 37 +++++++--- sample/DoubleView/lutin_egeDoubleView.py | 37 +++++++--- sample/MeshCreator/lutin_egeMeshCreator.py | 37 +++++++--- sample/RayTest/lutin_egeRayTest.py | 39 +++++++--- 6 files changed, 207 insertions(+), 51 deletions(-) diff --git a/lutin_ege.py b/lutin_ege.py index 7608b82..5544941 100644 --- a/lutin_ege.py +++ b/lutin_ege.py @@ -2,13 +2,30 @@ import lutin.module as module import lutin.tools as tools -def get_desc(): - return "EGE : Ewol Game engine (based on bullet lib)" -def create(target): - # module name is 'edn' and type binary. - my_module = module.Module(__file__, 'ege', 'LIBRARY') - # add the file to compile: +def get_type(): + return "LIBRARY" + +def get_desc(): + return "Ewol Game engine (based on bullet lib)" + +def get_licence(): + return "APACHE-2" + +def get_compagny_type(): + return "com" + +def get_compagny_name(): + return "atria-soft" + +def get_maintainer(): + return ["Mr DUPIN Edouard "] + +def get_version(): + return [0,0,0] + +def create(target, module_name): + my_module = module.Module(__file__, module_name, get_type()) my_module.add_src_file([ 'ege/debug.cpp', 'ege/AudioElement.cpp', @@ -47,15 +64,49 @@ def create(target): 'ege/physicsShape/PhysicsSphere.cpp', 'ege/Ray.cpp', ]) - my_module.copy_folder('data/ParticuleMesh.*','') - # name of the dependency + my_module.copy_path('data/ParticuleMesh.*') my_module.add_module_depend(['ewol', 'bullet-physics']) my_module.compile_flags('c++', [ '-Wno-write-strings', '-Wmissing-field-initializers', '-Wall']) - my_module.add_export_path(tools.get_current_path(__file__)) - # add the currrent module at the + my_module.add_header_file([ + 'ege/debug.h', + 'ege/AudioElement.h', + 'ege/AudioEngine.h', + 'ege/camera/Camera.h', + 'ege/camera/View.h', + 'ege/camera/FPS.h', + 'ege/CollisionShapeCreator.h', + 'ege/physics/Engine.h', + 'ege/elements/Element.h', + 'ege/elements/ElementBase.h', + 'ege/elements/ElementPhysic.h', + 'ege/Particule.h', + 'ege/ParticuleEngine.h', + 'ege/ParticuleSimple.h', + 'ege/widget/Mesh.h', + 'ege/widget/Scene.h', + 'ege/Environement.h', + 'ege/resource/Mesh.h', + 'ege/resource/ParticuleMesh.h', + 'ege/resource/tools/icoSphere.h', + 'ege/resource/tools/isoSphere.h', + 'ege/resource/tools/viewBox.h', + 'ege/resource/tools/Face.h', + 'ege/resource/tools/FaceIndexing.h', + 'ege/Light.h', + 'ege/Material.h', + 'ege/physicsShape/PhysicsShape.h', + 'ege/physicsShape/PhysicsBox.h', + 'ege/physicsShape/PhysicsCapsule.h', + 'ege/physicsShape/PhysicsCone.h', + 'ege/physicsShape/PhysicsConvexHull.h', + 'ege/physicsShape/PhysicsCylinder.h', + 'ege/physicsShape/PhysicsSphere.h', + 'ege/Ray.h', + ]) + my_module.add_path(tools.get_current_path(__file__)) return my_module diff --git a/sample/CameraPosition/lutin_egeCameraPosition.py b/sample/CameraPosition/lutin_egeCameraPosition.py index d72b9f8..ddb5998 100644 --- a/sample/CameraPosition/lutin_egeCameraPosition.py +++ b/sample/CameraPosition/lutin_egeCameraPosition.py @@ -4,12 +4,33 @@ import lutin.tools as tools import datetime +def get_type(): + return "BINARY" + +def get_sub_type(): + return "SAMPLE" + +def get_name(): + return "ege-sample-CameraPosition" + def get_desc(): return "ege sample : CameraPisition" -def create(target): +def get_licence(): + return "APACHE-2" + +def get_compagny_type(): + return "com" + +def get_compagny_name(): + return "atria-soft" + +def get_maintainer(): + return ["Mr DUPIN Edouard "] + +def create(target, module_name): # module name is 'edn' and type binary. - my_module = module.Module(__file__, 'egeCameraPosition', 'PACKAGE') + my_module = module.Module(__file__, module_name, get_type()) my_module.add_src_file([ 'appl/debug.cpp', @@ -21,18 +42,18 @@ def create(target): my_module.add_path(tools.get_current_path(__file__)) - my_module.copy_folder("data/*") + my_module.copy_path("data/*") # set the package properties : my_module.pkg_set("VERSION", "0.0.0") my_module.pkg_set("VERSION_CODE", "0") - my_module.pkg_set("COMPAGNY_TYPE", "org") - my_module.pkg_set("COMPAGNY_NAME", "ege") - my_module.pkg_set("MAINTAINER", ["noOne "]) + my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type()) + my_module.pkg_set("COMPAGNY_NAME", get_compagny_name()) + my_module.pkg_set("MAINTAINER", get_maintainer()) my_module.pkg_set("SECTION", ["Game"]) my_module.pkg_set("PRIORITY", "optional") - my_module.pkg_set("DESCRIPTION", "ege sample : MeshCreator") - my_module.pkg_set("NAME", "egeMeshCreator") + my_module.pkg_set("DESCRIPTION", get_desc()) + my_module.pkg_set("NAME", get_name()) # add the currrent module at the return my_module diff --git a/sample/Collision/lutin_egeCollision.py b/sample/Collision/lutin_egeCollision.py index aa763a9..580ffbf 100644 --- a/sample/Collision/lutin_egeCollision.py +++ b/sample/Collision/lutin_egeCollision.py @@ -4,12 +4,33 @@ import lutin.tools as tools import datetime +def get_type(): + return "BINARY" + +def get_sub_type(): + return "SAMPLE" + +def get_name(): + return "ege-sample-collision" + def get_desc(): return "ege sample : Collision" -def create(target): +def get_licence(): + return "APACHE-2" + +def get_compagny_type(): + return "com" + +def get_compagny_name(): + return "atria-soft" + +def get_maintainer(): + return ["Mr DUPIN Edouard "] + +def create(target, module_name): # module name is 'edn' and type binary. - my_module = module.Module(__file__, 'egeCollision', 'PACKAGE') + my_module = module.Module(__file__, module_name, get_type()) my_module.add_src_file([ 'appl/debug.cpp', @@ -21,18 +42,18 @@ def create(target): my_module.add_path(tools.get_current_path(__file__)) - my_module.copy_folder("data/*") + my_module.copy_path("data/*") # set the package properties : my_module.pkg_set("VERSION", "0.0.0") my_module.pkg_set("VERSION_CODE", "0") - my_module.pkg_set("COMPAGNY_TYPE", "org") - my_module.pkg_set("COMPAGNY_NAME", "ege") - my_module.pkg_set("MAINTAINER", ["noOne "]) + my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type()) + my_module.pkg_set("COMPAGNY_NAME", get_compagny_name()) + my_module.pkg_set("MAINTAINER", get_maintainer()) my_module.pkg_set("SECTION", ["Game"]) my_module.pkg_set("PRIORITY", "optional") - my_module.pkg_set("DESCRIPTION", "ege sample : Collision") - my_module.pkg_set("NAME", "Collision") + my_module.pkg_set("DESCRIPTION", get_desc()) + my_module.pkg_set("NAME", get_name()) # add the currrent module at the return my_module diff --git a/sample/DoubleView/lutin_egeDoubleView.py b/sample/DoubleView/lutin_egeDoubleView.py index e48c14d..71bdddd 100644 --- a/sample/DoubleView/lutin_egeDoubleView.py +++ b/sample/DoubleView/lutin_egeDoubleView.py @@ -4,12 +4,33 @@ import lutin.tools as tools import datetime +def get_type(): + return "BINARY" + +def get_sub_type(): + return "SAMPLE" + +def get_name(): + return "ege-sample-DoubleView" + def get_desc(): return "ege sample : DoubleView" -def create(target): +def get_licence(): + return "APACHE-2" + +def get_compagny_type(): + return "com" + +def get_compagny_name(): + return "atria-soft" + +def get_maintainer(): + return ["Mr DUPIN Edouard "] + +def create(target, module_name): # module name is 'edn' and type binary. - my_module = module.Module(__file__, 'egeDoubleView', 'PACKAGE') + my_module = module.Module(__file__, module_name, get_type()) my_module.add_src_file([ 'appl/debug.cpp', @@ -21,18 +42,18 @@ def create(target): my_module.add_path(tools.get_current_path(__file__)) - my_module.copy_folder("data/*") + my_module.copy_path("data/*") # set the package properties : my_module.pkg_set("VERSION", "0.0.0") my_module.pkg_set("VERSION_CODE", "0") - my_module.pkg_set("COMPAGNY_TYPE", "org") - my_module.pkg_set("COMPAGNY_NAME", "ege") - my_module.pkg_set("MAINTAINER", ["noOne "]) + my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type()) + my_module.pkg_set("COMPAGNY_NAME", get_compagny_name()) + my_module.pkg_set("MAINTAINER", get_maintainer()) my_module.pkg_set("SECTION", ["Game"]) my_module.pkg_set("PRIORITY", "optional") - my_module.pkg_set("DESCRIPTION", "ege sample : DoubleView") - my_module.pkg_set("NAME", "egeDoubleView") + my_module.pkg_set("DESCRIPTION", get_desc()) + my_module.pkg_set("NAME", get_name()) # add the currrent module at the return my_module diff --git a/sample/MeshCreator/lutin_egeMeshCreator.py b/sample/MeshCreator/lutin_egeMeshCreator.py index b8da08c..e69ec0f 100644 --- a/sample/MeshCreator/lutin_egeMeshCreator.py +++ b/sample/MeshCreator/lutin_egeMeshCreator.py @@ -4,12 +4,33 @@ import lutin.tools as tools import datetime +def get_type(): + return "BINARY" + +def get_sub_type(): + return "TOOLS" + +def get_name(): + return "ege-sample-MeshCreator" + def get_desc(): return "ege sample : MeshCreator" -def create(target): +def get_licence(): + return "APACHE-2" + +def get_compagny_type(): + return "com" + +def get_compagny_name(): + return "atria-soft" + +def get_maintainer(): + return ["Mr DUPIN Edouard "] + +def create(target, module_name): # module name is 'edn' and type binary. - my_module = module.Module(__file__, 'egeMeshCreator', 'PACKAGE') + my_module = module.Module(__file__, module_name, get_type()) my_module.add_src_file([ 'appl/debug.cpp', @@ -21,18 +42,18 @@ def create(target): my_module.add_path(tools.get_current_path(__file__)) - my_module.copy_folder("data/*") + my_module.copy_path("data/*") # set the package properties : my_module.pkg_set("VERSION", "0.0.0") my_module.pkg_set("VERSION_CODE", "0") - my_module.pkg_set("COMPAGNY_TYPE", "org") - my_module.pkg_set("COMPAGNY_NAME", "ege") - my_module.pkg_set("MAINTAINER", ["noOne "]) + my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type()) + my_module.pkg_set("COMPAGNY_NAME", get_compagny_name()) + my_module.pkg_set("MAINTAINER", get_maintainer()) my_module.pkg_set("SECTION", ["Game"]) my_module.pkg_set("PRIORITY", "optional") - my_module.pkg_set("DESCRIPTION", "ege sample : MeshCreator") - my_module.pkg_set("NAME", "egeMeshCreator") + my_module.pkg_set("DESCRIPTION", get_desc()) + my_module.pkg_set("NAME", get_name()) # add the currrent module at the return my_module diff --git a/sample/RayTest/lutin_egeRayTest.py b/sample/RayTest/lutin_egeRayTest.py index a8dce9d..28eef6e 100644 --- a/sample/RayTest/lutin_egeRayTest.py +++ b/sample/RayTest/lutin_egeRayTest.py @@ -4,12 +4,33 @@ import lutin.tools as tools import datetime +def get_type(): + return "BINARY" + +def get_sub_type(): + return "TEST" + +def get_name(): + return "ege-test-ray" + def get_desc(): return "ege sample : RayTest" -def create(target): +def get_licence(): + return "APACHE-2" + +def get_compagny_type(): + return "com" + +def get_compagny_name(): + return "atria-soft" + +def get_maintainer(): + return ["Mr DUPIN Edouard "] + +def create(target, module_name): # module name is 'edn' and type binary. - my_module = module.Module(__file__, 'egeRayTest', 'PACKAGE') + my_module = module.Module(__file__, module_name, get_type()) my_module.add_src_file([ 'appl/debug.cpp', @@ -21,18 +42,18 @@ def create(target): my_module.add_path(tools.get_current_path(__file__)) - my_module.copy_folder("data/*") + my_module.copy_path("data/*") # set the package properties : my_module.pkg_set("VERSION", "0.0.0") my_module.pkg_set("VERSION_CODE", "0") - my_module.pkg_set("COMPAGNY_TYPE", "org") - my_module.pkg_set("COMPAGNY_NAME", "ege") - my_module.pkg_set("MAINTAINER", ["noOne "]) - my_module.pkg_set("SECTION", ["Game"]) + my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type()) + my_module.pkg_set("COMPAGNY_NAME", get_compagny_name()) + my_module.pkg_set("MAINTAINER", get_maintainer()) + my_module.pkg_set("SECTION", ["Development"]) my_module.pkg_set("PRIORITY", "optional") - my_module.pkg_set("DESCRIPTION", "ege sample : Ray test") - my_module.pkg_set("NAME", "egeRayTest") + my_module.pkg_set("DESCRIPTION", get_desc()) + my_module.pkg_set("NAME", get_name()) # add the currrent module at the return my_module