forked from monich/harbour-lines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
harbour-lines.pro
113 lines (99 loc) · 2.97 KB
/
harbour-lines.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
TARGET = harbour-lines
CONFIG += link_pkgconfig
CONFIG += sailfishapp
PKGCONFIG += glib-2.0 mlite5
QMAKE_CXXFLAGS += -Wno-unused-parameter -Wno-psabi
QT += qml quick
LIBS += -ldl
CONFIG(debug, debug|release) {
DEFINES += DEBUG HARBOUR_DEBUG
QMAKE_CXXFLAGS_DEBUG *= -O0
QMAKE_CFLAGS_DEBUG *= -O0
}
SOURCES += \
src/LinesBalls.cpp \
src/LinesDir.cpp \
src/LinesPrefs.cpp \
src/LinesScores.cpp \
src/LinesSet.cpp \
src/LinesState.cpp \
src/main.cpp \
src/QuickLinesColors.cpp \
src/QuickLinesGame.cpp \
src/QuickLinesModel.cpp \
src/QuickNextBallsModel.cpp \
src/QuickScoresModel.cpp
HEADERS += \
src/LinesBalls.h \
src/LinesScores.h \
src/LinesSet.h \
src/LinesState.h \
src/LinesPrefs.h \
src/LinesTypes.h \
src/QuickLines.h \
src/QuickLinesColors.h \
src/QuickLinesGame.h \
src/QuickLinesModel.h \
src/QuickNextBallsModel.h \
src/QuickScoresModel.h
OTHER_FILES += \
LICENSE \
README.md \
harbour-lines.desktop \
icons/*.svg \
qml/common/*.qml \
qml/common/images/*.svg \
qml/common/sounds/*.wav \
qml/common/styles/ball/*.svg \
qml/common/styles/shape/*.svg \
qml/sailfish/*.qml \
qml/sailfish/cover/*.qml \
qml/sailfish/images/*.svg \
rpm/harbour-lines.changes \
rpm/harbour-lines.spec \
translations/*.ts
# harbour-lib
HARBOUR_LIB_REL = harbour-lib
HARBOUR_LIB_DIR = $${_PRO_FILE_PWD_}/$${HARBOUR_LIB_REL}
HARBOUR_LIB_INCLUDE = $${HARBOUR_LIB_DIR}/include
HARBOUR_LIB_SRC = $${HARBOUR_LIB_DIR}/src
HARBOUR_LIB_QML = $${HARBOUR_LIB_DIR}/qml
INCLUDEPATH += \
$${HARBOUR_LIB_DIR}/include
HEADERS += \
$${HARBOUR_LIB_INCLUDE}/HarbourDebug.h \
$${HARBOUR_LIB_INCLUDE}/HarbourImageProvider.h \
$${HARBOUR_LIB_INCLUDE}/HarbourJson.h \
$${HARBOUR_LIB_INCLUDE}/HarbourSystem.h \
$${HARBOUR_LIB_INCLUDE}/HarbourTheme.h
SOURCES += \
$${HARBOUR_LIB_SRC}/HarbourImageProvider.cpp \
$${HARBOUR_LIB_SRC}/HarbourJson.cpp \
$${HARBOUR_LIB_SRC}/HarbourSystem.cpp \
$${HARBOUR_LIB_SRC}/HarbourTheme.cpp
HARBOUR_QML_COMPONENTS = \
$${HARBOUR_LIB_QML}/HarbourPressEffect.qml \
$${HARBOUR_LIB_QML}/HarbourTextFlip.qml
OTHER_FILES += $${HARBOUR_QML_COMPONENTS}
qml_components.files = $${HARBOUR_QML_COMPONENTS}
qml_components.path = /usr/share/$${TARGET}/qml/harbour
INSTALLS += qml_components
# Icons
ICON_SIZES = 86 108 128 256
for(s, ICON_SIZES) {
icon_target = icon$${s}
icon_dir = icons/$${s}x$${s}
$${icon_target}.files = $${icon_dir}/$${TARGET}.png
$${icon_target}.path = /usr/share/icons/hicolor/$${s}x$${s}/apps
INSTALLS += $${icon_target}
}
# to disable building translations every time, comment out the
# following CONFIG line
CONFIG += sailfishapp_i18n
TRANSLATIONS += \
translations/harbour-lines.ts \
translations/harbour-lines-hu.ts \
translations/harbour-lines-nl.ts \
translations/harbour-lines-ru.ts \
translations/harbour-lines-sv.ts \
translations/harbour-lines-zh_CN.ts