From 6daad60067fcd21d5840161d6ad29af0876cea97 Mon Sep 17 00:00:00 2001 From: Kitae Kim Date: Tue, 14 Oct 2014 14:00:16 +0900 Subject: [PATCH] vigs: fix compilation errors in case of disable-qt configuration add vigs_qt5 stub functions Change-Id: I523a4ebf5563b31893005ef05805a07be46a2761 Signed-off-by: Kitae Kim --- hw/vigs/Makefile.objs | 5 ++++- hw/vigs/vigs_qt5_stub.c | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 hw/vigs/vigs_qt5_stub.c diff --git a/hw/vigs/Makefile.objs b/hw/vigs/Makefile.objs index c3e265e611..0a05538cf1 100644 --- a/hw/vigs/Makefile.objs +++ b/hw/vigs/Makefile.objs @@ -15,7 +15,10 @@ obj-y += vigs_fenceman.o obj-y += vigs_gl_pool.o obj-y += vigs_gl_backend.o obj-y += vigs_sw_backend.o -obj-y += vigs_qt5.o +obj-$(CONFIG_QT) += vigs_qt5.o +ifndef CONFIG_QT +obj-y += vigs_qt5_stub.o +endif obj-y += work_queue.o obj-y += winsys.o obj-y += display.o diff --git a/hw/vigs/vigs_qt5_stub.c b/hw/vigs/vigs_qt5_stub.c new file mode 100644 index 0000000000..458e32a440 --- /dev/null +++ b/hw/vigs/vigs_qt5_stub.c @@ -0,0 +1,21 @@ +#include "emulator_common.h" +#include "vigs_qt5.h" + +uint32_t qt5_window_width = 0; +uint32_t qt5_window_height = 0; +int qt5_window_angle = 0; + +bool vigs_qt5_enabled(void) +{ + return false; +} + +void *vigs_qt5_display(void) +{ + return NULL; +} + +void *vigs_qt5_gl_context_create(bool is_gl2) +{ + return NULL; +} -- 2.34.1