comparison capnp-regen.pri @ 2008:55d9bbf1fe45 zoom

Merge from default branch
author Chris Cannam
date Mon, 17 Sep 2018 14:05:41 +0100
parents 33fd562a492b
children 555e3add86b2
comparison
equal deleted inserted replaced
2007:246bdf94ef7b 2008:55d9bbf1fe45
1
2 capnpc.target = piper-cpp/vamp-capnp/piper.capnp.h
3 capnpc.depends = $$PWD/piper/capnp/piper.capnp
4
5 capnpc.commands = capnp compile --src-prefix=$$PWD/piper/capnp -oc++:$$PWD/piper-cpp/vamp-capnp $$capnpc.depends
6
7 macx* {
8 exists(sv-dependency-builds) {
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
10 }
11 }
12
13 win32-g++ {
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
15 }
16
17 win32-msvc* {
18 # This config is actually for 64-bit Windows builds -- see
19 # comments in noconfig.pri.
20
21 # With MSVC2017 we have a problem that the header dependency is
22 # written out with the relative path from the build dir to the
23 # source dir (e.g. ..\sonic-visualiser\...) so if the header
24 # target path doesn't match that, the build fails before
25 # regenerating it. Not a problem with VC2015 for some reason.
26 # I hope using the relative path as target should fix it without
27 # breaking the VC2015 build.
28
29 capnpc.target = ../$$basename(PWD)/piper-cpp/vamp-capnp/piper.capnp.h
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
31 }
32
33 QMAKE_EXTRA_TARGETS += capnpc
34 PRE_TARGETDEPS += $$capnpc.target
35 QMAKE_CLEAN += $$capnpc.target
36