To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / capnp-regen.pri @ 110:125520c3dc05
History | View | Annotate | Download (1.69 KB)
| 1 |
|
|---|---|
| 2 |
capnpc.target = piper-vamp-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-vamp-cpp/vamp-capnp $$capnpc.depends |
| 6 |
|
| 7 |
macx* {
|
| 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-vamp-cpp/vamp-capnp $$capnpc.depends |
| 9 |
} |
| 10 |
|
| 11 |
win32-g++ {
|
| 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-vamp-cpp/vamp-capnp $$capnpc.depends |
| 13 |
} |
| 14 |
|
| 15 |
win32-msvc* {
|
| 16 |
# This config is actually for 64-bit Windows builds -- see |
| 17 |
# comments in noconfig.pri. |
| 18 |
|
| 19 |
# With MSVC2017 we have a problem that the header dependency is |
| 20 |
# written out with the relative path from the build dir to the |
| 21 |
# source dir (e.g. ..\sonic-visualiser\...) so if the header |
| 22 |
# target path doesn't match that, the build fails before |
| 23 |
# regenerating it. Not a problem with VC2015 for some reason. |
| 24 |
# I hope using the relative path as target should fix it without |
| 25 |
# breaking the VC2015 build. |
| 26 |
|
| 27 |
capnpc.target = ../$$basename(PWD)/piper-vamp-cpp/vamp-capnp/piper.capnp.h |
| 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-vamp-cpp/vamp-capnp $$capnpc.depends |
| 29 |
} |
| 30 |
|
| 31 |
QMAKE_EXTRA_TARGETS += capnpc |
| 32 |
PRE_TARGETDEPS += $$capnpc.target |
| 33 |
QMAKE_CLEAN += $$capnpc.target |
| 34 |
|