From 14e5318286e8272d64f32a9445e3146405b1130a 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_gale.py | 44 ++++++++++++++++++------------- sample/lutin_gale-sample-basic.py | 25 +++++++++++++++--- 2 files changed, 46 insertions(+), 23 deletions(-) diff --git a/lutin_gale.py b/lutin_gale.py index 4a7bb1a..ebaa101 100644 --- a/lutin_gale.py +++ b/lutin_gale.py @@ -5,17 +5,30 @@ import lutin.debug as debug import os import lutin.multiprocess as lutinMultiprocess + +def get_type(): + return "LIBRARY" + def get_desc(): return "gale is a main library to use widget in the openGl environement and manage all the wraping os" -def get_license(): - return "APACHE v2.0" +def get_licence(): + return "APACHE-2" -def create(target): - # module name is 'edn' and type binary. - my_module = module.Module(__file__, 'gale', 'LIBRARY') - - # add extra compilation flags : +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_extra_compile_flags() # add the file to compile: my_module.add_src_file([ @@ -34,8 +47,7 @@ def create(target): 'gale/Application.h', 'gale/Thread.h', ]) - - # context : + # context: my_module.add_src_file([ 'gale/context/clipBoard.cpp', 'gale/context/commandLine.cpp', @@ -83,8 +95,7 @@ def create(target): 'gale/context/IOs/AppDelegate.mm']) else: debug.error("unknow mode...") - - # Key properties : + # Key properties: my_module.add_src_file([ 'gale/key/keyboard.cpp', 'gale/key/Special.cpp', @@ -98,8 +109,7 @@ def create(target): 'gale/key/type.h', 'gale/key/key.h' ]) - - # OpenGL interface : + # OpenGL interface: my_module.add_src_file([ 'gale/renderer/openGL/openGL.cpp' ]) @@ -107,8 +117,7 @@ def create(target): 'gale/renderer/openGL/openGL.h', 'gale/renderer/openGL/openGL-include.h' ]) - - # resources : + # resources: my_module.add_src_file([ 'gale/resource/Manager.cpp', 'gale/resource/Program.cpp', @@ -125,12 +134,9 @@ def create(target): 'gale/resource/Texture.h', 'gale/resource/VirtualBufferObject.h' ]) - - # name of the dependency my_module.add_module_depend(['etk']) - my_module.add_path(tools.get_current_path(__file__)) - + tagFile = tools.get_current_path(__file__) + "/tag" galeVersionID = tools.file_read_data(tagFile) my_module.compile_flags('c++', [ diff --git a/sample/lutin_gale-sample-basic.py b/sample/lutin_gale-sample-basic.py index d3f009c..53a6c38 100644 --- a/sample/lutin_gale-sample-basic.py +++ b/sample/lutin_gale-sample-basic.py @@ -2,16 +2,33 @@ import lutin.module as module import lutin.tools as tools + +def get_type(): + return "BINARY" + +def get_sub_type(): + return "SAMPLE" + def get_desc(): return "Simple windows with gale" -def create(target): - my_module = module.Module(__file__, 'gale-sample-basic', 'BINARY') - # add the file to compile: +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): + my_module = module.Module(__file__, module_name, get_type()) my_module.add_src_file([ 'basic.cpp' ]) - # add dependency of gale my_module.add_module_depend(['gale']) my_module.copy_file('basic.frag') my_module.copy_file('basic.vert')