ewol/external/z/lutin_z.py

42 lines
932 B
Python
Raw Normal View History

2013-04-21 22:29:27 +02:00
#!/usr/bin/python
import lutinModule
import lutinTools
2013-04-21 22:29:27 +02:00
def Create(target):
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
2013-04-21 22:29:27 +02:00