updates to make win32 building work again
[xonotic/netradiant.git] / install-dlls.sh
1 #!/bin/sh
2
3 set -ex
4
5 : ${WHICHDLL:=which}
6 : ${GTKDIR:=/gtk}
7 : ${CP:=cp}
8 : ${CAT:=cat}
9 : ${MKDIR:=mkdir -p}
10 : ${INSTALLDIR:=.}
11
12 for DLL in \
13         intl.dll \
14         libatk-1.0-0.dll \
15         libcairo-2.dll \
16         libfontconfig-1.dll \
17         libfreetype6.dll \
18         libgdk-win32-2.0-0.dll \
19         libgdk_pixbuf-2.0-0.dll \
20         libgdkglext-win32-1.0-0.dll \
21         libgio-2.0-0.dll \
22         libglib-2.0-0.dll \
23         libgmodule-2.0-0.dll \
24         libgobject-2.0-0.dll \
25         libgthread-2.0-0.dll \
26         libgtk-win32-2.0-0.dll \
27         libgtkglext-win32-1.0-0.dll \
28         libpango-1.0-0.dll \
29         libpangocairo-1.0-0.dll \
30         libpangoft2-1.0-0.dll \
31         libpangowin32-1.0-0.dll \
32         libpng14-14.dll \
33         libxml2-2.dll \
34         zlib1.dll \
35 ; do
36         $CP "`$WHICHDLL $DLL`" $INSTALLDIR/
37 done
38
39 # apparently we no longer need this workaround:
40 #
41 # $CP "$GTKDIR/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-bmp.dll" $INSTALLDIR/libgdk-win32-2.0-0-pixbufloader-bmp.dll
42 # $MKDIR $INSTALLDIR/etc/gtk-2.0
43 # $CAT > $INSTALLDIR/etc/gtk-2.0/gdk-pixbuf.loaders <<'EOF'
44 # # GdkPixbuf Image Loader Modules file
45 # #
46 # #
47 #
48 # "libgdk-win32-2.0-0-pixbufloader-bmp.dll"
49 # "bmp" 5 "gtk20" "The BMP image format"
50 # "image/bmp" "image/x-bmp" "image/x-MS-bmp" ""
51 # "bmp" ""
52 # "BM" "" 100
53 #
54 # EOF