mesa/src/glx/apple
Dylan Baker b5f92b6fd4 meson: fix warnings about comparing unlike types
In the old days (0.42.x), when mesa's meson system was written the
recommendation for handling conditional dependencies was to define them
as empty lists. When meson would evaluate the dependencies of a target
it would recursively flatten all of the arguments, and empty lists would
be removed. There are some problems with this, among them that lists and
dependencies have different methods (namely .found()), so the
recommendation changed to use `dependency('', required : false)` for
such cases.  This has the advantage of providing a .found() method, so
there is no need to do things like `dep_foo != [] and dep_foo.found()`,
such a dependency should never exist.

I've tested this with 0.42 (the minimum we claim to support) and 0.45.
On 0.45 this removes warnings about comparing unlike types, such as:

meson.build:1337: WARNING: Trying to compare values of different types
(DependencyHolder, list) using !=.

v2: - Use dependency('', required : false) instead of
      declare_dependency(), the later will always report that it is
      found, which is not what we want.

Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
2018-04-06 15:29:53 -07:00
..
apple_cgl.c
apple_cgl.h
apple_glapi.c glx/apple: locate dispatch table functions to wrap by name 2018-02-01 15:14:08 +00:00
apple_glx.c
apple_glx.h
apple_glx_context.c glx: turn LIBGL_DIAGNOSTIC into a boolean 2017-09-12 13:53:11 +01:00
apple_glx_context.h
apple_glx_drawable.c
apple_glx_drawable.h
apple_glx_log.c glx: turn LIBGL_DIAGNOSTIC into a boolean 2017-09-12 13:53:11 +01:00
apple_glx_log.h
apple_glx_pbuffer.c glx: turn LIBGL_DIAGNOSTIC into a boolean 2017-09-12 13:53:11 +01:00
apple_glx_pixmap.c
apple_glx_surface.c
apple_visual.c glx/apple: include util/debug.h for env_var_as_boolean prototype 2018-02-01 15:14:02 +00:00
apple_visual.h
apple_xgl_api.h
apple_xgl_api_read.c
apple_xgl_api_stereo.c
apple_xgl_api_viewport.c
appledri.c
appledri.h
appledristr.h
glx_empty.c glx: remove empty GLX_SGIX_swap_group stubs 2018-03-12 14:48:52 +00:00
Makefile.am glx/apple: Ship meson build file in tarball 2018-03-08 12:11:32 +01:00
meson.build meson: fix warnings about comparing unlike types 2018-04-06 15:29:53 -07:00
RELEASE_NOTES
TODO