Chris@1731: Chris@1755: capnpc.target = piper-cpp/vamp-capnp/piper.capnp.h Chris@1731: capnpc.depends = $$PWD/piper/capnp/piper.capnp Chris@1731: Chris@1731: capnpc.commands = capnp compile --src-prefix=$$PWD/piper/capnp -oc++:$$PWD/piper-cpp/vamp-capnp $$capnpc.depends Chris@1731: Chris@1731: macx* { Chris@1944: exists(sv-dependency-builds) { Chris@1944: capnpc.commands=$$PWD/sv-dependency-builds/osx/bin/capnp -I$$PWD/sv-dependency-builds/osx/include compile --src-prefix=$$PWD/piper/capnp -o$$PWD/sv-dependency-builds/osx/bin/capnpc-c++:$$PWD/piper-cpp/vamp-capnp $$capnpc.depends Chris@1944: } Chris@1731: } Chris@1731: Chris@1762: win32-g++ { Chris@1762: capnpc.commands=$$PWD/sv-dependency-builds/win32-mingw/bin/capnp -I$$PWD/sv-dependency-builds/win32-mingw/include compile --src-prefix=$$PWD/piper/capnp -o$$PWD/sv-dependency-builds/win32-mingw/bin/capnpc-c++:$$PWD/piper-cpp/vamp-capnp $$capnpc.depends Chris@1762: } Chris@1762: Chris@1731: win32-msvc* { Chris@1743: # This config is actually for 64-bit Windows builds -- see Chris@1768: # comments in noconfig.pri. Chris@1768: Chris@1768: # With MSVC2017 we have a problem that the header dependency is Chris@1768: # written out with the relative path from the build dir to the Chris@1768: # source dir (e.g. ..\sonic-visualiser\...) so if the header Chris@1768: # target path doesn't match that, the build fails before Chris@1768: # regenerating it. Not a problem with VC2015 for some reason. Chris@1768: # I hope using the relative path as target should fix it without Chris@1768: # breaking the VC2015 build. Chris@1768: Chris@1768: capnpc.target = ../$$basename(PWD)/piper-cpp/vamp-capnp/piper.capnp.h Chris@1731: capnpc.commands=$$PWD/sv-dependency-builds/win64-msvc/bin/capnp -I$$PWD/sv-dependency-builds/win64-msvc/include compile --src-prefix=$$PWD/piper/capnp -o$$PWD/sv-dependency-builds/win64-msvc/bin/capnpc-c++:$$PWD/piper-cpp/vamp-capnp $$capnpc.depends Chris@1731: } Chris@1731: Chris@1731: QMAKE_EXTRA_TARGETS += capnpc Chris@1731: PRE_TARGETDEPS += $$capnpc.target Chris@1768: QMAKE_CLEAN += $$capnpc.target Chris@1731: