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

[magnum] Add recipe #7095

Merged
merged 31 commits into from
Sep 12, 2021
Merged

Conversation

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Co-authored-by: SSE4 <tomskside@gmail.com>
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

SSE4
SSE4 previously approved these changes Sep 8, 2021
recipes/magnum/all/conanfile.py Outdated Show resolved Hide resolved
recipes/magnum/all/conanfile.py Outdated Show resolved Hide resolved
recipes/magnum/all/conanfile.py Outdated Show resolved Hide resolved
recipes/magnum/all/conanfile.py Outdated Show resolved Hide resolved
recipes/magnum/all/conanfile.py Outdated Show resolved Hide resolved
recipes/magnum/all/conanfile.py Outdated Show resolved Hide resolved
recipes/magnum/all/conanfile.py Show resolved Hide resolved
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
@conan-center-bot

This comment has been minimized.

@jgsogo
Copy link
Contributor Author

jgsogo commented Sep 8, 2021

@madebr , now we probably have something to review. I've renamed the options (no more with_, use snake_case), enabled audio components, fixed some typos,...

recipes/magnum/all/conanfile.py Outdated Show resolved Hide resolved
recipes/magnum/all/conanfile.py Outdated Show resolved Hide resolved
recipes/magnum/all/test_package/conanfile.py Show resolved Hide resolved
recipes/magnum/all/test_package/conanfile.py Outdated Show resolved Hide resolved
recipes/magnum/all/test_package/test_package.cpp Outdated Show resolved Hide resolved
recipes/magnum/all/test_package/CMakeLists.txt Outdated Show resolved Hide resolved
if self.settings.os == "Linux":
del self.options.cgl_context
del self.options.windowless_cgl_application
del self.options.wgl_context
Copy link
Contributor

Choose a reason for hiding this comment

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

I think wgl_context (and every option containing wgl) is Windows-only:
https://github.com/mosra/magnum/blob/03b7adf71b1b50d2d1d2064b4a185355ee19dd5f/CMakeLists.txt#L167

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 can build wgl_context in Macos. TBH, I have no idea if it is usable or not. I disabled only the options that were failing for each OS, I find it very hard to reproduce the logic encoded in the build system.

Comment on lines +113 to +123
"windowless_cgl_application": True,
"windowless_egl_application": True,
"windowless_glx_application": True,
"windowless_ios_application": True,
"windowless_wgl_application": True,
"windowless_windows_egl_application": True,

"cgl_context": True,
"egl_context": True,
"glx_context": True,
"wgl_context": True,
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we care about some illegal option combinations/dependencies?
e.g. windowless_cgl_application is connected to cgl_context, likewise for egl, glx, wgl

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 see the project generates a egl/glx/wgl objects library, and it only generates the actual library when xxx_context is True. So, we can have xxx_context=False and the xxx_application=True and it will work.

@conan-center-bot

This comment has been minimized.

jgsogo and others added 3 commits September 9, 2021 10:29
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
@conan-center-bot
Copy link
Collaborator

All green in build 28 (83a5751e2dce0662b78d8e7f4d507a594c969b41):

  • magnum/2020.06@:
    All packages built successfully! (All logs)

@jgsogo
Copy link
Contributor Author

jgsogo commented Sep 11, 2021

@madebr @SSE4 do you think I should try to reproduce more accurately the logic encoded in the build-system? Right now I'm basically removing options that make the build fail and running some evident checks between options. Logic in the library's build-system files is much more complex...

On one hand, I prefer to merge this recipe and the future will help: people building with other combinations of options, maybe new library versions with different logic,... I understand it is inconvenient to come across a build error while building, that it´s the role of the package manager to check these options before trying to build, but we all know that right now the logic is written by the author's library in the build-system files and we can only try to reproduce it in the recipes.

@madebr
Copy link
Contributor

madebr commented Sep 11, 2021

I think it's fine. It's a hard exercise to check everything.
Also, a future magnum release can have a different cmake behavior.

@jgsogo jgsogo requested a review from SSE4 September 12, 2021 10:40
@conan-center-bot conan-center-bot merged commit a1d245e into conan-io:master Sep 12, 2021
@prince-chrismc
Copy link
Contributor

Fast bot 🙀

I agree. If someone needs more options they can contribute back to fix them or improve availability... let's give something for now!

@jgsogo jgsogo deleted the magnum/add-recipe branch September 13, 2021 06:57
@jgsogo jgsogo mentioned this pull request Sep 27, 2021
18 tasks
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.

5 participants