Author: rmottola
Date: Tue Dec 16 17:06:06 2014
New Revision: 38251
URL: http://svn.gna.org/viewcvs/gnustep?rev=38251&view=rev
Log:
Generate sections only if there are classes.
Modified:
apps/projectcenter/trunk/ChangeLog
apps/projectcenter/trunk/Framework/PCMakefileFactory.m
Modified: apps/projectcenter/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/ChangeLog?rev=38251&r1=38250&r2=38251&view=diff
==============================================================================
--- apps/projectcenter/trunk/ChangeLog (original)
+++ apps/projectcenter/trunk/ChangeLog Tue Dec 16 17:06:06 2014
@@ -1,3 +1,8 @@
+2014-12-16 Riccardo Mottola <[email protected]>
+
+ * Framework/PCMakefileFactory.m
+ Generate sections only if there are classes.
+
2014-12-15 Riccardo Mottola <[email protected]>
* Framework/PCMakefileFactory.m
Modified: apps/projectcenter/trunk/Framework/PCMakefileFactory.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Framework/PCMakefileFactory.m?rev=38251&r1=38250&r2=38251&view=diff
==============================================================================
--- apps/projectcenter/trunk/Framework/PCMakefileFactory.m (original)
+++ apps/projectcenter/trunk/Framework/PCMakefileFactory.m Tue Dec 16
17:06:06 2014
@@ -342,7 +342,7 @@
NSEnumerator *oenum;
NSMutableArray *marray = nil;
NSMutableArray *mmarray = nil;
- NSString *file;
+ NSString *file;
if (array == nil || [array count] == 0)
{
@@ -370,17 +370,19 @@
}
}
- [self appendString:COMMENT_CLASSES];
- [self appendString:
- [NSString stringWithFormat: @"%@_OBJC_FILES = \\\n",target]];
-
- [self appendString: [marray componentsJoinedByString: @" \\\n"]];
-
- [self appendString:COMMENT_OCPPCLASSES];
- [self appendString:
- [NSString stringWithFormat: @"%@_OBJCC_FILES = \\\n",target]];
-
- [self appendString: [mmarray componentsJoinedByString: @" \\\n"]];
+ if (marray)
+ {
+ [self appendString:COMMENT_CLASSES];
+ [self appendString: [NSString stringWithFormat: @"%@_OBJC_FILES =
\\\n",target]];
+ [self appendString: [marray 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
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs