forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
25 lines (17 loc) · 676 Bytes
/
__init__.py
File metadata and controls
25 lines (17 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from pythonforandroid.recipe import CompiledComponentsPythonRecipe
class EvdevRecipe(CompiledComponentsPythonRecipe):
name = 'evdev'
version = 'v0.4.7'
url = 'https://github.com/gvalkov/python-evdev/archive/{version}.zip'
depends = [('python2', 'python3')]
build_cmd = 'build'
patches = ['evcnt.patch',
'keycnt.patch',
'remove-uinput.patch',
'include-dir.patch',
'evdev-permissions.patch']
def get_recipe_env(self, arch=None):
env = super(EvdevRecipe, self).get_recipe_env(arch)
env['NDKPLATFORM'] = self.ctx.ndk_platform
return env
recipe = EvdevRecipe()