annotate capnp-regen.pri @ 2025:262c656ec78f zoom

Merge from default branch
author Chris Cannam
date Mon, 01 Oct 2018 15:49:32 +0100
parents 33fd562a492b
children 555e3add86b2
rev   line source
Chris@1731 1
Chris@1755 2 capnpc.target = piper-cpp/vamp-capnp/piper.capnp.h
Chris@1731 3 capnpc.depends = $$PWD/piper/capnp/piper.capnp
Chris@1731 4
Chris@1731 5 capnpc.commands = capnp compile --src-prefix=$$PWD/piper/capnp -oc++:$$PWD/piper-cpp/vamp-capnp $$capnpc.depends
Chris@1731 6
Chris@1731 7 macx* {
Chris@1944 8 exists(sv-dependency-builds) {
Chris@1944 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-cpp/vamp-capnp $$capnpc.depends
Chris@1944 10 }
Chris@1731 11 }
Chris@1731 12
Chris@1762 13 win32-g++ {
Chris@1762 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-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@1768 29 capnpc.target = ../$$basename(PWD)/piper-cpp/vamp-capnp/piper.capnp.h
Chris@1731 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-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