diff options
author | Max Kellermann <max@duempel.org> | 2014-02-22 10:03:12 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-22 10:22:31 +0100 |
commit | 2d5c21c45735437367fbf8079ed4d7dcc64b9790 (patch) | |
tree | ba6bbf91547b794ba30799ce85a747f927242131 | |
parent | 25977d56c81502682b6cdec42b031a19a1ddfec8 (diff) | |
download | mpd-2d5c21c45735437367fbf8079ed4d7dcc64b9790.tar.gz mpd-2d5c21c45735437367fbf8079ed4d7dcc64b9790.tar.xz mpd-2d5c21c45735437367fbf8079ed4d7dcc64b9790.zip |
android/build.py: add option "autogen"
-rwxr-xr-x | android/build.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/android/build.py b/android/build.py index 043d6ceeb..af7585e4e 100755 --- a/android/build.py +++ b/android/build.py @@ -183,12 +183,20 @@ class Project: return path class AutotoolsProject(Project): - def __init__(self, url, md5, installed, configure_args=[], **kwargs): + def __init__(self, url, md5, installed, configure_args=[], + autogen=False, **kwargs): Project.__init__(self, url, md5, installed, **kwargs) self.configure_args = configure_args + self.autogen = autogen def build(self): src = self.unpack() + if self.autogen: + subprocess.check_call(['/usr/bin/aclocal'], cwd=src) + subprocess.check_call(['/usr/bin/automake', '--add-missing', '--force-missing', '--foreign'], cwd=src) + subprocess.check_call(['/usr/bin/autoconf'], cwd=src) + subprocess.check_call(['/usr/bin/libtoolize', '--force'], cwd=src) + build = self.make_build_path() select_toolchain(use_cxx=self.use_cxx, use_clang=self.use_clang) |