-
Notifications
You must be signed in to change notification settings - Fork 19
/
iqpuzzle.pro
139 lines (115 loc) · 3.99 KB
/
iqpuzzle.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
# This file is part of iQPuzzle.
# Copyright (C) 2012-present Thorsten Roth
#
# iQPuzzle is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# iQPuzzle is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with iQPuzzle. If not, see <http://www.gnu.org/licenses/>.
TEMPLATE = app
unix: !macx {
TARGET = iqpuzzle
} else {
TARGET = iQPuzzle
}
win32:VERSION = 1.4.1.0
else:VERSION = 1.4.1
QMAKE_TARGET_PRODUCT = "iQPuzzle"
QMAKE_TARGET_DESCRIPTION = "IQ challenging pentomino puzzle"
QMAKE_TARGET_COPYRIGHT = "(C) 2012-present Thorsten Roth"
DEFINES += APP_NAME=\"\\\"$$QMAKE_TARGET_PRODUCT\\\"\" \
APP_VERSION=\"\\\"$$VERSION\\\"\" \
APP_DESC=\"\\\"$$QMAKE_TARGET_DESCRIPTION\\\"\" \
APP_COPY=\"\\\"$$QMAKE_TARGET_COPYRIGHT\\\"\"
MOC_DIR = ./.moc
OBJECTS_DIR = ./.objs
UI_DIR = ./.ui
RCC_DIR = ./.rcc
QT += core gui widgets
CONFIG += c++11
DEFINES += QT_NO_FOREACH
CONFIG(debug, debug|release) {
CONFIG += warn_on
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060800
}
SOURCES += main.cpp\
iqpuzzle.cpp \
board.cpp \
block.cpp \
boarddialog.cpp \
boardpreview.cpp \
boardselection.cpp \
highscore.cpp \
settings.cpp
HEADERS += iqpuzzle.h \
board.h \
block.h \
boarddialog.h \
boardpreview.h \
boardselection.h \
highscore.h \
settings.h
FORMS += iqpuzzle.ui \
boardpreview.ui \
boardselection.ui \
settings.ui
RESOURCES = data/data.qrc \
lang/translations.qrc
TRANSLATIONS += lang/iqpuzzle_bg.ts \
lang/iqpuzzle_de.ts \
lang/iqpuzzle_en.ts \
lang/iqpuzzle_fr.ts \
lang/iqpuzzle_el_GR.ts \
lang/iqpuzzle_it.ts \
lang/iqpuzzle_ko.ts \
lang/iqpuzzle_nb_NO.ts \
lang/iqpuzzle_nl.ts \
lang/iqpuzzle_pt.ts \
lang/iqpuzzle_pt_BR.ts \
lang/iqpuzzle_ru.ts \
lang/iqpuzzle_zh_CN.ts \
lang/iqpuzzle_zh_TW.ts
win32:RC_ICONS = icons/iqpuzzle.ico
os2:RC_ICONS = icons/iqpuzzle_os2.ico
macx {
ICON = icons/icon.icns
QMAKE_INFO_PLIST = data/mac/Info.plist
BOARDS_DATA.path = Contents/Resources
BOARDS_DATA.files += data/boards
QMAKE_BUNDLE_DATA += BOARDS_DATA
}
unix: !macx {
isEmpty(PREFIX) {
PREFIX = /usr/local
}
isEmpty(BINDIR) {
BINDIR = bin
}
target.path = $$PREFIX/$$BINDIR/
data.path = $$PREFIX/share/iqpuzzle
data.files += data/boards
desktop.path = $$PREFIX/share/applications
desktop.files += data/unix/com.github.elth0r0.iqpuzzle.desktop
icons.path = $$PREFIX/share/icons
icons.files += icons/hicolor
man.path = $$PREFIX/share/man
# Specify each subfolder - otherwise CMakeLists.txt will be installed
man.files += man/man6
man.files += man/de
man.files += man/it
meta.path = $$PREFIX/share/metainfo
meta.files += data/unix/com.github.elth0r0.iqpuzzle.metainfo.xml
INSTALLS += target \
data \
desktop \
icons \
man \
meta
}