1 |
# qsampler.pro |
# qsampler.pro |
2 |
# |
# |
3 |
TARGET = qsampler |
NAME = qtractor |
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 |
75 |
OBJECTS_DIR = .obj |
OBJECTS_DIR = .obj |
76 |
MOC_DIR = .moc |
MOC_DIR = .moc |
77 |
UI_DIR = .ui |
UI_DIR = .ui |
80 |
PREFIX = /usr/local |
PREFIX = /usr/local |
81 |
} |
} |
82 |
|
|
83 |
BINDIR = $$PREFIX/bin |
BINDIR = $${PREFIX}/bin |
84 |
DATADIR = $$PREFIX/share |
DATADIR = $${PREFIX}/share |
85 |
|
LOCALEDIR = $(localedir) |
86 |
|
|
87 |
|
DEFINES += DATADIR=\"$${DATADIR}\" |
88 |
|
|
89 |
|
!isEmpty(LOCALEDIR) { |
90 |
|
DEFINES += LOCALEDIR=\"$${LOCALEDIR}\" |
91 |
|
} |
92 |
|
|
93 |
|
# make install |
94 |
|
INSTALLS += target desktop icon \ |
95 |
|
icon_scalable mimeinfo mimetypes mimetypes_scalable |
96 |
|
|
97 |
DEFINES += DATADIR=\"$$DATADIR\" PKGDATADIR=\"$$PKGDATADIR\" |
target.path = $${BINDIR} |
98 |
|
|
99 |
#MAKE INSTALL |
desktop.path = $${DATADIR}/applications |
100 |
INSTALLS += target desktop icon |
desktop.files += $${NAME}.desktop |
101 |
|
|
102 |
target.path = $$BINDIR |
icon.path = $${DATADIR}/icons/hicolor/32x32/apps |
103 |
|
icon.files += images/$${NAME}.png |
104 |
|
|
105 |
desktop.path = $$DATADIR/applications |
icon_scalable.path = $${DATADIR}/icons/hicolor/scalable/apps |
106 |
desktop.files += $${TARGET}.desktop |
icon_scalable.files += images/$${NAME}.svgz |
107 |
|
|
108 |
icon.path = $$DATADIR/icons/hicolor/32x32/apps |
mimeinfo.path = $${DATADIR}/mime/packages |
109 |
icon.files += images/$${TARGET}.png |
mimeinfo.files += mimetypes/$${NAME}.xml |
110 |
|
|
111 |
|
mimetypes.path = $${DATADIR}/icons/hicolor/32x32/mimetypes |
112 |
|
mimetypes.files += mimetypes/application-x-$${NAME}-session.png |
113 |
|
|
114 |
|
mimetypes_scalable.path = $${DATADIR}/icons/hicolor/scalable/mimetypes |
115 |
|
mimetypes_scalable.files += mimetypes/application-x-$${NAME}-session.svgz |
116 |
} |
} |
117 |
|
|
118 |
win32 { |
win32 { |
119 |
|
|
120 |
CONFIG(debug, debug|release): CONFIG += console |
CONFIG(debug, debug|release): CONFIG += console |
121 |
INSTALLS += target |
INSTALLS += target |
122 |
target.path = $$PREFIX/bin |
target.path = $${PREFIX}/bin |
123 |
} |
} |
124 |
|
|
125 |
macx { |
macx { |
127 |
QMAKE_MAC_SDK = $$(SDKROOT) |
QMAKE_MAC_SDK = $$(SDKROOT) |
128 |
CONFIG += $$(QMAKE_ARCHS) |
CONFIG += $$(QMAKE_ARCHS) |
129 |
} |
} |
130 |
|
|
131 |
|
|
132 |
|
# QT5 support |
133 |
|
!lessThan(QT_MAJOR_VERSION, 5) { |
134 |
|
QT += widgets |
135 |
|
} |