mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Mingw-32 improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22048 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f0b8d8eb84
commit
6f72ee0314
4 changed files with 1511 additions and 2778 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2005-11-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* configure.ac: Add flags to allow detection of headers/libraries
|
||||||
|
installed in the System domain of the GNUstep hierarchy.
|
||||||
|
* configure: regenerate
|
||||||
|
* Source/win32/GSRunLoopCtxt.m: Intercept windows WM_QUIT messages
|
||||||
|
and tell the application to terminate cleanly (or raise an exception
|
||||||
|
if the NSApplication class is not linked). Should allow ms-windows
|
||||||
|
to get a mingw32-based GNUstep app to shut down cleanly.
|
||||||
|
|
||||||
2005-11-16 Richard Frith-Macdonald <rfm@gnu.org>
|
2005-11-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSProcessInfo.m:
|
* Source/NSProcessInfo.m:
|
||||||
|
|
|
@ -261,6 +261,25 @@ static const NSMapTableValueCallBacks WatcherMapValueCallBacks =
|
||||||
bRet = PeekMessage(&msg, 0, 0, 0, PM_REMOVE);
|
bRet = PeekMessage(&msg, 0, 0, 0, PM_REMOVE);
|
||||||
if (bRet != 0)
|
if (bRet != 0)
|
||||||
{
|
{
|
||||||
|
if (msg.message == WM_QUIT)
|
||||||
|
{
|
||||||
|
Class c = NSClassFromString(@"NSApplication");
|
||||||
|
|
||||||
|
if (c == 0)
|
||||||
|
{
|
||||||
|
[NSException raise: NSGenericException
|
||||||
|
format: @"Received WM_QUIT"];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SEL s = NSSelectorFromString(@"sharedApplication");
|
||||||
|
id o = [c performSelector: s];
|
||||||
|
|
||||||
|
s = NSSelectorFromString(@"terminate:");
|
||||||
|
[o performSelector: s withObject: nil];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (num_winMsgs > 0)
|
if (num_winMsgs > 0)
|
||||||
{
|
{
|
||||||
HANDLE handle;
|
HANDLE handle;
|
||||||
|
|
12
configure.ac
12
configure.ac
|
@ -121,6 +121,14 @@ then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Add standard library and header directories for configure to use to locate
|
||||||
|
# plain C developer headers/libraries which haver been installed in the
|
||||||
|
# GNUstep hierarchy.
|
||||||
|
#
|
||||||
|
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_SYSTEM_ROOT/Library/Headers"
|
||||||
|
LDFLAGS="$LDFLAGS -L$GNUSTEP_SYSTEM_ROOT/Library/Libraries"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set the default configuration file values in config.h to be hard-coded
|
# Set the default configuration file values in config.h to be hard-coded
|
||||||
# into NSPathUtilities.m
|
# into NSPathUtilities.m
|
||||||
|
@ -237,8 +245,8 @@ fi
|
||||||
# The following one is so that headers of custom libraries into
|
# The following one is so that headers of custom libraries into
|
||||||
# $GNUSTEP_HDIR are used before the standard ones
|
# $GNUSTEP_HDIR are used before the standard ones
|
||||||
#
|
#
|
||||||
CPPFLAGS="$CPPFLAGS -I$GNUSTEP_HDIR"
|
INCLUDE_FLAGS="$INCLUDE_FLAGS -I$GNUSTEP_HDIR"
|
||||||
LDFLAGS="$LDFLAGS -L$GNUSTEP_LDIR/$LIBRARY_COMBO -L$GNUSTEP_LDIR"
|
LDIR_FLAGS="$LDIR_FLAGS -L$GNUSTEP_LDIR/$LIBRARY_COMBO -L$GNUSTEP_LDIR"
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Check if Objective-C is installed
|
# Check if Objective-C is installed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue