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 = $(bindir) |
BINDIR = $${PREFIX}/bin |
84 |
DATADIR = $(datadir) |
DATADIR = $$PREFIX/share |
85 |
LOCALEDIR = $(localedir) |
|
86 |
|
DEFINES += DATADIR=\"$${DATADIR}\" |
|
DEFINES += BINDIR=\"$$BINDIR\" |
|
|
DEFINES += DATADIR=\"$$DATADIR\" |
|
|
DEFINES += LOCALEDIR=\"$$LOCALEDIR\" |
|
87 |
|
|
88 |
# make install |
# make install |
89 |
INSTALLS += target desktop icon |
INSTALLS += target desktop icon appdata \ |
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 |
appdata.path = $${DATADIR}/appdata |
104 |
desktop.files += $${TARGET}.desktop |
appdata.files += appdata/$${NAME}.appdata.xml |
105 |
|
|
106 |
icon.path = $$DATADIR/icons/hicolor/32x32/apps |
mimeinfo.path = $${DATADIR}/mime/packages |
107 |
icon.files += images/$${TARGET}.png |
mimeinfo.files += mimetypes/$${NAME}.xml |
108 |
|
|
109 |
|
mimetypes.path = $${DATADIR}/icons/hicolor/32x32/mimetypes |
110 |
|
mimetypes.files += mimetypes/application-x-$${NAME}-session.png |
111 |
|
|
112 |
|
mimetypes_scalable.path = $${DATADIR}/icons/hicolor/scalable/mimetypes |
113 |
|
mimetypes_scalable.files += mimetypes/application-x-$${NAME}-session.svg |
114 |
} |
} |
115 |
|
|
116 |
win32 { |
win32 { |
117 |
|
|
118 |
CONFIG(debug, debug|release): CONFIG += console |
CONFIG(debug, debug|release): CONFIG += console |
119 |
INSTALLS += target |
INSTALLS += target |
120 |
target.path = $$BINDIR |
target.path = $${PREFIX}/bin |
121 |
} |
} |
122 |
|
|
123 |
macx { |
macx { |
125 |
QMAKE_MAC_SDK = $$(SDKROOT) |
QMAKE_MAC_SDK = $$(SDKROOT) |
126 |
CONFIG += $$(QMAKE_ARCHS) |
CONFIG += $$(QMAKE_ARCHS) |
127 |
} |
} |
128 |
|
|
129 |
|
|
130 |
|
# QT5 support |
131 |
|
!lessThan(QT_MAJOR_VERSION, 5) { |
132 |
|
QT += widgets |
133 |
|
} |