File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
pythonforandroid/bootstraps/sdl2/build Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -261,14 +261,15 @@ def make_package(args):
261
261
shutil .copy (args .presplash or default_presplash ,
262
262
'src/main/res/drawable/presplash.jpg' )
263
263
264
+ jars = []
264
265
# If extra Java jars were requested, copy them into the libs directory
265
266
if args .add_jar :
266
267
for jarname in args .add_jar :
267
268
if not exists (jarname ):
268
269
print ('Requested jar does not exist: {}' .format (jarname ))
269
270
sys .exit (- 1 )
270
271
shutil .copy (jarname , 'src/main/libs' )
271
-
272
+ jars . append ( basename ( jarname ))
272
273
# if extra aar were requested, copy them into the libs directory
273
274
aars = []
274
275
if args .add_aar :
@@ -379,6 +380,7 @@ def make_package(args):
379
380
'build.gradle' ,
380
381
args = args ,
381
382
aars = aars ,
383
+ jars = jars ,
382
384
android_api = android_api ,
383
385
build_tools_version = build_tools_version )
384
386
Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ dependencies {
62
62
{%- for aar in aars % }
63
63
compile(name : ' {{ aar }}' , ext : ' aar' )
64
64
{%- endfor -% }
65
+ {%- for jar in jars % }
66
+ compile files(' src/main/libs/{{ jar }}' )
67
+ {%- endfor -% }
65
68
{%- if args. depends -% }
66
69
{%- for depend in args. depends % }
67
70
compile ' {{ depend }}'
You can’t perform that action at this time.
0 commit comments