Reworked to allow separate paths for saving images and videos
[harmattan/cameraplus] / src / src.pro
index 0a5f2e8..6dc0dd0 100644 (file)
@@ -2,21 +2,56 @@ TEMPLATE = app
 TARGET = cameraplus
 DEPENDPATH += . ../
 INCLUDEPATH += . ../
-
-QT += declarative opengl
-
-CONFIG += link_pkgconfig debug static mobility
-
-MOBILITY += location
-
-PKGCONFIG = gstreamer-0.10 gstreamer-interfaces-0.10 gstreamer-video-0.10 gstreamer-tag-0.10 \
-            gstreamer-pbutils-0.10 meego-gstreamer-interfaces-0.10 quill qmsystem2 libresourceqt1
-
-
-LIBS +=  -L../imports/ -limports -L../lib/ -lqtcamera
-
-SOURCES += main.cpp settings.cpp filenaming.cpp quillitem.cpp displaystate.cpp fsmonitor.cpp \
-           cameraresources.cpp compass.cpp orientation.cpp geocode.cpp
-
-HEADERS += settings.h filenaming.h quillitem.h displaystate.h fsmonitor.h \
-           cameraresources.h compass.h orientation.h geocode.h
+include(../cameraplus.pri)
+
+QT += dbus
+CONFIG += link_pkgconfig
+
+qt4 {
+    QT += declarative opengl
+    PKGCONFIG += QtSparql qmsystem2 libresourceqt1 qdeclarative-boostable
+}
+
+qt5 {
+    QT += qml quick
+    PKGCONFIG += Qt5Sparql qmsystem2-qt5 libresourceqt5 qdeclarative5-boostable
+}
+
+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 \
+           mountprotector.cpp
+
+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 \
+           mountprotector.h
+
+RESOURCES += ../qml/qml.qrc
+
+contains(CONFIG, qmljsdebug) {
+    message("Enabling QML/JS Debugging")
+    QT += script
+    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