File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
pythonforandroid/recipes/android Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,17 @@ def prebuild_arch(self, arch):
29
29
th = '#define {} {}\n '
30
30
tpy = '{} = {}\n '
31
31
32
- bootstrap_name = self .ctx .bootstrap .name
32
+ bootstrap = bootstrap_name = self .ctx .bootstrap .name
33
33
is_sdl2 = bootstrap_name in ('sdl2' , 'sdl2python3' )
34
34
is_pygame = bootstrap_name in ('pygame' ,)
35
+ is_webview = bootstrap_name in ('webview' ,)
35
36
36
- if is_sdl2 :
37
- bootstrap = 'sdl2'
37
+ if is_sdl2 or is_webview :
38
+ if is_sdl2 :
39
+ bootstrap = 'sdl2'
38
40
java_ns = 'org.kivy.android'
39
41
jni_ns = 'org/kivy/android'
40
42
elif is_pygame :
41
- bootstrap = 'pygame'
42
43
java_ns = 'org.renpy.android'
43
44
jni_ns = 'org/renpy/android'
44
45
else :
@@ -64,7 +65,7 @@ def prebuild_arch(self, arch):
64
65
fh .write (th .format (key , value if isinstance (value , int )
65
66
else '"{}"' .format (value )))
66
67
self .config_env [key ] = str (value )
67
-
68
+
68
69
if is_sdl2 :
69
70
fh .write ('JNIEnv *SDL_AndroidGetJNIEnv(void);\n ' )
70
71
fh .write ('#define SDL_ANDROID_GetJNIEnv SDL_AndroidGetJNIEnv\n ' )
You can’t perform that action at this time.
0 commit comments