aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-24 09:33:23 +0100
committerMax Kellermann <max@duempel.org>2014-02-24 09:33:23 +0100
commit9c5bf542d113ade94d7977cdfed505c138c9bc7b (patch)
tree1a41a81f8938d0e17517741c201e8c8e22350918 /android
parent61161269d81de3c655e935b2644a85f5834d0f0e (diff)
downloadmpd-9c5bf542d113ade94d7977cdfed505c138c9bc7b.tar.gz
mpd-9c5bf542d113ade94d7977cdfed505c138c9bc7b.tar.xz
mpd-9c5bf542d113ade94d7977cdfed505c138c9bc7b.zip
android/build.py: add project parameter "cppflags"
Diffstat (limited to 'android')
-rwxr-xr-xandroid/build.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/android/build.py b/android/build.py
index 3251f5ef5..090d47769 100755
--- a/android/build.py
+++ b/android/build.py
@@ -188,10 +188,13 @@ class Project:
class AutotoolsProject(Project):
def __init__(self, url, md5, installed, configure_args=[],
- autogen=False, **kwargs):
+ autogen=False,
+ cppflags='',
+ **kwargs):
Project.__init__(self, url, md5, installed, **kwargs)
self.configure_args = configure_args
self.autogen = autogen
+ self.cppflags = cppflags
def build(self):
src = self.unpack()
@@ -210,7 +213,7 @@ class AutotoolsProject(Project):
'CXX=' + cxx,
'CFLAGS=' + cflags,
'CXXFLAGS=' + cxxflags,
- 'CPPFLAGS=' + cppflags,
+ 'CPPFLAGS=' + cppflags + ' ' + self.cppflags,
'LDFLAGS=' + ldflags,
'LIBS=' + libs,
'AR=' + ar,