0fb289024e98c4c4d43bf77264b59e0af3753fa9
[harmattan/cameraplus] / src / src.pro
1 TEMPLATE = app
2 TARGET = cameraplus
3 DEPENDPATH += . ../
4 INCLUDEPATH += . ../
5 include(../cameraplus.pri)
6
7 QT += dbus
8 CONFIG += link_pkgconfig
9
10 qt4 {
11     QT += declarative opengl
12     CONFIG += mobility
13     MOBILITY += location systeminfo
14     PKGCONFIG += qtsparql qmsystem2 libresourceqt1
15 }
16
17 qt5 {
18     QT += qml quick
19     PKGCONFIG += Qt5Sparql qmsystem2-qt5 libresourceqt5 qdeclarative5-boostable
20     DEFINES += HAVE_BOOSTER
21 }
22
23 SOURCES += main.cpp settings.cpp filenaming.cpp displaystate.cpp fsmonitor.cpp \
24            cameraresources.cpp compass.cpp orientation.cpp mountprotector.cpp \
25            trackerstore.cpp focusrectangle.cpp sharehelper.cpp deletehelper.cpp galleryhelper.cpp \
26            postcapturemodel.cpp batteryinfo.cpp gridlines.cpp devicekeys.cpp \
27            platformsettings.cpp dbusservice.cpp
28
29 HEADERS += settings.h filenaming.h displaystate.h fsmonitor.h \
30            cameraresources.h compass.h orientation.h mountprotector.h \
31            trackerstore.h focusrectangle.h sharehelper.h deletehelper.h galleryhelper.h \
32            postcapturemodel.h batteryinfo.h gridlines.h devicekeys.h \
33            platformsettings.h dbusservice.h
34
35 RESOURCES += ../qml/qml.qrc
36
37 contains(CONFIG, qmljsdebug) {
38     message("Enabling QML/JS Debugging")
39     QT += script
40     include(../qmljsdebugger/qmljsdebugger-src.pri)
41 }
42
43 harmattan {
44     include(harmattan/harmattan.pri)
45     RESOURCES += ../qml/harmattan/harmattan.qrc
46 }
47
48 nemo {
49     include(nemo/nemo.pri)
50     RESOURCES += ../qml/harmattan/harmattan.qrc
51 }
52
53 qt4 {
54 # TODO: geocode.*
55     SOURCES += qmlfileengine.cpp geocode.cpp deviceinfo.cpp
56     HEADERS += qmlfileengine.h geocode.h deviceinfo.h
57 }
58
59 target.path = /usr/bin/
60 INSTALLS += target