win32/build.py: move class ZlibProject to build/zlib.py
This commit is contained in:
parent
89d5d480d7
commit
754b30a7a6
|
@ -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)
|
|
@ -62,29 +62,11 @@ class CrossGccToolchain:
|
||||||
self.env['PKG_CONFIG_LIBDIR'] = os.path.join(install_prefix, 'lib/pkgconfig')
|
self.env['PKG_CONFIG_LIBDIR'] = os.path.join(install_prefix, 'lib/pkgconfig')
|
||||||
|
|
||||||
from build.project import Project
|
from build.project import Project
|
||||||
|
from build.zlib import ZlibProject
|
||||||
from build.autotools import AutotoolsProject
|
from build.autotools import AutotoolsProject
|
||||||
from build.ffmpeg import FfmpegProject
|
from build.ffmpeg import FfmpegProject
|
||||||
from build.boost import BoostProject
|
from build.boost import BoostProject
|
||||||
|
|
||||||
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)
|
|
||||||
|
|
||||||
# a list of third-party libraries to be used by MPD on Android
|
# a list of third-party libraries to be used by MPD on Android
|
||||||
thirdparty_libs = [
|
thirdparty_libs = [
|
||||||
AutotoolsProject(
|
AutotoolsProject(
|
||||||
|
|
Loading…
Reference in New Issue