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