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

sdl@2.0.8 #1887

Closed
wants to merge 1 commit into from
Closed

sdl@2.0.8 #1887

wants to merge 1 commit into from

Conversation

mmorel-35
Copy link
Contributor

@mmorel-35 mmorel-35 marked this pull request as ready for review April 25, 2024 17:48
@bazel-io
Copy link
Member

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (sdl) have been updated in this PR. Please review the changes.

@mmorel-35 mmorel-35 force-pushed the sdl@2.0.8 branch 3 times, most recently from 1250b16 to a7a28f0 Compare April 26, 2024 19:50
Copy link
Contributor

@zaucy zaucy left a comment

Choose a reason for hiding this comment

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

I think this setup might be surprising for most when trying to consume this module.

Comment on lines +76 to +79
+ linkopts = select({
+ "@platforms//os:linux": ["-lSDL2"],
+ "//conditions:default": [],
+ }),
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason sdl is using system installed SDL2 for linux and being compiled for macos?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I took everything from quic-trace.
If you have something more complete and opened for other users feel free to provide it. Maybe through a PR that can replace mine, I don't mind

Copy link
Contributor

Choose a reason for hiding this comment

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

I took everything from quic-trace.

Understandable.

I think there's a few sdl2 build files out there. I would like it in the BCR, but I think it should be a little more complete than the one in quic-trace. I don't have one off hand, but I have some old ones https://github.com/bazelregistry/sdl2/blob/main/BUILD.bazel that I could maybe combine with the quic-trace one to make something more complete. I don't know when I'll be able to do it though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I shall be able to give it a try by the end of the week.

+module(
+ name = "sdl",
+ version = "2.0.8",
+)
Copy link
Contributor

Choose a reason for hiding this comment

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

probably should add a compatibility number as 2?

platform: ${{ platform }}
bazel: ${{ bazel }}
build_flags:
- '--cxxopt=-std=c++17'
Copy link
Contributor

Choose a reason for hiding this comment

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

this would probably be better added in the copts of the cc_library instead of as a build flag in the presubmit.

- debian10
- ubuntu2004
- macos
- macos_arm64
Copy link
Contributor

Choose a reason for hiding this comment

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

ideally Windows is also supported

@zaucy
Copy link
Contributor

zaucy commented May 17, 2024

hey @mmorel-35 I did some major work to get SDL running with bzlmod if you want to check it out here: https://github.com/zaucy/SDL (it has tests as well!)

Currently it just has Windows support, but I plan to add other platforms as well. If you want to contribute (especially on the macOS side) that would be really helpful. It was quite the challenge to get the SDL config to generate based on bazels config settings, but it seems to be working so far.

I've opened up issues/discussion on my repo if you want to chat about it more.

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.

None yet

3 participants