png/lutin_png.py

43 lines
616 B
Python

#!/usr/bin/python
import lutinModule
import lutinTools
def Create(target):
myModule = lutinModule.module(__file__, 'png', 'LIBRARY')
myModule.AddModuleDepend('z')
myModule.AddSrcFile([
'png/png.c',
'png/error.c',
'png/get.c',
'png/mem.c',
'png/pread.c',
'png/read.c',
'png/rio.c',
'png/rtran.c',
'png/rutil.c',
'png/set.c',
'png/trans.c',
'png/wio.c',
'png/write.c',
'png/wtran.c',
'png/wutil.c'])
myModule.CompileFlags_CC([
'-DPNG_NO_LIMITS_H'])
myModule.AddExportPath(lutinTools.GetCurrentPath(__file__))
# add the currrent module at the
return myModule