Mercurial > hg > vamp-build-and-test
comparison SCRIPTS/process.sh @ 21:ee6b7d71155b
Some os/x build fixes
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 12:55:55 +0100 |
parents | b7f35acc8561 |
children | 5b4cb5af2a90 |
comparison
equal
deleted
inserted
replaced
20:9aff44415b22 | 21:ee6b7d71155b |
---|---|
16 #bits=64 | 16 #bits=64 |
17 #toolprefix="" | 17 #toolprefix="" |
18 #pluginext=.so | 18 #pluginext=.so |
19 #hostwrapper="" | 19 #hostwrapper="" |
20 #hostext="" | 20 #hostext="" |
21 | 21 #archflags= |
22 platform=mingw | 22 |
23 bits=32 | 23 #platform=mingw |
24 toolprefix=i686-w64-mingw32- | 24 #bits=32 |
25 pluginext=.dll | 25 #toolprefix=i686-w64-mingw32- |
26 hostwrapper=wine | 26 #pluginext=.dll |
27 hostext=.exe | 27 #hostwrapper=wine |
28 #hostext=.exe | |
29 #archflags= | |
30 | |
31 platform=osx | |
32 bits=64 | |
33 toolprefix= | |
34 pluginext=.dylib | |
35 hostwrapper= | |
36 hostext= | |
37 archflags="-arch x86_64" | |
28 | 38 |
29 depincdir="$mydir"/../DEPENDENCIES/$platform$bits/include | 39 depincdir="$mydir"/../DEPENDENCIES/$platform$bits/include |
30 deplibdir="$mydir"/../DEPENDENCIES/$platform$bits/lib | 40 deplibdir="$mydir"/../DEPENDENCIES/$platform$bits/lib |
31 | 41 |
32 depincdir_generic="$mydir"/../DEPENDENCIES/generic/include | 42 depincdir_generic="$mydir"/../DEPENDENCIES/generic/include |
94 if configure_maybe "$dir"; then | 104 if configure_maybe "$dir"; then |
95 mfile=$(find_makefile "$dir") | 105 mfile=$(find_makefile "$dir") |
96 if [ -n "$mfile" ]; then | 106 if [ -n "$mfile" ]; then |
97 target=$(target_for "$dir") | 107 target=$(target_for "$dir") |
98 TOOLPREFIX="$toolprefix" \ | 108 TOOLPREFIX="$toolprefix" \ |
99 CXXFLAGS="-I${depincdir} -I${depincdir_generic} -I../vamp-plugin-sdk" LDFLAGS="-L${deplibdir} -L../vamp-plugin-sdk" \ | 109 CXXFLAGS="-I${depincdir} -I${depincdir_generic} -I../vamp-plugin-sdk" \ |
110 LDFLAGS="-L${deplibdir} -L../vamp-plugin-sdk" \ | |
111 ARCHFLAGS="$archflags" \ | |
100 make -C "$dir" -f "$mfile" $target 2>&1 | \ | 112 make -C "$dir" -f "$mfile" $target 2>&1 | \ |
101 tee "$reportdir/$dir.build.txt" | 113 tee "$reportdir/$dir.build.txt" |
102 return ${PIPESTATUS[0]} | 114 return ${PIPESTATUS[0]} |
103 else | 115 else |
104 echo "Failed to find a Makefile in $dir" | 116 echo "Failed to find a Makefile in $dir" |
196 if [ "$good" != "yes" ]; then | 208 if [ "$good" != "yes" ]; then |
197 echo "$dir" >> "$envcheckfailed" | 209 echo "$dir" >> "$envcheckfailed" |
198 fi | 210 fi |
199 } | 211 } |
200 | 212 |
201 if ! build "vamp-plugin-sdk"; then | 213 if ! rebuild "vamp-plugin-sdk"; then |
202 echo "Failed to build Vamp plugin SDK!" | 214 echo "Failed to build Vamp plugin SDK!" |
203 exit 1 | 215 exit 1 |
204 fi | 216 fi |
205 | 217 |
206 if ! build "vamp-plugin-tester"; then | 218 if ! rebuild "vamp-plugin-tester"; then |
207 echo "Failed to build Vamp plugin tester!" | 219 echo "Failed to build Vamp plugin tester!" |
208 exit 1 | 220 exit 1 |
209 fi | 221 fi |
210 | 222 |
211 for dir in $plugindirs ; do | 223 for dir in $plugindirs ; do |
212 echo | 224 echo |
213 echo "Processing: $dir" | 225 echo "Processing: $dir" |
214 if build "$dir"; then | 226 if rebuild "$dir"; then |
215 if have_plugin "$dir" ; then | 227 if have_plugin "$dir" ; then |
216 echo "$dir" >> "$built" | 228 echo "$dir" >> "$built" |
217 run_tester "$dir" | 229 run_tester "$dir" |
218 run_environmental_tests "$dir" | 230 run_environmental_tests "$dir" |
219 else | 231 else |