annotate capnp-regen.pri @ 2351:62d6e9ad19f4

Fix #1904 Scrolling colour 3d plot does not always work when in View normalisation mode. We shouldn't imagine we've just invalidated the cache if the truth is that we've only just created the renderer
author Chris Cannam
date Wed, 09 Oct 2019 13:45:49 +0100
parents 555e3add86b2
children
rev   line source
Chris@1731 1
Chris@2045 2 capnpc.target = piper-vamp-cpp/vamp-capnp/piper.capnp.h
Chris@1731 3 capnpc.depends = $$PWD/piper/capnp/piper.capnp
Chris@1731 4
Chris@2045 5 capnpc.commands = capnp compile --src-prefix=$$PWD/piper/capnp -oc++:$$PWD/piper-vamp-cpp/vamp-capnp $$capnpc.depends
Chris@1731 6
Chris@1731 7 macx* {
Chris@1944 8 exists(sv-dependency-builds) {
Chris@2045 9 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-vamp-cpp/vamp-capnp $$capnpc.depends
Chris@1944 10 }
Chris@1731 11 }
Chris@1731 12
Chris@1762 13 win32-g++ {
Chris@2045 14 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-vamp-cpp/vamp-capnp $$capnpc.depends
Chris@1762 15 }
Chris@1762 16
Chris@1731 17 win32-msvc* {
Chris@1743 18 # This config is actually for 64-bit Windows builds -- see
Chris@1768 19 # comments in noconfig.pri.
Chris@1768 20
Chris@1768 21 # With MSVC2017 we have a problem that the header dependency is
Chris@1768 22 # written out with the relative path from the build dir to the
Chris@1768 23 # source dir (e.g. ..\sonic-visualiser\...) so if the header
Chris@1768 24 # target path doesn't match that, the build fails before
Chris@1768 25 # regenerating it. Not a problem with VC2015 for some reason.
Chris@1768 26 # I hope using the relative path as target should fix it without
Chris@1768 27 # breaking the VC2015 build.
Chris@1768 28
Chris@2045 29 capnpc.target = ../$$basename(PWD)/piper-vamp-cpp/vamp-capnp/piper.capnp.h
Chris@2045 30 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-vamp-cpp/vamp-capnp $$capnpc.depends
Chris@1731 31 }
Chris@1731 32
Chris@1731 33 QMAKE_EXTRA_TARGETS += capnpc
Chris@1731 34 PRE_TARGETDEPS += $$capnpc.target
Chris@1768 35 QMAKE_CLEAN += $$capnpc.target
Chris@1731 36