Skip to content

Commit

Permalink
* Cleaned used include paths a bit that they better match what is in…
Browse files Browse the repository at this point in the history
… sensord-dev. Fixes: NB#2442

 * Removed example headers form sensord-dev.
 * Testcase refactoring.
  • Loading branch information
Antti Virtanen committed Apr 19, 2011
1 parent 7b1f935 commit 4ad8a20
Show file tree
Hide file tree
Showing 45 changed files with 252 additions and 326 deletions.
2 changes: 1 addition & 1 deletion chains/accelerometerchain/accelerometerchain.cpp
Expand Up @@ -34,7 +34,7 @@
#include "config.h"
#include "logging.h"

#include "coordinatealignfilter/coordinatealignfilter.h"
#include "coordinatealignfilter.h"

AccelerometerChain::AccelerometerChain(const QString& id) :
AbstractChain(id)
Expand Down
4 changes: 2 additions & 2 deletions chains/accelerometerchain/accelerometerchain.h
Expand Up @@ -29,8 +29,8 @@

#include "abstractsensor.h"
#include "abstractchain.h"
#include "accelerometeradaptor/accelerometeradaptor.h"
#include "coordinatealignfilter/coordinatealignfilter.h"
#include "coordinatealignfilter.h"
#include "deviceadaptor.h"

class Bin;
template <class TYPE> class BufferReader;
Expand Down
2 changes: 2 additions & 0 deletions chains/accelerometerchain/accelerometerchain.pro
Expand Up @@ -6,4 +6,6 @@ HEADERS += accelerometerchain.h \
SOURCES += accelerometerchain.cpp \
accelerometerchainplugin.cpp

INCLUDEPATH += ../../filters/coordinatealignfilter

include( ../chain-config.pri )
4 changes: 2 additions & 2 deletions chains/orientationchain/orientationchain.h
Expand Up @@ -33,8 +33,8 @@
#include "bufferreader.h"
#include "filter.h"
#include "bin.h"
#include "orientationdata.h"
#include "posedata.h"
#include "datatypes/orientationdata.h"
#include "datatypes/posedata.h"
#include "datatypes/unsigned.h"

class Bin;
Expand Down
3 changes: 1 addition & 2 deletions core/core.pro
Expand Up @@ -11,6 +11,7 @@ SENSORFW_INCLUDEPATHS = .. \
../include \
../filters \
../datatypes

DEPENDPATH += $$SENSORFW_INCLUDEPATHS
INCLUDEPATH += $$SENSORFW_INCLUDEPATHS

Expand All @@ -37,7 +38,6 @@ SOURCES += sensormanager.cpp \
sockethandler.cpp \
inputdevadaptor.cpp \
config.cpp \
calibrationhandler.cpp \
nodebase.cpp

HEADERS += sensormanager.h \
Expand Down Expand Up @@ -66,7 +66,6 @@ HEADERS += sensormanager.h \
sockethandler.h \
inputdevadaptor.h \
config.h \
calibrationhandler.h \
nodebase.h

