ProjectDefinition.st
changeset 9826 8d5fe8462720
parent 9825 bc6dabcabfcb
child 9829 027bd9e879b6
--- a/ProjectDefinition.st	Wed Sep 06 11:23:28 2006 +0200
+++ b/ProjectDefinition.st	Wed Sep 06 18:52:30 2006 +0200
@@ -13,10 +13,10 @@
 "{ Package: 'stx:libbasic' }"
 
 Object subclass:#ProjectDefinition
-	instanceVariableNames:''
-	classVariableNames:'LibraryType GUIApplicationType NonGUIApplicationType'
-	poolDictionaries:''
-	category:'System-Support-Projects'
+        instanceVariableNames:''
+        classVariableNames:'LibraryType GUIApplicationType NonGUIApplicationType'
+        poolDictionaries:''
+        category:'System-Support-Projects'
 !
 
 ProjectDefinition class instanceVariableNames:'overwrittenMethods'
@@ -696,20 +696,30 @@
     "Created: / 23-08-2006 / 00:00:35 / cg"
 !
 
-localIncludes_unix
+localIncludes
     "allow for the specification of addition include directories"
 
     ^ ''
 
+    "Created: / 06-09-2006 / 18:14:31 / cg"
+!
+
+localIncludes_unix
+    "allow for the specification of addition include directories"
+
+    ^ self makeUnixIncludes:(self localIncludes)
+
     "Created: / 18-08-2006 / 12:50:27 / cg"
+    "Modified: / 06-09-2006 / 18:15:26 / cg"
 !
 
 localIncludes_win32
     "allow for the specification of addition include directories"
 
-    ^ ''
+    ^ self makeWin32Includes:(self localIncludes)
 
     "Created: / 18-08-2006 / 12:50:27 / cg"
+    "Modified: / 06-09-2006 / 18:15:37 / cg"
 !
 
 stcOptimizationOptions
@@ -1719,6 +1729,29 @@
     "Created: / 09-08-2006 / 16:32:31 / fm"
 !
 
+makeOSIncludesWith:fileSeparator from:aString
+    ^ aString copy replaceAny:'/\' with:fileSeparator
+
+    "
+     self makeOSIncludesWith:$/ from:'-I$(TOP)/foo/bar'  
+     self makeOSIncludesWith:$\ from:'-I$(TOP)/foo/bar'  
+    "
+
+    "Created: / 06-09-2006 / 18:17:03 / cg"
+!
+
+makeUnixIncludes:aString
+    ^ self makeOSIncludesWith:$/ from:aString
+
+    "Created: / 06-09-2006 / 18:16:19 / cg"
+!
+
+makeWin32Includes:aString
+    ^ self makeOSIncludesWith:$\ from:aString
+
+    "Created: / 06-09-2006 / 18:16:13 / cg"
+!
+
 namesAndAttributesIn:aCollection do: aBlock
     aCollection do:[:entry |
         |className attributes|
@@ -2211,7 +2244,7 @@
 !ProjectDefinition class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.50 2006-09-06 09:23:28 mb Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.51 2006-09-06 16:52:30 cg Exp $'
 ! !
 
 ProjectDefinition initialize!