annotate capnp-regen.pri @ 1909:12b96d6b1d66

Toward getting appimage build working in Docker
author Chris Cannam
date Fri, 29 Jun 2018 10:31:17 +0100
parents f684b19ab777
children 33fd562a492b
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@1731 8 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@1731 9 }
Chris@1731 10
Chris@1762 11 win32-g++ {
Chris@1762 12 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 13 }
Chris@1762 14
Chris@1731 15 win32-msvc* {
Chris@1743 16 # This config is actually for 64-bit Windows builds -- see
Chris@1768 17 # comments in noconfig.pri.
Chris@1768 18
Chris@1768 19 # With MSVC2017 we have a problem that the header dependency is
Chris@1768 20 # written out with the relative path from the build dir to the
Chris@1768 21 # source dir (e.g. ..\sonic-visualiser\...) so if the header
Chris@1768 22 # target path doesn't match that, the build fails before
Chris@1768 23 # regenerating it. Not a problem with VC2015 for some reason.
Chris@1768 24 # I hope using the relative path as target should fix it without
Chris@1768 25 # breaking the VC2015 build.
Chris@1768 26
Chris@1768 27 capnpc.target = ../$$basename(PWD)/piper-cpp/vamp-capnp/piper.capnp.h
Chris@1731 28 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 29 }
Chris@1731 30
Chris@1731 31 QMAKE_EXTRA_TARGETS += capnpc
Chris@1731 32 PRE_TARGETDEPS += $$capnpc.target
Chris@1768 33 QMAKE_CLEAN += $$capnpc.target
Chris@1731 34