Skip to content

Commit

Permalink
add the option p4a.extra_args, to allow passing arbitrary extra objec…
Browse files Browse the repository at this point in the history
…ts to p4a
  • Loading branch information
antocuni committed Oct 12, 2021
1 parent b7e3122 commit e4cd0c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildozer/default.spec
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ android.allow_backup = True
# setup.py if you're using Poetry, but you need to add "toml" to source.include_exts.
#p4a.setup_py = false

# (str) extra command line arguments to pass when invoking pythonforandroid.toolchain
#p4a.extra_args =


#
# iOS specific
Expand Down
5 changes: 5 additions & 0 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ def __init__(self, *args, **kwargs):
else:
self.extra_p4a_args += ' --ignore-setup-py'

user_extra_p4a_args = self.buildozer.config.getdefault('app', 'p4a.extra_args',
None)
if user_extra_p4a_args:
self.extra_p4a_args += ' ' + user_extra_p4a_args

self.warn_on_deprecated_tokens()

def warn_on_deprecated_tokens(self):
Expand Down

0 comments on commit e4cd0c6

Please sign in to comment.