lbry-android-sdk/p4a/pythonforandroid/recipes/evdev/__init__.py

27 lines
677 B
Python
Raw Normal View History

2017-08-13 03:24:00 +02:00
from pythonforandroid.recipe import CompiledComponentsPythonRecipe
class EvdevRecipe(CompiledComponentsPythonRecipe):
name = 'evdev'
version = 'v0.4.7'
url = 'https://github.com/gvalkov/python-evdev/archive/{version}.zip'
2022-12-02 21:15:34 +01:00
call_hostpython_via_targetpython = False
2017-08-13 03:24:00 +02:00
depends = []
2017-08-13 03:24:00 +02:00
build_cmd = 'build'
patches = ['evcnt.patch',
'keycnt.patch',
'remove-uinput.patch',
'include-dir.patch',
'evdev-permissions.patch']
def get_recipe_env(self, arch=None):
2022-12-02 21:15:34 +01:00
env = super().get_recipe_env(arch)
env['SYSROOT'] = self.ctx.ndk.sysroot
2017-08-13 03:24:00 +02:00
return env
recipe = EvdevRecipe()