vigs: fix compilation errors in case of disable-qt configuration 77/28677/1
authorKitae Kim <kt920.kim@samsung.com>
Tue, 14 Oct 2014 05:00:16 +0000 (14:00 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Tue, 14 Oct 2014 05:01:05 +0000 (14:01 +0900)
add vigs_qt5 stub functions

Change-Id: I523a4ebf5563b31893005ef05805a07be46a2761
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
hw/vigs/Makefile.objs
hw/vigs/vigs_qt5_stub.c [new file with mode: 0644]

index c3e265e6113ef7a0bb1df79a27dc843797297197..0a05538cf1acb5cca35a4e441aaa4d7e75d34310 100644 (file)
@@ -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 (file)
index 0000000..458e32a
--- /dev/null
@@ -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;
+}