Commit Graph
34 Commits
Author SHA1 Message Date
Emmanuele Bassi 9ccbac5adf Allow using Python3 to run gen_dispatch.py
This way, we don't have to depend on Python2 on newer OSes.
2017-02-13 09:34:51 +00:00
Emmanuele Bassi 48ee13ed3c Define a macro directory in the autotools build
As libtool suggest we do; this also allows using ACLOCAL_AMFLAGS inside
build that create a separate environment with their own m4 macros, like
jhbuild and Cerberus.

In order to avoid a warning from autoreconf, we create the empty macros
directory during the autogen.sh step; aclocal would create the directory
for us anyway, but different versions of autotools may have different
behaviours.

Closes: #58
2017-02-10 11:23:35 +00:00
Emmanuele Bassi d8b10c0a5a Do not use Python 3 to run gen_dispatch.py
It's still a Python 2.x script, even if it's mostly compatible with
Python 3.x.
2017-02-08 13:05:26 +00:00
Emmanuele Bassi 96286708a4 Bump version to 1.4 for release 2017-02-06 16:00:20 +00:00
Emmanuele Bassi ec93dcd5a1 Allow enabling and disabling GLX support
Since X11 can be used on multiple platforms, or disabled in special
environments, we should provide a way to control whether or not Epoxy is
built with GLX support.

Fixes anholt/libepoxy#52
Fixes anholt/libepoxy#63
Closes anholt/libepoxy#80
Closes anholt/libepoxy#81
2017-02-06 15:58:53 +00:00
Emmanuele Bassi 7b52d33d86 Encode Epoxy capabilities into the pkg-config file
Since Epoxy can be built with different platform-specific API, having a
way for dependent projects to discover those capabilities without
necessarily crashing the minute they attempt to use them is a good
feature to have.

We strongly direct library and application developers to use pkg-config
in order to use Epoxy, so it makes sense to add variables to the
epoxy.pc file that can be easily extracted at configuration time.
2017-02-06 15:58:21 +00:00
Emmanuele Bassi 2b6f01b008 Allow enabling and disabling GLX support, part II
After doing this for Meson in commit fc014fa1, let's do the same dance
for the Autotools build.
2017-02-06 15:58:20 +00:00
Emmanuele Bassi 43a66ca8d8 Generate xz tarballs on distcheck
Both gz and bz2 tarballs are discouraged, in this day and age.
2017-02-06 15:43:53 +00:00
Emmanuele Bassi 7a06803465 Improve consistency of the symbol visibility
To avoid a symbols file on Windows, Epoxy annotates all the publicly
visible symbols directly in the source, but uses the default symbol
visibility everywhere else. This means that only some symbols are
annotated as `EPOXY_IMPORTEXPORT`, and generally only on Windows.
Additionally, Epoxy has a private 'PUBLIC' pre-processor macro for
internal use, which duplicates the `EPOXY_IMPORTEXPORT` but contains
more logic to detect GCC, in case we're building with GCC on Windows.

This would be enough, except that EGL is also available on Windows,
which means we'd have to annotate the exported `epoxy_*` API inside
epoxy/egl.h as well. At that point, though, we should probably avoid
any confusion, and adopt a single symbol visibility policy across the
board.

This requires some surgery of the generated and common dispatch sources,
but cuts down the overall complexity:

 - there is only one annotation, `EPOXY_PUBLIC`, used everywhere
 - the annotation detection is done at Epoxy configuration time
 - only annotated symbols are public, on every platform
 - annotated symbols are immediately visible from the header
2017-01-25 12:43:17 +00:00
Emmanuele Bassi 6b68ddeaa0 build: Skip GLESv1 tests if there's no GLESv1
It's pretty much pointless to build and run tests for a library that we
know is not available.

