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
8 vnc-obj-y += vnc-jobs.o
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 kbd-state.o
12 common-obj-y += input-barrier.o
13 common-obj-$(CONFIG_LINUX) += input-linux.o
14 common-obj-$(CONFIG_SPICE) += spice-core.o spice-input.o spice-display.o
15 common-obj-$(CONFIG_COCOA) += cocoa.o
16 common-obj-$(CONFIG_VNC) += $(vnc-obj-y)
17 common-obj-$(call lnot,$(CONFIG_VNC)) += vnc-stubs.o
20 common-obj-$(CONFIG_SDL) += sdl.mo
21 sdl.mo-objs := sdl2.o sdl2-input.o sdl2-2d.o
22 ifeq ($(CONFIG_OPENGL),y)
23 sdl.mo-objs += sdl2-gl.o
25 sdl.mo-cflags := $(SDL_CFLAGS)
26 sdl.mo-libs := $(SDL_LIBS)
29 common-obj-$(CONFIG_GTK) += gtk.mo
31 gtk.mo-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS)
32 gtk.mo-libs := $(GTK_LIBS) $(VTE_LIBS)
33 ifeq ($(CONFIG_OPENGL),y)
34 gtk.mo-objs += gtk-egl.o
35 gtk.mo-libs += $(OPENGL_LIBS)
36 ifeq ($(CONFIG_GTK_GL),y)
37 gtk.mo-objs += gtk-gl-area.o
41 ifeq ($(CONFIG_X11),y)
42 sdl.mo-objs += x_keymap.o
43 gtk.mo-objs += x_keymap.o
44 x_keymap.o-cflags := $(X11_CFLAGS)
45 x_keymap.o-libs := $(X11_LIBS)
48 common-obj-$(CONFIG_CURSES) += curses.mo
49 curses.mo-objs := curses.o
50 curses.mo-cflags := $(CURSES_CFLAGS) $(ICONV_CFLAGS)
51 curses.mo-libs := $(CURSES_LIBS) $(ICONV_LIBS)
53 ifeq ($(CONFIG_GIO)$(CONFIG_SPICE),yy)
54 common-obj-$(if $(CONFIG_MODULES),m,y) += spice-app.mo
56 spice-app.mo-objs := spice-app.o
57 spice-app.mo-cflags := $(GIO_CFLAGS)
58 spice-app.mo-libs := $(GIO_LIBS)
60 common-obj-$(CONFIG_OPENGL) += shader.o
61 common-obj-$(CONFIG_OPENGL) += console-gl.o
62 common-obj-$(CONFIG_OPENGL) += egl-helpers.o
63 common-obj-$(CONFIG_OPENGL) += egl-context.o
64 common-obj-$(CONFIG_OPENGL_DMABUF) += egl-headless.o
66 shader.o-libs += $(OPENGL_LIBS)
67 console-gl.o-libs += $(OPENGL_LIBS)
68 egl-helpers.o-libs += $(OPENGL_LIBS)
69 egl-context.o-libs += $(OPENGL_LIBS)
70 egl-headless.o-libs += $(OPENGL_LIBS)