comparison SCRIPTS/process.sh @ 36:56eff3575b55

Toward win64 build eventually
author Chris Cannam
date Wed, 06 Aug 2014 16:30:34 +0100
parents 6fc0d89020f2
children 12d422dd6992
comparison
equal deleted inserted replaced
32:6fc0d89020f2 36:56eff3575b55
49 toolprefix= 49 toolprefix=
50 pluginext=.so 50 pluginext=.so
51 hostwrapper= 51 hostwrapper=
52 hostext= 52 hostext=
53 archflags= 53 archflags=
54 identpattern='ELF 32.*Linux'
54 ;; 55 ;;
55 linux64) 56 linux64)
56 platform=linux 57 platform=linux
57 bits=64 58 bits=64
58 toolprefix= 59 toolprefix=
59 pluginext=.so 60 pluginext=.so
60 hostwrapper= 61 hostwrapper=
61 hostext= 62 hostext=
62 archflags= 63 archflags=
64 identpattern='ELF 64.*Linux'
63 ;; 65 ;;
64 mingw32) 66 mingw32)
65 platform=mingw 67 platform=mingw
66 bits=32 68 bits=32
67 toolprefix=i686-w64-mingw32- 69 toolprefix=i686-w64-mingw32-
68 pluginext=.dll 70 pluginext=.dll
69 hostwrapper=wine 71 hostwrapper=wine
70 hostext=.exe 72 hostext=.exe
71 archflags= 73 archflags=
74 identpattern='PE32.*386.*Windows'
72 ;; 75 ;;
73 mingw64) 76 mingw64)
74 platform=mingw 77 platform=mingw
75 bits=64 78 bits=64
76 toolprefix=x86_64-w64-mingw32- 79 toolprefix=x86_64-w64-mingw32-
77 pluginext=.dll 80 pluginext=.dll
78 hostwrapper=wine 81 hostwrapper=wine
79 hostext=.exe 82 hostext=.exe
80 archflags= 83 archflags=
84 identpattern='not known yet' ##!!!
81 ;; 85 ;;
82 osx32) 86 osx32)
83 platform=osx 87 platform=osx
84 bits=32 88 bits=32
85 toolprefix= 89 toolprefix=
86 pluginext=.dylib 90 pluginext=.dylib
87 hostwrapper= 91 hostwrapper=
88 hostext= 92 hostext=
89 archflags="-arch i386" 93 archflags="-arch i386"
94 identpattern='not known yet' ##!!!
90 ;; 95 ;;
91 osx64) 96 osx64)
92 platform=osx 97 platform=osx
93 bits=64 98 bits=64
94 toolprefix= 99 toolprefix=
95 pluginext=.dylib 100 pluginext=.dylib
96 hostwrapper= 101 hostwrapper=
97 hostext= 102 hostext=
98 # This is a difficult choice for various reasons... have to ponder 103 # This is a difficult choice for various reasons... have to ponder
99 archflags="-mmacosx-version-min=10.6 -arch x86_64 -arch i386" 104 archflags="-mmacosx-version-min=10.6 -arch x86_64 -arch i386"
105 identpattern='not known yet' ##!!!
100 ;; 106 ;;
101 esac; 107 esac;
102 108
103 shift 109 shift
104 110
226 232
227 have_plugin() { 233 have_plugin() {
228 dir="$1" 234 dir="$1"
229 for x in "$dir/"*"$pluginext"; do 235 for x in "$dir/"*"$pluginext"; do
230 if [ -f "$x" ]; then 236 if [ -f "$x" ]; then
231 return 0 237 if file "$x" | grep -q "$identpattern" ; then
238 return 0
239 else
240 echo "Plugin $x exists, but fails to match file type for correct platform"
241 echo "(file type is: `file $x`)"
242 return 1
243 fi
232 fi 244 fi
233 done 245 done
234 return 1 246 return 1
235 } 247 }
236 248
338 if have_plugin "$dir" ; then 350 if have_plugin "$dir" ; then
339 echo "$dir" >> "$built" 351 echo "$dir" >> "$built"
340 run_tester "$dir" 352 run_tester "$dir"
341 run_environmental_tests "$dir" 353 run_environmental_tests "$dir"
342 else 354 else
343 echo "Build apparently succeeded, but no resulting plugin(s) found" | tee -a "$reportdir/$dir.build.txt" 355 echo "Build apparently succeeded, but no resulting plugin(s) found, or plugin(s) have wrong file type or platform" | tee -a "$reportdir/$dir.build.txt"
344 echo "$dir" >> "$notbuilt" 356 echo "$dir" >> "$notbuilt"
345 fi 357 fi
346 else 358 else
347 echo "$dir" >> "$notbuilt" 359 echo "$dir" >> "$notbuilt"
348 fi 360 fi