1 |
# qsampler.pro |
2 |
# |
3 |
NAME = qsampler |
4 |
|
5 |
TARGET = $${NAME} |
6 |
TEMPLATE = app |
7 |
|
8 |
include(src.pri) |
9 |
|
10 |
#DEFINES += DEBUG |
11 |
|
12 |
HEADERS += config.h \ |
13 |
qsampler.h \ |
14 |
qsamplerAbout.h \ |
15 |
qsamplerOptions.h \ |
16 |
qsamplerChannel.h \ |
17 |
qsamplerMessages.h \ |
18 |
qsamplerInstrument.h \ |
19 |
qsamplerInstrumentList.h \ |
20 |
qsamplerDevice.h \ |
21 |
qsamplerFxSend.h \ |
22 |
qsamplerFxSendsModel.h \ |
23 |
qsamplerUtilities.h \ |
24 |
qsamplerInstrumentForm.h \ |
25 |
qsamplerInstrumentListForm.h \ |
26 |
qsamplerDeviceForm.h \ |
27 |
qsamplerDeviceStatusForm.h \ |
28 |
qsamplerChannelStrip.h \ |
29 |
qsamplerChannelForm.h \ |
30 |
qsamplerChannelFxForm.h \ |
31 |
qsamplerOptionsForm.h \ |
32 |
qsamplerPaletteForm.h \ |
33 |
qsamplerMainForm.h |
34 |
|
35 |
SOURCES += \ |
36 |
qsampler.cpp \ |
37 |
qsamplerOptions.cpp \ |
38 |
qsamplerChannel.cpp \ |
39 |
qsamplerMessages.cpp \ |
40 |
qsamplerInstrument.cpp \ |
41 |
qsamplerInstrumentList.cpp \ |
42 |
qsamplerDevice.cpp \ |
43 |
qsamplerFxSend.cpp \ |
44 |
qsamplerFxSendsModel.cpp \ |
45 |
qsamplerUtilities.cpp \ |
46 |
qsamplerInstrumentForm.cpp \ |
47 |
qsamplerInstrumentListForm.cpp \ |
48 |
qsamplerDeviceForm.cpp \ |
49 |
qsamplerDeviceStatusForm.cpp \ |
50 |
qsamplerChannelStrip.cpp \ |
51 |
qsamplerChannelForm.cpp \ |
52 |
qsamplerChannelFxForm.cpp \ |
53 |
qsamplerOptionsForm.cpp \ |
54 |
qsamplerPaletteForm.cpp \ |
55 |
qsamplerMainForm.cpp |
56 |
|
57 |
FORMS += \ |
58 |
qsamplerInstrumentForm.ui \ |
59 |
qsamplerInstrumentListForm.ui \ |
60 |
qsamplerDeviceForm.ui \ |
61 |
qsamplerChannelStrip.ui \ |
62 |
qsamplerChannelForm.ui \ |
63 |
qsamplerChannelFxForm.ui \ |
64 |
qsamplerOptionsForm.ui \ |
65 |
qsamplerPaletteForm.ui \ |
66 |
qsamplerMainForm.ui |
67 |
|
68 |
RESOURCES += \ |
69 |
qsampler.qrc |
70 |
|
71 |
|
72 |
TRANSLATIONS += \ |
73 |
translations/qsampler_cs.ts \ |
74 |
translations/qsampler_fr.ts \ |
75 |
translations/qsampler_ru.ts |
76 |
|
77 |
|
78 |
unix { |
79 |
|
80 |
# variables |
81 |
OBJECTS_DIR = .obj |
82 |
MOC_DIR = .moc |
83 |
UI_DIR = .ui |
84 |
|
85 |
isEmpty(PREFIX) { |
86 |
PREFIX = /usr/local |
87 |
} |
88 |
|
89 |
isEmpty(BINDIR) { |
90 |
BINDIR = $${PREFIX}/bin |
91 |
} |
92 |
|
93 |
isEmpty(DATADIR) { |
94 |
DATADIR = $${PREFIX}/share |
95 |
} |
96 |
|
97 |
#DEFINES += DATADIR=\"$${DATADIR}\" |
98 |
|
99 |
# make install |
100 |
INSTALLS += target desktop icon appdata \ |
101 |
icon_scalable mimeinfo mimetypes mimetypes_scalable |
102 |
|
103 |
target.path = $${BINDIR} |
104 |
|
105 |
desktop.path = $${DATADIR}/applications |
106 |
desktop.files += $${NAME}.desktop |
107 |
|
108 |
icon.path = $${DATADIR}/icons/hicolor/32x32/apps |
109 |
icon.files += images/$${NAME}.png |
110 |
|
111 |
icon_scalable.path = $${DATADIR}/icons/hicolor/scalable/apps |
112 |
icon_scalable.files += images/$${NAME}.svg |
113 |
|
114 |
appdata.path = $${DATADIR}/metainfo |
115 |
appdata.files += appdata/$${NAME}.appdata.xml |
116 |
|
117 |
mimeinfo.path = $${DATADIR}/mime/packages |
118 |
mimeinfo.files += mimetypes/$${NAME}.xml |
119 |
|
120 |
mimetypes.path = $${DATADIR}/icons/hicolor/32x32/mimetypes |
121 |
mimetypes.files += mimetypes/application-x-$${NAME}-session.png |
122 |
|
123 |
mimetypes_scalable.path = $${DATADIR}/icons/hicolor/scalable/mimetypes |
124 |
mimetypes_scalable.files += mimetypes/application-x-$${NAME}-session.svg |
125 |
} |
126 |
|
127 |
QT += widgets |
128 |
|
129 |
win32 { |
130 |
|
131 |
CONFIG(debug, debug|release): CONFIG += console |
132 |
INSTALLS += target |
133 |
target.path = $${PREFIX}/bin |
134 |
} |
135 |
|
136 |
macx { |
137 |
|
138 |
QMAKE_MAC_SDK = $$(SDKROOT) |
139 |
CONFIG += $$(QMAKE_ARCHS) |
140 |
} |