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 (kivy#1369)
  • Loading branch information
antocuni authored and meow464 committed Oct 14, 2021
1 parent 876249e commit f7e2b91
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 @@ -313,6 +313,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 @@ -108,6 +108,11 @@ def __init__(self, *args, **kwargs):
if self.buildozer.log_level >= 2:
self.extra_p4a_args += ' --debug'

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 f7e2b91

Please sign in to comment.