1 |
# qsampler.pro |
# qsampler.pro |
2 |
# |
# |
3 |
TARGET = qsampler |
NAME = qsampler |
4 |
|
|
5 |
|
TARGET = $${NAME} |
6 |
TEMPLATE = app |
TEMPLATE = app |
|
DEPENDPATH += . |
|
|
INCLUDEPATH += . |
|
7 |
|
|
8 |
include(src.pri) |
include(src.pri) |
9 |
|
|
10 |
#DEFINES += DEBUG |
#DEFINES += DEBUG |
11 |
|
|
12 |
HEADERS += config.h \ |
HEADERS += config.h \ |
13 |
|
qsampler.h \ |
14 |
qsamplerAbout.h \ |
qsamplerAbout.h \ |
15 |
qsamplerOptions.h \ |
qsamplerOptions.h \ |
16 |
qsamplerChannel.h \ |
qsamplerChannel.h \ |
65 |
RESOURCES += \ |
RESOURCES += \ |
66 |
qsampler.qrc |
qsampler.qrc |
67 |
|
|
68 |
|
|
69 |
TRANSLATIONS += \ |
TRANSLATIONS += \ |
70 |
translations/qsampler_cs.ts \ |
translations/qsampler_cs.ts \ |
71 |
translations/qsampler_ru.ts |
translations/qsampler_fr.ts \ |
72 |
|
translations/qsampler_ru.ts |
73 |
|
|
74 |
|
|
75 |
unix { |
unix { |
76 |
|
|
83 |
PREFIX = /usr/local |
PREFIX = /usr/local |
84 |
} |
} |
85 |
|
|
86 |
BINDIR = $$PREFIX/bin |
isEmpty(BINDIR) { |
87 |
DATADIR = $$PREFIX/share |
BINDIR = $${PREFIX}/bin |
88 |
LOCALEDIR = $(localedir) |
} |
|
|
|
|
DEFINES += DATADIR=\"$$DATADIR\" |
|
89 |
|
|
90 |
!isEmpty(LOCALEDIR) { |
isEmpty(DATADIR) { |
91 |
DEFINES += LOCALEDIR=\"$$LOCALEDIR\" |
DATADIR = $${PREFIX}/share |
92 |
} |
} |
93 |
|
|
94 |
|
#DEFINES += DATADIR=\"$${DATADIR}\" |
95 |
|
|
96 |
# make install |
# make install |
97 |
INSTALLS += target desktop icon |
INSTALLS += target desktop icon appdata \ |
98 |
|
icon_scalable mimeinfo mimetypes mimetypes_scalable |
99 |
|
|
100 |
|
target.path = $${BINDIR} |
101 |
|
|
102 |
|
desktop.path = $${DATADIR}/applications |
103 |
|
desktop.files += $${NAME}.desktop |
104 |
|
|
105 |
target.path = $$BINDIR |
icon.path = $${DATADIR}/icons/hicolor/32x32/apps |
106 |
|
icon.files += images/$${NAME}.png |
107 |
|
|
108 |
desktop.path = $$DATADIR/applications |
icon_scalable.path = $${DATADIR}/icons/hicolor/scalable/apps |
109 |
desktop.files += $${TARGET}.desktop |
icon_scalable.files += images/$${NAME}.svg |
110 |
|
|
111 |
icon.path = $$DATADIR/icons/hicolor/32x32/apps |
appdata.path = $${DATADIR}/metainfo |
112 |
icon.files += images/$${TARGET}.png |
appdata.files += appdata/$${NAME}.appdata.xml |
113 |
|
|
114 |
|
mimeinfo.path = $${DATADIR}/mime/packages |
115 |
|
mimeinfo.files += mimetypes/$${NAME}.xml |
116 |
|
|
117 |
|
mimetypes.path = $${DATADIR}/icons/hicolor/32x32/mimetypes |
118 |
|
mimetypes.files += mimetypes/application-x-$${NAME}-session.png |
119 |
|
|
120 |
|
mimetypes_scalable.path = $${DATADIR}/icons/hicolor/scalable/mimetypes |
121 |
|
mimetypes_scalable.files += mimetypes/application-x-$${NAME}-session.svg |
122 |
} |
} |
123 |
|
|
124 |
|
QT += widgets |
125 |
|
|
126 |
win32 { |
win32 { |
127 |
|
|
128 |
CONFIG(debug, debug|release): CONFIG += console |
CONFIG(debug, debug|release): CONFIG += console |
129 |
INSTALLS += target |
INSTALLS += target |
130 |
target.path = $$PREFIX/bin |
target.path = $${PREFIX}/bin |
131 |
} |
} |
132 |
|
|
133 |
macx { |
macx { |
135 |
QMAKE_MAC_SDK = $$(SDKROOT) |
QMAKE_MAC_SDK = $$(SDKROOT) |
136 |
CONFIG += $$(QMAKE_ARCHS) |
CONFIG += $$(QMAKE_ARCHS) |
137 |
} |
} |
|
|
|
|
# QT5 Support |
|
|
QT += widgets |
|