diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-03-08 15:55:29 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-03-08 16:09:37 (GMT) |
commit | e6b9bc4c4269be040c947a464acf2b5c65ba38cd (patch) | |
tree | 85ae816776cff3bb83b2993d9da09fb984606214 /src/plugins | |
parent | 3eb3527db4cfe86ab51506636376d1b59878f42a (diff) | |
download | Qt-e6b9bc4c4269be040c947a464acf2b5c65ba38cd.zip Qt-e6b9bc4c4269be040c947a464acf2b5c65ba38cd.tar.gz Qt-e6b9bc4c4269be040c947a464acf2b5c65ba38cd.tar.bz2 |
Minimaldfb: cleanup how to compile
Add variables DIRECTFB_LIBS and DIRECTFB_INCLUDEPATH to your mkspec
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/graphicssystems/minimaldfb/minimaldfb.pro | 16 |
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 \ |