comparison server.pro @ 1304:6e47bd2263e2 piper

Merge from branch project-file-rework
author Chris Cannam
date Fri, 28 Oct 2016 15:19:12 +0100
parents 409ee88107e8
children 106a16cfdd2f
comparison
equal deleted inserted replaced
1282:5b4f4de87892 1304:6e47bd2263e2
1 1
2 TEMPLATE = app 2 TEMPLATE = app
3 3
4 CONFIG += qt stl c++11 exceptions console warn_on 4 CONFIG += stl c++11 exceptions console warn_on
5 QT -= xml network gui widgets 5
6 CONFIG -= qt
6 7
7 exists(config.pri) { 8 exists(config.pri) {
8 include(config.pri) 9 include(config.pri)
9 } 10 }
10 11
11 win32-g++ { 12 !exists(config.pri) {
12 INCLUDEPATH += sv-dependency-builds/win32-mingw/include 13 include(noconfig.pri)
13 LIBS += -Lrelease -Lsv-dependency-builds/win32-mingw/lib 14
15 macx*: LIBS -= -framework CoreAudio -framework CoreMidi -framework AudioUnit -framework AudioToolbox -framework CoreFoundation -framework CoreServices -framework Accelerate -lbz2 -lz
14 } 16 }
15 win32-msvc* { 17
16 # We actually expect MSVC to be used only for 64-bit builds, 18 # Can't support this flag with the JSON11 and basen modules as they stand
17 # though the qmake spec is still called win32-msvc* 19 QMAKE_CXXFLAGS -= -Werror
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 }
34 20
35 # Using the "console" CONFIG flag above should ensure this happens for 21 # Using the "console" CONFIG flag above should ensure this happens for
36 # normal Windows builds, but this may be necessary when cross-compiling 22 # normal Windows builds, but this may be necessary when cross-compiling
37 win32-x-g++:QMAKE_LFLAGS += -Wl,-subsystem,console 23 win32-x-g++: QMAKE_LFLAGS += -Wl,-subsystem,console
38 24
39 !win32 { 25 macx*: CONFIG -= app_bundle
40 QMAKE_CXXFLAGS += -Werror
41 }
42 26
43 TARGET = piper-vamp-server 27 linux*: LIBS += -ldl
28
29 TARGET = piper-vamp-simple-server
44 30
45 OBJECTS_DIR = o 31 OBJECTS_DIR = o
46 MOC_DIR = o 32 MOC_DIR = o
47 33
48 INCLUDEPATH += piper-cpp vamp-plugin-sdk 34 INCLUDEPATH += piper-cpp vamp-plugin-sdk
49 LIBS += -lcapnp -lkj 35
36 include(vamp-plugin-sdk-files.pri)
37
38 for (file, VAMP_SOURCES) { SOURCES += $$file }
39 for (file, VAMP_HEADERS) { HEADERS += $$file }
50 40
51 HEADERS += \ 41 HEADERS += \
52 piper-cpp/vamp-capnp/piper.capnp.h \ 42 piper-cpp/vamp-capnp/piper.capnp.h \
53 piper-cpp/vamp-capnp/VampnProto.h 43 piper-cpp/vamp-capnp/VampnProto.h
54 44
55 SOURCES += \ 45 SOURCES += \
56 piper-cpp/vamp-capnp/piper-capnp.cpp \ 46 piper-cpp/vamp-capnp/piper-capnp.cpp \
57 piper-cpp/vamp-server/server.cpp 47 piper-cpp/json11/json11.cpp \
58 48 piper-cpp/vamp-server/simple-server.cpp
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