[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3] console: drop epoxy/gl.h include dependency
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v3] console: drop epoxy/gl.h include dependency |
Date: |
Mon, 20 Mar 2017 12:08:38 +0000 |
On 20 March 2017 at 11:24, Gerd Hoffmann <address@hidden> wrote:
> Use "unsigned int" instead of GLenum and GLuint, so we don't depend on
> these types from opengl headers. Drop all CONFIG_OPENGL #ifdefs from
> console.h
>
> Reported-by: Peter Maydell <address@hidden>
> Signed-off-by: Gerd Hoffmann <address@hidden>
This isn't sufficient to fix the compile failure on OpenBSD,
because there are still files which #include <epoxy/gl.h> but
which aren't being compiled with OPENGL_CFLAGS:
hw/lm32/milkymist.c (via milkymist-hw.h)
ui/sdl2-gl.c
ui/egl-context.c (via ui/egl-context.h and ui/egl-helpers.h)
ui/gtk.c (via ui/gtk.h and ui/egl-helpers.h)
just to take the first few I found via grep. (The OpenBSD
build fails on egl-context.o.)
Rather than trying to figure out exactly which .c files need
to have the OPENGL_CFLAGS applied to them, I think it would
be better if we just put them into the standard QEMU_CFLAGS
that we use for building all objects, the same way we do
for other library CFLAGS requirements. Or is there a reason
we can't do that with OpenGL?
thanks
-- PMM