PDA

View Full Version : Adding a Screen Driver



e8johan
13th July 2007, 10:36
I've started to implement an accelerated screen driver for a specific graphics controller. The controller offers framebuffer device, but certain operations such as blitting and drawing lines can be accelerated using ioctl commands.

To implement the screen driver I've used the files shown here: http://doc.trolltech.com/4.3/qtopiacore-svgalib.html as a starting point. My problem is that the documentation never tells me how to build the plug-in - how the project file is supposed to look. The closest information I can find is this:

"To be able to compile using private header files you need to use a qmake binary within a compiled Qtopia Core package."

Any tips or directions would be very welcome.

jpn
13th July 2007, 11:09
I'd expect a suitable project file for the plugin to be more or less something like this:


TEMPLATE = lib
CONFIG += plugin static
TARGET = svgalibscreendriver
# DESTDIR, INCLUDEPATH...

HEADERS = svgalibpaintdevice.h \
svgalibpaintengine.h \
svgalibscreen.h \
svgalibsurface.h

SOURCES = svgalibpaintdevice.cpp \
svgalibpaintengine.cpp \
svgalibplugin.cpp \
svgalibscreen.cpp \
svgalibsurface.cpp


TARGET must match Q_EXPORT_PLUGIN2 and Q_IMPORT_PLUGIN. Did I overlook something? :)