[DEV] update new lutin 0.8.0
This commit is contained in:
parent
46bd1eac16
commit
14e5318286
@ -5,17 +5,30 @@ import lutin.debug as debug
|
|||||||
import os
|
import os
|
||||||
import lutin.multiprocess as lutinMultiprocess
|
import lutin.multiprocess as lutinMultiprocess
|
||||||
|
|
||||||
|
|
||||||
|
def get_type():
|
||||||
|
return "LIBRARY"
|
||||||
|
|
||||||
def get_desc():
|
def get_desc():
|
||||||
return "gale is a main library to use widget in the openGl environement and manage all the wraping os"
|
return "gale is a main library to use widget in the openGl environement and manage all the wraping os"
|
||||||
|
|
||||||
def get_license():
|
def get_licence():
|
||||||
return "APACHE v2.0"
|
return "APACHE-2"
|
||||||
|
|
||||||
def create(target):
|
def get_compagny_type():
|
||||||
# module name is 'edn' and type binary.
|
return "com"
|
||||||
my_module = module.Module(__file__, 'gale', 'LIBRARY')
|
|
||||||
|
def get_compagny_name():
|
||||||
# add extra compilation flags :
|
return "atria-soft"
|
||||||
|
|
||||||
|
def get_maintainer():
|
||||||
|
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
||||||
|
|
||||||
|
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()
|
my_module.add_extra_compile_flags()
|
||||||
# add the file to compile:
|
# add the file to compile:
|
||||||
my_module.add_src_file([
|
my_module.add_src_file([
|
||||||
@ -34,8 +47,7 @@ def create(target):
|
|||||||
'gale/Application.h',
|
'gale/Application.h',
|
||||||
'gale/Thread.h',
|
'gale/Thread.h',
|
||||||
])
|
])
|
||||||
|
# context:
|
||||||
# context :
|
|
||||||
my_module.add_src_file([
|
my_module.add_src_file([
|
||||||
'gale/context/clipBoard.cpp',
|
'gale/context/clipBoard.cpp',
|
||||||
'gale/context/commandLine.cpp',
|
'gale/context/commandLine.cpp',
|
||||||
@ -83,8 +95,7 @@ def create(target):
|
|||||||
'gale/context/IOs/AppDelegate.mm'])
|
'gale/context/IOs/AppDelegate.mm'])
|
||||||
else:
|
else:
|
||||||
debug.error("unknow mode...")
|
debug.error("unknow mode...")
|
||||||
|
# Key properties:
|
||||||
# Key properties :
|
|
||||||
my_module.add_src_file([
|
my_module.add_src_file([
|
||||||
'gale/key/keyboard.cpp',
|
'gale/key/keyboard.cpp',
|
||||||
'gale/key/Special.cpp',
|
'gale/key/Special.cpp',
|
||||||
@ -98,8 +109,7 @@ def create(target):
|
|||||||
'gale/key/type.h',
|
'gale/key/type.h',
|
||||||
'gale/key/key.h'
|
'gale/key/key.h'
|
||||||
])
|
])
|
||||||
|
# OpenGL interface:
|
||||||
# OpenGL interface :
|
|
||||||
my_module.add_src_file([
|
my_module.add_src_file([
|
||||||
'gale/renderer/openGL/openGL.cpp'
|
'gale/renderer/openGL/openGL.cpp'
|
||||||
])
|
])
|
||||||
@ -107,8 +117,7 @@ def create(target):
|
|||||||
'gale/renderer/openGL/openGL.h',
|
'gale/renderer/openGL/openGL.h',
|
||||||
'gale/renderer/openGL/openGL-include.h'
|
'gale/renderer/openGL/openGL-include.h'
|
||||||
])
|
])
|
||||||
|
# resources:
|
||||||
# resources :
|
|
||||||
my_module.add_src_file([
|
my_module.add_src_file([
|
||||||
'gale/resource/Manager.cpp',
|
'gale/resource/Manager.cpp',
|
||||||
'gale/resource/Program.cpp',
|
'gale/resource/Program.cpp',
|
||||||
@ -125,12 +134,9 @@ def create(target):
|
|||||||
'gale/resource/Texture.h',
|
'gale/resource/Texture.h',
|
||||||
'gale/resource/VirtualBufferObject.h'
|
'gale/resource/VirtualBufferObject.h'
|
||||||
])
|
])
|
||||||
|
|
||||||
# name of the dependency
|
|
||||||
my_module.add_module_depend(['etk'])
|
my_module.add_module_depend(['etk'])
|
||||||
|
|
||||||
my_module.add_path(tools.get_current_path(__file__))
|
my_module.add_path(tools.get_current_path(__file__))
|
||||||
|
|
||||||
tagFile = tools.get_current_path(__file__) + "/tag"
|
tagFile = tools.get_current_path(__file__) + "/tag"
|
||||||
galeVersionID = tools.file_read_data(tagFile)
|
galeVersionID = tools.file_read_data(tagFile)
|
||||||
my_module.compile_flags('c++', [
|
my_module.compile_flags('c++', [
|
||||||
|
@ -2,16 +2,33 @@
|
|||||||
import lutin.module as module
|
import lutin.module as module
|
||||||
import lutin.tools as tools
|
import lutin.tools as tools
|
||||||
|
|
||||||
|
|
||||||
|
def get_type():
|
||||||
|
return "BINARY"
|
||||||
|
|
||||||
|
def get_sub_type():
|
||||||
|
return "SAMPLE"
|
||||||
|
|
||||||
def get_desc():
|
def get_desc():
|
||||||
return "Simple windows with gale"
|
return "Simple windows with gale"
|
||||||
|
|
||||||
def create(target):
|
def get_licence():
|
||||||
my_module = module.Module(__file__, 'gale-sample-basic', 'BINARY')
|
return "APACHE-2"
|
||||||
# add the file to compile:
|
|
||||||
|
def get_compagny_type():
|
||||||
|
return "com"
|
||||||
|
|
||||||
|
def get_compagny_name():
|
||||||
|
return "atria-soft"
|
||||||
|
|
||||||
|
def get_maintainer():
|
||||||
|
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
|
||||||
|
|
||||||
|
def create(target, module_name):
|
||||||
|
my_module = module.Module(__file__, module_name, get_type())
|
||||||
my_module.add_src_file([
|
my_module.add_src_file([
|
||||||
'basic.cpp'
|
'basic.cpp'
|
||||||
])
|
])
|
||||||
# add dependency of gale
|
|
||||||
my_module.add_module_depend(['gale'])
|
my_module.add_module_depend(['gale'])
|
||||||
my_module.copy_file('basic.frag')
|
my_module.copy_file('basic.frag')
|
||||||
my_module.copy_file('basic.vert')
|
my_module.copy_file('basic.vert')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user