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 |
|
|
68 |
translations/qsampler_cs.ts \ |
translations/qsampler_cs.ts \ |
69 |
translations/qsampler_ru.ts |
translations/qsampler_ru.ts |
70 |
|
|
71 |
|
|
72 |
unix { |
unix { |
73 |
|
|
74 |
# variables |
# variables |
80 |
PREFIX = /usr/local |
PREFIX = /usr/local |
81 |
} |
} |
82 |
|
|
83 |
BINDIR = $$PREFIX/bin |
BINDIR = $${PREFIX}/bin |
84 |
DATADIR = $$PREFIX/share |
DATADIR = $$PREFIX/share |
|
LOCALEDIR = $(localedir) |
|
85 |
|
|
86 |
DEFINES += DATADIR=\"$$DATADIR\" |
DEFINES += DATADIR=\"$${DATADIR}\" |
|
DEFINES += LOCALEDIR=\"$$LOCALEDIR\" |
|
87 |
|
|
88 |
# make install |
# make install |
89 |
INSTALLS += target desktop icon |
INSTALLS += target desktop icon \ |
90 |
|
icon_scalable mimeinfo mimetypes mimetypes_scalable |
91 |
|
|
92 |
|
target.path = $${BINDIR} |
93 |
|
|
94 |
|
desktop.path = $${DATADIR}/applications |
95 |
|
desktop.files += $${NAME}.desktop |
96 |
|
|
97 |
|
icon.path = $${DATADIR}/icons/hicolor/32x32/apps |
98 |
|
icon.files += images/$${NAME}.png |
99 |
|
|
100 |
target.path = $$BINDIR |
icon_scalable.path = $${DATADIR}/icons/hicolor/scalable/apps |
101 |
|
icon_scalable.files += images/$${NAME}.svg |
102 |
|
|
103 |
desktop.path = $$DATADIR/applications |
mimeinfo.path = $${DATADIR}/mime/packages |
104 |
desktop.files += $${TARGET}.desktop |
mimeinfo.files += mimetypes/$${NAME}.xml |
105 |
|
|
106 |
icon.path = $$DATADIR/icons/hicolor/32x32/apps |
mimetypes.path = $${DATADIR}/icons/hicolor/32x32/mimetypes |
107 |
icon.files += images/$${TARGET}.png |
mimetypes.files += mimetypes/application-x-$${NAME}-session.png |
108 |
|
|
109 |
|
mimetypes_scalable.path = $${DATADIR}/icons/hicolor/scalable/mimetypes |
110 |
|
mimetypes_scalable.files += mimetypes/application-x-$${NAME}-session.svg |
111 |
} |
} |
112 |
|
|
113 |
win32 { |
win32 { |
114 |
|
|
115 |
CONFIG(debug, debug|release): CONFIG += console |
CONFIG(debug, debug|release): CONFIG += console |
116 |
INSTALLS += target |
INSTALLS += target |
117 |
target.path = $$PREFIX/bin |
target.path = $${PREFIX}/bin |
118 |
} |
} |
119 |
|
|
120 |
macx { |
macx { |
122 |
QMAKE_MAC_SDK = $$(SDKROOT) |
QMAKE_MAC_SDK = $$(SDKROOT) |
123 |
CONFIG += $$(QMAKE_ARCHS) |
CONFIG += $$(QMAKE_ARCHS) |
124 |
} |
} |
125 |
|
|
126 |
|
|
127 |
|
# QT5 support |
128 |
|
!lessThan(QT_MAJOR_VERSION, 5) { |
129 |
|
QT += widgets |
130 |
|
} |