Commit Graph
601 Commits
Author SHA1 Message Date
osy 3acbed0507 Add EGL ANGLE extensions header 2026-02-22 21:21:28 -08:00
Emmanuele Bassi 167802b7db Merge pull request #270 from piggynl/dlwrap-glibc-2.27
test: Fix dlwrap on riscv64
2025-09-25 12:31:56 +02:00
Emmanuele Bassi bb7ddbc7bd Merge pull request #294 from DankRank/master
Define APIENTRY the same way its defined in windows.h
2025-04-29 10:25:24 +02:00
Emmanuele Bassi e98617e62e Merge pull request #285 from lb90/check-egl-support-at-runtime
Check for EGL support at runtime before calling into EGL functions
2024-11-11 14:34:08 +00:00
Emmanuele Bassi f13c13c11c Merge pull request #259 from lanodan/bugfix/opengl_glvnd
meson.build: Fallback from libGL to libOpenGL when GLX is disabled
2024-07-02 13:05:18 +02:00
Emmanuele Bassi 1b04d1bca8 Fix indentation 2024-07-02 11:13:51 +01:00
Egor 7b64dce9e0 Define APIENTRY the same way its defined in windows.h
This avoids redefinition warnings when including epoxy/gl.h before
windows.h
2023-12-27 16:46:15 +02:00
Luca Bacci 1a2ad512d4 Check for EGL support at runtime before calling into egl functions 2023-03-23 18:31:52 +01:00
Emmanuele Bassi 2df68f811f Merge pull request #282 from nirbheek/improve-subproj-usage
meson: Override dependency to improve usage as a subproject
2022-12-18 16:25:55 +00:00
Nirbheek Chauhan ec0fb1850b meson: Override dependency to improve usage as a subproject
With this change, libepoxy can be consumed as a subproject without
making any changes to the build files of a project. All you need to do
is provide a wrap file with a `[provide]` section:

https://mesonbuild.com/Wrap-dependency-system-manual.html#provide-section

This is also necessary because otherwise projects need to hard-code
the subproject name, which might be `libepoxy` when using `wrap-git` or
`libepoxy-1.5.10` when using `wrap-file` (to build from a release
tarball). This can cause conflicts between different subprojects that
consume libepoxy differently.

Other projects like glib, cairo, pango, etc already do this.
2022-12-18 09:33:20 +05:30
Piggy NL 62f9d554eb test: Fix dlwrap on riscv64 2022-04-07 16:53:15 +08:00
Emmanuele Bassi a96abf1a4d Post-release version bump to 1.5.11 2022-03-18 17:26:14 +00:00
Emmanuele Bassi c84bc94593 Merge pull request #262 from seungha-yang/win-non-eng-locale
meson: Fix for building on non-English locale
2022-02-17 12:56:12 +00:00
Emmanuele Bassi 1c51cfbbe1 Merge pull request #261 from arichardson/custom-prefix-build-fix
Fix build if EGL/X11 headers are in a custom prefix
2022-02-17 12:55:36 +00:00
Alex Richardson 9bf4788455 Add the right include paths for EGL and X11 headers
Libepoxy currently depends on all headers living under the same prefix.
This is not necessarily true: X11 headers can live in a separate prefix,
for instance under /opt/X11. This is also the case when cross-compiling to
a platform that sets up the build environment in non-standard ways.

We could add `x11_dep` and `egl_dep` to the libepoxy target dependencies,
but that could potentially add spurious linker flags and cause libepoxy to
depend on libraries it will dlopen() during normal operations.

To avoid that case, we use a partial_dep() object from Meson, and we limit
the dependency to compiler flags and inclusion paths.
2022-02-16 19:37:01 +00:00
Emmanuele Bassi 8db879f810 Merge pull request #263 from caolanm/fix_libreoffice_android_build
fix error: use of undeclared identifier 'OPENGL_LIB'
2021-10-25 17:55:28 +01:00
Caolán McNamara 063c1df279 fix error: use of undeclared identifier 'OPENGL_LIB'
at epoxy/src/dispatch_common.c:690 in LibreOffice android build with
libepoxy-1.5.9
2021-10-20 11:09:09 +01:00
Seungha Yang a07b9b3383 meson: Fix for building on non-English locale
Specify utf-8 encoding to fix building on non-English locale
2021-10-12 02:41:41 +09:00
Haelwenn (lanodan) Monnier 702a0e6639 meson.build: Fallback from libGL to libOpenGL when GLX is disabled 2021-08-31 00:44:03 +02:00
Emmanuele Bassi 71dcab0cc9 Post-release version bump to 1.5.10 2021-08-14 14:56:42 +01:00
Emmanuele Bassi ecfa8e0f08 Merge pull request #257 from batesj/allow_libopengl
Allow libopengl.so to be used when GLX_LIB is missing
2021-07-12 16:53:46 +01:00
John Bates 7975061f6b Allow libopengl.so to be used when GLX_LIB is missing
This maintains compatibility with previous behavior of
always using GLX_LIB if it is found. The only change is
when there is no GLX_LIB.

Previous behavior when no GLX_LIB:
- abort.

New behavior when no GLX_LIB:
- Try to load libOpenGL.so as gl_handle (glx_handle remains NULL).
- Else, abort.

Reviewed-by: Emil Velikov <[email protected]>
2021-07-02 11:57:17 -07:00
Emmanuele Bassi ad723a7a75 Post-release version bump to 1.5.9 2021-05-21 16:56:51 +01:00
Emmanuele Bassi 2a1665c632 Merge pull request #254 from anholt/issue-252
Revert OpenGL/GLX loading changes
1.5.8
2021-05-21 16:51:50 +01:00
Emmanuele Bassi 622ca393c3 Revert "If glvnd library found, do not use libGL.so in epoxy_load_gl"
Commit dbfa4b20 has introduced a string of regressions in the X server
and KWin.

