summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/graphicssystems/minimaldfb/minimaldfb.pro16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/plugins/graphicssystems/minimaldfb/minimaldfb.pro b/src/plugins/graphicssystems/minimaldfb/minimaldfb.pro
index f5d2406..b6c2ea8 100644
--- a/src/plugins/graphicssystems/minimaldfb/minimaldfb.pro
+++ b/src/plugins/graphicssystems/minimaldfb/minimaldfb.pro
@@ -2,18 +2,14 @@ TARGET = qminimaldfb
include(../../qpluginbase.pri)
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/graphicssystems
-system(pkg-config --exists directfb) {
- DIRECTFB_CFLAGS = $$system(pkg-config --cflags directfb)
- DIRECTFB_LIBS = $$system(pkg-config --libs directfb)
-} else {
- directfb_config = $$SYSTEM(which directfb-config)
- !isEmpty(directfb_config) {
- DIRECTFB_CFLAGS = $$system(directfb-config --cflags)
- DIRECTFB_LIBS = $$system(directfb-config --libs)
- }
+isEmpty(DIRECTFB_LIBS) {
+ DIRECTFB_LIBS = -ldirectfb -lfusion -ldirect -lpthread
+}
+isEmpty(DIRECTFB_INCLUDEPATH) {
+ DIRECTFB_INCLUDEPATH = /usr/include/directfb
}
-QMAKE_CXXFLAGS += $$DIRECTFB_CFLAGS
+INCLUDEPATH += $$DIRECTFB_INCLUDEPATH
LIBS += $$DIRECTFB_LIBS
SOURCES = main.cpp \