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 freeglut wrap #1168

Merged
merged 1 commit into from
Sep 17, 2023
Merged

add freeglut wrap #1168

merged 1 commit into from
Sep 17, 2023

Conversation

kusma
Copy link
Contributor

@kusma kusma commented Sep 14, 2023

I created this wrap-file for the mesa-demos repository, and I figured others might be interested in this.

A few details:

  1. We provide both "freeglut" and "glut" dependencies. This is because FreeGLUT has it's own API that is an extension of the normal GLUT API.
  2. We do a few things differently from the upstream CMake build system, to make things a bit more straight-forward to use.
    • We disable the FREEGLUT_LIB_PRAGMAS option unconditionally. We don't need it, as meson is perfectly capable to forward the correct linker args without it.
    • We don't try to match the libnames. This is really only needed for the FREEGLUT_LIB_PRAGMAS option, which we already disable.
    • No GLES support. I have some untested patches for this, but would prefer to land GL only for now.
    • No Blackberry OS support. There's no first-class support in Meson for this, and it seems... needlessly exotic anyway.
    • No Android support. Possible to add, but depends on GLES support. I don't do Android development, so I think it'd be better if someone who cares about Android and GLUT to work on this. We also don't have Android build-testing on CI, it seems.

@kusma kusma force-pushed the add-freeglut-wrap branch 7 times, most recently from 4fa6e4c to 65d9bdf Compare September 15, 2023 08:49
I created this wrap-file for the mesa-demos repository, and I figured
others might be interested in this.

A few details:

1. We provide both "freeglut" and "glut" dependencies. This is because
   FreeGLUT has it's own API that is an extension of the normal GLUT API.
2. We do a few things differently from the upstream CMake build system,
   to make things a bit more straight-forward to use.
   - We disable the FREEGLUT_LIB_PRAGMAS option unconditionally. We don't
     need it, as meson is perfectly capable to forward the correct linker
     args without it.
   - We don't try to match the libnames. This is really only needed for
     the FREEGLUT_LIB_PRAGMAS option, which we already disable.
   - No GLES support. I have some untested patches for this, but would
     prefer to land GL only for now.
   - No Blackberry OS support. There's no first-class support in Meson
     for this, and it seems... needlessly exotic anyway.
   - No Android support. Possible to add, but depends on GLES support. I
     don't do Android development, so I think it'd be better if someone
     who cares about Android *and* GLUT to work on this. We also don't
     have Android build-testing on CI, it seems.
@neheb neheb merged commit 9cd3ee8 into mesonbuild:master Sep 17, 2023
7 checks passed
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.

2 participants