ProjectDefinition.st
changeset 9831 02b8fd184e2b
parent 9829 027bd9e879b6
child 9848 f2a7a841f15e
equal deleted inserted replaced
9830:8639c1f2c1c3 9831:02b8fd184e2b
   340      bosch_dapasx_kernel unixPathToTop        
   340      bosch_dapasx_kernel unixPathToTop        
   341      stx_goodies_xml unixPathToTop  
   341      stx_goodies_xml unixPathToTop  
   342     "
   342     "
   343 
   343 
   344     "Created: / 09-08-2006 / 15:45:54 / fm"
   344     "Created: / 09-08-2006 / 15:45:54 / fm"
   345     "Modified: / 17-08-2006 / 14:17:59 / cg"
   345     "Modified: / 07-09-2006 / 15:50:54 / cg"
   346 !
   346 !
   347 
   347 
   348 pathToTop_win32
   348 pathToTop_win32
   349     "Returns the path to stx counting the number of $/ and $: in the package name and adding for each one '../' to get the ST/X top directory"
   349     "Returns the path to stx counting the number of $/ and $: in the package name and adding for each one '../' to get the ST/X top directory"
   350 
   350 
   354      bosch_dapasx_datenbasis pathToTop_win32    
   354      bosch_dapasx_datenbasis pathToTop_win32    
   355      stx_libbasic pathToTop_win32  
   355      stx_libbasic pathToTop_win32  
   356     "
   356     "
   357 
   357 
   358     "Created: / 09-08-2006 / 15:45:54 / fm"
   358     "Created: / 09-08-2006 / 15:45:54 / fm"
   359     "Modified: / 17-08-2006 / 14:25:28 / cg"
   359     "Modified: / 07-09-2006 / 15:51:00 / cg"
   360 !
   360 !
   361 
   361 
   362 requiredProjects
   362 requiredProjects
   363 
   363 
   364 ^self preRequisites, self subProjects
   364 ^self preRequisites, self subProjects
  1039     |fileNamesAndSelectors|
  1039     |fileNamesAndSelectors|
  1040 
  1040 
  1041     fileNamesAndSelectors := self fileNamesToGenerate asOrderedCollection.
  1041     fileNamesAndSelectors := self fileNamesToGenerate asOrderedCollection.
  1042     fileNamesAndSelectors 
  1042     fileNamesAndSelectors 
  1043                 add:(Array 
  1043                 add:(Array 
  1044                         with:self packageName , '.rc'
  1044                         with:self rcFilename
  1045                         with:#'generate_packageName_dot_rc').
  1045                         with:#'generate_packageName_dot_rc').
  1046     fileNamesAndSelectors pairsDo:aTwoArgBlock
  1046     fileNamesAndSelectors pairsDo:aTwoArgBlock
       
  1047 
       
  1048     "Modified: / 07-09-2006 / 17:07:58 / cg"
  1047 !
  1049 !
  1048 
  1050 
  1049 generateFile:filename
  1051 generateFile:filename
  1050     self fileNamesToGenerate
  1052     self fileNamesToGenerate
  1051         pairsDo:[:fn :action | 
  1053         pairsDo:[:fn :action | 
  1052             filename = fn ifTrue:[
  1054             filename = fn ifTrue:[
  1053                 ^ self perform:action
  1055                 ^ self perform:action
  1054             ].
  1056             ].
  1055         ].
  1057         ].
  1056     filename = 'application.rc' ifTrue:[
  1058     (filename = 'application.rc' or:[filename = self rcFilename]) ifTrue:[
  1057         ^ self generate_packageName_dot_rc
  1059         ^ self generate_packageName_dot_rc
  1058     ].
  1060     ].
  1059     self error:('File "%1" not appropriate (not generated) for this type of project.'
  1061     self error:('File "%1" not appropriate (not generated) for this type of project.'
  1060                 bindWith:filename)
  1062                 bindWith:filename)
  1061 
  1063 
  1062     "Modified: / 30-08-2006 / 19:22:52 / cg"
  1064     "Modified: / 07-09-2006 / 17:08:38 / cg"
  1063 !
  1065 !
  1064 
  1066 
  1065 generate_abbrev_dot_stc
  1067 generate_abbrev_dot_stc
  1066     ^ String 
  1068     ^ String 
  1067         streamContents:[:s | 
  1069         streamContents:[:s | 
  1249 
  1251 
  1250 "
  1252 "
  1251 
  1253 
  1252     "Modified: / 09-08-2006 / 11:31:09 / fm"
  1254     "Modified: / 09-08-2006 / 11:31:09 / fm"
  1253     "Modified: / 21-08-2006 / 19:33:21 / cg"
  1255     "Modified: / 21-08-2006 / 19:33:21 / cg"
       
  1256 !
       
  1257 
       
  1258 rcFilename
       
  1259     ^ self packageName,'.rc'.
       
  1260 
       
  1261     "Created: / 07-09-2006 / 17:07:00 / cg"
  1254 ! !
  1262 ! !
  1255 
  1263 
  1256 !ProjectDefinition class methodsFor:'file templates'!
  1264 !ProjectDefinition class methodsFor:'file templates'!
  1257 
  1265 
  1258 bmake_dot_mak
  1266 bmake_dot_mak
  2242 ! !
  2250 ! !
  2243 
  2251 
  2244 !ProjectDefinition class methodsFor:'documentation'!
  2252 !ProjectDefinition class methodsFor:'documentation'!
  2245 
  2253 
  2246 version
  2254 version
  2247     ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.52 2006-09-07 11:37:48 sr Exp $'
  2255     ^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.53 2006-09-07 15:14:47 cg Exp $'
  2248 ! !
  2256 ! !
  2249 
  2257 
  2250 ProjectDefinition initialize!
  2258 ProjectDefinition initialize!