annotate base.pri @ 1726:580edea2489c vext

Try capnp rebuild on Windows (badly)
author Chris Cannam
date Fri, 07 Jul 2017 21:29:55 +0100
parents 28302e07f851
children d2221cb43cd5
rev   line source
Chris@1332 1
Chris@1332 2 SV_INCLUDEPATH = \
Chris@1332 3 . \
Chris@1332 4 bqvec \
Chris@1332 5 bqvec/bqvec \
Chris@1349 6 bqfft \
Chris@1332 7 bqresample \
Chris@1332 8 bqaudioio \
Chris@1332 9 bqaudioio/bqaudioio \
Chris@1332 10 piper-cpp \
Chris@1332 11 checker \
Chris@1332 12 checker/checker \
Chris@1332 13 dataquay \
Chris@1332 14 dataquay/dataquay \
Chris@1332 15 svcore \
Chris@1332 16 svcore/data \
Chris@1332 17 svcore/plugin/api/alsa \
Chris@1332 18 svgui \
Chris@1332 19 svapp \
Chris@1332 20 vamp-plugin-sdk
Chris@1332 21
Chris@1332 22 DEPENDPATH += $$SV_INCLUDEPATH
Chris@1332 23 INCLUDEPATH += $$SV_INCLUDEPATH
Chris@1332 24
Chris@1332 25 # Platform defines for RtMidi
Chris@1644 26 linux*: DEFINES += __LINUX_ALSASEQ__ __LINUX_ALSA__
Chris@1332 27 macx*: DEFINES += __MACOSX_CORE__
Chris@1332 28 win*: DEFINES += __WINDOWS_MM__
Chris@1332 29 solaris*: DEFINES += __RTMIDI_DUMMY_ONLY__
Chris@1332 30
Chris@1332 31 # Defines for Dataquay
Chris@1332 32 DEFINES += USE_SORD
Chris@1332 33
Chris@1332 34 CONFIG += qt thread warn_on stl rtti exceptions c++11
Chris@1332 35
Chris@1332 36 include(bq-files.pri)
Chris@1332 37 include(vamp-plugin-sdk-files.pri)
Chris@1332 38 include(svcore/files.pri)
Chris@1332 39
Chris@1332 40 DATAQUAY_SOURCES=$$fromfile(dataquay/lib.pro, SOURCES)
Chris@1332 41 DATAQUAY_HEADERS=$$fromfile(dataquay/lib.pro, HEADERS)
Chris@1332 42
Chris@1332 43 CHECKER_SOURCES=$$fromfile(checker/checker.pri, SOURCES)
Chris@1332 44 CHECKER_HEADERS=$$fromfile(checker/checker.pri, HEADERS)
Chris@1332 45
Chris@1560 46 CLIENT_HEADERS=$$fromfile(piper-cpp/vamp-client/qt/test.pro, HEADERS)
Chris@1332 47
Chris@1332 48 for (file, BQ_SOURCES) { SOURCES += $$file }
Chris@1332 49 for (file, BQ_HEADERS) { HEADERS += $$file }
Chris@1332 50
Chris@1332 51 for (file, VAMP_SOURCES) { SOURCES += $$file }
Chris@1332 52 for (file, VAMP_HEADERS) { HEADERS += $$file }
Chris@1332 53
Chris@1332 54 for (file, DATAQUAY_SOURCES) { SOURCES += $$sprintf("dataquay/%1", $$file) }
Chris@1332 55 for (file, DATAQUAY_HEADERS) { HEADERS += $$sprintf("dataquay/%1", $$file) }
Chris@1332 56
Chris@1332 57 for (file, CHECKER_SOURCES) { SOURCES += $$sprintf("checker/%1", $$file) }
Chris@1332 58 for (file, CHECKER_HEADERS) { HEADERS += $$sprintf("checker/%1", $$file) }
Chris@1332 59
Chris@1332 60 for (file, SVCORE_SOURCES) { SOURCES += $$sprintf("svcore/%1", $$file) }
Chris@1332 61 for (file, SVCORE_HEADERS) { HEADERS += $$sprintf("svcore/%1", $$file) }
Chris@1332 62
Chris@1332 63 for (file, CLIENT_HEADERS) {
Chris@1560 64 HEADERS += $$sprintf("piper-cpp/vamp-client/qt/%1", $$file)
Chris@1332 65 }
Chris@1720 66
Chris@1332 67 SOURCES += piper-cpp/vamp-capnp/piper-capnp.cpp
Chris@1720 68
Chris@1720 69 capnpc.target = piper-cpp/vamp-capnp/piper-capnp.h
Chris@1720 70 capnpc.depends = piper/capnp/piper.capnp
cannam@1725 71
cannam@1725 72 capnpc.commands = capnp compile --src-prefix=piper/capnp -oc++:piper-cpp/vamp-capnp $$capnpc.depends
cannam@1725 73
cannam@1725 74 macx* {
cannam@1725 75 capnpc.commands=./sv-dependency-builds/osx/bin/capnp -Isv-dependency-builds/osx/include compile --src-prefix=piper/capnp -osv-dependency-builds/osx/bin/capnpc-c++:piper-cpp/vamp-capnp $$capnpc.depends
cannam@1725 76 }
Chris@1720 77
Chris@1726 78 win* {
Chris@1726 79 capnpc.commands=./sv-dependency-builds/win64-msvc/bin/capnp -Isv-dependency-builds/win64-msvc/include compile --src-prefix=piper/capnp -osv-dependency-builds/win64-msvc/bin/capnpc-c++:piper-cpp/vamp-capnp $$capnpc.depends
Chris@1726 80 }
Chris@1726 81
Chris@1720 82 QMAKE_EXTRA_TARGETS += capnpc
Chris@1720 83 PRE_TARGETDEPS += $$capnpc.target