glib/glib-zip.in
Tor Lillqvist 9af8b83211 Add GWin32InputStream and GWin32OutputStream classes
Correspond to GUnixInputStream and GUnixOutputStream. No true async
support though. But that is how the Win32 API is, for files not
explicitly opened for so-called overlapped IO.

The API to create these streams takes Win32 HANDLEs. Not file
descriptors, because file descriptors are specific to the C library
used. The user code and GLib might be using different C libraries.

Also add a test program for the new classes, and a gio-windows-2.0.pc
file.
2010-04-19 11:54:56 +03:00

78 lines
1.8 KiB
Bash
Executable File

#!/bin/sh
# Build zipfiles for GLib on Win32: Separate runtime and developer ones.
# After running make install, run this.
ZIP=/tmp/glib-@GLIB_VERSION@.zip
DEVZIP=/tmp/glib-dev-@GLIB_VERSION@.zip
cd @prefix@
mkdir -p share/doc/glib-@GLIB_VERSION@
cp -p @abs_srcdir@/COPYING share/doc/glib-@GLIB_VERSION@
mkdir -p share/doc/glib-dev-@GLIB_VERSION@
cp -p @abs_srcdir@/COPYING share/doc/glib-dev-@GLIB_VERSION@
if test @LIB_EXE_MACHINE_FLAG@ = X64; then
helperbits=64
else
helperbits=32
fi
rm $ZIP
zip $ZIP -@ <<EOF
bin/gspawn-win${helperbits}-helper.exe
bin/gspawn-win${helperbits}-helper-console.exe
bin/libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
bin/libgio-2.0-@LT_CURRENT_MINUS_AGE@.dll
bin/libgmodule-2.0-@LT_CURRENT_MINUS_AGE@.dll
bin/libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll
bin/libgthread-2.0-@LT_CURRENT_MINUS_AGE@.dll
EOF
zip $ZIP share/locale/*/LC_MESSAGES/glib20.mo
zip -r -D $ZIP share/doc/glib-@GLIB_VERSION@
rm $DEVZIP
zip -r -D $DEVZIP -@ <<EOF
bin/glib-genmarshal.exe
bin/glib-gettextize
bin/glib-mkenums
bin/gobject-query.exe
include/glib-2.0
lib/libglib-2.0.dll.a
lib/glib-2.0.lib
lib/glib-2.0.def
lib/libgmodule-2.0.dll.a
lib/gmodule-2.0.lib
lib/gmodule-2.0.def
lib/libgobject-2.0.dll.a
lib/gobject-2.0.lib
lib/gobject-2.0.def
lib/libgthread-2.0.dll.a
lib/gthread-2.0.lib
lib/gthread-2.0.def
lib/libgio-2.0.dll.a
lib/gio-2.0.lib
lib/gio-2.0.def
lib/glib-2.0
lib/pkgconfig/glib-2.0.pc
lib/pkgconfig/gmodule-2.0.pc
lib/pkgconfig/gmodule-no-export-2.0.pc
lib/pkgconfig/gobject-2.0.pc
lib/pkgconfig/gthread-2.0.pc
lib/pkgconfig/gio-2.0.pc
lib/pkgconfig/gio-windows-2.0.pc
share/aclocal/glib-2.0.m4
share/aclocal/glib-gettext.m4
share/glib-2.0
share/gtk-doc/html
share/man/man1/glib-mkenums.1
share/man/man1/glib-genmarshal.1
share/man/man1/gobject-query.1
EOF
zip -r $DEVZIP share/doc/glib-dev-@GLIB_VERSION@