android/build.py: add option "autogen"
This commit is contained in:
parent
25977d56c8
commit
2d5c21c457
|
@ -183,12 +183,20 @@ class Project:
|
||||||
return path
|
return path
|
||||||
|
|
||||||
class AutotoolsProject(Project):
|
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)
|
Project.__init__(self, url, md5, installed, **kwargs)
|
||||||
self.configure_args = configure_args
|
self.configure_args = configure_args
|
||||||
|
self.autogen = autogen
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
src = self.unpack()
|
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()
|
build = self.make_build_path()
|
||||||
|
|
||||||
select_toolchain(use_cxx=self.use_cxx, use_clang=self.use_clang)
|
select_toolchain(use_cxx=self.use_cxx, use_clang=self.use_clang)
|
||||||
|
|
Loading…
Reference in New Issue