The Meson build already skips the GLES 1.0 test, so let's make the
Autotools build do the same.
2017-01-25 12:28:29 +00:00
Eric Anholt e2c33af5bf Bump to version 1.3.1 for release.
A small bug was noticed during debian packaging.
2015-07-15 16:46:36 -07:00
Eric Anholt 118565cd8e Bump version to 1.3 for release. 2015-07-15 16:15:19 -07:00
Christopher Meng b7e921da13 Update the homepage URL 2015-03-04 10:37:02 +08:00
Eric Anholt 363d57a9de Merge remote-tracking branch 'sonicadvance/OSX-NoX11Support'
I've come around to the various contributors' positions: X11 on OSX is
basically dead, and we're not serving our users by trying to support
it.
2015-01-10 10:30:16 +13:00
Eric Anholt d56f21c494 Use the EGL pkgconfig for finding eglplatform.h.
We don't ever explicity link against libEGL, so no need to make use of
EGL_LIBS.

Fixes #30.
2014-06-13 14:59:37 -07:00
Ryan Houdek e3051481cc Adds support for OS X without X11.
OS X support shouldn't depend on X11 being installed on the host.
Removes the X11 dependency.
2014-05-28 22:20:39 -05:00
Eric Anholt 7422de5b4b Bump version to 1.2 for release. 2014-05-13 17:22:08 -07:00
Eric Anholt 756dcaf6a5 Disable the dlwrap-based tests on apple.
We'd need a dlvsym() equivalent.
2014-03-28 16:45:26 -07:00
Eric Anholt e1e13a51b4 Bump version to 1.1 for release. 2014-02-06 15:08:38 -08:00
Eric Anholt e4f5da9539 Add a test that khrplatform.h (if present) agrees with us. 2014-02-06 11:16:18 -08:00
Eric Anholt f6e91a7e86 Declare a private dependency on libdl.
The new linker requires that the consumers of a library link against
the libraries that that library depends on, which is supported by
Libs.private.

Fixes #16
2014-01-30 12:11:24 -08:00
Eric Anholt c92fcc852f Fix testsuite build on OS X.
There's no linker flag of this name in the normal clang, presumably
beause the linker feature doesn't exist.
2013-12-16 08:27:55 -08:00
Eric Anholt 0cfb0a044b Fix most GLhandleARB warnings on OS X with a big comment in our code. 2013-12-12 11:39:34 -08:00
Eric Anholt 708c31a406 Disable EGL on OS X.
It doesn't exist.  There's EAGL, but that's not something we're
covering.
2013-12-11 17:18:28 -08:00
Eric Anholt 847ba1acdf Add an appropriate error message if libX11 is missing. 2013-12-11 17:18:28 -08:00
Eric Anholt 1d746bfeb2 Add dispatch generation for wgl.
This is very poorly tested at this point, but survives a simple testcase.
2013-12-10 14:13:22 -08:00
Eric Anholt bfd687da89 Port tests directory to win32. 2013-12-06 18:34:46 -08:00
Eric Anholt 259136845d Start porting the GL dispatch code to win32.
It now builds successfully builds a .dll file.  Not that it's usable
or anything yet.
2013-12-06 18:34:46 -08:00
Eric Anholt 906d5b6e3a Conditionalize building the EGL and GLX dispatch code. 2013-12-06 15:50:01 -08:00
Eric Anholt 0d7d26537d Conditionalize building GLX and EGL tests and headers.
Note that the generated code is still generated, they just aren't
built and installed.  The goal with that is that someone could take
the built .c and .h files and drop it into their own project, if they
want to avoid shared libs.
2013-12-06 15:50:01 -08:00
Eric Anholt 43acf7b021 Fix make distcheck.
Well, not quite.  One of the regression tests is failing with
GLXBadFBConfig in that build.  Not sure why.
2013-12-06 11:50:00 -08:00
Eric Anholt 9ffa5d25c4 Add a test for a bug when called during glBegin()/glEnd(). 2013-12-05 15:07:08 -08:00
Eric Anholt 04cf940e1b Add an initial testsuite for GLX API. 2013-11-14 11:18:15 -08:00
Eric Anholt a909eb4a22 Add the generator and build infrastructure.
Not actually working yet, but it's a snapshot to start from.
2013-10-16 11:43:11 -07:00