Commit graph

15 commits

Author SHA1 Message Date
Dylan Baker b308a876d3 autotools: Include meson.build and meson_options.txt in dist 2019-12-05 12:01:36 -08:00
Kyle Brenneman 4269cdcff4 Move glvnd_genentry into the GLX directory.
The glvnd_genentry code isn't used outside of GLX.
2019-11-22 08:38:16 -07:00
Kyle Brenneman 0177ade402 configure: Check if linking against libdl is necessary.
Add an AC_CHECK_FUNC call to check whether dlopen is available without any
additional libraries. Some systems provide dlopen as part of libc, in which
case we can't (and don't need to) link against libdl.so.
2018-03-26 14:41:01 -06:00
Aaron Plattner cf6bcb36ab Remove -Wno-misleading-indentation
This option is not recognized by clang, so it produces an error when configured
with

  CC=clang ./configure

  error: unknown warning option '-Wno-misleading-indentation'; did you mean '-Wno-missing-declarations'? [-Werror,-Wunknown-warning-option]

This flag is only needed for cJSON.c. Deobfuscate that file just enough to
eliminate the misleading indentation warnings, then remove the warning flag from
Makefile.am.
2017-09-13 12:35:55 -07:00
Kyle Brenneman 5e7b46e880 utils: Add cJSON.h to noinst_HEADERS. 2016-08-30 14:08:57 -06:00
Kyle Brenneman af24248798 EGL: Add -Wno-misleading-indentation for cJSON.
Add the flag -Wno-misleading-indentation to the cJSON source file, to avoid a
compiler warning (and resulting error) on more recent versions of GCC.
2016-08-30 13:31:58 -06:00
Kyle Brenneman 382eb05efa Checked in a copy of the cJSON library.
This will be used to parse JSON config files that will describe the available
vendor libraries for EGL.
2016-06-22 16:13:35 -06:00
Kyle Brenneman 4d20b1826b Add helper functions for keeping track of the window-system dispatch stubs.
Added a new file, winsys_dispatch.c, with functions for keeping track of the
indices, names, and dispatch stubs for window-system functions.

This will replace the __GLXdispatchIndexHash hashtable in GLX.

It's independant of the window system, so it should be usable for EGL as well.
2016-05-17 10:32:34 -06:00
Kyle Brenneman 87ce484d49 Move trace.[ch] into the src/utils directory.
Move trace.c and trace.h into the src/utils directory instead of a
subdirectory.
2016-04-06 11:00:32 -06:00
Kyle Brenneman d79a1484ac Fix some autoconf warnings.
Fixed a few order and variable name warnings.

Defined convenience libraries for the source files under src/util, to avoid the
subdir-objects warning from them.
2016-04-06 10:57:23 -06:00
Kyle Brenneman e2d44985d8 Add support for reporting application errors.
The libglvnd libraries will now check for a new environment variable,
__GLVND_APP_ERROR_CHECKING. If it's set to a non-zero value, then libglvnd will
check for and report some application errors.

Many non-libglvnd implementations of libGL.so have been fairly tolerant of
certain application bugs. Libglvnd has to be similarly tolerant to support
existing apps that the developers can't or won't fix.

The new __GLVND_APP_ERROR_CHECKING provides a way to check for some of those
errors, so that hopefully there will be fewer broken apps in the future.

In addition to the setting itself, this updates the no-op stubs in
libGLdispatch to report an error when the app tries to call an OpenGL function
without a current context. Later changes will likely add other error checks.
2016-03-29 10:18:02 -06:00
Kyle Brenneman dcc1c9ca33 Remove the makefile for glvnd_pthread.
Moved glvnd_pthread.h and glvnd_pthread.c into src/utils, and removed the
separate makefile for them. The other makefiles now just grab the source file
directly instead.

Reviewed-by: Andy Ritger <aritger@nvidia.com>
2016-02-25 12:54:29 -07:00
Nicolas Chauvet 48255183c5 Add few missing files and directory for make dist 2015-11-10 22:37:02 +01:00
Aaron Plattner 61360bc961 [build] distribute files needed to build
Everything needed to actually build the driver needs to be included in something
that makes it end up in the distribution tarball.  For headers, use
noinst_HEADERS.  For everything else, use EXTRA_DIST.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Brian Nguyen <brnguyen@nvidia.com>
2013-09-27 03:12:29 -07:00
Aaron Plattner 4ecfeb2a99 [build] reorder SUBDIRS to only recurse once
Currently, both GLX and GLdispatch recurse into src/util/trace.  This causes
problems for parallel make, and breaks distclean because the first recursion
into src/util/trace deletes the Makefile, causing the second recursion to fail.

Instead, recurse directly into util from src/Makefile.am, putting it ahead of
both GLX and GLdispatch in SUBDIRS.  This means that you can't just go into
src/GLX and type make, but it fixes parallel builds and distclean.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2013-09-26 16:17:11 -07:00