Generate sections only if there are classes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38251 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2014-12-16 16:06:06 +00:00
parent 4111197fd7
commit 5c25a46af2
2 changed files with 18 additions and 11 deletions

View file

@ -1,3 +1,8 @@
2014-12-16 Riccardo Mottola <rm@gnu.org>
* Framework/PCMakefileFactory.m
Generate sections only if there are classes.
2014-12-15 Riccardo Mottola <rm@gnu.org>
* Framework/PCMakefileFactory.m

View file

@ -342,7 +342,7 @@ static PCMakefileFactory *_factory = nil;
NSEnumerator *oenum;
NSMutableArray *marray = nil;
NSMutableArray *mmarray = nil;
NSString *file;
NSString *file;
if (array == nil || [array count] == 0)
{
@ -370,17 +370,19 @@ static PCMakefileFactory *_factory = nil;
}
}
[self appendString:COMMENT_CLASSES];
[self appendString:
[NSString stringWithFormat: @"%@_OBJC_FILES = \\\n",target]];
if (marray)
{
[self appendString:COMMENT_CLASSES];
[self appendString: [NSString stringWithFormat: @"%@_OBJC_FILES = \\\n",target]];
[self appendString: [marray componentsJoinedByString: @" \\\n"]];
}
[self appendString: [marray componentsJoinedByString: @" \\\n"]];
[self appendString:COMMENT_OCPPCLASSES];
[self appendString:
[NSString stringWithFormat: @"%@_OBJCC_FILES = \\\n",target]];
[self appendString: [mmarray componentsJoinedByString: @" \\\n"]];
if (mmarray)
{
[self appendString:COMMENT_OCPPCLASSES];
[self appendString: [NSString stringWithFormat: @"%@_OBJCC_FILES = \\\n",target]];
[self appendString: [mmarray componentsJoinedByString: @" \\\n"]];
}
}
- (void)appendOtherSources:(NSArray *)array