-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Minimal fixes to make pygame bootstrap work with python2legacy #1587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
dd6512f
Force SDL and pygame recipes to be build with python2legacy instead o…
opacam 5eb439a
Make setup_pygame.py to use python2legacy
opacam 33b5443
Adapt pygame bootstrap to new python build/distribution system (make …
opacam c6c49c6
Adapt pygame bootstrap file `Application.mk` to newer ndks
opacam a06421f
Fix sdl's jpeg build with newer ndks
opacam 3e42242
Fix start.c for pygame bootstrap and reduce specific code for pygame …
opacam c97dcfc
Fix ant build for pygame bootstrap
opacam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
pythonforandroid/bootstraps/pygame/build/templates/ant.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
java.target=1.7 | ||
java.source=1.7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
pythonforandroid/recipes/pygame_bootstrap_components/jpeg-ndk15-plus.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
The distributed jpeg has troubles to be build with newer ndks, starting from | ||
the introduction of the `unified headers` (ndk > 15). This patch allow us to | ||
build the distributed `external jpeg` in sdl package, got the solution in here: | ||
https://github.com/oNaiPs/droidVncServer/issues/53 | ||
--- jpeg/Android.mk.orig 2015-06-21 15:14:54.000000000 +0200 | ||
+++ jpeg/Android.mk 2019-01-14 10:57:06.384806168 +0100 | ||
@@ -20,7 +20,7 @@ | ||
endif | ||
|
||
# temp fix until we understand why this broke cnn.com | ||
-#ANDROID_JPEG_NO_ASSEMBLER := true | ||
+ANDROID_JPEG_NO_ASSEMBLER := true | ||
|
||
ifeq ($(strip $(ANDROID_JPEG_NO_ASSEMBLER)),true) | ||
LOCAL_SRC_FILES += jidctint.c jidctfst.c | ||
--- jpeg/jidctfst.S.orig 2019-01-14 11:00:38.000000000 +0100 | ||
+++ jpeg/jidctfst.S 2019-01-14 11:00:56.844803970 +0100 | ||
@@ -63,7 +63,7 @@ | ||
|
||
|
||
jpeg_idct_ifast: | ||
- PLD [r2, #0] | ||
+ pld [r2, #0] | ||
stmdb sp!, {r4,r5, r6,r7, r8,r9, r10,r11, r12,lr} | ||
ldr r4, [sp, #4*10] | ||
sub sp, #local_SIZE | ||
@@ -256,7 +256,7 @@ | ||
|
||
HLoopStart: | ||
// reset pointers | ||
- PLD [sp, #off_WORKSPACE] | ||
+ pld [sp, #off_WORKSPACE] | ||
add ip, sp, #off_WORKSPACE | ||
ldr r10, local_RANGE_TABLE | ||
|
||
@@ -268,7 +268,7 @@ | ||
str r0, local_OUTPUT_BUF | ||
add fp, r2, r1 | ||
|
||
- PLD [ip, #32] | ||
+ pld [ip, #32] | ||
ldmia ip!, {r0-r7} | ||
|
||
cmp r1, #0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering why don't we apply the patch using the
patches
attribute?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I remember...it's for the jpeg path, If we use the default patching method the file will not be found...but I'm thinking now that maybe we can add the needed levels to the patch, so we could refactor this into the default patching mechanism...I suppose that this should work...I will try to make some tests about that ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that would be awesome, that would simplify the code a little bit 👍