win32/build.py: move class ZlibProject to build/zlib.py

This commit is contained in:
Max Kellermann
2015-11-21 00:43:50 +01:00
parent 89d5d480d7
commit 754b30a7a6
2 changed files with 23 additions and 19 deletions
python/build
win32

22
python/build/zlib.py Normal file

@ -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)