add icon and presplash support

This commit is contained in:
Mathieu Virbel 2013-01-22 03:04:46 +01:00
parent 8affd6f743
commit b202143b0d
2 changed files with 17 additions and 0 deletions

View file

@ -28,6 +28,12 @@ version.filename = %(source.dir)s/main.py
# (list) Application requirements
requirements = twisted,kivy
# (str) Presplash of the application
#presplash.filename = %(source.dir)s/data/presplash.png
# (str) Icon of the application
#icon.filename = %(source.dir)s/data/icon.png
#
# Android specific
#

View file

@ -369,6 +369,17 @@ class TargetAndroid(Target):
for permission in permissions:
build_cmd += ' --permission {0}'.format(permission)
# add presplash
presplash = config.getdefault('app', 'presplash.filename', '')
if presplash:
build_cmd += ' --presplash {}'.format(join(self.buildozer.app_dir,
presplash))
# add icon
icon = config.getdefault('app', 'icon.filename', '')
if icon:
build_cmd += ' --icon {}'.format(join(self.buildozer.app_dir, icon))
# build only in debug right now.
if self.build_mode == 'debug':
build_cmd += ' debug'