Renamed src/nemo to src/sailfish
[harmattan/cameraplus] / src / src.pro
index 036e8d8..601da44 100644 (file)
@@ -2,26 +2,31 @@ TEMPLATE = app
 TARGET = cameraplus
 DEPENDPATH += . ../
 INCLUDEPATH += . ../
+include(../cameraplus.pri)
 
-QT += declarative opengl dbus
+QT += dbus
+CONFIG += link_pkgconfig
 
-CONFIG += link_pkgconfig mobility qtsparql
-
-MOBILITY += location systeminfo
+qt4 {
+    QT += declarative opengl
+    PKGCONFIG += QtSparql qmsystem2 libresourceqt1 qdeclarative-boostable
+}
 
-PKGCONFIG = quill qmsystem2 libresourceqt1
+qt5 {
+    QT += qml quick
+    PKGCONFIG += Qt5Sparql qmsystem2-qt5 libresourceqt5 qdeclarative5-boostable
+}
 
-SOURCES += main.cpp settings.cpp filenaming.cpp quillitem.cpp displaystate.cpp fsmonitor.cpp \
-           cameraresources.cpp compass.cpp orientation.cpp geocode.cpp mountprotector.cpp \
-           trackerstore.cpp focusrectangle.cpp sharehelper.cpp deletehelper.cpp galleryhelper.cpp \
-           postcapturemodel.cpp batteryinfo.cpp gridlines.cpp deviceinfo.cpp devicekeys.cpp \
-           platformsettings.cpp dbusservice.cpp qmlfileengine.cpp
+SOURCES += main.cpp \
+           settings.cpp filenaming.cpp cameraresources.cpp \
+           trackerstore.cpp focusrectangle.cpp sharehelper.cpp \
+           deletehelper.cpp galleryhelper.cpp postcapturemodel.cpp \
+           gridlines.cpp platformsettings.cpp dbusservice.cpp
 
-HEADERS += settings.h filenaming.h quillitem.h displaystate.h fsmonitor.h \
-           cameraresources.h compass.h orientation.h geocode.h mountprotector.h \
-           trackerstore.h focusrectangle.h sharehelper.h deletehelper.h galleryhelper.h \
-           postcapturemodel.h batteryinfo.h gridlines.h deviceinfo.h devicekeys.h \
-           platformsettings.h dbusservice.h qmlfileengine.h
+HEADERS += settings.h filenaming.h cameraresources.h \
+           trackerstore.h focusrectangle.h sharehelper.h \
+           deletehelper.h galleryhelper.h postcapturemodel.h \
+           gridlines.h platformsettings.h dbusservice.h
 
 RESOURCES += ../qml/qml.qrc
 
@@ -31,5 +36,20 @@ contains(CONFIG, qmljsdebug) {
     include(../qmljsdebugger/qmljsdebugger-src.pri)
 }
 
+harmattan {
+    include(harmattan/harmattan.pri)
+    RESOURCES += ../qml/harmattan/harmattan.qrc
+}
+
+sailfish {
+    include(sailfish/sailfish.pri)
+    RESOURCES += ../qml/sailfish/sailfish.qrc
+}
+
+qt4 {
+    SOURCES += qmlfileengine.cpp
+    HEADERS += qmlfileengine.h
+}
+
 target.path = /usr/bin/
 INSTALLS += target