-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
qspeakers.pro
145 lines (126 loc) · 3.58 KB
/
qspeakers.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
#-------------------------------------------------
#
# Project created by QtCreator 2014-09-23T08:12:05
#
#-------------------------------------------------
QT += core gui xml widgets printsupport charts
CONFIG += c++11
VERSION = 1.6.10
REVISION = $$system(git describe --long --tags 2>/dev/null || echo "stable")
TARGET = qspeakers
TEMPLATE = app
win32-g++:HOST=__mswin
unix:HOST=__unix
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
win32-g++:contains(QMAKE_HOST.arch, x86_64):{
message("Host is 64bit")
}
unix {
isEmpty(PREFIX): PREFIX = /usr/local
isEmpty(BINDIR): BINDIR = $$PREFIX/bin
isEmpty(DATADIR): DATADIR = $$PREFIX/share
}
win32-g++ {
isEmpty(PREFIX): PREFIX = "C:/Program Files/QSpeakers"
isEmpty(BINDIR): BINDIR = $$PREFIX
isEmpty(DATADIR): DATADIR = $$PREFIX
}
config.input = config.h.in
config.output = config.h
QMAKE_SUBSTITUTES += config
SOURCES += main.cpp \
mainwindow.cpp \
speakerdialog.cpp \
speakerdb.cpp \
speaker.cpp \
importexport.cpp \
box.cpp \
sealedbox.cpp \
portedbox.cpp \
bandpassbox.cpp \
plot.cpp \
listdialog.cpp \
searchdialog.cpp \
system.cpp \
optimizer.cpp \
bandpassdialog.cpp
HEADERS += mainwindow.h \
speakerdialog.h \
speakerdb.h \
speaker.h \
importexport.h \
box.h \
sealedbox.h \
portedbox.h \
bandpassbox.h \
plot.h \
listdialog.h \
searchdialog.h \
system.h \
optimizer.h \
bandpassdialog.h \
undocommands.h
FORMS += mainwindow.ui \
speakerdialog.ui \
listdialog.ui \
searchdialog.ui \
bandpassdialog.ui
isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
TRANSLATIONS += \
qspeakers_en.ts \
qspeakers_fr.ts
LOCALE_DIR = locale
updateqm.input = TRANSLATIONS
updateqm.output = $$LOCALE_DIR/${QMAKE_FILE_BASE}.qm
updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $$LOCALE_DIR/${QMAKE_FILE_BASE}.qm
updateqm.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += updateqm
unix {
MANPAGE = "qspeakers.1"
manpage.input = MANPAGE
manpage.output = $${MANPAGE}.gz
manpage.commands = gzip --to-stdout ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
manpage.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += manpage
}
translations.files = $${LOCALE_DIR}
database.files = "qspeakers_db.xml"
scad.files = sealedbox_template.scad portedbox_template.scad bandpassbox_template.scad \
sealedbox_cutting_template.scad portedbox_cutting_template.scad bandpassbox_cutting_template.scad
unix {
target.path = $$BINDIR
manual.path = $$DATADIR/man/man1
manual.files = $${MANPAGE}.gz
manual.CONFIG = no_check_exist
database.path = $$DATADIR/qspeakers
translations.path = $$DATADIR/$${TARGET}
mime.path = $$DATADIR/mime/packages
mime.files = application-x-$${TARGET}.xml
desktop.path = $$DATADIR/applications
desktop.files = $${TARGET}.desktop
icon.path = $$DATADIR/icons/hicolor/scalable/apps
icon.files = qspeakers.svg
scad.path = $$DATADIR/$${TARGET}
metainfo.path = $$DATADIR/metainfo
metainfo.files = fr.free.brouits.qspeakers.metainfo.xml
INSTALLS += target \
icon \
manual \
database \
translations \
mime \
desktop \
scad \
metainfo
}
win32-g++ {
target.path = $$BINDIR
database.path = $$DATADIR
translations.path = $$DATADIR/$${TARGET}
scad.path = $$DATADIR/$${TARGET}
RC_ICONS += qspeakers.ico
INSTALLS += target \
database \
translations \
scad
}