summaryrefslogtreecommitdiff
path: root/ui/Makefile.objs
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-04-24 07:48:45 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-05-05 10:43:03 +0200
commit985e1c9b008e5e8b6eac41546266d3abcfa6282a (patch)
tree5130bd7fcc53da40dc299ffb6899655fc6bdc313 /ui/Makefile.objs
parentd98bc0b654b97d130338e76e0928296f84e6d6fd (diff)
downloadqemu-985e1c9b008e5e8b6eac41546266d3abcfa6282a.tar.gz
opengl: add shader helper functions.
Helper functions to compile, link and run opengl shader programs. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/Makefile.objs')
-rw-r--r--ui/Makefile.objs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/Makefile.objs b/ui/Makefile.objs
index 13b5cfbe41..7a76df578f 100644
--- a/ui/Makefile.objs
+++ b/ui/Makefile.objs
@@ -24,4 +24,11 @@ sdl.mo-objs := sdl2.o sdl2-input.o sdl2-2d.o
endif
sdl.mo-cflags := $(SDL_CFLAGS)
+ifeq ($(CONFIG_OPENGL),y)
+common-obj-y += shader.o
+endif
+
gtk.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS)
+shader.o-cflags += $(OPENGL_CFLAGS)
+
+shader.o-libs += $(OPENGL_LIBS)