forked from mkiol/Zimpedia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zimpedia.pro
114 lines (97 loc) · 3.04 KB
/
zimpedia.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
TARGET = harbour-zimpedia
CONFIG += c++1z sailfishapp dbus json
PKGCONFIG += mlite5
DEFINES += QT_NO_URL_CAST_FROM_STRING
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3
CONFIG(debug, debug|release) {
CONFIG += sanitizer sanitize_address
}
contains(QT_ARCH, i386){
CONFIG += x86
DEFINES += X86
ARCH = x86
} else {
contains(QT_ARCH, x86_64) {
CONFIG += amd64
DEFINES += X86
ARCH = amd64
} else {
contains(QT_ARCH, arm){
CONFIG += arm
DEFINES += ARM
ARCH = arm
} else {
contains(QT_ARCH, arm64) {
CONFIG += arm64
DEFINES += ARM
ARCH = arm64
}
}
}
}
ROOT_DIR = $${PWD}
SRC_DIR = $${ROOT_DIR}/src
LIB_DIR = $${ROOT_DIR}/libs
TRANSLATIONS_TS_DIR = translations
include($${LIB_DIR}/zim/zim.pri)
include($${LIB_DIR}/qhttpserver/qhttpserver.pri)
OTHER_FILES += \
$$files(qml/*.qml) \
$$files(rpm/*) \
$$files(scripts/*)
SOURCES += \
$${SRC_DIR}/main.cpp \
$${SRC_DIR}/zimserver.cpp \
$${SRC_DIR}/articlemodel.cpp \
$${SRC_DIR}/listmodel.cpp \
$${SRC_DIR}/settings.cpp \
$${SRC_DIR}/filemodel.cpp \
$${SRC_DIR}/utils.cpp \
$${SRC_DIR}/bookmarkmodel.cpp \
$${SRC_DIR}/zimmetadatareader.cpp \
$${SRC_DIR}/itemmodel.cpp \
$${SRC_DIR}/iconprovider.cpp \
$${SRC_DIR}/log.cpp
HEADERS += \
$${SRC_DIR}/zimserver.h \
$${SRC_DIR}/articlemodel.h \
$${SRC_DIR}/listmodel.h \
$${SRC_DIR}/settings.h \
$${SRC_DIR}/filemodel.h \
$${SRC_DIR}/utils.h \
$${SRC_DIR}/bookmarkmodel.h \
$${SRC_DIR}/zimmetadatareader.h \
$${SRC_DIR}/info.h \
$${SRC_DIR}/itemmodel.h \
$${SRC_DIR}/iconprovider.h \
$${SRC_DIR}/log.h \
$${ZIM_ROOT}/include/zim/*.h
SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172 256x256
CONFIG += sailfishapp_i18n_include_obsolete
TRANSLATIONS += $${TRANSLATIONS_TS_DIR}/Zimpedia_en.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_pl.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_sv.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_cs.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_es.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_de.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_fr.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_nl.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_hu.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_nl_BE.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_zh_TW.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_zh_CN.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_ru.ts \
$${TRANSLATIONS_TS_DIR}/Zimpedia_it.ts
include(sailfishapp_i18n.pri)
# install
install_images.files = images/*
install_images.path = /usr/share/$${TARGET}/images
INSTALLS += install_images
install_res.files = res
install_res.path = /usr/share/$${TARGET}
INSTALLS += install_res
install_scripts.files = scripts/*
install_scripts.path = /usr/share/$${TARGET}/scripts
INSTALLS += install_scripts
DEPENDPATH += $${INCLUDEPATH}