diff options
author | Max Kellermann <max@duempel.org> | 2015-11-21 00:17:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-21 00:17:00 +0100 |
commit | f97ad2b2ee566eb2212a1dc19128ad2213cc4f95 (patch) | |
tree | e862323c19cb0c0798f150c8780d7e190368485a /win32 | |
parent | e70f7141be86ba97a034224e6357154ff8a7b8e5 (diff) | |
download | mpd-f97ad2b2ee566eb2212a1dc19128ad2213cc4f95.tar.gz mpd-f97ad2b2ee566eb2212a1dc19128ad2213cc4f95.tar.xz mpd-f97ad2b2ee566eb2212a1dc19128ad2213cc4f95.zip |
{android,win32}/build.py: move class BoostProject to build/boost.py
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/build.py | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/win32/build.py b/win32/build.py index b15f3d7e4..7c77109b7 100755 --- a/win32/build.py +++ b/win32/build.py @@ -1,8 +1,7 @@ #!/usr/bin/env python3 import os, os.path -import sys, shutil, subprocess -import re +import sys, subprocess configure_args = sys.argv[1:] @@ -60,6 +59,7 @@ class CrossGccToolchain: from build.project import Project from build.autotools import AutotoolsProject +from build.boost import BoostProject class ZlibProject(Project): def __init__(self, url, md5, installed, @@ -115,33 +115,6 @@ class FfmpegProject(Project): subprocess.check_call(['/usr/bin/make', '--quiet', 'install'], cwd=build, env=toolchain.env) -class BoostProject(Project): - def __init__(self, url, md5, installed, - **kwargs): - m = re.match(r'.*/boost_(\d+)_(\d+)_(\d+)\.tar\.bz2$', url) - version = "%s.%s.%s" % (m.group(1), m.group(2), m.group(3)) - Project.__init__(self, url, md5, installed, - name='boost', version=version, - **kwargs) - - def build(self, toolchain): - src = self.unpack(toolchain) - - # install the headers manually; don't build any library - # (because right now, we only use header-only libraries) - includedir = os.path.join(toolchain.install_prefix, 'include') - for dirpath, dirnames, filenames in os.walk(os.path.join(src, 'boost')): - relpath = dirpath[len(src)+1:] - destdir = os.path.join(includedir, relpath) - try: - os.mkdir(destdir) - except: - pass - for name in filenames: - if name[-4:] == '.hpp': - shutil.copyfile(os.path.join(dirpath, name), - os.path.join(destdir, name)) - # a list of third-party libraries to be used by MPD on Android thirdparty_libs = [ AutotoolsProject( |