diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-19 11:39:33 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-19 11:39:36 +0100 |
commit | 34b8a17ccd41343e899388d85ae22431456a196f (patch) | |
tree | 627bd5af034c2c7a35ebb6b747837eb23d9c5d43 /python | |
parent | a53d081c39b592f71859d4b22536a8a8c60906e8 (diff) |
python/build/autotools.py: add "subdir" parameter
Diffstat (limited to 'python')
-rw-r--r-- | python/build/autotools.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/python/build/autotools.py b/python/build/autotools.py index 56af64cce..58d5d8c54 100644 --- a/python/build/autotools.py +++ b/python/build/autotools.py @@ -8,6 +8,7 @@ class AutotoolsProject(MakeProject): cppflags='', ldflags='', libs='', + subdirs=None, **kwargs): MakeProject.__init__(self, url, md5, installed, **kwargs) self.configure_args = configure_args @@ -15,6 +16,7 @@ class AutotoolsProject(MakeProject): self.cppflags = cppflags self.ldflags = ldflags self.libs = libs + self.subdirs = subdirs def configure(self, toolchain): src = self.unpack(toolchain) @@ -51,4 +53,8 @@ class AutotoolsProject(MakeProject): def build(self, toolchain): build = self.configure(toolchain) - MakeProject.build(self, toolchain, build) + if self.subdirs is not None: + for subdir in self.subdirs: + MakeProject.build(self, toolchain, os.path.join(build, subdir)) + else: + MakeProject.build(self, toolchain, build) |