[BUILD] update new lutin 0.5.3

This commit is contained in:
Edouard DUPIN 2015-05-08 22:40:53 +02:00
parent dc8e1741c7
commit 9d07ec9eb6
4 changed files with 23 additions and 23 deletions

28
lutin_ewol.py Executable file → Normal file
View File

@ -1,9 +1,9 @@
#!/usr/bin/python #!/usr/bin/python
import lutinModule as module import lutin.module as module
import lutinTools as tools import lutin.tools as tools
import lutinDebug as debug import lutin.debug as debug
import os import os
import lutinMultiprocess import lutin.multiprocess as lutinMultiprocess
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"
@ -189,20 +189,20 @@ def create(target):
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)
myModule.compile_flags_CC([ myModule.compile_flags('c++', [
"-DEWOL_VERSION=\"\\\""+ewolVersionID+"\\\"\"" "-DEWOL_VERSION=\"\\\""+ewolVersionID+"\\\"\""
]) ])
if target.name=="Linux": if target.name=="Linux":
myModule.add_export_flag_LD('-lGL') myModule.add_export_flag('link', '-lGL')
#`pkg-config --cflags directfb` `pkg-config --libs directfb` #`pkg-config --cflags directfb` `pkg-config --libs directfb`
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y") #ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y")
myModule.add_export_flag_LD('-lX11') myModule.add_export_flag('link', '-lX11')
#endif #endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y") #ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y")
#myModule.add_export_flag_LD(['-L/usr/local/lib', '-ldirectfb', '-lfusion', '-ldirect']) #myModule.add_export_flag('link', ['-L/usr/local/lib', '-ldirectfb', '-lfusion', '-ldirect'])
#endif #endif
#http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction #http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction
@ -213,11 +213,11 @@ def create(target):
#endif #endif
elif target.name=="Android": elif target.name=="Android":
myModule.add_export_flag_LD("-lGLESv2") myModule.add_export_flag('link', "-lGLESv2")
myModule.add_export_flag_LD("-ldl") myModule.add_export_flag('link', "-ldl")
myModule.add_export_flag_LD("-llog") myModule.add_export_flag('link', "-llog")
myModule.add_export_flag_LD("-landroid") myModule.add_export_flag('link', "-landroid")
java_tmp_dir = tools.get_current_path(__file__) + "/android/src/" java_tmp_dir = tools.get_current_path(__file__) + "/android/src/"
cpp_tmp_dir = tools.get_current_path(__file__) + "/ewol/renderer/Android/" cpp_tmp_dir = tools.get_current_path(__file__) + "/ewol/renderer/Android/"
java_tmp_src = java_tmp_dir + "org/ewol/EwolConstants" java_tmp_src = java_tmp_dir + "org/ewol/EwolConstants"
@ -231,13 +231,13 @@ def create(target):
elif target.name=="Windows": elif target.name=="Windows":
myModule.add_module_depend("glew") myModule.add_module_depend("glew")
elif target.name=="MacOs": elif target.name=="MacOs":
myModule.add_export_flag_LD([ myModule.add_export_flag('link', [
"-framework Cocoa", "-framework Cocoa",
"-framework OpenGL", "-framework OpenGL",
"-framework QuartzCore", "-framework QuartzCore",
"-framework AppKit"]) "-framework AppKit"])
elif target.name=="IOs": elif target.name=="IOs":
myModule.add_export_flag_LD([ myModule.add_export_flag('link', [
"-framework OpenGLES", "-framework OpenGLES",
"-framework CoreGraphics", "-framework CoreGraphics",
"-framework UIKit", "-framework UIKit",

6
sample/001_HelloWord/lutin_001_HelloWord.py Executable file → Normal file
View File

@ -1,6 +1,6 @@
#!/usr/bin/python #!/usr/bin/python
import lutinModule as module import lutin.module as module
import lutinTools as tools import lutin.tools as tools
# optionnal : Describe in the "lutin.py --help" # optionnal : Describe in the "lutin.py --help"
@ -20,7 +20,7 @@ def create(target):
# add Library dependency name # add Library dependency name
myModule.add_module_depend(['ewol']) myModule.add_module_depend(['ewol'])
# add application C flags # add application C flags
myModule.compile_flags_CC([ myModule.compile_flags('c++', [
"-DPROJECT_NAME=\"\\\""+myModule.name+"\\\"\""]) "-DPROJECT_NAME=\"\\\""+myModule.name+"\\\"\""])
# Add current include Path # Add current include Path
myModule.add_path(tools.get_current_path(__file__)) myModule.add_path(tools.get_current_path(__file__))

6
sample/0XX_CustomWidgets/lutin_0XX_customwidget.py Executable file → Normal file
View File

@ -1,6 +1,6 @@
#!/usr/bin/python #!/usr/bin/python
import lutinModule as module import lutin.module as module
import lutinTools as tools import lutin.tools as tools
# optionnal : Describe in the "lutin.py --help" # optionnal : Describe in the "lutin.py --help"
@ -22,7 +22,7 @@ def create(target):
# add Library dependency name # add Library dependency name
myModule.add_module_depend(['ewol']) myModule.add_module_depend(['ewol'])
# add application C flags # add application C flags
myModule.compile_flags_CC([ myModule.compile_flags('c++', [
"-DPROJECT_NAME=\"\\\""+myModule.name+"\\\"\""]) "-DPROJECT_NAME=\"\\\""+myModule.name+"\\\"\""])
# Add current include Path # Add current include Path
myModule.add_path(tools.get_current_path(__file__)) myModule.add_path(tools.get_current_path(__file__))

6
sample/examplewallpaper/lutin_examplewallpaper.py Executable file → Normal file
View File

@ -1,6 +1,6 @@
#!/usr/bin/python #!/usr/bin/python
import lutinModule as module import lutin.module as module
import lutinTools as tools import lutin.tools as tools
import datetime import datetime
def get_desc(): def get_desc():
@ -20,7 +20,7 @@ def create(target):
myModule.add_module_depend(['ewol']) myModule.add_module_depend(['ewol'])
myModule.compile_flags_CC([ myModule.compile_flags('c++', [
"-DPROJECT_NAME=\"\\\""+myModule.name+"\\\"\""]) "-DPROJECT_NAME=\"\\\""+myModule.name+"\\\"\""])
myModule.copy_folder('data/SnowFlake.svg','') myModule.copy_folder('data/SnowFlake.svg','')