-
Notifications
You must be signed in to change notification settings - Fork 89
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
base: master
Are you sure you want to change the base?
Add SDL_gfx module #166
Conversation
SDL/SDL_gfx-2.0.25.json
Outdated
"i386": { | ||
"config-opts": [ | ||
"--enable-mmx" | ||
] | ||
}, |
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.
"i386": { | |
"config-opts": [ | |
"--enable-mmx" | |
] | |
}, |
arch is no longer supported.
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.
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.
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.
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.
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.
when it happens, we'll see. Maybe by that time they'll have apply the patch I recommend submitting.
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.
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.
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", |
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.
AFAIK the config-opts are cumulative.
I'd like somebody added to CODEOWNERS if they are willing. |
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. |
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.