new DLL setup; now working with Gtk+ 2.2
[divverent/netradiant.git] / install-dlls.sh
1 #!/bin/sh
2
3 set -ex
4
5 : ${WHICHDLL:=which}
6 : ${GTKDIR:=/gtk}
7 : ${CP:=cp}
8
9 for DLL in \
10         intl.dll \
11         libatk-1.0-0.dll \
12         libcairo-2.dll \
13         libgdk-win32-2.0-0.dll \
14         libgdk_pixbuf-2.0-0.dll \
15         libgdkglext-win32-1.0-0.dll \
16         libglib-2.0-0.dll \
17         libgmodule-2.0-0.dll \
18         libgobject-2.0-0.dll \
19         libgtk-win32-2.0-0.dll \
20         libgtkglext-win32-1.0-0.dll \
21         libpango-1.0-0.dll \
22         libpangocairo-1.0-0.dll \
23         libpangowin32-1.0-0.dll \
24         libpng12-0.dll \
25         libxml2-2.dll \
26         zlib1.dll \
27 ; do
28         $CP "`$WHICHDLL $DLL`" install/
29 done
30
31 cp "$GTKDIR/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-bmp.dll" install/libgdk-win32-2.0-0-pixbufloader-bmp.dll
32 mkdir -p install/etc/gtk-2.0
33 cat > install/etc/gtk-2.0/gdk-pixbuf.loaders <<'EOF'
34 # GdkPixbuf Image Loader Modules file
35 #
36 #
37
38 "libgdk-win32-2.0-0-pixbufloader-bmp.dll"
39 "bmp" 5 "gtk20" "The BMP image format"
40 "image/bmp" "image/x-bmp" "image/x-MS-bmp" ""
41 "bmp" ""
42 "BM" "" 100
43
44 EOF