[DEV] corection of the lutin makefile for ewol

This commit is contained in:
Edouard DUPIN 2013-04-22 21:21:36 +02:00
parent 63d20a72e1
commit 2751698679
2 changed files with 54 additions and 26 deletions

2
build

@ -1 +1 @@
Subproject commit f3b74bbc02bc94ce4e08442eee9b0445188f9177 Subproject commit dff9cb1393453917c3c120fd246146cb6d881206

View File

@ -1,6 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
import lutinModule import lutinModule
import lutinTools import lutinTools
import os
def Create(target): def Create(target):
# module name is 'edn' and type binary. # module name is 'edn' and type binary.
@ -137,38 +138,65 @@ def Create(target):
#endif #endif
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__)) myModule.AddExportPath(lutinTools.GetCurrentPath(__file__))
myModule.AddExportflag_LD('-lGL')
#`pkg-config --cflags directfb` `pkg-config --libs directfb`
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y")
myModule.AddExportflag_LD('-lX11')
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y")
#myModule.AddExportflag_LD(['-L/usr/local/lib', '-ldirectfb', '-lfusion', '-ldirect'])
#endif
#http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction
# needed package on linux : libgl1-mesa-dev libglew1.5-dev
myModule.CompileFlags_CC([ myModule.CompileFlags_CC([
'-Wno-write-strings', '-Wno-write-strings',
'-DEWOL_VERSION_TAG_NAME="\\"TAG-build\\""', '-DEWOL_VERSION_TAG_NAME="\\"TAG-build\\""',
'-Wall']) '-Wall'])
#ifeq ("$(CONFIG_BUILD_PORTAUDIO)","y") if target.name=="Linux":
#myModule.AddSrcFile('ewol/renderer/audio/interfacePortAudio.cpp') myModule.AddExportflag_LD('-lGL')
#endif
#`pkg-config --cflags directfb` `pkg-config --libs directfb`
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y")
myModule.AddExportflag_LD('-lX11')
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y")
#myModule.AddExportflag_LD(['-L/usr/local/lib', '-ldirectfb', '-lfusion', '-ldirect'])
#endif
#http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Introduction
# needed package on linux : libgl1-mesa-dev libglew1.5-dev
#ifeq ("$(CONFIG_BUILD_PORTAUDIO)","y")
#myModule.AddSrcFile('ewol/renderer/audio/interfacePortAudio.cpp')
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y")
myModule.AddSrcFile('ewol/renderer/os/gui.X11.cpp')
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y")
#myModule.CompileFlags_CC('-I/usr/local/include/directfb')
#myModule.AddSrcFile('ewol/renderer/os/gui.directFB.cpp')
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_X11__)","y") elif target.name=="Android":
myModule.AddSrcFile('ewol/renderer/os/gui.X11.cpp') myModule.AddExportflag_LD("-lGLESv2")
#endif
#ifeq ("$(CONFIG___EWOL_LINUX_GUI_MODE_DIRECT_FB__)","y") myModule.AddExportflag_LD("-ldl")
#myModule.CompileFlags_CC('-I/usr/local/include/directfb') myModule.AddExportflag_LD("-llog")
#myModule.AddSrcFile('ewol/renderer/os/gui.directFB.cpp') myModule.AddExportflag_LD("-landroid")
#endif
tmp_src=lutinTools.GetCurrentPath(__file__) + "/ewol/renderer/os/gui.Android.base.cpp"
tmp_dst=lutinTools.GetCurrentPath(__file__) + "/ewol/renderer/os/gui.Android.tmp.cpp"
# TODO : A really work to do here ...
os.system("cp -v " + tmp_src + " " + tmp_dst)
os.system("sed -i \"s|__PROJECT_ORG_TYPE__|org|\" " + tmp_dst)
os.system("sed -i \"s|__PROJECT_VENDOR__|edouarddupin|\" " + tmp_dst)
os.system("sed -i \"s|__PROJECT_NAME__|edn|\" "+ tmp_dst)
os.system("sed -i \"s|__PROJECT_PACKAGE__|edn|\" " + tmp_dst)
myModule.AddSrcFile("ewol/renderer/os/gui.Android.cpp")
else:
debug.error("unknow mode...")
# add the currrent module at the # add the currrent module at the
return myModule return myModule
def GetDesc():
return "ewol is a main library to use widget in the openGl environement and manage all the wraping os"