From 6ae3654a11cb8e409c8620dc1277a68582c8ed82 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 21 Apr 2013 22:26:29 +0200 Subject: [PATCH] [DEV] update 'lutin' build system --- .gitignore | 1 + Makefile_png.py | 41 ----------------------------------------- lutin_png.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 41 deletions(-) create mode 100644 .gitignore delete mode 100644 Makefile_png.py create mode 100644 lutin_png.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d20b64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc diff --git a/Makefile_png.py b/Makefile_png.py deleted file mode 100644 index 8522d59..0000000 --- a/Makefile_png.py +++ /dev/null @@ -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) - - - - - - - - - diff --git a/lutin_png.py b/lutin_png.py new file mode 100644 index 0000000..06fc6a8 --- /dev/null +++ b/lutin_png.py @@ -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 + + + + + + + + +