!mce_disable {
Expand Down
1 change: 0 additions & 1 deletion core/sensormanager.cpp
Expand Up @@ -34,7 +34,6 @@
#include "idutils.h"
#include "logging.h"
#include "mcewatcher.h"
#include "calibrationhandler.h"

#include <QSocketNotifier>
#include <errno.h>
Expand Down
5 changes: 5 additions & 0 deletions debian/changelog
Expand Up @@ -3,6 +3,11 @@ sensord (0.6.43) unstable; urgency=low
[Timo Rongas]
* TestApp configuration file is now included by default.

[Antti Virtanen]
* Cleaned used include paths a bit that they better match what is in sensord-dev. Fixes: NB#244277.
* Removed example headers form sensord-dev.
* Testcase refactoring.

-- Timo Rongas <ext-timo.2.rongas@nokia.com> Fri, 15 Apr 2011 14:05:34 +0300

sensord (0.6.42) unstable; urgency=low
Expand Down
12 changes: 3 additions & 9 deletions examples/adaptorplugin/adaptorplugin.pro
Expand Up @@ -3,7 +3,6 @@ CONFIG += plugin

TARGET = sampleadaptor


include(../../common-config.pri )

HEADERS += sampleadaptor.h \
Expand All @@ -12,17 +11,12 @@ HEADERS += sampleadaptor.h \
SOURCES += sampleadaptor.cpp \
sampleadaptorplugin.cpp

SENSORFW_INCLUDEPATHS = ../.. \
../../include \
SENSORFW_INCLUDEPATHS = ../../include \
../../sensord \
../../datatypes \
../../core \
../../filters
../../filters \
../..

DEPENDPATH += $$SENSORFW_INCLUDEPATHS
INCLUDEPATH += $$SENSORFW_INCLUDEPATHS

include(../../common-install.pri)
publicheaders.files += $$HEADERS
target.path = $$PLUGINPATH

12 changes: 3 additions & 9 deletions examples/chainplugin/chainplugin.pro
@@ -1,8 +1,6 @@
TEMPLATE = lib
CONFIG += plugin

QT += dbus

TARGET = samplechain

include( ../../common-config.pri )
Expand All @@ -13,17 +11,13 @@ HEADERS += samplechain.h \
SOURCES += samplechain.cpp \
samplechainplugin.cpp

SENSORFW_INCLUDEPATHS = ../.. \
../../include \
SENSORFW_INCLUDEPATHS = ../../include \
../../sensord \
../../datatypes \
../../filters \
../../core \
../../adaptors
../../adaptors \
../..

DEPENDPATH += $$SENSORFW_INCLUDEPATHS
INCLUDEPATH += $$SENSORFW_INCLUDEPATHS

include(../../common-install.pri)
publicheaders.files += $$HEADERS
target.path = $$PLUGINPATH
13 changes: 3 additions & 10 deletions examples/filterplugin/filterplugin.pro
@@ -1,18 +1,15 @@
TEMPLATE = lib
CONFIG += plugin
QT -= gui
QT += dbus

TARGET = samplefilter

include( ../../common-config.pri )

SENSORFW_INCLUDEPATHS = ../.. \
../../include \
.. \
SENSORFW_INCLUDEPATHS = ../../include \
../../sensord \
../../core \
../../datatypes
../../datatypes \
../..

DEPENDPATH += $$SENSORFW_INCLUDEPATHS
INCLUDEPATH += $$SENSORFW_INCLUDEPATHS
Expand All @@ -22,7 +19,3 @@ HEADERS += samplefilter.h \

SOURCES += samplefilter.cpp \
samplefilterplugin.cpp

include(../../common-install.pri)
publicheaders.files = $$HEADERS
target.path = $$PLUGINPATH
12 changes: 3 additions & 9 deletions examples/sensorplugin/sensorplugin.pro
@@ -1,8 +1,6 @@
TEMPLATE = lib
CONFIG += plugin

QT += dbus

TARGET = samplesensor

include( ../../common-config.pri )
Expand All @@ -15,16 +13,12 @@ SOURCES += samplesensor.cpp \
samplesensor_a.cpp \
sampleplugin.cpp

SENSORFW_INCLUDEPATHS = ../.. \
../../include \
SENSORFW_INCLUDEPATHS = ../../include \
../../sensord \
../../datatypes \
../../core \
../../filters
../../filters \
../..

DEPENDPATH += $$SENSORFW_INCLUDEPATHS
INCLUDEPATH += $$SENSORFW_INCLUDEPATHS

include(../../common-install.pri)
publicheaders.files += $$HEADERS
target.path = $$PLUGINPATH
5 changes: 2 additions & 3 deletions filters/declinationfilter/declinationfilter.h
Expand Up @@ -29,12 +29,11 @@

#include <QObject>
#include <QAtomicInt>
#include "orientationdata.h"
#include "datatypes/orientationdata.h"
#include "filter.h"

/**
* @brief Filter for calculating declination correction for Compass data..
*
* Filter for calculating declination correction for Compass data.
*/
class DeclinationFilter : public QObject, public Filter<CompassData, DeclinationFilter, CompassData>
{
Expand Down
4 changes: 2 additions & 2 deletions qt-api/abstractsensor_i.h
Expand Up @@ -141,7 +141,7 @@ class AbstractSensorChannelInterface : public QObject
* Standby-override is used to keep sensor enabled when display
* is blanked.
*
* @param standby-override state
* @param override standby-override state
* @return true if succesfully set.
*/
bool setStandbyOverride(bool override);
Expand Down Expand Up @@ -261,7 +261,7 @@ class AbstractSensorChannelInterface : public QObject
* Request data range. Usable ranges are listed by
* #getAvailableDataRanges().
*
* @param requested range.
* @param range requested range.
*/
void requestDataRange(DataRange range);

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion core/calibrationhandler.h → sensord/calibrationhandler.h
Expand Up @@ -31,7 +31,7 @@
#include <QString>
#include <QTimer>
#include "datatypes/magneticfield.h"
#include "sensors/magnetometersensor/magnetometersensor.h"
#include "magnetometersensor.h"

/**
* @brief Helper class for maintaining magnetometer calibration.
Expand Down
10 changes: 7 additions & 3 deletions sensord/sensord.pro
Expand Up @@ -12,7 +12,9 @@ SENSORFW_INCLUDEPATHS = .. \
../include \
../filters \
../datatypes \
../core
../core \
../sensors/magnetometersensor

DEPENDPATH += $$SENSORFW_INCLUDEPATHS
INCLUDEPATH += $$SENSORFW_INCLUDEPATHS

Expand All @@ -22,9 +24,11 @@ QMAKE_LIBDIR_FLAGS += -L../datatypes -lsensordatatypes \
QMAKE_RPATHDIR += /usr/lib/sensord

SOURCES += main.cpp \
parser.cpp
parser.cpp \
calibrationhandler.cpp

HEADERS += parser.h
HEADERS += parser.h \
calibrationhandler.h

contextprovider {
DEFINES += PROVIDE_CONTEXT_INFO
Expand Down
3 changes: 1 addition & 2 deletions tests/adaptors/adaptors.pro
Expand Up @@ -41,5 +41,4 @@ INCLUDEPATH += ../.. \
../../adaptors/kbslideradaptor \
../../adaptors/proximityadaptor

QMAKE_LIBDIR_FLAGS += -L../../builddir/core -L../../core/ -lsensorfw

QMAKE_LIBDIR_FLAGS += -L../../builddir/core -L../../core/ -lsensorfw
18 changes: 8 additions & 10 deletions tests/adaptors/adaptortest.cpp
Expand Up @@ -29,17 +29,15 @@
#include <QTest>
#include <QVariant>

#include <cerrno>

#include "adaptortest.h"

#include "adaptors/accelerometeradaptor/accelerometeradaptor.h"
#include "adaptors/magnetometeradaptor/magnetometeradaptor.h"
#include "adaptors/alsadaptor/alsadaptor.h"
#include "adaptors/touchadaptor/touchadaptor.h"
#include "adaptors/tapadaptor/tapadaptor.h"
#include "adaptors/kbslideradaptor/kbslideradaptor.h"
#include "adaptors/proximityadaptor/proximityadaptor.h"
#include "accelerometeradaptor.h"
#include "magnetometeradaptor.h"
#include "alsadaptor.h"
#include "touchadaptor.h"
#include "tapadaptor.h"
#include "kbslideradaptor.h"
#include "proximityadaptor.h"

#include "config.h"

Expand Down Expand Up @@ -111,7 +109,7 @@ void AdaptorTest::testTouchAdaptor()
QString sensorName("touch");
TouchAdaptor* adaptor = dynamic_cast<TouchAdaptor*>(TouchAdaptor::factoryMethod("touchadaptor"));
QVERIFY( adaptor );

QVERIFY(adaptor->startAdaptor());
QVERIFY(adaptor->startSensor(sensorName));

Expand Down
7 changes: 4 additions & 3 deletions tests/benchmark/benchmarktest/benchmarktest.pro
Expand Up @@ -11,10 +11,11 @@ TARGET = sensorbenchmark-test
HEADERS += benchmarktests.h signaldump.h
SOURCES += benchmarktests.cpp

SENSORFW_INCLUDEPATHS = ../../.. \
../../../include \
SENSORFW_INCLUDEPATHS = ../../../include \
../../../filters \
../../../datatypes
../../../datatypes \
../../../qt-api \
../../..

DEPENDPATH += $$SENSORFW_INCLUDEPATHS
INCLUDEPATH += $$SENSORFW_INCLUDEPATHS
Expand Down
4 changes: 2 additions & 2 deletions tests/benchmark/benchmarktest/benchmarktests.cpp
Expand Up @@ -23,8 +23,8 @@
</p>
*/

#include "qt-api/sensormanagerinterface.h"
#include "qt-api/alssensor_i.h"
#include "sensormanagerinterface.h"
#include "alssensor_i.h"

#include "benchmarktests.h"
#include "signaldump.h"
Expand Down
4 changes: 2 additions & 2 deletions tests/benchmark/dummyclient/dummyclient.pro
Expand Up @@ -6,8 +6,8 @@ include( ../../common-install.pri)

INCLUDEPATH += ../../../qt-api \
../../../core \
../../../ \
../../../include
../../../include \
../../..

SOURCES += dummyclient.cpp
HEADERS += dummyclient.h
Expand Down
6 changes: 3 additions & 3 deletions tests/benchmark/fakeadaptor/fakeadaptor.pro
Expand Up @@ -11,11 +11,11 @@ HEADERS += fakeadaptor.h \
SOURCES += fakeadaptor.cpp \
fakeadaptorplugin.cpp

SENSORFW_INCLUDEPATHS = ../../../ \
../../../include \
SENSORFW_INCLUDEPATHS = ../../../include \
../../../core \
../../../datatypes \
../../../filters
../../../filters \
../../..

DEPENDPATH += $$SENSORFW_INCLUDEPATHS
INCLUDEPATH += $$SENSORFW_INCLUDEPATHS
Expand Down
16 changes: 5 additions & 11 deletions tests/chains/chains.pro
@@ -1,28 +1,22 @@
QT += dbus network

LIBS += -Wl,-rpath,/usr/lib/sensord,-E

include(../common-install.pri)

TEMPLATE = app
TARGET = sensorchains-test

CONFIG += testcase

HEADERS += chainstest.h \



SOURCES += chainstest.cpp \

HEADERS += chainstest.h
SOURCES += chainstest.cpp

INCLUDEPATH += ../.. \
../../include \
INCLUDEPATH += ../../include \
../../chains \
../../core \
../../chains \
../../adaptors \
../../datatypes
../../datatypes \
../..

QMAKE_LIBDIR_FLAGS += -L../../builddir/datatypes -L../../datatypes/ -lsensordatatypes
QMAKE_LIBDIR_FLAGS += -L../../builddir/core -L../../core/ -lsensorfw

0 comments on commit 4ad8a20

Please sign in to comment.