0776cb7b4236ead6b4f500c6214d0b05d160869f
[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         freetype6.dll \
14         intl.dll \
15         libatk-1.0-0.dll \
16         libcairo-2.dll \
17         libexpat-1.dll \
18         libfontconfig-1.dll \
19         libgdkglext-win32-1.0-0.dll \
20         libgdk_pixbuf-2.0-0.dll \
21         libgdk-win32-2.0-0.dll \
22         libgio-2.0-0.dll \
23         libglib-2.0-0.dll \
24         libgmodule-2.0-0.dll \
25         libgobject-2.0-0.dll \
26         libgthread-2.0-0.dll \
27         libgtkglext-win32-1.0-0.dll \
28         libgtk-win32-2.0-0.dll \
29         libpango-1.0-0.dll \
30         libpangocairo-1.0-0.dll \
31         libpangoft2-1.0-0.dll \
32         libpangowin32-1.0-0.dll \
33         libpng14-14.dll \
34         libxml2-2.dll \
35         zlib1.dll \
36 ; do
37         $CP "`$WHICHDLL $DLL`" $INSTALLDIR/
38 done
39
40 # apparently we no longer need this workaround:
41 #
42 # $CP "$GTKDIR/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-bmp.dll" $INSTALLDIR/libgdk-win32-2.0-0-pixbufloader-bmp.dll
43 # $MKDIR $INSTALLDIR/etc/gtk-2.0
44 # $CAT > $INSTALLDIR/etc/gtk-2.0/gdk-pixbuf.loaders <<'EOF'
45 # # GdkPixbuf Image Loader Modules file
46 # #
47 # #
48 #
49 # "libgdk-win32-2.0-0-pixbufloader-bmp.dll"
50 # "bmp" 5 "gtk20" "The BMP image format"
51 # "image/bmp" "image/x-bmp" "image/x-MS-bmp" ""
52 # "bmp" ""
53 # "BM" "" 100
54 #
55 # EOF