diff --git a/lutin_ege.py b/lutin_ege.py index 8d9c826..7d34eb2 100644 --- a/lutin_ege.py +++ b/lutin_ege.py @@ -1,5 +1,5 @@ #!/usr/bin/python -import lutin.module as module +import lutin.debug as debug import lutin.tools as tools @@ -24,89 +24,88 @@ 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', - 'ege/AudioEngine.cpp', - 'ege/camera/Camera.cpp', - 'ege/camera/View.cpp', - 'ege/camera/FPS.cpp', - 'ege/CollisionShapeCreator.cpp', - 'ege/physics/Engine.cpp', - 'ege/elements/Element.cpp', - 'ege/elements/ElementBase.cpp', - 'ege/elements/ElementPhysic.cpp', - 'ege/Particule.cpp', - 'ege/ParticuleEngine.cpp', - 'ege/ParticuleSimple.cpp', - 'ege/widget/Mesh.cpp', - 'ege/widget/Scene.cpp', - 'ege/Environement.cpp', - 'ege/resource/Mesh.cpp', - 'ege/resource/MeshEmf.cpp', - 'ege/resource/MeshGird.cpp', - 'ege/resource/MeshCube.cpp', - 'ege/resource/MeshObj.cpp', - 'ege/resource/ParticuleMesh.cpp', - 'ege/resource/tools/icoSphere.cpp', - 'ege/resource/tools/isoSphere.cpp', - 'ege/resource/tools/viewBox.cpp', - 'ege/Light.cpp', - 'ege/Material.cpp', - 'ege/physicsShape/PhysicsShape.cpp', - 'ege/physicsShape/PhysicsBox.cpp', - 'ege/physicsShape/PhysicsCapsule.cpp', - 'ege/physicsShape/PhysicsCone.cpp', - 'ege/physicsShape/PhysicsConvexHull.cpp', - 'ege/physicsShape/PhysicsCylinder.cpp', - 'ege/physicsShape/PhysicsSphere.cpp', - 'ege/Ray.cpp', - ]) + 'ege/debug.cpp', + 'ege/AudioElement.cpp', + 'ege/AudioEngine.cpp', + 'ege/camera/Camera.cpp', + 'ege/camera/View.cpp', + 'ege/camera/FPS.cpp', + 'ege/CollisionShapeCreator.cpp', + 'ege/physics/Engine.cpp', + 'ege/elements/Element.cpp', + 'ege/elements/ElementBase.cpp', + 'ege/elements/ElementPhysic.cpp', + 'ege/Particule.cpp', + 'ege/ParticuleEngine.cpp', + 'ege/ParticuleSimple.cpp', + 'ege/widget/Mesh.cpp', + 'ege/widget/Scene.cpp', + 'ege/Environement.cpp', + 'ege/resource/Mesh.cpp', + 'ege/resource/MeshEmf.cpp', + 'ege/resource/MeshGird.cpp', + 'ege/resource/MeshCube.cpp', + 'ege/resource/MeshObj.cpp', + 'ege/resource/ParticuleMesh.cpp', + 'ege/resource/tools/icoSphere.cpp', + 'ege/resource/tools/isoSphere.cpp', + 'ege/resource/tools/viewBox.cpp', + 'ege/Light.cpp', + 'ege/Material.cpp', + 'ege/physicsShape/PhysicsShape.cpp', + 'ege/physicsShape/PhysicsBox.cpp', + 'ege/physicsShape/PhysicsCapsule.cpp', + 'ege/physicsShape/PhysicsCone.cpp', + 'ege/physicsShape/PhysicsConvexHull.cpp', + 'ege/physicsShape/PhysicsCylinder.cpp', + 'ege/physicsShape/PhysicsSphere.cpp', + 'ege/Ray.cpp', + ]) my_module.copy_path('data/ParticuleMesh.*') my_module.add_depend(['ewol', 'bullet-physics']) my_module.add_flag('c++', [ - '-Wno-write-strings', - '-Wmissing-field-initializers', - '-Wall']) + '-Wno-write-strings', + '-Wmissing-field-initializers', + '-Wall']) my_module.add_header_file([ - 'ege/debug.hpp', - 'ege/AudioElement.hpp', - 'ege/AudioEngine.hpp', - 'ege/camera/Camera.hpp', - 'ege/camera/View.hpp', - 'ege/camera/FPS.hpp', - 'ege/CollisionShapeCreator.hpp', - 'ege/physics/Engine.hpp', - 'ege/elements/Element.hpp', - 'ege/elements/ElementBase.hpp', - 'ege/elements/ElementPhysic.hpp', - 'ege/Particule.hpp', - 'ege/ParticuleEngine.hpp', - 'ege/ParticuleSimple.hpp', - 'ege/widget/Mesh.hpp', - 'ege/widget/Scene.hpp', - 'ege/Environement.hpp', - 'ege/resource/Mesh.hpp', - 'ege/resource/ParticuleMesh.hpp', - 'ege/resource/tools/icoSphere.hpp', - 'ege/resource/tools/isoSphere.hpp', - 'ege/resource/tools/viewBox.hpp', - 'ege/resource/tools/Face.hpp', - 'ege/resource/tools/FaceIndexing.hpp', - 'ege/Light.hpp', - 'ege/Material.hpp', - 'ege/physicsShape/PhysicsShape.hpp', - 'ege/physicsShape/PhysicsBox.hpp', - 'ege/physicsShape/PhysicsCapsule.hpp', - 'ege/physicsShape/PhysicsCone.hpp', - 'ege/physicsShape/PhysicsConvexHull.hpp', - 'ege/physicsShape/PhysicsCylinder.hpp', - 'ege/physicsShape/PhysicsSphere.hpp', - 'ege/Ray.hpp', - ]) - my_module.add_path(tools.get_current_path(__file__)) - return my_module + 'ege/debug.hpp', + 'ege/AudioElement.hpp', + 'ege/AudioEngine.hpp', + 'ege/camera/Camera.hpp', + 'ege/camera/View.hpp', + 'ege/camera/FPS.hpp', + 'ege/CollisionShapeCreator.hpp', + 'ege/physics/Engine.hpp', + 'ege/elements/Element.hpp', + 'ege/elements/ElementBase.hpp', + 'ege/elements/ElementPhysic.hpp', + 'ege/Particule.hpp', + 'ege/ParticuleEngine.hpp', + 'ege/ParticuleSimple.hpp', + 'ege/widget/Mesh.hpp', + 'ege/widget/Scene.hpp', + 'ege/Environement.hpp', + 'ege/resource/Mesh.hpp', + 'ege/resource/ParticuleMesh.hpp', + 'ege/resource/tools/icoSphere.hpp', + 'ege/resource/tools/isoSphere.hpp', + 'ege/resource/tools/viewBox.hpp', + 'ege/resource/tools/Face.hpp', + 'ege/resource/tools/FaceIndexing.hpp', + 'ege/Light.hpp', + 'ege/Material.hpp', + 'ege/physicsShape/PhysicsShape.hpp', + 'ege/physicsShape/PhysicsBox.hpp', + 'ege/physicsShape/PhysicsCapsule.hpp', + 'ege/physicsShape/PhysicsCone.hpp', + 'ege/physicsShape/PhysicsConvexHull.hpp', + 'ege/physicsShape/PhysicsCylinder.hpp', + 'ege/physicsShape/PhysicsSphere.hpp', + 'ege/Ray.hpp', + ]) + my_module.add_path(".") + return True diff --git a/sample/CameraPosition/lutin_ege-sample-camera-position.py b/sample/CameraPosition/lutin_ege-sample-camera-position.py index f0b7e0e..1da9f2e 100644 --- a/sample/CameraPosition/lutin_ege-sample-camera-position.py +++ b/sample/CameraPosition/lutin_ege-sample-camera-position.py @@ -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,35 +30,27 @@ 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', - 'appl/main.cpp', - 'appl/Windows.cpp' - ]) + 'appl/debug.cpp', + 'appl/main.cpp', + 'appl/Windows.cpp' + ]) 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.add_flag('c++', [ - "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", - "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" - ]) + "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", + "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" + ]) # 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 diff --git a/sample/Collision/lutin_ege-sample-collision.py b/sample/Collision/lutin_ege-sample-collision.py index 0aa64aa..dbdc23c 100644 --- a/sample/Collision/lutin_ege-sample-collision.py +++ b/sample/Collision/lutin_ege-sample-collision.py @@ -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,37 +30,28 @@ 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', - 'appl/main.cpp', - 'appl/Windows.cpp' - ]) + 'appl/debug.cpp', + 'appl/main.cpp', + 'appl/Windows.cpp' + ]) 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.add_flag('c++', [ - "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", - "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" - ]) + "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", + "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" + ]) # 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 diff --git a/sample/DoubleView/lutin_ege-sample-double-view.py b/sample/DoubleView/lutin_ege-sample-double-view.py index 8eac5ec..8f0880f 100644 --- a/sample/DoubleView/lutin_ege-sample-double-view.py +++ b/sample/DoubleView/lutin_ege-sample-double-view.py @@ -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,37 +30,28 @@ 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', - 'appl/main.cpp', - 'appl/Windows.cpp' - ]) + 'appl/debug.cpp', + 'appl/main.cpp', + 'appl/Windows.cpp' + ]) 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.add_flag('c++', [ - "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", - "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" - ]) + "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", + "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" + ]) # 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 diff --git a/sample/MeshCreator/lutin_ege-sample-mesh-creator.py b/sample/MeshCreator/lutin_ege-sample-mesh-creator.py index 833ef19..77e94c7 100644 --- a/sample/MeshCreator/lutin_ege-sample-mesh-creator.py +++ b/sample/MeshCreator/lutin_ege-sample-mesh-creator.py @@ -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,36 +30,28 @@ 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', - 'appl/main.cpp', - 'appl/Windows.cpp' - ]) + 'appl/debug.cpp', + 'appl/main.cpp', + 'appl/Windows.cpp' + ]) 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.add_flag('c++', [ - "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", - "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" - ]) + "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", + "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" + ]) # 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 diff --git a/sample/RayTest/lutin_ege-sample-raytracing.py b/sample/RayTest/lutin_ege-sample-raytracing.py index 8fecb30..d6b0831 100644 --- a/sample/RayTest/lutin_ege-sample-raytracing.py +++ b/sample/RayTest/lutin_ege-sample-raytracing.py @@ -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,35 +30,27 @@ 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', - 'appl/main.cpp', - 'appl/Windows.cpp' - ]) + 'appl/debug.cpp', + 'appl/main.cpp', + 'appl/Windows.cpp' + ]) 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.add_flag('c++', [ - "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", - "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" - ]) + "-DPROJECT_NAME=\"\\\"" + my_module.get_name() + "\\\"\"", + "-DAPPL_VERSION=\"\\\"" + tools.version_to_string(get_version()) + "\\\"\"" + ]) # 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