To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / capnp-regen.pri

History | View | Annotate | Download (1.69 KB)

1 103:519c6649cc68 Chris
2 110:125520c3dc05 Chris
capnpc.target = piper-vamp-cpp/vamp-capnp/piper.capnp.h
3 103:519c6649cc68 Chris
capnpc.depends = $$PWD/piper/capnp/piper.capnp
4
5 110:125520c3dc05 Chris
capnpc.commands = capnp compile --src-prefix=$$PWD/piper/capnp -oc++:$$PWD/piper-vamp-cpp/vamp-capnp $$capnpc.depends
6 103:519c6649cc68 Chris
7
macx* {
8 110:125520c3dc05 Chris
    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 103:519c6649cc68 Chris
}
10
11 107:f396f9b4ed99 Chris
win32-g++ {
12 110:125520c3dc05 Chris
    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 107:f396f9b4ed99 Chris
}
14
15 103:519c6649cc68 Chris
win32-msvc* {
16 107:f396f9b4ed99 Chris
    # 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 110:125520c3dc05 Chris
    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 103:519c6649cc68 Chris
}
30
31
QMAKE_EXTRA_TARGETS += capnpc
32
PRE_TARGETDEPS += $$capnpc.target
33 107:f396f9b4ed99 Chris
QMAKE_CLEAN += $$capnpc.target