File: update_qm-vamp.sh

package info (click to toggle)
ardour 1:5.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 74,708 kB
  • sloc: cpp: 512,951; xml: 123,656; ansic: 65,010; python: 22,599; sh: 5,368; asm: 1,347; perl: 888; php: 770; makefile: 253; objc: 28
file content (64 lines) | stat: -rwxr-xr-x 1,517 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh

if ! test -f wscript || ! test -d gtk2_ardour || ! test -d libs/qm-dsp/;then
	echo "This script needs to run from ardour's top-level src tree"
	exit 1
fi

if test -z "`which rsync`" -o -z "`which git`"; then
	echo "this script needs rsync and git"
	exit 1
fi

ASRC=`pwd`
set -e

TMP=`mktemp -d`
test -d "$TMP"
echo $TMP
trap "rm -rf $TMP" EXIT

cd $TMP
git clone git://github.com/c4dm/qm-vamp-plugins.git
VAMPPLUGS="$TMP/qm-vamp-plugins/plugins"

cd "$ASRC/libs/vamp-plugins/"
for src in *.cpp *.h; do
	if test -f "$VAMPPLUGS/$src"; then
		cp "$VAMPPLUGS/$src" ./
		git add $src
	fi
done

## MSVC patch on top of qm-vamp-plugins-v1.7.1-10-g76bc879
patch -p3 << EOF
diff --git b/libs/vamp-plugins/BarBeatTrack.cpp a/libs/vamp-plugins/BarBeatTrack.cpp
index 8d0b887c3..a85c924c4 100644
--- b/libs/vamp-plugins/BarBeatTrack.cpp
+++ a/libs/vamp-plugins/BarBeatTrack.cpp
@@ -25,7 +25,7 @@ using std::vector;
 using std::cerr;
 using std::endl;
 
-#ifndef __GNUC__
+#if !defined(__GNUC__) && !defined(_MSC_VER)
 #include <alloca.h>
 #endif
 
diff --git b/libs/vamp-plugins/OnsetDetect.cpp a/libs/vamp-plugins/OnsetDetect.cpp
index a2c4042c0..c2b6d68db 100644
--- b/libs/vamp-plugins/OnsetDetect.cpp
+++ a/libs/vamp-plugins/OnsetDetect.cpp
@@ -12,6 +12,9 @@
     COPYING included with this distribution for more information.
 */
 
+#ifdef COMPILER_MSVC
+#include <ardourext/float_cast.h>
+#endif
 #include "OnsetDetect.h"
 
 #include <dsp/onsets/DetectionFunction.h>
EOF

git add BarBeatTrack.cpp OnsetDetect.cpp