summaryrefslogtreecommitdiff
path: root/classes/palmtop.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/palmtop.bbclass')
-rw-r--r--classes/palmtop.bbclass14
1 files changed, 10 insertions, 4 deletions
diff --git a/classes/palmtop.bbclass b/classes/palmtop.bbclass
index 523c3d71bb..fb2f539589 100644
--- a/classes/palmtop.bbclass
+++ b/classes/palmtop.bbclass
@@ -1,10 +1,16 @@
-# basically a placeholder for something more fancy
-# for now, just declare some things
+# this build class sets up qmake variables to
+# * build using the Qt Windowing System (QWS)
+# * use qt
+# * link against supc++ instead of stdc++
+# * use threads, if requested via PALMTOP_USE_MULTITHREADED_QT = "yes"
+# inherit this class to build programs against libqpe
+# inherit opie if you want to build programs against libopie2
inherit qmake
-EXTRA_QMAKEVARS_POST_append = " DEFINES+=QWS LIBS+=-lqpe CONFIG+=qt LIBS-=-lstdc++ LIBS+=-lsupc++"
+EXTRA_QMAKEVARS_POST += "DEFINES+=QWS LIBS+=-lqpe CONFIG+=qt LIBS-=-lstdc++ LIBS+=-lsupc++"
+EXTRA_QMAKEVARS_POST += "${@base_conditional("PALMTOP_USE_MULTITHREADED_QT", "yes", "CONFIG+=thread", "",d)}'
-DEPENDS_prepend = "virtual/libqpe uicmoc-native "
+DEPENDS_prepend = "virtual/libqpe1 uicmoc-native "
FILES_${PN} = "${palmtopdir}"