This reverts commit dbfa4b209c.

See: #252
2021-05-21 15:35:41 +01:00
Emmanuele Bassi c2148eb019 Revert "Do not overwrite glx_handle in epoxy_load_gl if GLX library is loaded already"
This reverts commit 4994c48172.
2021-05-21 15:35:35 +01:00
Emmanuele Bassi 0dd0e0a272 Post-release version bump to 1.5.8 2021-04-30 13:17:59 +01:00
Emmanuele Bassi f9e76359cf Merge pull request #250 from anholt/ebassi/issues-249
Remove redeclaration of khronos_uintptr_t
1.5.7
2021-04-30 12:56:41 +01:00
Emmanuele Bassi 1403303e77 Remove redeclaration of khronos_uintptr_t
The type is being redeclared because I didn't see the original
declaration when I wrote 144cbc9325.

Fixes: #249
2021-04-30 12:15:25 +01:00
Emmanuele Bassi e271edbc3b Post-release version bump to 1.5.7 2021-04-30 10:45:15 +01:00
Emmanuele Bassi 0a304d1a25 Merge pull request #247 from anholt/win64-khr-types
Support Win64 pointer-sized types
1.5.6
2021-04-19 15:46:30 +01:00
Emmanuele Bassi 54f645b077 Merge pull request #243 from amezin/master
gen_dispatch.py: close output files
2021-03-31 11:16:51 +01:00
Emmanuele Bassi 144cbc9325 Support Win64 pointer-sized types
Since we're generating stub types from khrplatform.h because we can't
include it reliably, we'll have to deal with some of the fallout of the
Win64 types.

Fixes: #246
2021-03-21 19:02:58 +00:00
Aleksandr d0b319e27b gen_dispatch.py: close output files
Fixes https://github.com/anholt/libepoxy/issues/242
2021-03-06 09:11:44 +06:00
Emmanuele Bassi de08cf3479 Merge pull request #238 from anholt/pull-229-alt
Fix some bugs in loading OpenGL/GLX/EGL libraries
2021-01-20 15:18:00 +00:00
Emmanuele Bassi 7ec320d1db Merge pull request #231 from xclaesse/meson-vars
meson: Set same variables in declare_dependency() as in pkgconfig
2021-01-20 13:27:36 +00:00
Xavier Claessens 950b9f5b25 meson: Set same variables in declare_dependency() as in pkgconfig
GTK currently fails to detect if epoxy has been built with EGL on
Windows when epoxy is a subproject. To fix that it needs to get that
information from the dependency variables.

This requires Meson >=0.54.0 for setting variables in
declare_dependency().
2021-01-20 08:09:14 -05:00
Yaroslav Isakov 4994c48172 Do not overwrite glx_handle in epoxy_load_gl if GLX library is loaded already
Reviewed-by: Adam Jackson <[email protected]>

Signed-off-by: Emmanuele Bassi <[email protected]>
2021-01-20 12:23:43 +00:00
Yaroslav Isakov dbfa4b209c If glvnd library found, do not use libGL.so in epoxy_load_gl
Without additional check, even if libOpenGL was loaded, libGL.so will
be loaded as well, and used both in gl_handle and glx_handle, so
libglvnd libraries will not be used.

Reviewed-by: Adam Jackson <[email protected]>

Signed-off-by: Emmanuele Bassi <[email protected]>
2021-01-20 12:18:57 +00:00
Emmanuele Bassi c797320424 Merge pull request #236 from anholt/ebassi/ci-split
ci: Split Linux and macOS pipelines
2020-12-23 19:58:50 +00:00
Emmanuele Bassi 1878042c03 Add a badge for the project license 2020-12-23 19:48:37 +00:00
Emmanuele Bassi c37b42432b Update the CI status badges
Use the badges from GitHub Actions.
2020-12-23 19:47:42 +00:00
Emmanuele Bassi 642330e86f ci: Split Linux and macOS pipelines
Don't use a single pipeline for everything.
2020-12-23 19:43:58 +00:00
Emmanuele Bassi 03b9b4692c Merge pull request #235 from anholt/github-ci
Move CI to GitHub
2020-12-23 19:21:29 +00:00
Emmanuele Bassi 4c686ff5e3 ci: Drop tests from MSYS2 pipeline
The WGL tests are failing, likely because of some set up issue; for the
time being, we care more about building Epoxy, rather than testing it.
2020-12-23 14:06:12 +00:00
Emmanuele Bassi 3e35bb8688 ci: Remove AppVeyor pipeline
We have MSYS2 and MSVC pipelines on GitHub Actions.
2020-12-23 13:17:44 +00:00
Emmanuele Bassi 599847dfd6 ci: Remove Travis
The GitHub Actions pipeline replaces Travis in any way it matters.
2020-12-23 13:17:06 +00:00
Emmanuele Bassi 14ab6c6bb8 ci: Use scripts for GitHub Actions
Do not share them with the Travis pipelines.
2020-12-23 13:11:20 +00:00
Emmanuele Bassi c4520d0a72 ci: Add MSVC workflow on GitHub Actions 2020-12-23 13:08:10 +00:00
Emmanuele Bassi 4822fc167d ci: Add MSYS2 workflow on GitHub Actions 2020-12-23 13:07:19 +00:00