diff options
author | Max Kellermann <max@duempel.org> | 2015-11-21 00:43:50 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-21 00:43:50 +0100 |
commit | 754b30a7a6ea9d0200e36c9b66819d9c1d40b05e (patch) | |
tree | 2892b35c6cf83f8f8b527c12cee8a48276573f82 /python/build | |
parent | 89d5d480d722ebed7a9e7d88fd63d2dabd4b96b0 (diff) | |
download | mpd-754b30a7a6ea9d0200e36c9b66819d9c1d40b05e.tar.gz mpd-754b30a7a6ea9d0200e36c9b66819d9c1d40b05e.tar.xz mpd-754b30a7a6ea9d0200e36c9b66819d9c1d40b05e.zip |
win32/build.py: move class ZlibProject to build/zlib.py
Diffstat (limited to 'python/build')
-rw-r--r-- | python/build/zlib.py | 22 |
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) |