| 1 |
/* Implementation of class GSXCBuildTask |
| 2 |
Copyright (C) 2022 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
By: Gregory John Casamento |
| 5 |
Date: 24-01-2022 |
| 6 |
|
| 7 |
This file is part of GNUstep. |
| 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.1 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 "GSXCBuildOperation.h" |
| 26 |
#import "PBXBuildFile.h" |
| 27 |
|
| 28 |
@implementation GSXCBuildOperation |
| 29 |
|
| 30 |
+ (instancetype) operationWithFile: (PBXBuildFile *)file |
| 31 |
{ |
| 32 |
return AUTORELEASE([[self alloc] initWithFile: file]); |
| 33 |
} |
| 34 |
|
| 35 |
- (instancetype) initWithFile: (PBXBuildFile *)file |
| 36 |
{ |
| 37 |
if ((self = [super init]) != nil) |
| 38 |
{ |
| 39 |
[self setFile: file]; |
| 40 |
} |
| 41 |
return self; |
| 42 |
} |
| 43 |
|
| 44 |
- (PBXBuildFile *) file |
| 45 |
{ |
| 46 |
return _file; |
| 47 |
} |
| 48 |
|
| 49 |
- (void) setFile: (PBXBuildFile *)file |
| 50 |
{ |
| 51 |
ASSIGN(_file, file); |
| 52 |
} |
| 53 |
|
| 54 |
- (void) main |
| 55 |
{ |
| 56 |
[_file build]; |
| 57 |
} |
| 58 |
|
| 59 |
@end |
| 60 |
|