comparison SCRIPTS/process.sh @ 78:ab0dbbb58119

Script updates for mingw64
author Chris Cannam
date Thu, 30 Oct 2014 17:39:12 +0000
parents 2e60b888e526
children dc4da16ace47
comparison
equal deleted inserted replaced
77:2e60b888e526 78:ab0dbbb58119
56 CYG*) platform_arg=mingw32;; 56 CYG*) platform_arg=mingw32;;
57 MINGW*) platform_arg=mingw32;; 57 MINGW*) platform_arg=mingw32;;
58 esac 58 esac
59 fi 59 fi
60 60
61 platform=
62 bits=32
63 altbits=
64 toolprefix=
65 pluginext=
66 hostwrapper=
67 hostext=
68 valgrind=
69 archflags=
70 identpattern=
71
61 case "$platform_arg" in 72 case "$platform_arg" in
62 linux32) 73 linux32)
63 platform=linux 74 platform=linux
64 bits=32
65 toolprefix=
66 pluginext=.so 75 pluginext=.so
67 hostwrapper=
68 hostext=
69 valgrind=valgrind 76 valgrind=valgrind
70 archflags=
71 identpattern='ELF 32' 77 identpattern='ELF 32'
72 ;; 78 ;;
73 linux64) 79 linux64)
74 platform=linux 80 platform=linux
75 bits=64 81 bits=64
76 toolprefix=
77 pluginext=.so 82 pluginext=.so
78 hostwrapper=
79 hostext=
80 valgrind=valgrind 83 valgrind=valgrind
81 archflags=
82 identpattern='ELF 64' 84 identpattern='ELF 64'
83 ;; 85 ;;
84 mingw32) 86 mingw32)
85 platform=mingw 87 platform=mingw
86 bits=32
87 toolprefix=i686-w64-mingw32- 88 toolprefix=i686-w64-mingw32-
88 pluginext=.dll 89 pluginext=.dll
89 hostwrapper=wine 90 hostwrapper=wine
90 hostext=.exe 91 hostext=.exe
91 valgrind=
92 archflags=
93 identpattern='PE32.*386.*Windows' 92 identpattern='PE32.*386.*Windows'
94 ;; 93 ;;
95 mingw64) 94 mingw64)
96 platform=mingw 95 platform=mingw
97 bits=64 96 bits=64
97 altbits=32 # We can usually use a mingw32 Makefile if toolprefix is OK
98 toolprefix=x86_64-w64-mingw32- 98 toolprefix=x86_64-w64-mingw32-
99 pluginext=.dll 99 pluginext=.dll
100 hostwrapper=wine 100 hostwrapper=wine
101 hostext=.exe 101 hostext=.exe
102 valgrind= 102 identpattern='PE32.*x86-64.*Windows'
103 archflags=
104 identpattern='not known yet' ##!!!
105 ;; 103 ;;
106 osx32) 104 osx32)
107 platform=osx 105 platform=osx
108 bits=32
109 toolprefix=
110 pluginext=.dylib 106 pluginext=.dylib
111 hostwrapper=
112 hostext=
113 valgrind=
114 archflags="-arch i386" 107 archflags="-arch i386"
115 identpattern='Mach-O .*i386' 108 identpattern='Mach-O .*i386'
116 ;; 109 ;;
117 osx64) 110 osx64)
118 platform=osx 111 platform=osx
119 bits=64 112 bits=64
120 toolprefix=
121 pluginext=.dylib 113 pluginext=.dylib
122 hostwrapper=
123 hostext=
124 valgrind=
125 # This is a difficult choice for various reasons... have to ponder 114 # This is a difficult choice for various reasons... have to ponder
126 archflags="-mmacosx-version-min=10.6 -arch x86_64 -arch i386" 115 archflags="-mmacosx-version-min=10.6 -arch x86_64 -arch i386"
127 identpattern='Mach-O 64-bit .*x86_64' 116 identpattern='Mach-O 64-bit .*x86_64'
128 ;; 117 ;;
129 esac; 118 esac;
132 121
133 if [ -z "$platform" ]; then 122 if [ -z "$platform" ]; then
134 usage 123 usage
135 else 124 else
136 echo "(Platform is $platform, $bits bits)" 125 echo "(Platform is $platform, $bits bits)"
126 fi
127
128 if [ -z "$pluginext" ]; then
129 echo "Internal error: pluginext not set for platform $platform" 1>&2
130 exit 2
131 fi
132
133 if [ -z "$identpattern" ]; then
134 echo "Internal error: identpattern not set for platform $platform" 1>&2
135 exit 2
137 fi 136 fi
138 137
139 if [ t"$1" = t"-c" ]; then 138 if [ t"$1" = t"-c" ]; then
140 echo "(Building from clean)" 139 echo "(Building from clean)"
141 do_rebuild=yes 140 do_rebuild=yes
190 Makefile.$platform$bits \ 189 Makefile.$platform$bits \
191 build/$platform/Makefile.$platform \ 190 build/$platform/Makefile.$platform \
192 build/$platform/Makefile \ 191 build/$platform/Makefile \
193 build/Makefile.$platform \ 192 build/Makefile.$platform \
194 Makefile.$platform \ 193 Makefile.$platform \
194 build/$platform$altbits/Makefile.$platform$altbits \
195 build/$platform/Makefile.$platform$altbits \
196 build/$platform$altbits/Makefile.$platform \
197 build/$platform$altbits/Makefile \
198 build/Makefile.$platform$altbits \
199 Makefile.$platform$altbits \
195 Makefile ; do 200 Makefile ; do
196 if [ -f "$dir/$f" ]; then 201 if [ -f "$dir/$f" ]; then
197 echo $f 202 echo $f
198 break 203 break
199 fi 204 fi