diff --git a/lib-src/lv2/build b/lib-src/lv2/build
index 3ef13a0..5cd7506 100755
a
|
b
|
function waf |
16 | 16 | pkg=$1 |
17 | 17 | pushd >/dev/null ${pkg} |
18 | 18 | shift |
19 | | $(which python python2 | tail -1) waf --prefix="." --include="." $@ build || exit 1 |
| 19 | @@PYTHON@@ waf --prefix="." --include="." $@ build || exit 1 |
20 | 20 | popd >/dev/null |
21 | 21 | |
22 | 22 | . .buildvars |
23 | 23 | |
24 | 24 | if [ -e ${pkg}/build/*.a ] |
25 | 25 | then |
26 | | mkdir -p obj |
27 | | pushd obj |
| 26 | mkdir -p obj.${pkg} |
| 27 | pushd obj.${pkg} |
28 | 28 | ar vx ../${pkg}/build/*.a |
29 | | ar vq ../liblv2.a * |
30 | 29 | popd |
31 | | rm -rf obj |
32 | 30 | fi |
33 | 31 | } |
34 | 32 | |
35 | 33 | [ -e liblv2.a ] && exit 0 |
36 | 34 | |
37 | | waf lv2 --no-plugins |
38 | | waf serd --static --no-shared --no-utils |
39 | | waf sord --static --no-shared --no-utils |
40 | | waf sratom --static --no-shared |
41 | | waf lilv --static --no-shared --no-utils |
42 | | waf suil --static --no-shared --no-qt |
| 35 | waf lv2 -vvv --no-plugins |
| 36 | waf serd -vvv --static --no-shared --no-utils |
| 37 | waf sord -vvv --static --no-shared --no-utils |
| 38 | waf sratom -vvv --static --no-shared |
| 39 | waf lilv -vvv --static --no-shared --no-utils |
| 40 | waf suil -vvv --static --no-shared --no-qt |
| 41 | |
| 42 | # now create liblv2.a in a single call |
| 43 | libtool -static -o liblv2.a obj.serd/*.o obj.sord/*.o obj.sratom/*.o obj.lilv/*.o obj.suil/*.o |
| 44 | ar -sv liblv2.a |
43 | 45 | |
44 | 46 | exit 0 |