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