diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-05-26 12:26:21 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-10-08 10:34:53 +0200 |
commit | 925a04000231ad865770ba227876ba518ac3e479 (patch) | |
tree | 84b10c22b9825cb4c84386af1c3e489727187e1c /ui/Makefile.objs | |
parent | 4782aeb79fbcb70bb96b52f6d9bc7cadb3cf7d58 (diff) |
gtk/opengl: add opengl context and scanout support (GtkGLArea)
This allows virtio-gpu to render in 3d mode.
Uses native opengl support which is present
in gtk versions 3.16 and newer.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/Makefile.objs')
-rw-r--r-- | ui/Makefile.objs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/Makefile.objs b/ui/Makefile.objs index 7a49026e4f..728393c5ea 100644 --- a/ui/Makefile.objs +++ b/ui/Makefile.objs @@ -32,11 +32,16 @@ common-obj-y += shader.o common-obj-y += console-gl.o common-obj-y += egl-helpers.o common-obj-y += egl-context.o +ifeq ($(CONFIG_GTK_GL),y) +common-obj-$(CONFIG_GTK) += gtk-gl-area.o +else common-obj-$(CONFIG_GTK) += gtk-egl.o endif +endif gtk.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS) gtk-egl.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS) $(OPENGL_CFLAGS) +gtk-gl-area.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS) $(OPENGL_CFLAGS) shader.o-cflags += $(OPENGL_CFLAGS) console-gl.o-cflags += $(OPENGL_CFLAGS) egl-helpers.o-cflags += $(OPENGL_CFLAGS) |