Added app.p4a_dir token
This commit is contained in:
parent
a949095642
commit
aba7f78e6c
2 changed files with 6 additions and 3 deletions
|
@ -75,6 +75,9 @@ fullscreen = 1
|
|||
# (str) Android SDK directory (if empty, it will be automatically downloaded.)
|
||||
#android.sdk_path =
|
||||
|
||||
# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
|
||||
#android.p4a_dir =
|
||||
|
||||
# (str) Android entry point, default is ok for Kivy-based app
|
||||
#android.entrypoint = org.renpy.android.PythonActivity
|
||||
|
||||
|
|
|
@ -300,9 +300,9 @@ class TargetAndroid(Target):
|
|||
cmd = self.buildozer.cmd
|
||||
self.pa_dir = pa_dir = join(self.buildozer.platform_dir, 'python-for-android')
|
||||
if not self.buildozer.file_exists(pa_dir):
|
||||
buildozer_p4a_dir = os.environ.get('BUILDOZER_P4A_DIR')
|
||||
if buildozer_p4a_dir:
|
||||
cmd('ln -s {} ./python-for-android'.format(buildozer_p4a_dir),
|
||||
p4a_dir = self.buildozer.config.getdefault('app', 'p4a_dir')
|
||||
if p4a_dir:
|
||||
cmd('ln -s {} ./python-for-android'.format(p4a_dir),
|
||||
cwd = self.buildozer.platform_dir)
|
||||
else:
|
||||
cmd('git clone git://github.com/kivy/python-for-android',
|
||||
|
|
Loading…
Add table
Reference in a new issue