Mercurial > hg > sonic-visualiser
comparison server.pro @ 1279:c6513cae4747 project-file-rework
Cut down vastly on the number of config.pri files and places where their contents has to be effectively duplicated without them
author | Chris Cannam |
---|---|
date | Mon, 24 Oct 2016 17:53:33 +0100 |
parents | eb60f984c66c |
children | ac6db2ee1beb |
comparison
equal
deleted
inserted
replaced
1278:eb60f984c66c | 1279:c6513cae4747 |
---|---|
6 | 6 |
7 exists(config.pri) { | 7 exists(config.pri) { |
8 include(config.pri) | 8 include(config.pri) |
9 } | 9 } |
10 | 10 |
11 win32-g++ { | 11 !exists(config.pri) { |
12 INCLUDEPATH += sv-dependency-builds/win32-mingw/include | 12 include(noconfig.pri) |
13 LIBS += -Lrelease -Lsv-dependency-builds/win32-mingw/lib | |
14 } | |
15 win32-msvc* { | |
16 # We actually expect MSVC to be used only for 64-bit builds, | |
17 # though the qmake spec is still called win32-msvc* | |
18 INCLUDEPATH += sv-dependency-builds/win64-msvc/include | |
19 # bah, this is happening even if not debug build | |
20 CONFIG(debug) { | |
21 LIBS += -NODEFAULTLIB:MSVCRT -Ldebug \ | |
22 -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib/debug \ | |
23 -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib | |
24 } | |
25 # CONFIG(release) { | |
26 # LIBS += -Lrelease \ | |
27 # -L../sonic-visualiser/sv-dependency-builds/win64-msvc/lib | |
28 # } | |
29 } | |
30 mac* { | |
31 INCLUDEPATH += sv-dependency-builds/osx/include | |
32 LIBS += -Lsv-dependency-builds/osx/lib | |
33 } | 13 } |
34 | 14 |
35 # Using the "console" CONFIG flag above should ensure this happens for | 15 # Using the "console" CONFIG flag above should ensure this happens for |
36 # normal Windows builds, but this may be necessary when cross-compiling | 16 # normal Windows builds, but this may be necessary when cross-compiling |
37 win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console | 17 win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console |
38 | 18 |
39 !win32 { | 19 linux*: LIBS += -ldl |
40 QMAKE_CXXFLAGS += -Werror | |
41 } | |
42 | 20 |
43 TARGET = piper-vamp-server | 21 TARGET = piper-vamp-server |
44 | 22 |
45 OBJECTS_DIR = o | 23 OBJECTS_DIR = o |
46 MOC_DIR = o | 24 MOC_DIR = o |
47 | 25 |
48 INCLUDEPATH += piper-cpp vamp-plugin-sdk | 26 INCLUDEPATH += piper-cpp vamp-plugin-sdk |
49 LIBS += -lcapnp -lkj | 27 |
28 include(vamp-plugin-sdk-files.pri) | |
29 | |
30 for (file, VAMP_SOURCES) { SOURCES += $$file } | |
31 for (file, VAMP_HEADERS) { HEADERS += $$file } | |
50 | 32 |
51 HEADERS += \ | 33 HEADERS += \ |
52 piper-cpp/vamp-capnp/piper.capnp.h \ | 34 piper-cpp/vamp-capnp/piper.capnp.h \ |
53 piper-cpp/vamp-capnp/VampnProto.h | 35 piper-cpp/vamp-capnp/VampnProto.h |
54 | 36 |
55 SOURCES += \ | 37 SOURCES += \ |
56 piper-cpp/vamp-capnp/piper-capnp.cpp \ | 38 piper-cpp/vamp-capnp/piper-capnp.cpp \ |
57 piper-cpp/vamp-server/server.cpp | 39 piper-cpp/vamp-server/server.cpp |
58 | |
59 SOURCES += \ | |
60 vamp-plugin-sdk/src/vamp-hostsdk/PluginBufferingAdapter.cpp \ | |
61 vamp-plugin-sdk/src/vamp-hostsdk/PluginChannelAdapter.cpp \ | |
62 vamp-plugin-sdk/src/vamp-hostsdk/PluginHostAdapter.cpp \ | |
63 vamp-plugin-sdk/src/vamp-hostsdk/PluginInputDomainAdapter.cpp \ | |
64 vamp-plugin-sdk/src/vamp-hostsdk/PluginLoader.cpp \ | |
65 vamp-plugin-sdk/src/vamp-hostsdk/PluginSummarisingAdapter.cpp \ | |
66 vamp-plugin-sdk/src/vamp-hostsdk/PluginWrapper.cpp \ | |
67 vamp-plugin-sdk/src/vamp-hostsdk/RealTime.cpp \ | |
68 vamp-plugin-sdk/src/vamp-hostsdk/Files.cpp |