| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
meson: Fix for building on non-English locale
|
| |
| |
| |
| | |
Specify utf-8 encoding to fix building on non-English locale
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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().
|
| |
|
| |
|
|
|
|
|
|
| |
Do not rely on the shebang line and the executable bit; we should use
find_program(), instead, which lets Meson run a script in the
appropriate environment, portably.
|
|
|
|
| |
Makes it easier to build Epoxy on older operating systems.
|
|\
| |
| | |
Remove Python 2 support
|
| |
| |
| |
| |
| | |
Python 2 is going to reach EOL in January 2020, and most platforms have
already moved to Python 3.
|
|/ |
|
| |
|
|
|
|
|
| |
We're using functionality introduced after 0.44, so we might as well
update to a more recent version of Meson.
|
| |
|
| |
|
|
|
|
| |
The has_header() function does not have a `required` argument.
|
|
|
|
| |
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
|
|\
| |
| | |
Trival misc. typo fixes
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
build_apple was introduced in 756dca as a proxy for the fact that Apple's libc
doesn't have dlvsym(), which is glibc-specific so also isn't present in other
libc implementations such as musl.
Instead of detecting whether we are building for Apple or not, just probe the to
see if we have dlvsym.
|
|/ |
|
| |
|
|
|
|
|
|
|
| |
Instead of iterating over the list of compiler flags, we should use the
get_supported_arguments() method of the compiler object, which does it
for us — and maybe, in the future, will be optimised to do the checks in
parallel.
|
|
|
|
|
|
|
| |
The `enable-` prefix is an Autotool-ism; idiomatic naming for Meson
projects should just use the name of the option, and rely on the type
to convey meaning, especially because Meson does not have `disable`
aliases that avoid the explicit `enable-foo=no` cases.
|
|
|
|
|
|
|
|
|
| |
Epoxy can be compiled with GLX and X11 native resources on EGL. We can
disable the former, but the latter is always built in when enabling EGL
support.
Some platforms do not support X11 at all, so we need a way to disable
X11 when configuring Epoxy.
|
|
|
|
|
|
| |
We generate the pkg-config file using Meson's pkgconfig module as of
commit b1119d8fcfe646f3ff108a3bf3685dfce6f049e4, but we're still setting
up a configuration_data object.
|
|
|
|
|
|
|
|
| |
Instead of using a template file, and filling in the blanks, we can use
the Meson pkgconfig module to generate the pkg-config file mostly from
the library object itself — including dependencies and flags.
The template file remains in tree for the Autotools build.
|
|
|
|
|
|
| |
Use the latest stable release; we're going to use its features to
generate the pkg-config file for Epoxy, instead of using a template
file.
|
|
|
|
|
| |
It's used unconditionally, but defined only for shared builds. For
static builds define it but don't populate it.
|
|
|
|
| |
We added new API, so we need a new version.
|
| |
|
|
|
|
|
| |
We kind of cargo-culted from Autotools; MSVC and GCC on Windows can use
the same __declspec() attribute. Only the compiler flag is a GCC thing.
|
|
|
|
| |
It's the only platform specific API it has.
|
|\
| |
| |
| | |
into tpetazzoni-make-egl-optional
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It is perfectly possible to build Mesa3D with just OpenGL support, and
use with GLX in X.org, without having EGL/OpenGLES support.
However, libepoxy currently unconditionally requires EGL support in its
configure.ac, which causes a build failure when Mesa3D only provides
full OpenGL support:
checking for EGL... no
configure: error: Package requirements (egl) were not met:
Package egl was not found in the pkg-config search path.
Perhaps you should add the directory containing `egl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'egl', required by 'world', not found
This commit fixes that by:
- Adjusting the configure.ac to add a --{enable,disable}-egl option
handled in the exact same way as --{enable,disable}-glx
- Adjusting the meson build logic in the same way.
- Adjusting src/dispatch_common.h to define PLATFORM_HAS_EGL correctly,
which allows to not include any EGL related header file if EGL
support is not enabled.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|/ |
|
|
|
| |
It seems bumping to 0.38.1 was too relaxed, and evidently I didn't thoroughly test the change.
|
| |
|
|
|
|
|
|
|
| |
Removing the files() statement allows us to not use source_root(), which
breaks using libepoxy as a sub-project.
Using the python3 module is better for Windows portability.
|
|
|
|
|
| |
We are going to need a more recent version of Meson to fix some warts in
the build.
|
|
|
|
|
| |
The inline keyword is available only for C++ in MSVC.
So we need to use Microsoft specific __inline.
|
|
|
|
|
|
|
| |
Just like we do for GL and EGL, we can use pkg-config to find the GLES
v2 and v1 dependencies.
Fixes: #110
|
|
|
|
|
|
|
|
| |
We have been building the shared library for Epoxy without the symbol
visibility flags for the compiler, which means we've been leaking
internal symbols all over the floor.
Fixes: #111
|
| |
|
|
|
|
| |
Meson already uses /W2, like it uses -Wall with GCC.
|