mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
try to locate msys via PATH as last resort
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37598 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cc78018d45
commit
2f72f4b86e
4 changed files with 22 additions and 27 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include <errno.h>
|
||||
|
||||
#import "Foundation/NSBundle.h"
|
||||
#import "Foundation/NSError.h"
|
||||
|
||||
@class _GSInsensitiveDictionary;
|
||||
|
@ -241,6 +242,16 @@ typedef enum {
|
|||
|
||||
|
||||
|
||||
@interface NSBundle (Private)
|
||||
+ (NSString *) _absolutePathOfExecutable: (NSString *)path;
|
||||
+ (NSBundle*) _addFrameworkFromClass: (Class)frameworkClass;
|
||||
+ (NSMutableArray*) _addFrameworks;
|
||||
+ (NSString*) _gnustep_target_cpu;
|
||||
+ (NSString*) _gnustep_target_dir;
|
||||
+ (NSString*) _gnustep_target_os;
|
||||
+ (NSString*) _library_combo;
|
||||
@end
|
||||
|
||||
/**
|
||||
* This class exists simply as a mechanism for encapsulating arrays
|
||||
* encoded using [NSKeyedArchiver-encodeArrayOfObjCType:count:at:]
|
||||
|
|
|
@ -621,17 +621,6 @@ _find_main_bundle_for_tool(NSString *toolName)
|
|||
}
|
||||
|
||||
|
||||
|
||||
@interface NSBundle (Private)
|
||||
+ (NSString *) _absolutePathOfExecutable: (NSString *)path;
|
||||
+ (NSBundle*) _addFrameworkFromClass: (Class)frameworkClass;
|
||||
+ (NSMutableArray*) _addFrameworks;
|
||||
+ (NSString*) _gnustep_target_cpu;
|
||||
+ (NSString*) _gnustep_target_dir;
|
||||
+ (NSString*) _gnustep_target_os;
|
||||
+ (NSString*) _library_combo;
|
||||
@end
|
||||
|
||||
@implementation NSBundle (Private)
|
||||
|
||||
+ (NSString *) _absolutePathOfExecutable: (NSString *)path
|
||||
|
|
|
@ -2316,6 +2316,7 @@ if (domainMask & mask) \
|
|||
NSString *path = nil;
|
||||
NSString *bpath = nil;
|
||||
NSString *ipath = nil;
|
||||
NSString *mpath = nil;
|
||||
NSFileManager *mgr;
|
||||
|
||||
mgr = [NSFileManager defaultManager];
|
||||
|
@ -2386,17 +2387,19 @@ L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\GNUstep",
|
|||
RegCloseKey(regKey);
|
||||
}
|
||||
}
|
||||
if (nil == path)
|
||||
{
|
||||
mpath = [NSBundle _absolutePathOfExecutable: @"make.exe"];
|
||||
if (nil != mpath)
|
||||
{
|
||||
path = devroot(mgr, mpath);
|
||||
}
|
||||
}
|
||||
ASSIGNCOPY(root, path);
|
||||
if (nil == root)
|
||||
{
|
||||
if (nil == ipath)
|
||||
{
|
||||
NSLog(@"Failed to locate NSDeveloperDirectory above system tools at %@, or base library at %@, and failed to find any installed GNUstep package.", gnustepSystemTools, bpath);
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"Failed to locate NSDeveloperDirectory above system tools at %@, or base library at %@, or installed package at %@", gnustepSystemTools, bpath, ipath);
|
||||
}
|
||||
NSLog(@"Failed to locate NSDeveloperDirectory by GNUstep configuration, installed GNUstep package, or process PATH.");
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -105,14 +105,6 @@
|
|||
#endif
|
||||
|
||||
|
||||
@interface NSBundle(Private)
|
||||
+ (NSString *) _absolutePathOfExecutable: (NSString *)path;
|
||||
+ (NSString*) _gnustep_target_cpu;
|
||||
+ (NSString*) _gnustep_target_dir;
|
||||
+ (NSString*) _gnustep_target_os;
|
||||
+ (NSString*) _library_combo;
|
||||
@end
|
||||
|
||||
static NSRecursiveLock *tasksLock = nil;
|
||||
static NSMapTable *activeTasks = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue