mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-14 07:31:27 +00:00
Add switch to determine if we are in strict mode.
This commit is contained in:
parent
82d4d12f82
commit
cbd52e03a3
9 changed files with 30 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
2021-08-11 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Framework/PCProjectBuilder.m: Fix issue where environment var
|
||||
* Framework/PCProjectBuilder.m: Quick Fix issue where environment var
|
||||
was causing build to fail. Explicitly set environment for NSTask
|
||||
for build to prevent this problem.
|
||||
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
optionsPanel,
|
||||
stripButton,
|
||||
sharedLibsButton,
|
||||
targetPopup
|
||||
targetPopup,
|
||||
strictButton
|
||||
);
|
||||
Super = NSObject;
|
||||
};
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -366,6 +366,15 @@
|
|||
verboseBuilding = NO;
|
||||
}
|
||||
|
||||
if ([[projectDict objectForKey:PCBuilderStrict] isEqualToString:@"YES"])
|
||||
{
|
||||
strictBuilding = YES;
|
||||
}
|
||||
else
|
||||
{
|
||||
strictBuilding = NO;
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
|
@ -598,14 +607,17 @@
|
|||
|
||||
NSMutableDictionary *env = [[NSMutableDictionary alloc] init];
|
||||
|
||||
// optionally copy in existing environment first:
|
||||
// (we could also copy values for a limited set of specific keys, if we wanted.)
|
||||
[env addEntriesFromDictionary:[[NSProcessInfo processInfo] environment]];
|
||||
// then add/remove anything else we might want:
|
||||
[env removeObjectForKey:@"GNUSTEP_USER_ROOT"];
|
||||
if (strictBuilding == NO)
|
||||
{
|
||||
[env setObject: @"no" forKey:@"GNUSTEP_MAKE_STRICT_V2_MODE"];
|
||||
}
|
||||
else
|
||||
{
|
||||
[env setObject: @"yes" forKey:@"GNUSTEP_MAKE_STRICT_V2_MODE"];
|
||||
}
|
||||
|
||||
makeTask = [[NSTask alloc] init];
|
||||
// now set the task up to use this newly-built environment:
|
||||
[makeTask setEnvironment:env];
|
||||
[makeTask setArguments:buildArgs];
|
||||
[makeTask setCurrentDirectoryPath:[project projectPath]];
|
||||
|
|
|
@ -86,6 +86,7 @@
|
|||
[debugButton setRefusesFirstResponder:YES];
|
||||
[stripButton setRefusesFirstResponder:YES];
|
||||
[sharedLibsButton setRefusesFirstResponder:YES];
|
||||
[strictButton setRefusesFirstResponder:YES];
|
||||
|
||||
[self loadProjectProperties:nil];
|
||||
}
|
||||
|
@ -161,6 +162,8 @@
|
|||
key = PCBuilderStrip;
|
||||
if (sender == sharedLibsButton)
|
||||
key = PCBuilderSharedLibs;
|
||||
if (sender == strictButton)
|
||||
key = PCBuilderStrict;
|
||||
|
||||
[project setProjectDictObject:value forKey:key notify:NO];
|
||||
}
|
||||
|
@ -191,6 +194,9 @@
|
|||
[self _setStateForButton:sharedLibsButton
|
||||
key:PCBuilderSharedLibs
|
||||
defaultState:NSOnState];
|
||||
[self _setStateForButton:strictButton
|
||||
key:PCBuilderStrict
|
||||
defaultState:NSOffState];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -171,6 +171,7 @@ static NSString * const PCBuilderDebug = @"BUILDER_DEBUG";
|
|||
static NSString * const PCBuilderStrip = @"BUILDER_STRIP";
|
||||
static NSString * const PCBuilderVerbose = @"BUILDER_VERBOSE";
|
||||
static NSString * const PCBuilderSharedLibs = @"BUILDER_SHARED_LIBS";
|
||||
static NSString * const PCBuilderStrict = @"BUILDER_STRICT";
|
||||
|
||||
// Application specific
|
||||
static NSString * const PCAppIcon = @"APPLICATIONICON";
|
||||
|
|
|
@ -55,7 +55,8 @@ typedef enum _ErrorLevel {
|
|||
|
||||
// Options panel
|
||||
BOOL verboseBuilding;
|
||||
|
||||
BOOL strictBuilding;
|
||||
|
||||
NSString *buildStatus;
|
||||
NSMutableString *buildStatusTarget;
|
||||
NSMutableString *buildTarget;
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
NSButton *debugButton; // debug=no
|
||||
NSButton *stripButton; // strip=yes
|
||||
NSButton *sharedLibsButton; // shared=no
|
||||
NSButton *strictButton; // GNUSTEP_MAKE_STRICT_V2_MODE yes/no
|
||||
}
|
||||
|
||||
- (id)initWithProject:(PCProject *)aProject delegate:(id)aDelegate;
|
||||
|
|
Loading…
Reference in a new issue