mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 15:46:17 +01:00
17045b64d3
2005-09-07 Tor Lillqvist <tml@novell.com> * glib/Makefile.am: Create also a console version of the gspawn-win32-helper program, gspawn-win32-helper-console.exe. It's otherwise identical to gspawn-win32-helper.exe, except marked as a console application (linked without the -mwindows option). * glib/gspawn-win32.c (do_spawn_directly, do_spawn_with_pipes): Drop the dont_wait parameter. Its truth value correlated 100% with the NULLness of the exit_status parameter anyway, so it's enough to check whether exit_status is NULL. Invert the sense of the dont_return_handle parameter and rename it to do_return_handle, to make the code easier to read by avoiding double negations. (g_spawn_sync_utf8, g_spawn_async_with_pipes_utf8): Modify calls to do_spawn_with_pipes() accordingly. (do_spawn_with_pipes): If we have a console, use the console version of the helper program, otherwise use the GUI one. This avoids extra console windows opening up in some situations. (In case a console application uses the GUI gspawn-win32-helper.exe to spawn another console application we would get a separate console for the spawned console application). * glib-zip.in: Distribute also gspawn-win32-helper-console.exe.
60 lines
1.3 KiB
Bash
Executable File
60 lines
1.3 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@
|
|
rm $ZIP
|
|
|
|
DLLDIR=lib
|
|
[ -f bin/libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll ] && DLLDIR=bin
|
|
|
|
zip $ZIP -@ <<EOF
|
|
COPYING.LIB-2
|
|
bin/gspawn-win32-helper.exe
|
|
bin/gspawn-win32-helper-console.exe
|
|
$DLLDIR/libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
|
|
$DLLDIR/libgmodule-2.0-@LT_CURRENT_MINUS_AGE@.dll
|
|
$DLLDIR/libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll
|
|
$DLLDIR/libgthread-2.0-@LT_CURRENT_MINUS_AGE@.dll
|
|
EOF
|
|
|
|
zip -r $ZIP lib/locale/*/LC_MESSAGES/glib20.mo
|
|
|
|
rm $DEVZIP
|
|
zip -r $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/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
|
|
share/aclocal/glib-2.0.m4
|
|
share/aclocal/glib-gettext.m4
|
|
share/glib-2.0
|
|
share/gtk-doc/html/glib
|
|
share/gtk-doc/html/gobject
|
|
man/man1/glib-mkenums.1
|
|
man/man1/glib-genmarshal.1
|
|
EOF
|