Skip to content
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

Add SDL_gfx module #166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add SDL_gfx module #166

wants to merge 1 commit into from

Conversation

wjt
Copy link
Member

@wjt wjt commented Nov 26, 2021

This requires special care and feeding to build on aarch64, which I
borrowed from org.manaplus.ManaPlus when org.tuxpaint.Tuxpaint gained a
dependency on this library.

I suspect (without proof) that this library is one of the reasons that
the other existing user of SDL_gfx on Flathub,
com.roguetemple.HyperRogue, is not built for aarch64.

Comment on lines 10 to 14
"i386": {
"config-opts": [
"--enable-mmx"
]
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"i386": {
"config-opts": [
"--enable-mmx"
]
},

arch is no longer supported.

Copy link
Collaborator

@hfiguiere hfiguiere Nov 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would actually remove the disable-mmx from config opts and just add it for aarch64. I feels less convoluted.

and I would submit a patch upstream to actually properly detect architectures.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand your point. FWIW I did it this way around because the --enable-mmx code will fail to compile on any non-x86 platform, so when someone comes along and adds RISC-V to Flathub, another arch-specific block would need to be added.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when it happens, we'll see. Maybe by that time they'll have apply the patch I recommend submitting.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to say I am not filled with enthusiasm at the prospect of sending a patch upstream. SDL_gfx (this one) appears to be abandoned; SDL2_gfx, its SDL2 successor, only marginally less so.

@hfiguiere
Copy link
Collaborator

For HyperRogue: flathub/com.roguetemple.HyperRogue#1

This requires special care and feeding to build on aarch64, which I
borrowed from org.manaplus.ManaPlus when org.tuxpaint.Tuxpaint gained a
dependency on this library.

I suspect (without proof) that this library is one of the reasons that
the other existing user of SDL_gfx on Flathub,
com.roguetemple.HyperRogue, is not built for aarch64.
"aarch64": {
"//": "Code assumes that if __GNUC__ is defined and MMX is enabled, then x86-specific mmintrin.h is available",
"config-opts": [
"--disable-static",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK the config-opts are cumulative.

@TingPing
Copy link
Member

I'd like somebody added to CODEOWNERS if they are willing.

@orowith2os
Copy link
Contributor

this doesn't seem to be very hard to maintain, is there any need/want for this to be merged still? I could look into maintaining it if yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants