aboutsummaryrefslogtreecommitdiffstats
path: root/python/build
diff options
context:
space:
mode:
Diffstat (limited to 'python/build')
-rw-r--r--python/build/zlib.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/python/build/zlib.py b/python/build/zlib.py
new file mode 100644
index 000000000..2ed140554
--- /dev/null
+++ b/python/build/zlib.py
@@ -0,0 +1,22 @@
+import subprocess
+
+from build.project import Project
+
+class ZlibProject(Project):
+ def __init__(self, url, md5, installed,
+ **kwargs):
+ Project.__init__(self, url, md5, installed, **kwargs)
+
+ def build(self, toolchain):
+ src = self.unpack(toolchain, out_of_tree=False)
+
+ subprocess.check_call(['/usr/bin/make', '--quiet',
+ '-f', 'win32/Makefile.gcc',
+ 'PREFIX=' + toolchain.arch + '-',
+ '-j12',
+ 'install',
+ 'DESTDIR=' + toolchain.install_prefix + '/',
+ 'INCLUDE_PATH=include',
+ 'LIBRARY_PATH=lib',
+ 'BINARY_PATH=bin', 'SHARED_MODE=1'],
+ cwd=src, env=toolchain.env)