-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathharbour-unitconverter.pro
92 lines (79 loc) · 3.09 KB
/
harbour-unitconverter.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
# The name of your app.
# NOTICE: name defined in TARGET has a corresponding QML filename.
# If name defined in TARGET is changed, 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
TARGET = harbour-unitconverter
CONFIG += sailfishapp c++11 sailfishapp_i18n
QT += network \
dbus
DEPLOYMENT_PATH = /usr/share/$${TARGET}
PKGCONFIG += nemonotifications-qt5
SOURCES += src/harbour-unitconverter.cpp \
src/custommodel.cpp \
src/converter.cpp \
src/settings.cpp \
src/currencycache.cpp
OTHER_FILES += qml/harbour-unitconverter.qml \
qml/cover/CoverPage.qml \
rpm/harbour-unitconverter.spec \
rpm/harbour-unitconverter.yaml \
harbour-unitconverter.desktop \
translations/*.ts \
qml/pages/QuickSearchPage.qml \
qml/pages/QuickSearchHelp.qml \
qml/pages/MainPage.qml \
qml/pages/scripts/Unitconverter.js \
qml/pages/scripts/HelperVariables.js \
qml/pages/components/UnitWindow.qml \
qml/pages/components/Resultpanel.qml \
qml/pages/AboutPage.qml \
qml/pages/UnitConvertPage.qml \
qml/pages/RulerPage.qml \
qml/pages/components/Ruler.qml \
qml/pages/OptionsPage.qml \
qml/pages/components/Line.qml \
qml/pages/scripts/Logic.js \
qml/pages/components/AcceptPopup.qml \
qml/pages/scripts/UnitConververDB.js \
qml/pages/FavouritesPage.qml \
qml/pages/FavouriteDialog.qml
isEmpty(VERSION) {
VERSION = $$system( egrep "^Version:\|^Release:" rpm/harbour-unitconverter.spec | tr -d "[A-Z][a-z]: " | tr "\\\n" "-" | sed "s/\.$//g" | tr -d "[:space:]")
message("VERSION is unset, assuming $$VERSION")
}
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
TRANSLATIONS = translations/harbour-unitconverter-nl.ts \
translations/harbour-unitconverter-fr.ts \
translations/harbour-unitconverter-sv.ts \
translations/harbour-unitconverter-zh_CN.ts \
translations/harbour-unitconverter-ru.ts
translations.files = translations
translations.path = $${DEPLOYMENT_PATH}
# only include these files for translation:
lupdate_only {
SOURCES = qml/*.qml \
qml/pages/*.qml \
qml/pages/components/*.qml
}
icon86.files += icons/86x86/harbour-unitconverter.png
icon86.path = /usr/share/icons/hicolor/86x86/apps
icon108.files += icons/108x108/harbour-unitconverter.png
icon108.path = /usr/share/icons/hicolor/108x108/apps
icon128.files += icons/128x128/harbour-unitconverter.png
icon128.path = /usr/share/icons/hicolor/128x128/apps
icon172.files += icons/172x172/harbour-unitconverter.png
icon172.path = /usr/share/icons/hicolor/172x172/apps
icon256.files += icons/256x256/harbour-unitconverter.png
icon256.path = /usr/share/icons/hicolor/256x256/apps
INSTALLS += translations icon86 icon108 icon128 icon172 icon256
HEADERS += \
src/custommodel.h \
src/converter.h \
src/settings.h \
src/currencycache.h
RESOURCES += \
MyResource.qrc