Skip to content

Commit c97dcfc

Browse files
committed
Fix ant build for pygame bootstrap
The ideal would be to move the apk build from ant to gradle...but this will require more work...for now we fix the java version problem we have with ant's build....because the other option it's far more complicated...maybe we will get there in future commits...
1 parent 3e42242 commit c97dcfc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pythonforandroid/bootstraps/pygame/build/build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def make_package(args):
215215
default_icon = 'templates/kivy-icon.png'
216216
default_presplash = 'templates/kivy-presplash.jpg'
217217
default_ouya_icon = 'templates/kivy-ouya-icon.png'
218+
default_ant_properties = 'templates/ant.properties'
218219
# Figure out the version code, if necessary.
219220
if not args.numeric_version:
220221
for i in args.version.split('.'):
@@ -345,6 +346,9 @@ def make_package(args):
345346
shutil.copy(args.presplash or default_presplash,
346347
'res/drawable/presplash.jpg')
347348

349+
# Copy over the ant.properties file.
350+
shutil.copy(default_ant_properties, 'ant.properties')
351+
348352
# If OUYA support was requested, copy over the OUYA icon
349353
if args.ouya_category:
350354
if not os.path.isdir('res/drawable-xhdpi'):
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
java.target=1.7
2+
java.source=1.7

0 commit comments

Comments
 (0)