forked from monich/harbour-lines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meego-lines.pro
164 lines (139 loc) · 4.48 KB
/
meego-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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
TARGET = meego-lines
CONFIG += link_pkgconfig
CONFIG += meegotouch
QT += declarative
QT += svg
DEFINES += HARMATTAN
LIBS += -lqjson
CONFIG(debug, debug|release) {
DEFINES += LINES_DEBUG=1
QMAKE_CXXFLAGS_DEBUG *= -O0
QMAKE_CFLAGS_DEBUG *= -O0
}
# Silence the "mangling of 'va_list' has changed in GCC 4.4" warning
QMAKE_CXXFLAGS *= -Wno-unused-parameter -Wno-psabi
# Speed up launching on MeeGo/Harmattan when using applauncherd daemon
CONFIG += qdeclarative-boostable
DEFINES += HARMATTAN_BOOSTER
SOURCES += \
src/LinesBalls.cpp \
src/LinesDir.cpp \
src/LinesPrefs.cpp \
src/LinesScores.cpp \
src/LinesSet.cpp \
src/LinesState.cpp \
src/main.cpp \
src/MeegoLines.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/MeegoLines.h \
src/QuickLines.h \
src/QuickLinesColors.h \
src/QuickLinesGame.h \
src/QuickLinesModel.h \
src/QuickNextBallsModel.h \
src/QuickScoresModel.h
OTHER_FILES += \
meego/* \
qml/meego/*.qml \
qml/common/*.qml \
qml/common/images/*.svg \
qml/common/styles/ball/*.svg \
qml/common/styles/shape/*.svg \
qml/meego/images/*.svg \
rpm/harbour-lines.changes \
rpm/harbour-lines.spec \
translations/*.ts \
qtc_packaging/debian_harmattan/rules \
qtc_packaging/debian_harmattan/README \
qtc_packaging/debian_harmattan/manifest.aegis \
qtc_packaging/debian_harmattan/copyright \
qtc_packaging/debian_harmattan/control \
qtc_packaging/debian_harmattan/compat \
qtc_packaging/debian_harmattan/changelog
# 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
INCLUDEPATH += \
$${HARBOUR_LIB_DIR}/include
HEADERS += \
$${HARBOUR_LIB_INCLUDE}/HarbourDebug.h \
$${HARBOUR_LIB_INCLUDE}/HarbourJson.h \
SOURCES += \
$${HARBOUR_LIB_SRC}/HarbourJson.cpp \
# Translations
TR_DIR = $$_PRO_FILE_PWD_/translations
qtPrepareTool(LRELEASE,lrelease)
TR_EN_QM = meego-lines.qm
TR_EN_TS = $$TR_DIR/harbour-lines.ts
lrelease_en.input = TR_EN_TS
lrelease_en.output = $$TR_DIR/$$TR_EN_QM
lrelease_en.commands = $$LRELEASE $$TR_EN_TS -qm $$TR_DIR/$$TR_EN_QM
lrelease_en.CONFIG = no_link
lrelease_en.variable_out = PRE_TARGETDEPS
QMAKE_EXTRA_COMPILERS += lrelease_en
TR_NL_QM = meego-lines-nl.qm
TR_NL_TS = $$TR_DIR/harbour-lines-nl.ts
lrelease_nl.input = TR_NL_TS
lrelease_nl.output = $$TR_DIR/$$TR_NL_QM
lrelease_nl.commands = $$LRELEASE $$TR_NL_TS -qm $$TR_DIR/$$TR_NL_QM
lrelease_nl.CONFIG = no_link
lrelease_nl.variable_out = PRE_TARGETDEPS
QMAKE_EXTRA_COMPILERS += lrelease_nl
TR_RU_QM = meego-lines-ru.qm
TR_RU_TS = $$TR_DIR/harbour-lines-ru.ts
lrelease_ru.input = TR_RU_TS
lrelease_ru.output = $$TR_DIR/$$TR_RU_QM
lrelease_ru.commands = $$LRELEASE $$TR_RU_TS -qm $$TR_DIR/$$TR_RU_QM
lrelease_ru.CONFIG = no_link
lrelease_ru.variable_out = PRE_TARGETDEPS
QMAKE_EXTRA_COMPILERS += lrelease_ru
TR_SV_QM = meego-lines-sv.qm
TR_SV_TS = $$TR_DIR/harbour-lines-sv.ts
lrelease_sv.input = TR_SV_TS
lrelease_sv.output = $$TR_DIR/$$TR_SV_QM
lrelease_sv.commands = $$LRELEASE $$TR_SV_TS -qm $$TR_DIR/$$TR_SV_QM
lrelease_sv.CONFIG = no_link
lrelease_sv.variable_out = PRE_TARGETDEPS
QMAKE_EXTRA_COMPILERS += lrelease_sv
# Deployment.
INSTALL_PREFIX = /opt/$$TARGET
TR_DEPLOY = $$INSTALL_PREFIX/translations
translation_en.files = translations/$$TR_EN_QM
translation_en.path = $$TR_DEPLOY
translation_nl.files = translations/$$TR_NL_QM
translation_nl.path = $$TR_DEPLOY
translation_ru.files = translations/$$TR_RU_QM
translation_ru.path = $$TR_DEPLOY
translation_sv.files = translations/$$TR_SV_QM
translation_sv.path = $$TR_DEPLOY
INSTALLS += translation_en translation_nl translation_ru translation_sv
qml_common.files = qml/common
qml_common.path = $$INSTALL_PREFIX/qml
INSTALLS += qml_common
qml_meego.files = qml/meego
qml_meego.path = $$INSTALL_PREFIX/qml
INSTALLS += qml_meego
desktopfile.files = meego/$${TARGET}.desktop
desktopfile.path = /usr/share/applications
INSTALLS += desktopfile
icon.files = meego/$${TARGET}.png
icon.path = /usr/share/icons/hicolor/80x80/apps
INSTALLS += icon
splash.files = meego/splash-*.png
splash.path = $$INSTALL_PREFIX
INSTALLS += splash
target.path = $$INSTALL_PREFIX/bin
INSTALLS += target