aboutsummaryrefslogtreecommitdiff
path: root/scribiu.pro
diff options
context:
space:
mode:
Diffstat (limited to 'scribiu.pro')
-rw-r--r--scribiu.pro32
1 files changed, 23 insertions, 9 deletions
diff --git a/scribiu.pro b/scribiu.pro
index a9b12d0..0c68fa4 100644
--- a/scribiu.pro
+++ b/scribiu.pro
@@ -1,20 +1,29 @@
-QT += core gui svg phonon
-
-greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
-
TARGET = scribiu
+VERSION = 1.5.3
TEMPLATE = app
+QT += core gui widgets svg multimedia
+
+CONFIG += c++11
+
CONFIG += link_pkgconfig
-PKGCONFIG += libudev libusb openobex
-LIBS += -lquazip
+PKGCONFIG += libudev libusb-1.0 openobex
-SOURCES += main.cc\
- mainwindow.cc \
+packagesExist(quazip1-qt5) {
+ PKGCONFIG += quazip1-qt5
+} else {
+ # Some "distributions" forgot to distribute the pkg-config file...
+ LIBS += -lquazip5
+ INCLUDEPATH += /usr/include/quazip5
+}
+
+SOURCES += main.cc \
+ mainwindow.cc \
smartpenmanager.cc \
notebookmodel.cc \
smartpensyncer.cc \
smartpen.cc bitreader.cc stfreader.cc \
+ stfexporter.cc \
xmlutils.cc \
notebookview.cc \
afdnotebook.cc \
@@ -30,6 +39,7 @@ HEADERS += mainwindow.h \
notebookmodel.h \
smartpensyncer.h \
smartpen.h bitreader.h stfreader.h \
+ stfexporter.h \
xmlutils.h \
notebookview.h \
afdnotebook.h \
@@ -46,9 +56,13 @@ isEmpty(PREFIX) {
PREFIX = /usr
}
+isEmpty(UDEVDIR) {
+ UDEVDIR = $$system(pkg-config --variable=udevdir udev)
+}
+
target.path = $$PREFIX/bin
-udev.path = /lib/udev/rules.d
+udev.path = $$UDEVDIR/rules.d
udev.files = 60-livescribe.rules
icon_scalable.path = $$PREFIX/share/icons/hicolor/scalable/apps