summaryrefslogtreecommitdiffstats
path: root/mkspecs/devices/linux-emu-g++/qmake.conf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/devices/linux-emu-g++/qmake.conf')
-rw-r--r--mkspecs/devices/linux-emu-g++/qmake.conf29
1 files changed, 29 insertions, 0 deletions
diff --git a/mkspecs/devices/linux-emu-g++/qmake.conf b/mkspecs/devices/linux-emu-g++/qmake.conf
new file mode 100644
index 0000000000..1de381ee70
--- /dev/null
+++ b/mkspecs/devices/linux-emu-g++/qmake.conf
@@ -0,0 +1,29 @@
+#
+# qmake configuration for the Qt Simulator for Embedded Linux
+# (cross-compile for the x86-based Yocto image + use a custom EGL/GLES implementation)
+#
+# Example configure command:
+#
+# ./configure \
+# -prefix /usr/local/qt5 \
+# -hostprefix /usr/local/qt5-host \
+# -extprefix $PWD/../qt5 \
+# -device emu \
+# -device-option CROSS_COMPILE=$QT/Boot2Qt/emulator/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux- \
+# -sysroot $QT/Boot2Qt/emulator/toolchain/sysroots/i586-poky-linux \
+# -nomake examples -nomake tests -v \
+# -release -force-debug-info \
+# -opengl es2
+
+include(../common/linux_device_pre.conf)
+
+QMAKE_LIBS_EGL = -lQtGlesStreamClient
+QMAKE_LIBS_OPENGL_ES2 = $$QMAKE_LIBS_EGL
+QMAKE_LIBS_OPENGL_ES2_DEBUG = $$QMAKE_LIBS_EGL
+
+# Preferred eglfs backend
+EGLFS_DEVICE_INTEGRATION = eglfs_emu
+
+include(../common/linux_device_post.conf)
+
+load(qt_config)