Mercurial > hg > vamp-build-and-test
comparison SCRIPTS/process.sh @ 31:090303b184d8
Build tweaks
author | Chris Cannam |
---|---|
date | Wed, 06 Aug 2014 12:45:06 +0100 |
parents | edb8f67e06d2 |
children | 6fc0d89020f2 |
comparison
equal
deleted
inserted
replaced
30:c143c524e034 | 31:090303b184d8 |
---|---|
16 | 16 |
17 usage() { | 17 usage() { |
18 echo | 18 echo |
19 echo "Usage: $0 <platform> [-c] [<dir> ...]" | 19 echo "Usage: $0 <platform> [-c] [<dir> ...]" |
20 echo | 20 echo |
21 echo " <platform> one of linux32, linux64, mingw32, mingw64, osx32, osx64" | 21 echo " <platform> one of native, linux32, linux64, mingw32, mingw64, osx32, osx64" |
22 echo " -c build from clean" | 22 echo " -c build from clean" |
23 echo " <dir> directory to build (default is all of them)" | 23 echo " <dir> directory to build (default is all of them)" |
24 echo | 24 echo |
25 echo "Platform usually should match the platform you are running this" | 25 echo "Platform usually should match the platform you are running this" |
26 echo "script on, unless you have a cross-compile toolset installed and" | 26 echo "script on, unless you have a cross-compile toolset installed and" |
27 echo "this script knows how to run it." | 27 echo "this script knows how to run it. The special platform 'native'" |
28 echo "tries to guess the currently running platform." | |
28 echo | 29 echo |
29 exit 2 | 30 exit 2 |
30 } | 31 } |
31 | 32 |
32 case "$1" in | 33 platform_arg="$1" |
34 | |
35 if [ "$platform_arg" = "native" ]; then | |
36 case `uname -a` in | |
37 Linux*x86_64*) platform_arg=linux64;; | |
38 Linux*) platform_arg=linux32;; | |
39 Darwin*) platform_arg=osx64;; | |
40 CYG*) platform_arg=mingw32;; | |
41 MINGW*) platform_arg=mingw32;; | |
42 esac | |
43 fi | |
44 | |
45 case "$platform_arg" in | |
33 linux32) | 46 linux32) |
34 platform=linux | 47 platform=linux |
35 bits=32 | 48 bits=32 |
36 toolprefix= | 49 toolprefix= |
37 pluginext=.so | 50 pluginext=.so |
307 echo "Failed to build Vamp plugin tester!" | 320 echo "Failed to build Vamp plugin tester!" |
308 exit 1 | 321 exit 1 |
309 fi | 322 fi |
310 | 323 |
311 for dir in $plugindirs ; do | 324 for dir in $plugindirs ; do |
325 dir=${dir%/*} | |
312 echo | 326 echo |
313 echo "Processing: $dir" | 327 echo "Processing: $dir" |
314 if build_or_rebuild "$dir"; then | 328 if [ ! -d "$dir" ]; then |
329 echo "Directory $dir not found!" | |
330 echo "$dir" >> "$notbuilt" | |
331 elif build_or_rebuild "$dir"; then | |
315 if have_plugin "$dir" ; then | 332 if have_plugin "$dir" ; then |
316 echo "$dir" >> "$built" | 333 echo "$dir" >> "$built" |
317 run_tester "$dir" | 334 run_tester "$dir" |
318 run_environmental_tests "$dir" | 335 run_environmental_tests "$dir" |
319 else | 336 else |