| 1 |
/* |
| 2 |
Copyright (C) 2018, 2019, 2020, 2021 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
Written by: Gregory John Casamento <[email protected]> |
| 5 |
Date: 2022 |
| 6 |
|
| 7 |
This file is part of the GNUstep XCode Library |
| 8 |
|
| 9 |
This library is free software; you can redistribute it and/or |
| 10 |
modify it under the terms of the GNU Lesser General Public |
| 11 |
License as published by the Free Software Foundation; either |
| 12 |
version 2 of the License, or (at your option) any later version. |
| 13 |
|
| 14 |
This library is distributed in the hope that it will be useful, |
| 15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 |
Lesser General Public License for more details. |
| 18 |
|
| 19 |
You should have received a copy of the GNU Lesser General Public |
| 20 |
License along with this library; if not, write to the Free |
| 21 |
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 |
Boston, MA 02110 USA. |
| 23 |
*/ |
| 24 |
|
| 25 |
#import "PBXCommon.h" |
| 26 |
#import "PBXTargetDependency.h" |
| 27 |
|
| 28 |
@implementation PBXTargetDependency |
| 29 |
|
| 30 |
- (void) dealloc |
| 31 |
{ |
| 32 |
RELEASE(_targetProxy); |
| 33 |
RELEASE(_name); |
| 34 |
RELEASE(_target); |
| 35 |
|
| 36 |
[super dealloc]; |
| 37 |
} |
| 38 |
|
| 39 |
// Methods.... |
| 40 |
- (PBXContainerItemProxy *) targetProxy // getter |
| 41 |
{ |
| 42 |
return _targetProxy; |
| 43 |
} |
| 44 |
|
| 45 |
- (void) setTargetProxy: (PBXContainerItemProxy *)object; // setter |
| 46 |
{ |
| 47 |
ASSIGN(_targetProxy,object); |
| 48 |
} |
| 49 |
|
| 50 |
- (NSString *) name // getter |
| 51 |
{ |
| 52 |
return _name; |
| 53 |
} |
| 54 |
|
| 55 |
- (void) setName: (NSString *)object; // setter |
| 56 |
{ |
| 57 |
ASSIGN(_name,object); |
| 58 |
} |
| 59 |
|
| 60 |
- (PBXNativeTarget *)target |
| 61 |
{ |
| 62 |
return _target; |
| 63 |
} |
| 64 |
|
| 65 |
- (void) setTarget: (PBXNativeTarget *)object |
| 66 |
{ |
| 67 |
_target = object; |
| 68 |
} |
| 69 |
|
| 70 |
- (BOOL) build |
| 71 |
{ |
| 72 |
return [_targetProxy build]; |
| 73 |
} |
| 74 |
|
| 75 |
- (BOOL) generate |
| 76 |
{ |
| 77 |
return [_targetProxy generate]; |
| 78 |
} |
| 79 |
|
| 80 |
- (BOOL) clean |
| 81 |
{ |
| 82 |
return YES; |
| 83 |
} |
| 84 |
|
| 85 |
- (NSString *) description |
| 86 |
{ |
| 87 |
return [NSString stringWithFormat: @"<%@> - %@", [super description], _name]; |
| 88 |
} |
| 89 |
@end |