[DEV] update new lutin 0.8.0

This commit is contained in:
Edouard DUPIN 2015-10-14 21:21:03 +02:00
parent 6d8c375365
commit 82996f07b8
4 changed files with 96 additions and 44 deletions

View File

@ -5,15 +5,31 @@ 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 "ewol is a main library to use widget in the openGl environement and manage all the wraping os" return "ewol 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():
return "com"
def get_compagny_name():
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):
# module name is 'edn' and type binary. # module name is 'edn' and type binary.
my_module = module.Module(__file__, 'ewol', 'LIBRARY') my_module = module.Module(__file__, module_name, get_type())
# add extra compilation flags: # add extra compilation flags:
my_module.add_extra_compile_flags() my_module.add_extra_compile_flags()
@ -238,7 +254,7 @@ def create(target):
my_module.add_module_depend(['etk', 'gale', 'freetype', 'exml', 'ejson', 'egami', 'edtaa3']) my_module.add_module_depend(['etk', 'gale', 'freetype', 'exml', 'ejson', 'egami', 'edtaa3'])
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"
ewolVersionID = tools.file_read_data(tagFile) ewolVersionID = tools.file_read_data(tagFile)
my_module.compile_flags('c++', [ my_module.compile_flags('c++', [

View File

@ -2,29 +2,41 @@
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"
# optionnal : Describe in the "lutin.py --help"
def get_desc(): def get_desc():
return "Tutorial 001 : Hello Word" return "Tutorial 001 : Hello Word"
# Module creation instance (not optionnal) def get_licence():
def create(target): return "APACHE-2"
# module name is '001_HelloWord' and type binary.
my_module = module.Module(__file__, '001_HelloWord', 'BINARY') def get_compagny_type():
# add the file to compile: return "com"
def get_compagny_name():
return "atria-soft"
def get_maintainer():
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
def get_version():
return [0,1]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([ my_module.add_src_file([
'appl/Main.cpp', 'appl/Main.cpp',
'appl/debug.cpp', 'appl/debug.cpp',
'appl/Windows.cpp', 'appl/Windows.cpp',
]) ])
# add Library dependency name
my_module.add_module_depend(['ewol']) my_module.add_module_depend(['ewol'])
# add application C flags
my_module.compile_flags('c++', [ my_module.compile_flags('c++', [
"-DPROJECT_NAME=\"\\\""+my_module.name+"\\\"\""]) "-DPROJECT_NAME=\"\\\""+my_module.name+"\\\"\""])
# Add current include Path
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(tools.get_current_path(__file__))
# return the created module
return my_module return my_module

View File

@ -2,31 +2,42 @@
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"
# optionnal : Describe in the "lutin.py --help"
def get_desc(): def get_desc():
return "Tutorial 0XX : Create custom Widget" return "Tutorial 0XX : Create costum Widget"
# Module creation instance (not optionnal) def get_licence():
def create(target): return "APACHE-2"
# module name is '001_HelloWord' and type binary.
my_module = module.Module(__file__, '0XX_customwidget', 'BINARY') def get_compagny_type():
# add the file to compile: return "com"
def get_compagny_name():
return "atria-soft"
def get_maintainer():
return ["Mr DUPIN Edouard <yui.heero@gmail.com>"]
def get_version():
return [0,1]
def create(target, module_name):
my_module = module.Module(__file__, module_name, get_type())
my_module.add_src_file([ my_module.add_src_file([
'appl/Main.cpp', 'appl/Main.cpp',
'appl/debug.cpp', 'appl/debug.cpp',
'appl/Windows.cpp', 'appl/Windows.cpp',
'appl/widget/VectorDisplay.cpp', 'appl/widget/VectorDisplay.cpp',
]) ])
# add Library dependency name
my_module.add_module_depend(['ewol']) my_module.add_module_depend(['ewol'])
# add application C flags
my_module.compile_flags('c++', [ my_module.compile_flags('c++', [
"-DPROJECT_NAME=\"\\\""+my_module.name+"\\\"\""]) "-DPROJECT_NAME=\"\\\""+my_module.name+"\\\"\""])
# Add current include Path
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(tools.get_current_path(__file__))
# return the created module
return my_module return my_module

View File

@ -3,44 +3,57 @@ import lutin.module as module
import lutin.tools as tools import lutin.tools as tools
import datetime import datetime
def get_type():
return "BINARY"
def get_name():
return "ewol Wallpaper sample"
def get_sub_type():
return "SAMPLE"
def get_desc(): def get_desc():
return "Tutorial xxx example wallpaper" return "Tutorial xxx example wallpaper"
def get_licence():
return "APACHE-2"
def create(target): def get_compagny_type():
# module name is 'edn' and type binary. return "com"
my_module = module.Module(__file__, 'examplewallpaper', 'PACKAGE')
# add the file to compile: 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([
'appl/Main.cpp', 'appl/Main.cpp',
'appl/debug.cpp', 'appl/debug.cpp',
'appl/WidgetDisplay.cpp', 'appl/WidgetDisplay.cpp',
'appl/Windows.cpp', 'appl/Windows.cpp',
]) ])
my_module.add_module_depend(['ewol']) my_module.add_module_depend(['ewol'])
my_module.compile_flags('c++', [ my_module.compile_flags('c++', [
"-DPROJECT_NAME=\"\\\""+my_module.name+"\\\"\""]) "-DPROJECT_NAME=\"\\\""+my_module.name+"\\\"\""
])
my_module.copy_path('data/SnowFlake.svg','') my_module.copy_path('data/SnowFlake.svg','')
my_module.add_path(tools.get_current_path(__file__)) my_module.add_path(tools.get_current_path(__file__))
now = datetime.datetime.now() now = datetime.datetime.now()
versionID=str(now.year-2013)+"."+str(now.month)+"."+str(now.day) versionID=str(now.year-2013)+"."+str(now.month)+"."+str(now.day)
# set the package properties : # set the package properties :
my_module.pkg_set("VERSION", versionID) my_module.pkg_set("VERSION", versionID)
my_module.pkg_set("COMPAGNY_TYPE", "org") my_module.pkg_set("COMPAGNY_TYPE", get_compagny_type())
my_module.pkg_set("COMPAGNY_NAME", "EWOL") my_module.pkg_set("COMPAGNY_NAME", get_compagny_name())
my_module.pkg_set("MAINTAINER", ["Mr DUPIN Edouard <yui.heero@gmail.com>"]) my_module.pkg_set("MAINTAINER", get_maintainer())
my_module.pkg_set("ICON", tools.get_current_path(__file__) + "/../data/icon.png") my_module.pkg_set("ICON", tools.get_current_path(__file__) + "/../data/icon.png")
my_module.pkg_set("SECTION", "example") my_module.pkg_set("SECTION", "example")
my_module.pkg_set("PRIORITY", "extra") my_module.pkg_set("PRIORITY", "extra")
my_module.pkg_set("DESCRIPTION", "EWOL example for Wallpaper on Android") my_module.pkg_set("DESCRIPTION", get_desc())
my_module.pkg_set("NAME", "ewol Wallpaper ewample") my_module.pkg_set("NAME", get_name())
my_module.pkg_set("ANDROID_APPL_TYPE", "WALLPAPER") my_module.pkg_set("ANDROID_APPL_TYPE", "WALLPAPER")