@@ -83,7 +83,7 @@ def get_bootstrap_name():
83
83
if PYTHON is not None and not exists (PYTHON ):
84
84
PYTHON = None
85
85
86
- if _bootstrap_name in ('sdl2' , 'webview' , 'service_only' , 'qt' ):
86
+ if _bootstrap_name in ('sdl2' , 'sdl3' , ' webview' , 'service_only' , 'qt' ):
87
87
WHITELIST_PATTERNS .append ('pyconfig.h' )
88
88
89
89
environment = jinja2 .Environment (loader = jinja2 .FileSystemLoader (
@@ -541,7 +541,7 @@ def make_package(args):
541
541
"debug" : "debug" in args .build_mode ,
542
542
"native_services" : args .native_services
543
543
}
544
- if get_bootstrap_name () == "sdl2" :
544
+ if get_bootstrap_name () in [ "sdl2" , "sdl3" ] :
545
545
render_args ["url_scheme" ] = url_scheme
546
546
547
547
render (
@@ -596,7 +596,7 @@ def make_package(args):
596
596
"args" : args ,
597
597
"private_version" : hashlib .sha1 (private_version .encode ()).hexdigest ()
598
598
}
599
- if get_bootstrap_name () == "sdl2" :
599
+ if get_bootstrap_name () in [ "sdl2" , "sdl3" ] :
600
600
render_args ["url_scheme" ] = url_scheme
601
601
render (
602
602
'strings.tmpl.xml' ,
@@ -769,7 +769,7 @@ def create_argument_parser():
769
769
ap .add_argument ('--private' , dest = 'private' ,
770
770
help = 'the directory with the app source code files' +
771
771
' (containing your main.py entrypoint)' ,
772
- required = (get_bootstrap_name () != "sdl2" ))
772
+ required = (get_bootstrap_name () not in [ "sdl2" , "sdl3" ] ))
773
773
ap .add_argument ('--package' , dest = 'package' ,
774
774
help = ('The name of the java package the project will be'
775
775
' packaged under.' ),
@@ -787,7 +787,7 @@ def create_argument_parser():
787
787
'same number of groups of numbers as previous '
788
788
'versions.' ),
789
789
required = True )
790
- if get_bootstrap_name () == "sdl2" :
790
+ if get_bootstrap_name () in [ "sdl2" , "sdl3" ] :
791
791
ap .add_argument ('--launcher' , dest = 'launcher' , action = 'store_true' ,
792
792
help = ('Provide this argument to build a multi-app '
793
793
'launcher, rather than a single app.' ))
@@ -1044,7 +1044,7 @@ def _read_configuration():
1044
1044
args .orientation , args .manifest_orientation
1045
1045
)
1046
1046
1047
- if get_bootstrap_name () == "sdl2" :
1047
+ if get_bootstrap_name () in [ "sdl2" , "sdl3" ] :
1048
1048
args .sdl_orientation_hint = get_sdl_orientation_hint (args .orientation )
1049
1049
1050
1050
if args .res_xmls and isinstance (args .res_xmls [0 ], list ):
@@ -1074,9 +1074,9 @@ def _read_configuration():
1074
1074
WHITELIST_PATTERNS += patterns
1075
1075
1076
1076
if args .private is None and \
1077
- get_bootstrap_name () == 'sdl2' and args .launcher is None :
1077
+ get_bootstrap_name () in [ 'sdl2' , 'sdl3' ] and args .launcher is None :
1078
1078
print ('Need --private directory or ' +
1079
- '--launcher (SDL2 bootstrap only)' +
1079
+ '--launcher (SDL2/SDL3 bootstrap only)' +
1080
1080
'to have something to launch inside the .apk!' )
1081
1081
sys .exit (1 )
1082
1082
make_package (args )
0 commit comments