[DEV] add the windows correct compilation

This commit is contained in:
Edouard DUPIN 2013-04-23 22:52:06 +02:00
parent 2751698679
commit 6533b8af29
5 changed files with 66 additions and 9 deletions

2
build

@ -1 +1 @@
Subproject commit dff9cb1393453917c3c120fd246146cb6d881206
Subproject commit 78d74b125f820fbeed698ddde87904fd99757c71

2
external/etk vendored

@ -1 +1 @@
Subproject commit 91b9d605993c09836ba9acd26579fcd6b1029cbc
Subproject commit 46b81ecbbf1a907cfc1c629af848d1b0aeadd7dc

21
external/glew/lutin_glew.py vendored Normal file
View File

@ -0,0 +1,21 @@
#!/usr/bin/python
import lutinModule
import lutinTools
def Create(target):
if target.name=="Windows":
#http://glew.sourceforge.net/index.html
myModule = lutinModule.module(__file__, 'glew', 'PREBUILD')
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__) + "/glew/include/")
myModule.AddExportflag_LD([
lutinTools.GetCurrentPath(__file__) + "/glew/lib/glew32s.lib",
"-lopengl32",
"-lgdi32"])
# add the currrent module at the
return myModule
else:
return None

41
external/z/lutin_z.py vendored
View File

@ -1,12 +1,41 @@
#!/usr/bin/python
import lutinModule
import lutinTools
def Create(target):
myModule = lutinModule.module(__file__, 'z', 'PREBUILD')
myModule.AddExportflag_LD('-lz')
# add the currrent module at the
return myModule
if target.name=="Windows":
myModule = lutinModule.module(__file__, 'z', 'LIBRARY')
myModule.AddSrcFile([
"zlib/adler32.c",
"zlib/crc32.c",
"zlib/deflate.c",
"zlib/infback.c",
"zlib/inffast.c",
"zlib/inflate.c",
"zlib/inftrees.c",
"zlib/trees.c",
"zlib/zutil.c",
"zlib/compress.c",
"zlib/uncompr.c",
"zlib/gzclose.c",
"zlib/gzlib.c",
"zlib/gzread.c",
"zlib/gzwrite.c"])
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__))
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__) + "/zlib")
myModule.CompileFlags_CC([
"-D_LARGEFILE64_SOURCE=1",
"-DHAVE_HIDDEN"])
# add the currrent module at the
return myModule
else:
myModule = lutinModule.module(__file__, 'z', 'PREBUILD')
myModule.AddExportflag_LD('-lz')
# add the currrent module at the
return myModule

View File

@ -4,6 +4,9 @@ import lutinTools
import os
def Create(target):
# set the ewol folder for Android basic sources ...
target.SetEwolFolder(lutinTools.GetCurrentPath(__file__) + "/../")
# module name is 'edn' and type binary.
myModule = lutinModule.module(__file__, 'ewol', 'LIBRARY')
# add the file to compile:
@ -182,7 +185,7 @@ def Create(target):
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)
lutinTools.CopyFile(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)
@ -190,6 +193,10 @@ def Create(target):
myModule.AddSrcFile("ewol/renderer/os/gui.Android.cpp")
elif target.name=="Windows":
myModule.AddModuleDepend("glew")
myModule.AddSrcFile("ewol/renderer/os/gui.Windows.cpp")
myModule.CompileFlags_CC('-D__EWOL_INTEGRATED_FONT__')
else:
debug.error("unknow mode...")