[DEV] update 'lutin' build system

This commit is contained in:
Edouard DUPIN 2013-04-21 22:26:29 +02:00
parent 5494f9db01
commit 6ae3654a11
3 changed files with 43 additions and 41 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pyc

View File

@ -1,41 +0,0 @@
#!/usr/bin/python
import module
import buildTools
myModule = module.module(__file__, 'libpng', 'LIBRARY')
myModule.AddModuleDepend('zlib')
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(buildTools.GetCurrentPath(__file__))
# add the currrent module at the
module.AddModule(myModule)

42
lutin_png.py Normal file
View File

@ -0,0 +1,42 @@
#!/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