Commit 9c5bf542 authored by Max Kellermann's avatar Max Kellermann

android/build.py: add project parameter "cppflags"

parent 61161269
...@@ -188,10 +188,13 @@ class Project: ...@@ -188,10 +188,13 @@ class Project:
class AutotoolsProject(Project): class AutotoolsProject(Project):
def __init__(self, url, md5, installed, configure_args=[], def __init__(self, url, md5, installed, configure_args=[],
autogen=False, **kwargs): autogen=False,
cppflags='',
**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 self.autogen = autogen
self.cppflags = cppflags
def build(self): def build(self):
src = self.unpack() src = self.unpack()
...@@ -210,7 +213,7 @@ class AutotoolsProject(Project): ...@@ -210,7 +213,7 @@ class AutotoolsProject(Project):
'CXX=' + cxx, 'CXX=' + cxx,
'CFLAGS=' + cflags, 'CFLAGS=' + cflags,
'CXXFLAGS=' + cxxflags, 'CXXFLAGS=' + cxxflags,
'CPPFLAGS=' + cppflags, 'CPPFLAGS=' + cppflags + ' ' + self.cppflags,
'LDFLAGS=' + ldflags, 'LDFLAGS=' + ldflags,
'LIBS=' + libs, 'LIBS=' + libs,
'AR=' + ar, 'AR=' + ar,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment