diff capnp-regen.pri @ 1731:5185ee58c44b vext

Pull out capnp-regen, update CI configs
author Chris Cannam
date Mon, 10 Jul 2017 12:55:47 +0100
parents
children cb56e83cc0b6
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/capnp-regen.pri	Mon Jul 10 12:55:47 2017 +0100
@@ -0,0 +1,17 @@
+
+capnpc.target = piper-cpp/vamp-capnp/piper-capnp.h
+capnpc.depends = $$PWD/piper/capnp/piper.capnp
+
+capnpc.commands = capnp compile --src-prefix=$$PWD/piper/capnp -oc++:$$PWD/piper-cpp/vamp-capnp $$capnpc.depends
+
+macx* {
+    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
+}
+
+win32-msvc* {
+    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
+}
+
+QMAKE_EXTRA_TARGETS += capnpc
+PRE_TARGETDEPS += $$capnpc.target
+