-
Notifications
You must be signed in to change notification settings - Fork 1
/
installer.pro
105 lines (77 loc) · 3.03 KB
/
installer.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
TEMPLATE = app
exists(config.pri) {
include(config.pri)
}
!exists(config.pri) {
include(noconfig.pri)
}
INCLUDEPATH += $$PWD/svcore $$PWD/bqvec $$PWD/dataquay $$PWD/dataquay/dataquay
QMAKE_CXXFLAGS_RELEASE -= -flto
QMAKE_LFLAGS_RELEASE -= -flto
CONFIG += release warn_on c++17
QT += gui widgets svg
TARGET = "Vamp Plugin Pack Installer"
linux*:TARGET=vamp-plugin-pack-installer
OBJECTS_DIR = o
MOC_DIR = o
RCC_DIR = o
ICON = icons/sv-macicon.icns
RC_FILE = icons/sv.rc
qrc_a.target = $$PWD/installer_a.qrc
qrc_a.depends = $$PWD/installer_a.qrc.in
qrc_a.commands = $$DEPLOYDIR/generate-qrc $$qrc_a.target
qrc_b.target = $$PWD/installer_b.qrc
qrc_b.depends = $$PWD/installer_b.qrc.in
qrc_b.commands = $$DEPLOYDIR/generate-qrc $$qrc_b.target
QMAKE_EXTRA_TARGETS += qrc_a qrc_b
PRE_TARGETDEPS += $$qrc_a.target $$qrc_b.target
# We can't use use RESOURCES += installer.qrc here, as qmake will
# reject a resource file that hasn't been generated yet.
# If this gets the wrong path, override with "qmake QMAKE_RCC=/path/to/rcc"
!defined(QMAKE_RCC, var) {
qtPrepareTool(QMAKE_RCC, rcc)
}
qrc_cpp_a.target = $${RCC_DIR}/qrc_installer_a.cpp
qrc_cpp_a.depends = $$qrc_a.target
qrc_cpp_a.commands = $$QMAKE_RCC --no-compress --name A $$qrc_a.target -o $$qrc_cpp_a.target
qrc_cpp_b.target = $${RCC_DIR}/qrc_installer_b.cpp
qrc_cpp_b.depends = $$qrc_b.target
qrc_cpp_b.commands = $$QMAKE_RCC --no-compress --name B $$qrc_b.target -o $$qrc_cpp_b.target
QMAKE_EXTRA_TARGETS += qrc_cpp_a qrc_cpp_b
PRE_TARGETDEPS += $$qrc_cpp_a.target $$qrc_cpp_b.target
SOURCES += \
installer.cpp \
$$qrc_cpp_a.target \
$$qrc_cpp_b.target \
svcore/base/Debug.cpp \
svcore/base/ResourceFinder.cpp \
svcore/system/System.cpp \
vamp-plugin-sdk/src/vamp-hostsdk/Files.cpp \
vamp-plugin-sdk/src/vamp-hostsdk/host-c.cpp \
vamp-plugin-sdk/src/vamp-hostsdk/PluginBufferingAdapter.cpp \
vamp-plugin-sdk/src/vamp-hostsdk/PluginChannelAdapter.cpp \
vamp-plugin-sdk/src/vamp-hostsdk/PluginHostAdapter.cpp \
vamp-plugin-sdk/src/vamp-hostsdk/PluginInputDomainAdapter.cpp \
vamp-plugin-sdk/src/vamp-hostsdk/PluginLoader.cpp \
vamp-plugin-sdk/src/vamp-hostsdk/PluginSummarisingAdapter.cpp \
vamp-plugin-sdk/src/vamp-hostsdk/PluginWrapper.cpp \
vamp-plugin-sdk/src/vamp-hostsdk/RealTime.cpp \
sord-all.c
DATAQUAY_SOURCES=$$fromfile(dataquay/lib.pro, SOURCES)
DATAQUAY_HEADERS=$$fromfile(dataquay/lib.pro, HEADERS)
for (file, DATAQUAY_SOURCES) { SOURCES += $$sprintf("dataquay/%1", $$file) }
for (file, DATAQUAY_HEADERS) { HEADERS += $$sprintf("dataquay/%1", $$file) }
DEFINES += HAVE_SORD HAVE_SERD USE_SORD NDEBUG
INCLUDEPATH += \
sv-dependency-builds/src/serd-0.18.2/src/ \
sv-dependency-builds/src/sord-0.12.0/src/
linux* {
QMAKE_CFLAGS += -std=c99
LIBS += -ldl
}
macx* {
QMAKE_POST_LINK += deploy/osx/deploy.sh $$shell_quote($$TARGET)
}
win32* {
QMAKE_LFLAGS_RELEASE += -MANIFESTUAC:\"level=\'requireAdministrator\' uiAccess=\'false\'\"
}