-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathharbour-seaprint.pro
120 lines (108 loc) · 3.79 KB
/
harbour-seaprint.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# NOTICE:
#
# Application name defined in TARGET has a corresponding QML filename.
# If name defined in TARGET is changed, the following needs to be done
# to match new name:
# - corresponding QML filename must be changed
# - desktop icon filename must be changed
# - desktop filename must be changed
# - icon definition filename in desktop file must be changed
# - translation filenames have to be changed
# The name of your application
TARGET = harbour-seaprint
i18n.path = /usr/share/harbour-seaprint/translations
i18n.files = translations/harbour-seaprint-de.qm \
translations/harbour-seaprint-zh_CN.qm \
translations/harbour-seaprint-fr.qm \
translations/harbour-seaprint-es.qm \
translations/harbour-seaprint-nl.qm \
translations/harbour-seaprint-pl.qm
INSTALLS += i18n
# automatic generation of the translation .qm files from .ts files
system(lrelease $$PWD/translations/*.ts)
CONFIG += sailfishapp
QT += svg dbus
PKGCONFIG += mlite5 libcurl glib-2.0
INCLUDEPATH += $$system(pkg-config --cflags-only-I poppler-glib | sed 's/-I//g')
LIBS += -lcurl -lglib-2.0 -lgobject-2.0 -ldl -lstdc++fs
QMAKE_CXXFLAGS += -std=c++17
DEFINES += MADNESS=1
DEFINES += PDF_CREATOR='\\"SeaPrint\ $$VERSION\\"'
DEFINES += SEAPRINT_VERSION='\\"$$VERSION\\"'
SOURCES += src/harbour-seaprint.cpp \
src/dbusadaptorbase.cpp \
src/freedesktopdbusadaptor.cpp \
src/rangelistchecker.cpp \
src/convertchecker.cpp \
src/imageitem.cpp \
src/ippdiscovery.cpp \
src/ippmsg.cpp \
src/ippprinter.cpp \
src/mimer.cpp \
ppm2pwg/lib/printparameters.cpp \
ppm2pwg/lib/ppm2pwg.cpp \
ppm2pwg/lib/pdf2printable.cpp \
ppm2pwg/lib/baselinify.cpp \
ppm2pwg/lib/curlrequester.cpp \
ppm2pwg/bytestream/bytestream.cpp \
src/overrider.cpp \
src/printerworker.cpp \
src/seaprintdbusadaptor.cpp \
src/settings.cpp
DISTFILES += qml/harbour-seaprint.qml \
qml/cover/CoverPage.qml \
qml/components/*qml \
qml/pages/*.qml \
qml/pages/*.js \
qml/pages/*svg \
qml/pages/*png \
rpm/harbour-seaprint.changes.in \
rpm/harbour-seaprint.changes.run.in \
rpm/harbour-seaprint.spec \
translations/*.ts \
harbour-seaprint.desktop
SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172
# to disable building translations every time, comment out the
# following CONFIG line
CONFIG += sailfishapp_i18n
# German translation is enabled as an example. If you aren't
# planning to localize your app, remember to comment out the
# following TRANSLATIONS line. And also do not forget to
# modify the localized app name in the the .desktop file.
TRANSLATIONS += translations/harbour-seaprint-de.ts \
translations/harbour-seaprint-zh_CN.ts \
translations/harbour-seaprint-fr.ts \
translations/harbour-seaprint-es.ts \
translations/harbour-seaprint-nl.ts \
translations/harbour-seaprint-pl.ts
HEADERS += \
src/dbusadaptorbase.h \
src/freedesktopdbusadaptor.h \
src/rangelistchecker.h \
src/convertchecker.h \
src/imageitem.h \
src/ippdiscovery.h \
src/ippmsg.h \
src/ippprinter.h \
src/mimer.h \
ppm2pwg/lib/ppm2pwg.h \
ppm2pwg/lib/pdf2printable.h \
ppm2pwg/lib/baselinify.h \
ppm2pwg/lib/madness.h \
ppm2pwg/lib/printparameters.h \
ppm2pwg/lib/PwgPgHdr.h \
ppm2pwg/lib/PwgPgHdr.codable \
ppm2pwg/lib/UrfPgHdr.h \
ppm2pwg/lib/UrfPgHdr.codable \
ppm2pwg/lib/curlrequester.h \
ppm2pwg/lib/argget.h \
ppm2pwg/bytestream/bytestream.h \
ppm2pwg/bytestream/codable.h \
ppm2pwg/bytestream/array.h \
src/overrider.h \
src/papersizes.h \
src/printerworker.h \
src/seaprintdbusadaptor.h \
src/settings.h
INCLUDEPATH += ppm2pwg/lib \
ppm2pwg/bytestream