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):
2929 th = '#define {} {}\n '
3030 tpy = '{} = {}\n '
3131
32- bootstrap_name = self .ctx .bootstrap .name
32+ bootstrap = bootstrap_name = self .ctx .bootstrap .name
3333 is_sdl2 = bootstrap_name in ('sdl2' , 'sdl2python3' )
3434 is_pygame = bootstrap_name in ('pygame' ,)
35+ is_webview = bootstrap_name in ('webview' ,)
3536
36- if is_sdl2 :
37- bootstrap = 'sdl2'
37+ if is_sdl2 or is_webview :
38+ if is_sdl2 :
39+ bootstrap = 'sdl2'
3840 java_ns = 'org.kivy.android'
3941 jni_ns = 'org/kivy/android'
4042 elif is_pygame :
41- bootstrap = 'pygame'
4243 java_ns = 'org.renpy.android'
4344 jni_ns = 'org/renpy/android'
4445 else :
@@ -64,7 +65,7 @@ def prebuild_arch(self, arch):
6465 fh .write (th .format (key , value if isinstance (value , int )
6566 else '"{}"' .format (value )))
6667 self .config_env [key ] = str (value )
67-
68+
6869 if is_sdl2 :
6970 fh .write ('JNIEnv *SDL_AndroidGetJNIEnv(void);\n ' )
7071 fh .write ('#define SDL_ANDROID_GetJNIEnv SDL_AndroidGetJNIEnv\n ' )
You can’t perform that action at this time.
0 commit comments