Merge remote-tracking branch 'remotes/kraxel/tags/pull-vga-20170103-1' into staging
[qemu.git] / ui / Makefile.objs
1 vnc-obj-y += vnc.o
2 vnc-obj-y += vnc-enc-zlib.o vnc-enc-hextile.o
3 vnc-obj-y += vnc-enc-tight.o vnc-palette.o
4 vnc-obj-y += vnc-enc-zrle.o
5 vnc-obj-y += vnc-auth-vencrypt.o
6 vnc-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
7 vnc-obj-y += vnc-ws.o
8 vnc-obj-y += vnc-jobs.o
9
10 common-obj-y += keymaps.o console.o cursor.o qemu-pixman.o
11 common-obj-y += input.o input-keymap.o input-legacy.o
12 common-obj-$(CONFIG_LINUX) += input-linux.o
13 common-obj-$(CONFIG_SPICE) += spice-core.o spice-input.o spice-display.o
14 common-obj-$(CONFIG_SDL) += sdl.mo x_keymap.o
15 common-obj-$(CONFIG_COCOA) += cocoa.o
16 common-obj-$(CONFIG_CURSES) += curses.o
17 common-obj-$(CONFIG_VNC) += $(vnc-obj-y)
18 common-obj-$(CONFIG_GTK) += gtk.o x_keymap.o
19
20 ifeq ($(CONFIG_SDLABI),1.2)
21 sdl.mo-objs := sdl.o sdl_zoom.o
22 endif
23 ifeq ($(CONFIG_SDLABI),2.0)
24 sdl.mo-objs := sdl2.o sdl2-input.o sdl2-2d.o
25 ifeq ($(CONFIG_OPENGL),y)
26 sdl.mo-objs += sdl2-gl.o
27 endif
28 endif
29 sdl.mo-cflags := $(SDL_CFLAGS)
30
31 ifeq ($(CONFIG_OPENGL),y)
32 common-obj-y += shader.o
33 common-obj-y += console-gl.o
34 common-obj-y += egl-helpers.o
35 common-obj-y += egl-context.o
36 ifeq ($(CONFIG_GTK_GL),y)
37 common-obj-$(CONFIG_GTK) += gtk-gl-area.o
38 else
39 common-obj-$(CONFIG_GTK) += gtk-egl.o
40 endif
41 endif
42
43 gtk.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS)
44 gtk-egl.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS) $(OPENGL_CFLAGS)
45 gtk-gl-area.o-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS) $(OPENGL_CFLAGS)
46 shader.o-cflags += $(OPENGL_CFLAGS)
47 console-gl.o-cflags += $(OPENGL_CFLAGS)
48 egl-helpers.o-cflags += $(OPENGL_CFLAGS)
49
50 gtk-egl.o-libs += $(OPENGL_LIBS)
51 shader.o-libs += $(OPENGL_LIBS)
52 console-gl.o-libs += $(OPENGL_LIBS)
53 egl-helpers.o-libs += $(OPENGL_LIBS)