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
18 ifneq (,$(findstring m,$(CONFIG_SDL)$(CONFIG_GTK)))
19 common-obj-$(CONFIG_WIN32) += win32-kbd-hook.o
23 common-obj-$(CONFIG_SDL) += sdl.mo
24 sdl.mo-objs := sdl2.o sdl2-input.o sdl2-2d.o
25 ifeq ($(CONFIG_OPENGL),y)
26 sdl.mo-objs += sdl2-gl.o
28 sdl.mo-cflags := $(SDL_CFLAGS)
29 sdl.mo-libs := $(SDL_LIBS)
32 common-obj-$(CONFIG_GTK) += gtk.mo
34 gtk.mo-cflags := $(GTK_CFLAGS) $(VTE_CFLAGS)
35 gtk.mo-libs := $(GTK_LIBS) $(VTE_LIBS)
36 ifeq ($(CONFIG_OPENGL),y)
37 gtk.mo-objs += gtk-egl.o
38 gtk.mo-libs += $(OPENGL_LIBS)
39 ifeq ($(CONFIG_GTK_GL),y)
40 gtk.mo-objs += gtk-gl-area.o
44 ifeq ($(CONFIG_X11),y)
45 sdl.mo-objs += x_keymap.o
46 gtk.mo-objs += x_keymap.o
47 x_keymap.o-cflags := $(X11_CFLAGS)
48 x_keymap.o-libs := $(X11_LIBS)
51 common-obj-$(CONFIG_CURSES) += curses.mo
52 curses.mo-objs := curses.o
53 curses.mo-cflags := $(CURSES_CFLAGS) $(ICONV_CFLAGS)
54 curses.mo-libs := $(CURSES_LIBS) $(ICONV_LIBS)
56 ifeq ($(CONFIG_GIO)$(CONFIG_SPICE),yy)
57 common-obj-$(if $(CONFIG_MODULES),m,y) += spice-app.mo
59 spice-app.mo-objs := spice-app.o
60 spice-app.mo-cflags := $(GIO_CFLAGS)
61 spice-app.mo-libs := $(GIO_LIBS)
63 common-obj-$(CONFIG_OPENGL) += shader.o
64 common-obj-$(CONFIG_OPENGL) += console-gl.o
65 common-obj-$(CONFIG_OPENGL) += egl-helpers.o
66 common-obj-$(CONFIG_OPENGL) += egl-context.o
67 common-obj-$(CONFIG_OPENGL_DMABUF) += egl-headless.o
69 shader.o-libs += $(OPENGL_LIBS)
70 console-gl.o-libs += $(OPENGL_LIBS)
71 egl-helpers.o-libs += $(OPENGL_LIBS)
72 egl-context.o-libs += $(OPENGL_LIBS)
73 egl-headless.o-libs += $(OPENGL_LIBS)