author | Claus Gittinger <cg@exept.de> |
Tue, 09 Jan 2007 20:02:20 +0100 | |
changeset 10296 | 48eb9cc9eef0 |
parent 10251 | 653b5d0a7713 |
child 10299 | af27a10749c2 |
permissions | -rw-r--r-- |
9553 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
9671 | 12 |
"{ Package: 'stx:libbasic' }" |
9536 | 13 |
|
9569 | 14 |
Object subclass:#ProjectDefinition |
9984 | 15 |
instanceVariableNames:'' |
16 |
classVariableNames:'LibraryType GUIApplicationType NonGUIApplicationType' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Support-Projects' |
|
9536 | 19 |
! |
20 |
||
9607 | 21 |
ProjectDefinition class instanceVariableNames:'overwrittenMethods' |
22 |
||
23 |
" |
|
24 |
No other class instance variables are inherited by this class. |
|
25 |
" |
|
26 |
! |
|
27 |
||
9569 | 28 |
!ProjectDefinition class methodsFor:'documentation'! |
9553 | 29 |
|
30 |
copyright |
|
31 |
" |
|
32 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
33 |
All Rights Reserved |
|
34 |
||
35 |
This software is furnished under a license and may be used |
|
36 |
only in accordance with the terms of that license and with the |
|
37 |
inclusion of the above copyright notice. This software may not |
|
38 |
be provided or otherwise made available to, or used by, any |
|
39 |
other person. No title to or ownership of the software is |
|
40 |
hereby transferred. |
|
41 |
" |
|
9714 | 42 |
! |
43 |
||
44 |
documentation |
|
45 |
" |
|
46 |
redefinable build-file attributes: |
|
47 |
||
48 |
stcOptimizationOptions -> STCLOCALOPT |
|
49 |
stcWarningOptions -> STCLOCALOPT |
|
50 |
localIncludes_unix -> LOCALINCLUDES (Make.proto) |
|
51 |
localIncludes_win32 -> LOCALINCLUDES (nt.mak) |
|
52 |
||
53 |
for applications: |
|
54 |
startupClassName |
|
55 |
startupSelector |
|
56 |
||
57 |
for libraries: |
|
58 |
||
59 |
" |
|
9553 | 60 |
! ! |
9536 | 61 |
|
9569 | 62 |
!ProjectDefinition class methodsFor:'instance creation'! |
9559 | 63 |
|
64 |
newForPackage:packageID |
|
65 |
^ self |
|
66 |
newNamed:(self initialClassNameForDefinitionOf:packageID) |
|
67 |
package:packageID. |
|
68 |
||
69 |
"Created: / 11-08-2006 / 14:27:19 / cg" |
|
70 |
! |
|
71 |
||
72 |
newNamed:newName package:packageID |
|
73 |
|newClass| |
|
74 |
||
75 |
"/ for now, we are strict. |
|
76 |
self assert:(self initialClassNameForDefinitionOf:packageID) = newName. |
|
9569 | 77 |
self assert:(self ~~ ProjectDefinition). "ProjectDefinition is abstract" |
9559 | 78 |
|
79 |
newClass := self |
|
80 |
subclass:(newName asSymbol) |
|
81 |
instanceVariableNames:'' |
|
82 |
classVariableNames:'' |
|
83 |
poolDictionaries:'' |
|
84 |
category:(self defaultCategory). |
|
85 |
||
86 |
newClass package:packageID asSymbol. |
|
87 |
^ newClass |
|
88 |
||
89 |
"Created: / 09-08-2006 / 17:57:37 / fm" |
|
90 |
"Modified: / 09-08-2006 / 19:27:53 / fm" |
|
9569 | 91 |
"Modified: / 17-08-2006 / 17:24:23 / cg" |
9559 | 92 |
! ! |
93 |
||
9569 | 94 |
!ProjectDefinition class methodsFor:'accessing'! |
9536 | 95 |
|
96 |
defaultCategory |
|
97 |
^'* Projects *' |
|
98 |
||
99 |
"Created: / 11-08-2006 / 14:16:49 / cg" |
|
100 |
! |
|
101 |
||
102 |
initialClassNameForDefinitionOf:aPackageId |
|
103 |
|s| |
|
104 |
||
105 |
s := aPackageId asString copy replaceAny:':/' with:$_. |
|
106 |
(s endsWith:$_) ifTrue:[ |
|
107 |
s := s copyWithoutLast:1 |
|
108 |
]. |
|
109 |
^ s |
|
110 |
||
111 |
" |
|
112 |
DapasXProject initialClassNameForDefinitionOf:'bosch:dapasx/interactiver_editor' |
|
113 |
DapasXProject initialClassNameForDefinitionOf:'stx:libbasic' |
|
114 |
DapasXProject initialClassNameForDefinitionOf:'stx:goodies/xml' |
|
115 |
" |
|
116 |
||
117 |
"Created: / 09-08-2006 / 17:44:47 / fm" |
|
118 |
"Modified: / 11-08-2006 / 14:00:05 / cg" |
|
119 |
! |
|
120 |
||
121 |
libraryName |
|
9575 | 122 |
^ self package asPackageId libraryName |
9536 | 123 |
|
9559 | 124 |
" |
9688 | 125 |
bosch_dapasx_datenbasis libraryName |
9575 | 126 |
stx_libbasic3 libraryName |
9559 | 127 |
" |
9536 | 128 |
|
129 |
"Modified: / 09-08-2006 / 18:20:29 / fm" |
|
9575 | 130 |
"Modified: / 18-08-2006 / 12:36:45 / cg" |
9536 | 131 |
! |
132 |
||
9559 | 133 |
libraryNameFor:aProjectID |
9575 | 134 |
^ aProjectID asPackageId libraryName |
9536 | 135 |
|
9559 | 136 |
" |
9575 | 137 |
bosch_dapasx_datenbasis libraryName |
138 |
stx_libbasic3 libraryNameFor:'stx:libbasic' |
|
9688 | 139 |
stx_libbasic3 libraryNameFor:'bosch:dapasx/datenbasis' |
9559 | 140 |
" |
9536 | 141 |
|
142 |
"Modified: / 09-08-2006 / 18:20:29 / fm" |
|
9575 | 143 |
"Modified: / 18-08-2006 / 12:37:02 / cg" |
9536 | 144 |
! |
145 |
||
146 |
module |
|
9559 | 147 |
^ self moduleOfClass:self |
9536 | 148 |
|
9559 | 149 |
" |
150 |
bosch_dapasx_datenbasis_Definition module |
|
151 |
DapasX_Datenbasis module |
|
9575 | 152 |
stx_libbasic3 module |
9559 | 153 |
" |
9536 | 154 |
|
155 |
"Created: / 08-08-2006 / 20:24:53 / fm" |
|
156 |
"Modified: / 09-08-2006 / 16:16:37 / fm" |
|
9575 | 157 |
"Modified: / 17-08-2006 / 20:50:46 / cg" |
9536 | 158 |
! |
159 |
||
160 |
moduleDirectory |
|
9575 | 161 |
^ (PackageId from:self package) directory |
9536 | 162 |
|
9559 | 163 |
" |
9575 | 164 |
bosch_dapasx_datenbasis_Definition moduleDirectory |
165 |
bosch_dapasx_parameter_system_Definition moduleDirectory |
|
166 |
stx_libbasic3 moduleDirectory |
|
9559 | 167 |
" |
9536 | 168 |
|
169 |
"Created: / 08-08-2006 / 20:25:39 / fm" |
|
9575 | 170 |
"Modified: / 18-08-2006 / 12:18:33 / cg" |
9536 | 171 |
! |
172 |
||
9559 | 173 |
moduleDirectoryFor:aProjectID |
174 |
^ (aProjectID subStrings:$:) last |
|
9536 | 175 |
|
9559 | 176 |
" |
177 |
bosch_dapasx_datenbasis_Definition moduleDirectory |
|
178 |
bosch_dapasx_parameter_system_Definition moduleDirectory |
|
179 |
" |
|
9536 | 180 |
|
181 |
"Created: / 08-08-2006 / 20:25:39 / fm" |
|
9559 | 182 |
"Modified: / 17-08-2006 / 14:13:41 / cg" |
9536 | 183 |
! |
184 |
||
9891 | 185 |
moduleDirectory_win32 |
186 |
^ (PackageId from:self package) directory copy replaceAll:$/ with:$\ |
|
187 |
||
188 |
" |
|
189 |
bosch_dapasx_datenbasis moduleDirectory_win32 |
|
190 |
bosch_dapasx_parameter_system moduleDirectory_win32 |
|
191 |
stx_libbasic3 moduleDirectory_win32 |
|
192 |
" |
|
193 |
||
194 |
"Created: / 14-09-2006 / 20:19:17 / cg" |
|
195 |
! |
|
196 |
||
9559 | 197 |
moduleFor:aProjectID |
198 |
^ (aProjectID subStrings:$:) first |
|
9536 | 199 |
|
9559 | 200 |
" |
201 |
DapasXProject module |
|
202 |
DapasX_Datenbasis module |
|
203 |
" |
|
9536 | 204 |
|
205 |
"Created: / 09-08-2006 / 16:16:16 / fm" |
|
9559 | 206 |
"Modified: / 17-08-2006 / 14:13:46 / cg" |
9536 | 207 |
! |
208 |
||
9559 | 209 |
moduleOfClass:aClass |
210 |
^ self moduleFor:aClass package |
|
9536 | 211 |
|
9559 | 212 |
" |
213 |
DapasXProject module |
|
214 |
DapasX_Datenbasis module |
|
215 |
" |
|
9536 | 216 |
|
217 |
"Created: / 09-08-2006 / 16:16:16 / fm" |
|
9559 | 218 |
"Modified: / 17-08-2006 / 14:13:51 / cg" |
9536 | 219 |
! |
220 |
||
9559 | 221 |
msdosPathToPackage:toPackageID from:fromPackageID |
222 |
"Returns the path to the package defined by aPackageID relative to my path" |
|
223 |
||
9901 | 224 |
|pTop parts1 parts2 common up down rel| |
9852 | 225 |
|
226 |
parts1 := fromPackageID asCollectionOfSubstringsSeparatedByAny:':/'. |
|
227 |
parts2 := toPackageID asCollectionOfSubstringsSeparatedByAny:':/'. |
|
228 |
common := parts1 commonPrefixWith:parts2. |
|
229 |
common notEmpty ifTrue:[ |
|
9880 | 230 |
up := ((1 to:parts1 size - common size) collect:[:p | '..\']) asStringWith:''. |
231 |
down := (parts2 copyFrom:common size+1) asStringWith:'\'. |
|
232 |
(up isEmpty and:[down isEmpty]) ifTrue:[^ '.']. |
|
233 |
^ up,down |
|
9852 | 234 |
]. |
9714 | 235 |
|
9901 | 236 |
rel := (self topRelativePathToPackage_win32:toPackageID). |
237 |
(rel startsWith:'stx\') ifTrue:[ |
|
238 |
^ '$(TOP)',(rel copyFrom:'stx' size+1) |
|
9714 | 239 |
]. |
9536 | 240 |
|
9901 | 241 |
^ '$(TOP)\..\',rel. |
242 |
||
243 |
"/ pTop := self msdosPathToTopFor:fromPackageID. |
|
244 |
"/ (pTop endsWith:'\stx') ifTrue:[ |
|
245 |
"/ ^ (pTop copyButLast:'stx' size),(self topRelativePathToPackage_win32:toPackageID) |
|
246 |
"/ ] ifFalse:[ |
|
247 |
"/ ^ pTop,'\..\',(self topRelativePathToPackage_win32:toPackageID) |
|
248 |
"/ ]. |
|
249 |
||
9559 | 250 |
" |
251 |
self msdosPathToPackage:'bosch:dapasx/kernel' from:'bosch:dapasx/application' |
|
9852 | 252 |
self msdosPathToPackage:'stx:libbasic' from:'bosch:dapasx/application' |
253 |
self msdosPathToPackage:'bosch:dapasx/application' from:'stx:libbasic' |
|
9559 | 254 |
" |
9536 | 255 |
|
9559 | 256 |
"Created: / 17-08-2006 / 14:26:39 / cg" |
9901 | 257 |
"Modified: / 14-09-2006 / 22:04:56 / cg" |
9536 | 258 |
! |
259 |
||
9714 | 260 |
msdosPathToTopFor:aProjectID |
9559 | 261 |
"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" |
9536 | 262 |
|
9852 | 263 |
|parts| |
264 |
||
265 |
parts := aProjectID asCollectionOfSubstringsSeparatedByAny:':/'. |
|
266 |
||
267 |
aProjectID asPackageId module = 'stx' ifTrue:[ |
|
268 |
parts size == 1 ifTrue:[^ '.']. |
|
269 |
^ (((2 to:parts size-1) collect:[:p | '..\']) asStringWith:'') , '..' |
|
270 |
]. |
|
271 |
||
272 |
^ ((parts collect:[:p | '..\']) asStringWith:'') , 'stx' |
|
9536 | 273 |
|
9559 | 274 |
" |
9852 | 275 |
self msdosPathToTopFor: #'bosch' |
276 |
self msdosPathToTopFor: #'bosch:dapasx' |
|
9559 | 277 |
self msdosPathToTopFor: #'bosch:dapasx/datenbasis' |
9852 | 278 |
self msdosPathToTopFor: #'stx' |
279 |
self msdosPathToTopFor: #'stx:libview' |
|
280 |
self msdosPathToTopFor: #'stx:goodies/foo' |
|
9559 | 281 |
" |
9536 | 282 |
|
283 |
"Created: / 09-08-2006 / 15:45:54 / fm" |
|
9852 | 284 |
"Modified: / 14-09-2006 / 14:49:17 / cg" |
9559 | 285 |
! |
286 |
||
9536 | 287 |
packageName |
9688 | 288 |
"the last component" |
9536 | 289 |
|
9688 | 290 |
^ self packageNameFor: self package |
9536 | 291 |
|
9688 | 292 |
" |
293 |
bosch_dapasx_hw_schnittstellen packageName |
|
294 |
bosch_dapasx_datenbasis packageName |
|
295 |
bosch_dapasx_parameter_system packageName |
|
296 |
" |
|
9536 | 297 |
|
298 |
"Created: / 08-08-2006 / 20:24:53 / fm" |
|
299 |
"Modified: / 09-08-2006 / 16:16:37 / fm" |
|
300 |
! |
|
301 |
||
302 |
packageNameFor: aProjectID |
|
9688 | 303 |
^ (aProjectID asCollectionOfSubstringsSeparatedByAny:':/') last. |
9536 | 304 |
|
9688 | 305 |
" |
306 |
bosch_dapasx_hw_schnittstellen packageName |
|
307 |
bosch_dapasx_datenbasis packageName |
|
308 |
bosch_dapasx_parameter_system packageName |
|
309 |
" |
|
9536 | 310 |
|
311 |
"Created: / 08-08-2006 / 20:24:53 / fm" |
|
312 |
"Modified: / 09-08-2006 / 16:16:37 / fm" |
|
313 |
"Modified: / 11-08-2006 / 14:02:32 / cg" |
|
314 |
! |
|
315 |
||
316 |
parentProject |
|
317 |
||
318 |
^(self parentProjectFor: self package) |
|
319 |
||
320 |
" |
|
321 |
bosch_dapasx_hw_schnittstellen_Definition parentProject |
|
322 |
DapasX_Datenbasis parentProject |
|
323 |
" |
|
324 |
||
325 |
"Created: / 07-08-2006 / 20:18:27 / fm" |
|
326 |
"Modified: / 08-08-2006 / 10:47:37 / fm" |
|
327 |
! |
|
328 |
||
329 |
parentProjectFor: aProjectID |
|
330 |
||
331 |
^(aProjectID subStrings: $/) first |
|
332 |
||
333 |
" |
|
9664 | 334 |
bosch_dapasx_hw_schnittstellen parentProject |
9536 | 335 |
" |
336 |
||
337 |
"Created: / 07-08-2006 / 20:18:27 / fm" |
|
338 |
"Modified: / 08-08-2006 / 10:47:37 / fm" |
|
9664 | 339 |
"Modified: / 23-08-2006 / 15:07:36 / cg" |
9536 | 340 |
! |
341 |
||
9850 | 342 |
pathSeparator:architecture |
343 |
architecture == #unix ifTrue:[ |
|
344 |
^ self pathSeparator_unix |
|
345 |
]. |
|
346 |
architecture == #win32 ifTrue:[ |
|
347 |
^ self pathSeparator_win32 |
|
348 |
]. |
|
349 |
self error. |
|
350 |
||
351 |
"Created: / 14-09-2006 / 13:38:00 / cg" |
|
352 |
! |
|
353 |
||
354 |
pathSeparator_unix |
|
355 |
^ $/ |
|
356 |
||
357 |
"Created: / 14-09-2006 / 13:37:18 / cg" |
|
358 |
! |
|
359 |
||
360 |
pathSeparator_win32 |
|
361 |
^ $\ |
|
362 |
||
363 |
"Created: / 14-09-2006 / 13:37:23 / cg" |
|
364 |
! |
|
365 |
||
366 |
pathTo:aBaseFilename inPackage:aPackageID architecture:arch |
|
367 |
"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" |
|
368 |
||
369 |
|p| |
|
370 |
||
371 |
arch == #unix ifTrue:[ |
|
372 |
p := (self pathToPackage_unix:aPackageID). |
|
373 |
aBaseFilename isNil ifTrue:[^ p]. |
|
374 |
^ p , '/' , aBaseFilename |
|
375 |
]. |
|
376 |
arch == #win32 ifTrue:[ |
|
377 |
p := self pathToPackage_win32:aPackageID. |
|
378 |
aBaseFilename isNil ifTrue:[^ p]. |
|
379 |
^ p , '\' , aBaseFilename |
|
380 |
]. |
|
381 |
self error |
|
382 |
||
383 |
"Created: / 14-09-2006 / 13:29:20 / cg" |
|
384 |
! |
|
385 |
||
386 |
pathToPackage_unix:aPackageID |
|
387 |
"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" |
|
388 |
||
389 |
|pTop| |
|
390 |
||
9880 | 391 |
aPackageID asPackageId module = self package asPackageId module ifTrue:[ |
392 |
^ self unixPathToPackage:aPackageID from:self package |
|
393 |
]. |
|
9850 | 394 |
pTop := self pathToTop_unix. |
395 |
(pTop endsWith:'/stx') ifTrue:[ |
|
396 |
^ (pTop copyWithoutLast:'stx' size),(self topRelativePathToPackage_unix:aPackageID) |
|
397 |
] ifFalse:[ |
|
398 |
^ pTop,'/../',(self topRelativePathToPackage_unix:aPackageID) |
|
399 |
] |
|
400 |
||
401 |
" |
|
9880 | 402 |
bosch_dapasx_kernel pathToPackage_unix:'bosch:dapasx/kernel' |
403 |
bosch_dapasx_kernel pathToPackage_unix:'bosch:dapasx/support' |
|
404 |
stx_libbasic pathToPackage_unix:'bosch:dapasx/kernel' |
|
9850 | 405 |
" |
406 |
||
407 |
"Modified: / 16-08-2006 / 18:55:41 / User" |
|
408 |
"Created: / 14-09-2006 / 13:21:23 / cg" |
|
9880 | 409 |
"Modified: / 14-09-2006 / 15:23:59 / cg" |
9850 | 410 |
! |
411 |
||
412 |
pathToPackage_win32:aPackageID |
|
413 |
"Returns the path to the package defined by aPackageID relative to my path" |
|
414 |
||
415 |
|pTop| |
|
416 |
||
9880 | 417 |
aPackageID asPackageId module = self package asPackageId module ifTrue:[ |
418 |
^ self msdosPathToPackage:aPackageID from:self package |
|
419 |
]. |
|
420 |
||
9850 | 421 |
pTop := self pathToTop_win32. |
422 |
(pTop endsWith:'\stx') ifTrue:[ |
|
423 |
^ (pTop copyWithoutLast:'stx' size),(self topRelativePathToPackage_win32:aPackageID) |
|
424 |
] ifFalse:[ |
|
425 |
^ pTop,'\..\',(self topRelativePathToPackage_win32:aPackageID) |
|
426 |
]. |
|
427 |
||
428 |
" |
|
9880 | 429 |
self pathToPackage_win32:'bosch:dapasx/kernel' |
430 |
bosch_dapasx_kernel pathToPackage_win32:'bosch:dapasx/kernel' |
|
431 |
bosch_dapasx_kernel pathToPackage_win32:'bosch:dapasx/support' |
|
432 |
stx_libbasic pathToPackage_win32:'bosch:dapasx/kernel' |
|
9850 | 433 |
" |
434 |
||
435 |
"Created: / 14-09-2006 / 13:22:52 / cg" |
|
9880 | 436 |
"Modified: / 14-09-2006 / 15:28:45 / cg" |
9850 | 437 |
! |
438 |
||
9714 | 439 |
pathToTop_unix |
440 |
"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" |
|
441 |
||
9852 | 442 |
^ self unixPathToTopFor:self package. |
9714 | 443 |
|
444 |
" |
|
9852 | 445 |
bosch_dapasx_kernel pathToTop_unix |
446 |
stx_goodies_xml pathToTop_unix |
|
447 |
stx_libhtml pathToTop_unix |
|
448 |
stx_goodies_refactoryBrowser_changes pathToTop_unix |
|
9714 | 449 |
" |
450 |
||
451 |
"Created: / 09-08-2006 / 15:45:54 / fm" |
|
9852 | 452 |
"Modified: / 14-09-2006 / 15:01:47 / cg" |
9714 | 453 |
! |
454 |
||
455 |
pathToTop_win32 |
|
456 |
"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" |
|
457 |
||
458 |
^self msdosPathToTopFor: self package |
|
459 |
||
460 |
" |
|
461 |
bosch_dapasx_datenbasis pathToTop_win32 |
|
462 |
stx_libbasic pathToTop_win32 |
|
463 |
" |
|
464 |
||
465 |
"Created: / 09-08-2006 / 15:45:54 / fm" |
|
9831 | 466 |
"Modified: / 07-09-2006 / 15:51:00 / cg" |
9714 | 467 |
! |
468 |
||
9536 | 469 |
requiredProjects |
470 |
||
471 |
^self preRequisites, self subProjects |
|
472 |
! |
|
473 |
||
9850 | 474 |
topRelativePathTo:aBaseFilename inPackage:aPackageID architecture:arch |
475 |
"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" |
|
476 |
||
477 |
|p| |
|
478 |
||
479 |
arch == #unix ifTrue:[ |
|
480 |
p := (self topRelativePathToPackage_unix:aPackageID). |
|
481 |
aBaseFilename isNil ifTrue:[^ p]. |
|
482 |
^ p , '/' , aBaseFilename |
|
483 |
]. |
|
484 |
arch == #win32 ifTrue:[ |
|
485 |
p := self topRelativePathToPackage_win32:aPackageID. |
|
486 |
aBaseFilename isNil ifTrue:[^ p]. |
|
487 |
^ p , '\' , aBaseFilename |
|
488 |
]. |
|
489 |
self error |
|
490 |
||
491 |
"Created: / 14-09-2006 / 13:34:05 / cg" |
|
492 |
! |
|
493 |
||
494 |
topRelativePathToPackage_unix:aPackageID |
|
495 |
"Returns the path to the package as specified by aPackageID relative to the top directory" |
|
496 |
||
497 |
^ aPackageID asString copy replaceAny:':/' with:$/ |
|
498 |
||
499 |
" |
|
500 |
self topRelativePathToPackage_unix:'stx:goodies/xml' |
|
501 |
self topRelativePathToPackage_unix:'bosch:dapasx/kernel' |
|
502 |
" |
|
503 |
||
504 |
"Created: / 14-09-2006 / 13:20:40 / cg" |
|
505 |
! |
|
506 |
||
507 |
topRelativePathToPackage_win32:aPackageID |
|
9559 | 508 |
"Returns the path to the package as specified by aPackageID relative to the top directory" |
509 |
||
510 |
^ aPackageID asString copy replaceAny:':/' with:$\ |
|
511 |
||
512 |
" |
|
9850 | 513 |
self topRelativePathToPackage_win32:'stx:goodies/xml' |
514 |
self topRelativePathToPackage_win32:'bosch:dapasx/kernel' |
|
9559 | 515 |
" |
9536 | 516 |
|
9850 | 517 |
"Created: / 14-09-2006 / 13:20:12 / cg" |
9852 | 518 |
! |
519 |
||
9880 | 520 |
unixPathToPackage:toPackageID from:fromPackageID |
521 |
"Returns the path to the package defined by aPackageID relative to my path" |
|
522 |
||
523 |
|pTop parts1 parts2 common up down| |
|
524 |
||
525 |
parts1 := fromPackageID asCollectionOfSubstringsSeparatedByAny:':/'. |
|
526 |
parts2 := toPackageID asCollectionOfSubstringsSeparatedByAny:':/'. |
|
527 |
common := parts1 commonPrefixWith:parts2. |
|
528 |
common notEmpty ifTrue:[ |
|
529 |
up := ((1 to:parts1 size - common size) collect:[:p | '../']) asStringWith:''. |
|
530 |
down := (parts2 copyFrom:common size+1) asStringWith:'/'. |
|
531 |
(up isEmpty and:[down isEmpty]) ifTrue:[^ '.']. |
|
532 |
^ up , down |
|
533 |
]. |
|
534 |
||
535 |
pTop := self unixPathToTopFor:fromPackageID. |
|
536 |
(pTop endsWith:'/stx') ifTrue:[ |
|
537 |
^ (pTop copyButLast:'stx' size),(self topRelativePathToPackage_unix:toPackageID) |
|
538 |
] ifFalse:[ |
|
539 |
^ pTop,'/../',(self topRelativePathToPackage_unix:toPackageID) |
|
540 |
]. |
|
541 |
||
542 |
" |
|
543 |
self msdosPathToPackage:'bosch:dapasx/kernel' from:'bosch:dapasx/application' |
|
544 |
self msdosPathToPackage:'stx:libbasic' from:'bosch:dapasx/application' |
|
545 |
self msdosPathToPackage:'bosch:dapasx/application' from:'stx:libbasic' |
|
546 |
" |
|
547 |
||
548 |
"Created: / 14-09-2006 / 15:21:10 / cg" |
|
549 |
! |
|
550 |
||
9852 | 551 |
unixPathToTopFor:aProjectID |
552 |
"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" |
|
553 |
||
554 |
|parts| |
|
555 |
||
556 |
parts := aProjectID asCollectionOfSubstringsSeparatedByAny:':/'. |
|
557 |
||
558 |
aProjectID asPackageId module = 'stx' ifTrue:[ |
|
559 |
parts size == 1 ifTrue:[^ '.']. |
|
560 |
^ (((2 to:parts size-1) collect:[:p | '../']) asStringWith:'') , '..' |
|
561 |
]. |
|
562 |
||
563 |
^ ((parts collect:[:p | '../']) asStringWith:'') , 'stx' |
|
564 |
||
565 |
" |
|
566 |
self unixPathToTopFor: #'bosch' |
|
567 |
self unixPathToTopFor: #'bosch:dapasx' |
|
568 |
self unixPathToTopFor: #'bosch:dapasx/datenbasis' |
|
569 |
self unixPathToTopFor: #'stx' |
|
570 |
self unixPathToTopFor: #'stx:libview' |
|
571 |
self unixPathToTopFor: #'stx:goodies/foo' |
|
572 |
" |
|
573 |
||
574 |
"Created: / 14-09-2006 / 14:59:53 / cg" |
|
9536 | 575 |
! ! |
576 |
||
9714 | 577 |
!ProjectDefinition class methodsFor:'class initialization'! |
578 |
||
579 |
initialize |
|
580 |
LibraryType := #'Library'. |
|
581 |
GUIApplicationType := #'GUI-Application'. |
|
582 |
NonGUIApplicationType := #'NonGUI-Application'. |
|
583 |
||
10121 | 584 |
" |
585 |
self initialize |
|
586 |
" |
|
587 |
||
588 |
"Modified: / 23-10-2006 / 16:40:58 / cg" |
|
589 |
! |
|
590 |
||
591 |
initializeAllProjectDefinitions |
|
592 |
"needs everything else (especially the compiler etc.) to be initialized. |
|
593 |
Therefore, its not invoked by #initialize, but instead explicitely, |
|
594 |
by Smalltalk" |
|
10119 | 595 |
|
10124 | 596 |
Smalltalk isStandAloneApp ifFalse:[ |
597 |
self allSubclassesDo:[:eachProjectDefinitionClass | |
|
598 |
eachProjectDefinitionClass installAutoloadedClasses. |
|
599 |
]. |
|
10115 | 600 |
]. |
601 |
||
9714 | 602 |
" |
603 |
self initialize |
|
604 |
" |
|
10113
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
605 |
|
10121 | 606 |
"Created: / 23-10-2006 / 16:40:53 / cg" |
10113
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
607 |
! |
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
608 |
|
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
609 |
installAutoloadedClasses |
10114 | 610 |
(self classNamesForWhich:[:nm :attr | (attr includes:#autoload)]) |
611 |
do:[:className | |
|
10121 | 612 |
"/ 'install as autoloaded: ' errorPrint. className errorPrintCR. |
10114 | 613 |
(Smalltalk classNamed:className) isNil ifTrue:[ |
10113
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
614 |
Smalltalk |
10114 | 615 |
installAutoloadedClassNamed:className |
10163 | 616 |
category:'* as yet unknown category *' |
10113
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
617 |
package:self package |
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
618 |
revision:nil |
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
619 |
]. |
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
620 |
]. |
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
621 |
|
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
622 |
" |
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
623 |
stx_libbasic installAutoloadedClasses |
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
624 |
" |
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
625 |
|
78086bf25905
install autoloaded classes (if not already present)
Claus Gittinger <cg@exept.de>
parents:
10106
diff
changeset
|
626 |
"Created: / 23-10-2006 / 16:02:12 / cg" |
10163 | 627 |
"Modified: / 08-11-2006 / 17:08:06 / cg" |
9714 | 628 |
! ! |
629 |
||
9998 | 630 |
!ProjectDefinition class methodsFor:'code generation'! |
631 |
||
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
632 |
classNamesAndAttributes_code_ignoreOldEntries:ignoreOldEntries ignoreOldDefinition:ignoreOldDefinition |
10010 | 633 |
"generate method code returning all classes of the project. |
634 |
Platform attributes are kept from the old definition. |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
635 |
If ignoreOldEntries is true, the list is completely recreated; |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
636 |
if false, existing entries are preserved. |
10010 | 637 |
If ignoreOldDefinition is true, the autoload attribute is set/reset if |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
638 |
the class is installed as autoloaded in the image (i.e. the state in the image is taken). |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
639 |
If false, it is taken from an existing definition in #classNamesAndAttributes" |
10010 | 640 |
|
9998 | 641 |
^ String streamContents:[:s | |
10010 | 642 |
|oldSpec| |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
643 |
|
10010 | 644 |
oldSpec := self classNamesAndAttributes. |
645 |
||
9998 | 646 |
s nextPutLine:'classNamesAndAttributes'. |
647 |
s nextPutLine:' ^ #('. |
|
10067
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
648 |
s nextPutLine:' "<className> or (<className> attributes...) in load order"'. |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
649 |
|
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
650 |
ignoreOldEntries ifFalse:[ |
10188
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
651 |
oldSpec do:[:oldEntry | |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
652 |
|newEntry className cls| |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
653 |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
654 |
s spaces:8. |
10188
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
655 |
(oldEntry isArray and:[oldEntry first isString]) ifTrue:[ |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
656 |
newEntry := oldEntry collect:[:s | s asSymbol]. |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
657 |
className := newEntry first. |
10067
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
658 |
] ifFalse:[ |
10188
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
659 |
oldEntry isString ifTrue:[ |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
660 |
newEntry := oldEntry asSymbol. |
10067
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
661 |
] ifFalse:[ |
10188
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
662 |
newEntry := oldEntry. |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
663 |
]. |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
664 |
className := newEntry. |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
665 |
]. |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
666 |
cls := Smalltalk classNamed:className. |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
667 |
(cls notNil and:[cls isLoaded not]) ifTrue:[ |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
668 |
newEntry isArray ifTrue:[ |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
669 |
(newEntry includes:#autoload) ifFalse:[ |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
670 |
newEntry := newEntry copyWith:#autoload. |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
671 |
]. |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
672 |
] ifFalse:[ |
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
673 |
newEntry := Array with:newEntry with:#autoload. |
10067
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
674 |
]. |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
675 |
]. |
10188
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
676 |
newEntry storeArrayElementOn:s. |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
677 |
s cr. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
678 |
]. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
679 |
]. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
680 |
|
9998 | 681 |
self searchForClasses do:[:eachClass | |
10076
4fdaf2564cfd
oops - regenerate extracted wrong attributes
Michael Beyl <mb@exept.de>
parents:
10074
diff
changeset
|
682 |
|attributes oldSpecEntry oldAttributes| |
9998 | 683 |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
684 |
oldSpecEntry := oldSpec detect:[:entry | entry = eachClass name or:[entry first = eachClass name]] ifNone:nil. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
685 |
|
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
686 |
(ignoreOldEntries or:[ oldSpecEntry isNil]) ifTrue:[ |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
687 |
(eachClass isLoaded not or:[eachClass isPrivate not]) ifTrue:[ |
10074
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
688 |
(self additionalClassNamesAndAttributes includes:eachClass name) ifFalse:[ |
10076
4fdaf2564cfd
oops - regenerate extracted wrong attributes
Michael Beyl <mb@exept.de>
parents:
10074
diff
changeset
|
689 |
(oldSpecEntry isArray and:[oldSpecEntry size > 1]) ifTrue:[ |
4fdaf2564cfd
oops - regenerate extracted wrong attributes
Michael Beyl <mb@exept.de>
parents:
10074
diff
changeset
|
690 |
oldAttributes := oldSpecEntry copyFrom:2. |
4fdaf2564cfd
oops - regenerate extracted wrong attributes
Michael Beyl <mb@exept.de>
parents:
10074
diff
changeset
|
691 |
]. |
4fdaf2564cfd
oops - regenerate extracted wrong attributes
Michael Beyl <mb@exept.de>
parents:
10074
diff
changeset
|
692 |
|
10074
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
693 |
ignoreOldDefinition ifTrue:[ |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
694 |
"take autoload attribute from classes state in the image" |
10076
4fdaf2564cfd
oops - regenerate extracted wrong attributes
Michael Beyl <mb@exept.de>
parents:
10074
diff
changeset
|
695 |
oldAttributes notNil ifTrue:[ |
4fdaf2564cfd
oops - regenerate extracted wrong attributes
Michael Beyl <mb@exept.de>
parents:
10074
diff
changeset
|
696 |
attributes := oldAttributes copyWithout:#autoload. |
10074
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
697 |
] ifFalse:[ |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
698 |
attributes := #() |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
699 |
]. |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
700 |
eachClass isLoaded ifFalse:[ |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
701 |
attributes := attributes copyWith:#autoload. |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
702 |
]. |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
703 |
] ifFalse:[ |
10074
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
704 |
"keep any existing attribute" |
10076
4fdaf2564cfd
oops - regenerate extracted wrong attributes
Michael Beyl <mb@exept.de>
parents:
10074
diff
changeset
|
705 |
oldAttributes notNil ifTrue:[ |
4fdaf2564cfd
oops - regenerate extracted wrong attributes
Michael Beyl <mb@exept.de>
parents:
10074
diff
changeset
|
706 |
attributes := oldAttributes. |
10074
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
707 |
] ifFalse:[ |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
708 |
attributes := eachClass isLoaded ifTrue:[ #() ] ifFalse:[ #(autoload) ]. |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
709 |
]. |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
710 |
]. |
10074
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
711 |
|
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
712 |
s spaces:8. |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
713 |
attributes isEmptyOrNil ifTrue:[ |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
714 |
eachClass name storeArrayElementOn:s. |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
715 |
] ifFalse:[ |
10074
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
716 |
s nextPut:$(. eachClass name storeArrayElementOn:s. |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
717 |
attributes do:[:eachAttribute | s space. eachAttribute storeOn:s.]. |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
718 |
s nextPut:$). |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
719 |
]. |
10074
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
720 |
s cr. |
7f5870c6a152
care to not list a class in both additionalClassNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
10073
diff
changeset
|
721 |
] |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
722 |
] |
9998 | 723 |
] |
724 |
]. |
|
725 |
s nextPutLine:' )' |
|
726 |
]. |
|
727 |
||
728 |
" |
|
10010 | 729 |
stx_libbasic3 classNamesAndAttributes_code_ignoreOldDefinition:true |
9998 | 730 |
" |
731 |
||
732 |
"Modified: / 08-08-2006 / 19:24:34 / fm" |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
733 |
"Created: / 10-10-2006 / 22:00:50 / cg" |
10188
660aa980d6ae
care for autoload attribute
Claus Gittinger <cg@exept.de>
parents:
10187
diff
changeset
|
734 |
"Modified: / 21-11-2006 / 18:02:04 / cg" |
9998 | 735 |
! |
736 |
||
737 |
companyName_code |
|
738 |
^ String streamContents:[:s | |
|
739 |
s nextPutLine:'companyName'. |
|
740 |
s nextPutLine:' "Return a companyname which will appear in <lib>.rc"'. |
|
741 |
s cr; nextPutLine:' ^ ',self companyName storeString. |
|
742 |
]. |
|
743 |
||
744 |
" |
|
745 |
self companyName_code |
|
746 |
stx_libbasic3 companyName_code |
|
747 |
" |
|
748 |
||
749 |
"Created: / 18-08-2006 / 16:20:42 / cg" |
|
750 |
! |
|
751 |
||
752 |
compileDescriptionMethods |
|
753 |
(self isLibraryDefinition |
|
754 |
or:[ self isApplicationDefinition ] ) ifFalse:[ |
|
755 |
self error:'I am abstract - must be a subclass of Libray- or ApplicationDefinition.' |
|
756 |
]. |
|
757 |
||
758 |
self |
|
759 |
forEachMethodsCodeToCompileDo:[:code :category | |
|
760 |
self compile:code categorized:category |
|
761 |
]. |
|
762 |
||
763 |
"/ self instAndClassMethodsDo:[:m | m package:self package]. |
|
764 |
||
765 |
" |
|
766 |
DapasXProject compileDescriptionMethods |
|
767 |
DapasX_Datenbasis compileDescriptionMethods |
|
768 |
bosch_dapasx_interactiver_editor compileDescriptionMethods |
|
769 |
stx_libbasic compileDescriptionMethods |
|
770 |
" |
|
771 |
||
772 |
"Created: / 09-08-2006 / 18:00:31 / fm" |
|
773 |
"Modified: / 05-09-2006 / 13:46:29 / cg" |
|
774 |
! |
|
775 |
||
776 |
description_code |
|
777 |
^ String streamContents:[:s | |
|
778 |
s nextPutLine:'description'. |
|
779 |
s nextPutLine:' "Return a description string which will appear in nt.def / bc.def"'. |
|
780 |
s cr; nextPutLine:' ^ ',self description asString storeString. |
|
781 |
]. |
|
782 |
||
783 |
" |
|
784 |
self description_code |
|
785 |
stx_libbasic3 description_code |
|
786 |
" |
|
787 |
||
788 |
"Created: / 17-08-2006 / 21:24:01 / cg" |
|
789 |
"Modified: / 18-08-2006 / 16:16:24 / cg" |
|
790 |
! |
|
791 |
||
792 |
extensionMethodNames_code |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
793 |
^ self extensionMethodNames_code_ignoreOldEntries:true |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
794 |
|
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
795 |
" |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
796 |
self extensionMethodNames_code |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
797 |
" |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
798 |
|
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
799 |
"Created: / 17-08-2006 / 21:21:48 / cg" |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
800 |
"Modified: / 10-10-2006 / 22:02:42 / cg" |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
801 |
! |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
802 |
|
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
803 |
extensionMethodNames_code_ignoreOldEntries:ignoreOldEntries |
9998 | 804 |
^ String streamContents:[:s | |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
805 |
|oldSpec| |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
806 |
|
10106
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
807 |
s nextPutLine:'extensionMethodNames'. |
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
808 |
s nextPutLine:' ^ #('. |
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
809 |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
810 |
oldSpec := self extensionMethodNames pairWiseCollect:[:className :selector | className -> selector ]. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
811 |
|
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
812 |
ignoreOldEntries ifFalse:[ |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
813 |
oldSpec do:[:entry | |
10067
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
814 |
|mclassName mselector| |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
815 |
|
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
816 |
mclassName := entry key asSymbol. |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
817 |
mselector := entry value asSymbol. |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
818 |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
819 |
s spaces:8. |
10067
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
820 |
mclassName storeArrayElementOn:s. |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
821 |
s space. |
10067
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
822 |
mselector storeArrayElementOn:s. |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
823 |
s cr. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
824 |
]. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
825 |
]. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
826 |
|
10011 | 827 |
self searchForExtensions do:[:eachMethod | |
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
828 |
|attributes oldSpecEntry mclassName mselector| |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
829 |
|
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
830 |
mclassName := eachMethod mclass name. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
831 |
mselector := eachMethod selector. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
832 |
oldSpecEntry := oldSpec detect:[:entry | entry key = mclassName and:[ entry value = mselector]] ifNone:nil. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
833 |
(ignoreOldEntries or:[ oldSpecEntry isNil]) ifTrue:[ |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
834 |
s spaces:8. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
835 |
mclassName storeArrayElementOn:s. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
836 |
s space. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
837 |
mselector storeArrayElementOn:s. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
838 |
s cr. |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
839 |
] |
9998 | 840 |
]. |
10106
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
841 |
|
9998 | 842 |
s nextPutLine:' )' |
843 |
]. |
|
844 |
||
10106
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
845 |
" |
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
846 |
self extensionMethodNames_code_ignoreOldEntries:false |
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
847 |
stx_libtool extensionMethodNames_code_ignoreOldEntries:false |
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
848 |
stx_libtool extensionMethodNames_code_ignoreOldEntries:true |
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
849 |
" |
9998 | 850 |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
851 |
"Created: / 10-10-2006 / 22:02:36 / cg" |
10106
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
852 |
"Modified: / 23-10-2006 / 11:07:29 / cg" |
9998 | 853 |
! |
854 |
||
855 |
forEachContentsMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition |
|
856 |
aTwoArgBlock |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
857 |
value:(self classNamesAndAttributes_code_ignoreOldEntries:ignoreOldDefinition ignoreOldDefinition:ignoreOldDefinition) |
9998 | 858 |
value:'description - contents'. |
859 |
||
860 |
aTwoArgBlock |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
861 |
value: (self extensionMethodNames_code_ignoreOldEntries:ignoreOldDefinition) |
9998 | 862 |
value: 'description - contents'. |
863 |
||
864 |
aTwoArgBlock |
|
865 |
value: self preRequisites_code |
|
866 |
value: 'description'. |
|
867 |
||
868 |
"Created: / 15-09-2006 / 16:47:54 / cg" |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
869 |
"Modified: / 10-10-2006 / 22:01:28 / cg" |
9998 | 870 |
! |
871 |
||
872 |
forEachMethodsCodeToCompileDo:aTwoArgBlock |
|
873 |
self forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:false |
|
874 |
! |
|
875 |
||
876 |
forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
877 |
self |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
878 |
forEachContentsMethodsCodeToCompileDo:aTwoArgBlock |
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
879 |
ignoreOldDefinition:ignoreOldDefinition. |
10013
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
880 |
|
9998 | 881 |
(self class implements:#description) ifFalse:[ |
882 |
aTwoArgBlock |
|
883 |
value: self description_code |
|
884 |
value: 'description - project information'. |
|
885 |
]. |
|
886 |
(self class implements:#productName) ifFalse:[ |
|
887 |
aTwoArgBlock |
|
888 |
value: self productName_code |
|
889 |
value: 'description - project information'. |
|
890 |
]. |
|
891 |
(self class implements:#companyName) ifFalse:[ |
|
892 |
aTwoArgBlock |
|
893 |
value: self companyName_code |
|
894 |
value: 'description - project information'. |
|
895 |
]. |
|
896 |
(self class implements:#legalCopyright) ifFalse:[ |
|
897 |
aTwoArgBlock |
|
898 |
value: self legalCopyright_code |
|
899 |
value: 'description - project information'. |
|
900 |
]. |
|
901 |
||
902 |
"Created: / 18-08-2006 / 16:22:37 / cg" |
|
10064
fb1ad676019d
update spec vs. regenerate spec.
Claus Gittinger <cg@exept.de>
parents:
10063
diff
changeset
|
903 |
"Modified: / 10-10-2006 / 22:02:24 / cg" |
9998 | 904 |
! |
905 |
||
906 |
legalCopyright_code |
|
907 |
^ String streamContents:[:s | |
|
908 |
s nextPutLine:'legalCopyright'. |
|
909 |
s nextPutLine:' "Return a copyright string which will appear in <lib>.rc"'. |
|
910 |
s cr; nextPutLine:' ^ ',self legalCopyright storeString. |
|
911 |
]. |
|
912 |
||
913 |
" |
|
914 |
self legalCopyright_code |
|
915 |
stx_libbasic3 legalCopyright_code |
|
916 |
" |
|
917 |
||
918 |
"Created: / 18-08-2006 / 16:21:01 / cg" |
|
919 |
! |
|
920 |
||
921 |
preRequisites_code |
|
10179 | 922 |
|preRequisites searchedPreRequisites| |
9998 | 923 |
|
924 |
preRequisites := self preRequisites asSet. |
|
10179 | 925 |
searchedPreRequisites := self searchForPreRequisites. |
926 |
preRequisites addAll: (searchedPreRequisites keys). |
|
9998 | 927 |
|
928 |
self isApplicationDefinition ifTrue:[ |
|
10013
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
929 |
preRequisites add:#'stx:libcomp'. |
9998 | 930 |
self isGUIApplication ifTrue:[ |
10013
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
931 |
preRequisites add:#'stx:libbasic2'. |
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
932 |
preRequisites add:#'stx:libview'. |
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
933 |
preRequisites add:#'stx:libview2'. |
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
934 |
preRequisites add:#'stx:libwidg'. |
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
935 |
preRequisites add:#'stx:libwidg2'. |
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
936 |
preRequisites add:#'stx:libui'. |
9998 | 937 |
]. |
938 |
]. |
|
939 |
||
940 |
preRequisites removeAll: self excludedFromPreRequisites. |
|
10034 | 941 |
preRequisites remove:self package ifAbsent:[]. |
9998 | 942 |
|
943 |
^ String streamContents:[:s | |
|
944 |
s nextPutLine:'preRequisites'. |
|
945 |
s nextPutLine:' ^ #('. |
|
10013
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
946 |
preRequisites asSortedCollection do:[:eachPackageID | |
10179 | 947 |
|reason| |
948 |
||
10013
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
949 |
s spaces:8. |
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
950 |
eachPackageID storeOn:s. |
10179 | 951 |
reason := searchedPreRequisites at:eachPackageID ifAbsent:nil. |
952 |
reason notEmptyOrNil ifTrue:[ |
|
953 |
s nextPutAll:' "'; nextPutAll:reason anElement; nextPutAll:' "'. |
|
954 |
]. |
|
10013
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
955 |
s cr. |
9998 | 956 |
]. |
10013
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
957 |
s nextPutLine:' )' |
9998 | 958 |
]. |
959 |
||
960 |
" |
|
961 |
bosch_dapasx_application preRequisites_code |
|
962 |
demo_demoApp1 preRequisites_code |
|
10013
c6cd8f035693
pretty format of generated methods
Stefan Vogel <sv@exept.de>
parents:
10011
diff
changeset
|
963 |
stx_libtool2 preRequisites_code |
9998 | 964 |
" |
965 |
||
966 |
"Modified: / 08-08-2006 / 19:24:34 / fm" |
|
967 |
"Created: / 17-08-2006 / 21:28:09 / cg" |
|
10063 | 968 |
"Modified: / 09-10-2006 / 14:27:20 / cg" |
9998 | 969 |
! |
970 |
||
971 |
productName_code |
|
972 |
^ String streamContents:[:s | |
|
973 |
s nextPutLine:'productName'. |
|
974 |
s nextPutLine:' "Return a product name which will appear in <lib>.rc"'. |
|
975 |
s cr; nextPutLine:' ^ ',self productName storeString. |
|
976 |
]. |
|
977 |
||
978 |
" |
|
979 |
self productName_code |
|
980 |
stx_libbasic3 productName_code |
|
981 |
" |
|
982 |
||
983 |
"Created: / 18-08-2006 / 16:14:19 / cg" |
|
984 |
! ! |
|
985 |
||
9569 | 986 |
!ProjectDefinition class methodsFor:'defaults'! |
9536 | 987 |
|
9664 | 988 |
applicationTypes |
9714 | 989 |
GUIApplicationType isNil ifTrue:[self initialize]. |
990 |
^ Array with:GUIApplicationType with:NonGUIApplicationType |
|
9664 | 991 |
|
9714 | 992 |
" |
993 |
self applicationTypes |
|
994 |
" |
|
9664 | 995 |
! |
996 |
||
9536 | 997 |
defaultDescription |
998 |
^ 'description' |
|
9664 | 999 |
! |
1000 |
||
9714 | 1001 |
defaultProjectType |
9745 | 1002 |
^ self libraryTypes first |
1003 |
"/ ^ self applicationTypes first |
|
9714 | 1004 |
|
1005 |
"Created: / 23-08-2006 / 14:27:32 / cg" |
|
1006 |
! |
|
1007 |
||
1008 |
defaultProjectTypeForGUIApplication |
|
1009 |
^ GUIApplicationType |
|
1010 |
! |
|
1011 |
||
1012 |
defaultProjectTypeForNonGUIApplication |
|
1013 |
^ NonGUIApplicationType |
|
1014 |
! |
|
9664 | 1015 |
|
9714 | 1016 |
guiApplicationType |
1017 |
^ GUIApplicationType |
|
1018 |
! |
|
1019 |
||
1020 |
libraryType |
|
1021 |
^ LibraryType |
|
1022 |
! |
|
1023 |
||
1024 |
libraryTypes |
|
1025 |
LibraryType isNil ifTrue:[self initialize]. |
|
1026 |
^ Array with:LibraryType |
|
1027 |
||
1028 |
" |
|
1029 |
self libraryTypes |
|
1030 |
" |
|
1031 |
! |
|
1032 |
||
1033 |
nonGuiApplicationType |
|
1034 |
^ NonGUIApplicationType |
|
9664 | 1035 |
! |
1036 |
||
1037 |
projectTypes |
|
1038 |
^ self libraryTypes , self applicationTypes |
|
1039 |
||
1040 |
"Created: / 23-08-2006 / 14:27:32 / cg" |
|
9536 | 1041 |
! ! |
1042 |
||
9569 | 1043 |
!ProjectDefinition class methodsFor:'description'! |
9536 | 1044 |
|
9983 | 1045 |
excludedFromPreRequisites |
1046 |
"list packages which are to be explicitely excluded from the automatic constructed |
|
1047 |
prerequisites list. If empty, everything that is found along the inheritance of any of |
|
1048 |
my classes is considered to be a prerequisite package." |
|
1049 |
||
1050 |
^ #() |
|
1051 |
||
1052 |
"Modified: / 17-08-2006 / 19:48:59 / cg" |
|
1053 |
! |
|
1054 |
||
10039 | 1055 |
isConsoleApplication |
1056 |
"Return true, if this is a console application (used with win32 only). |
|
1057 |
Console applications have stdout and stderr and open up a command-window |
|
1058 |
when started. Only console applications can interact with the user in the |
|
1059 |
command line window. |
|
1060 |
By default, GUI apps are compiled as non-console apps." |
|
1061 |
||
1062 |
^ self isGUIApplication not |
|
1063 |
||
1064 |
"Created: / 20-09-2006 / 11:29:24 / cg" |
|
1065 |
! |
|
1066 |
||
9575 | 1067 |
postLoadAction |
1068 |
"invoked after loading a project" |
|
1069 |
||
1070 |
"/ intentionally left blank |
|
1071 |
||
1072 |
"Created: / 08-08-2006 / 11:07:40 / fm" |
|
1073 |
"Modified: / 17-08-2006 / 19:59:17 / cg" |
|
1074 |
! |
|
1075 |
||
1076 |
preRequisites |
|
1077 |
"list packages which are required as a prerequisite. This method is generated automatically, |
|
1078 |
by searching along the inheritance chain of all of my classes. |
|
1079 |
However, when generating automatically, packages are only added - never removed, unless listed |
|
1080 |
in excludedFromPreRequisites." |
|
1081 |
||
1082 |
^ #() |
|
1083 |
||
1084 |
"Modified: / 17-08-2006 / 19:54:21 / cg" |
|
1085 |
! |
|
1086 |
||
1087 |
preUnloadAction |
|
1088 |
"invoked before unloading a project" |
|
1089 |
||
1090 |
"/ intentionally left blank |
|
1091 |
||
1092 |
"Created: / 08-08-2006 / 11:07:40 / fm" |
|
1093 |
"Modified: / 17-08-2006 / 19:59:26 / cg" |
|
1094 |
! |
|
1095 |
||
9685 | 1096 |
siblingsAreSubProjects |
1097 |
^ false |
|
1098 |
! |
|
1099 |
||
9575 | 1100 |
subProjects |
1101 |
"list packages which are known as subprojects. This method is generated automatically. |
|
1102 |
However, when generating automatically, packages are only added - never removed, unless listed |
|
1103 |
in excludedFromSubProjects." |
|
1104 |
||
1105 |
^ #() |
|
1106 |
||
1107 |
"Modified: / 17-08-2006 / 19:57:46 / cg" |
|
1108 |
! ! |
|
1109 |
||
1110 |
!ProjectDefinition class methodsFor:'description - classes'! |
|
1111 |
||
9621 | 1112 |
additionalClassNamesAndAttributes |
1113 |
^ #() |
|
1114 |
||
1115 |
"Created: / 21-08-2006 / 19:53:04 / cg" |
|
1116 |
! |
|
1117 |
||
9607 | 1118 |
allClassNames |
1119 |
^ self classNamesForWhich:[:nm :attr | true ]. |
|
1120 |
! |
|
9536 | 1121 |
|
9607 | 1122 |
classNames |
1123 |
"a correponding method with real names is generated in my subclasses" |
|
1124 |
||
1125 |
self halt. |
|
9595 | 1126 |
^ #() |
9536 | 1127 |
|
1128 |
"Created: / 07-08-2006 / 19:02:57 / fm" |
|
1129 |
"Modified: / 07-08-2006 / 21:25:25 / fm" |
|
9607 | 1130 |
"Modified: / 17-08-2006 / 20:47:20 / cg" |
9536 | 1131 |
! |
1132 |
||
9607 | 1133 |
classNamesAndAttributes |
9575 | 1134 |
"a correponding method with real names is generated in my subclasses" |
1135 |
||
9595 | 1136 |
^ #() |
9536 | 1137 |
|
9575 | 1138 |
"Created: / 07-08-2006 / 19:02:57 / fm" |
1139 |
"Modified: / 07-08-2006 / 21:25:25 / fm" |
|
1140 |
"Modified: / 17-08-2006 / 20:47:20 / cg" |
|
1141 |
! |
|
1142 |
||
9607 | 1143 |
classNamesForWhich:aBlock |
1144 |
"a correponding method with real names is generated in my subclasses" |
|
1145 |
||
1146 |
|coll| |
|
1147 |
||
1148 |
coll := OrderedCollection new. |
|
1149 |
self classNamesAndAttributesDo:[:nm :attributes | |
|
1150 |
(aBlock value:nm value:attributes) ifTrue:[ |
|
1151 |
coll add:nm. |
|
1152 |
]. |
|
1153 |
]. |
|
1154 |
^ coll |
|
1155 |
||
1156 |
"Created: / 07-08-2006 / 19:02:57 / fm" |
|
1157 |
"Modified: / 07-08-2006 / 21:25:25 / fm" |
|
1158 |
"Modified: / 17-08-2006 / 20:47:20 / cg" |
|
1159 |
! |
|
1160 |
||
1161 |
compiled_classNames |
|
9615 | 1162 |
^ self classNamesForWhich:[:nm :attr | attr isEmptyOrNil or:[(attr includes:#autoload) not]]. |
9607 | 1163 |
|
1164 |
"Created: / 07-08-2006 / 19:02:57 / fm" |
|
1165 |
"Modified: / 07-08-2006 / 21:25:25 / fm" |
|
9615 | 1166 |
"Modified: / 21-08-2006 / 18:48:31 / cg" |
9607 | 1167 |
! |
1168 |
||
10005 | 1169 |
compiled_classNamesForPlatform:platformName |
1170 |
"answer the classes to be compiled only for platformName |
|
1171 |
platformName is one of #unix, #win32 (OperatingSystem platformName)" |
|
1172 |
||
9607 | 1173 |
^ self |
10005 | 1174 |
classNamesForWhich:[:nm :attr | |
10058
290deec5f493
fixed: platform-specific classes which also have the autoload flag
Claus Gittinger <cg@exept.de>
parents:
10047
diff
changeset
|
1175 |
"(attr includes:#autoload) not and:[" (attr includes:platformName)" ]" |
9607 | 1176 |
]. |
1177 |
||
1178 |
"Created: / 07-08-2006 / 19:02:57 / fm" |
|
1179 |
"Modified: / 07-08-2006 / 21:25:25 / fm" |
|
10058
290deec5f493
fixed: platform-specific classes which also have the autoload flag
Claus Gittinger <cg@exept.de>
parents:
10047
diff
changeset
|
1180 |
"Modified: / 09-10-2006 / 13:30:08 / cg" |
9607 | 1181 |
! |
1182 |
||
10005 | 1183 |
compiled_classNames_common |
1184 |
"classes to be compiled for any platform" |
|
9607 | 1185 |
|
1186 |
^ self |
|
1187 |
classNamesForWhich:[:nm :attr | |
|
1188 |
attr isEmptyOrNil |
|
1189 |
]. |
|
1190 |
||
1191 |
"Created: / 18-08-2006 / 13:37:51 / cg" |
|
1192 |
! |
|
1193 |
||
10005 | 1194 |
compiled_classNames_unix |
9584 | 1195 |
"class, only to be compiled under unix" |
10005 | 1196 |
|
1197 |
^ self compiled_classNamesForPlatform:#unix. |
|
9584 | 1198 |
|
1199 |
"Created: / 18-08-2006 / 13:37:51 / cg" |
|
1200 |
! |
|
1201 |
||
10005 | 1202 |
compiled_classNames_windows |
9584 | 1203 |
"class, only to be compiled under windows" |
10005 | 1204 |
|
1205 |
^ self compiled_classNamesForPlatform:#win32. |
|
9584 | 1206 |
|
1207 |
"Created: / 18-08-2006 / 13:37:56 / cg" |
|
1208 |
! |
|
1209 |
||
9575 | 1210 |
extensionMethodNames |
1211 |
"list class/selector pairs of extensions. |
|
1212 |
A correponding method with real names is generated in my subclasses" |
|
1213 |
||
9595 | 1214 |
^ #() |
9575 | 1215 |
|
1216 |
"Modified: / 17-08-2006 / 20:49:51 / cg" |
|
1217 |
! ! |
|
1218 |
||
1219 |
!ProjectDefinition class methodsFor:'description - compilation'! |
|
9536 | 1220 |
|
9625 | 1221 |
additionalDefinitions_make_dot_proto |
1222 |
"allows for additional definitions/rules to be added to the make.proto file." |
|
1223 |
||
1224 |
^ '' |
|
1225 |
||
1226 |
"Created: / 22-08-2006 / 23:53:08 / cg" |
|
1227 |
! |
|
1228 |
||
1229 |
additionalDefinitions_nt_dot_mak |
|
1230 |
"allows for additional definitions/rules to be added to the nt.mak file." |
|
1231 |
||
1232 |
^ '' |
|
1233 |
||
1234 |
"Created: / 22-08-2006 / 23:59:32 / cg" |
|
1235 |
! |
|
1236 |
||
9733 | 1237 |
additionalLinkLibraries_make_dot_proto |
9972
c63164ec0584
Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents:
9964
diff
changeset
|
1238 |
"allows for additional static libraries to be added to the make.proto file." |
9733 | 1239 |
|
1240 |
^ '' |
|
1241 |
||
1242 |
"Created: / 22-08-2006 / 23:53:33 / cg" |
|
1243 |
! |
|
1244 |
||
9625 | 1245 |
additionalRules_make_dot_proto |
1246 |
"allows for additional rules to be added to the make.proto file." |
|
1247 |
||
1248 |
^ '' |
|
1249 |
||
1250 |
"Created: / 22-08-2006 / 23:59:16 / cg" |
|
1251 |
! |
|
1252 |
||
1253 |
additionalRules_nt_dot_mak |
|
1254 |
"allows for additional rules to be added to the nt.mak file." |
|
1255 |
||
1256 |
^ '' |
|
1257 |
||
1258 |
"Created: / 22-08-2006 / 23:59:24 / cg" |
|
1259 |
! |
|
1260 |
||
9972
c63164ec0584
Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents:
9964
diff
changeset
|
1261 |
additionalSharedLinkLibraries_make_dot_proto |
c63164ec0584
Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents:
9964
diff
changeset
|
1262 |
"allows for additional shared libraries to be added to the make.proto file." |
c63164ec0584
Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents:
9964
diff
changeset
|
1263 |
|
c63164ec0584
Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents:
9964
diff
changeset
|
1264 |
^ '' |
c63164ec0584
Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents:
9964
diff
changeset
|
1265 |
! |
c63164ec0584
Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents:
9964
diff
changeset
|
1266 |
|
9625 | 1267 |
additionalTargets_make_dot_proto |
1268 |
"allows for additional targets to be added to the make.proto file." |
|
1269 |
||
1270 |
^ '' |
|
1271 |
||
1272 |
"Created: / 22-08-2006 / 23:53:33 / cg" |
|
1273 |
! |
|
1274 |
||
1275 |
additionalTargets_nt_dot_mak |
|
1276 |
"allows for additional targets to be added to the nt.mak file." |
|
1277 |
||
1278 |
^ '' |
|
1279 |
||
1280 |
"Created: / 23-08-2006 / 00:00:35 / cg" |
|
1281 |
! |
|
1282 |
||
9826
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1283 |
localIncludes |
9714 | 1284 |
"allow for the specification of addition include directories" |
1285 |
||
1286 |
^ '' |
|
1287 |
||
9826
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1288 |
"Created: / 06-09-2006 / 18:14:31 / cg" |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1289 |
! |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1290 |
|
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1291 |
localIncludes_unix |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1292 |
"allow for the specification of addition include directories" |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1293 |
|
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1294 |
^ self makeUnixIncludes:(self localIncludes) |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1295 |
|
9714 | 1296 |
"Created: / 18-08-2006 / 12:50:27 / cg" |
9826
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1297 |
"Modified: / 06-09-2006 / 18:15:26 / cg" |
9714 | 1298 |
! |
1299 |
||
1300 |
localIncludes_win32 |
|
1301 |
"allow for the specification of addition include directories" |
|
1302 |
||
9826
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1303 |
^ self makeWin32Includes:(self localIncludes) |
9714 | 1304 |
|
1305 |
"Created: / 18-08-2006 / 12:50:27 / cg" |
|
9826
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
1306 |
"Modified: / 06-09-2006 / 18:15:37 / cg" |
9714 | 1307 |
! |
1308 |
||
9575 | 1309 |
stcOptimizationOptions |
1310 |
"see the stc reference / stc usage for options. |
|
1311 |
For now, the following variants are useful: |
|
1312 |
+optspace3 most compact code |
|
1313 |
- use for all gui, application code. |
|
1314 |
||
9714 | 1315 |
+optinline +optinline2 +inlineNew |
1316 |
fastest code |
|
9575 | 1317 |
- use only for computation-intensive classes" |
1318 |
||
1319 |
^ '+optspace3' |
|
1320 |
||
1321 |
"Created: / 18-08-2006 / 12:50:27 / cg" |
|
9536 | 1322 |
! |
1323 |
||
9575 | 1324 |
stcWarningOptions |
1325 |
"see the stc reference / stc usage for options. |
|
1326 |
For now, the following variants are useful: |
|
1327 |
-warn no warnings |
|
1328 |
-warnNonStandard no warnings about non-standard smalltalk features" |
|
1329 |
||
9714 | 1330 |
^ '-warnNonStandard' |
9575 | 1331 |
|
1332 |
"Created: / 18-08-2006 / 12:51:38 / cg" |
|
1333 |
! ! |
|
9536 | 1334 |
|
9575 | 1335 |
!ProjectDefinition class methodsFor:'description - project information'! |
1336 |
||
1337 |
companyName |
|
9584 | 1338 |
"Returns a company string which will appear in <lib>.rc. |
1339 |
Under win32, this is placed into the dlls file-info" |
|
9575 | 1340 |
|
1341 |
self module = 'stx' ifTrue:[ |
|
1342 |
^ 'eXept Software AG' |
|
1343 |
]. |
|
1344 |
||
1345 |
^ 'My Company' |
|
1346 |
||
9584 | 1347 |
"Modified: / 18-08-2006 / 16:08:20 / cg" |
9536 | 1348 |
! |
1349 |
||
1350 |
description |
|
9575 | 1351 |
"Returns a description string which will appear in nt.def / bc.def" |
9536 | 1352 |
|
9803 | 1353 |
^self productName,' ',self packageName |
1354 |
"/ ^ self name |
|
9536 | 1355 |
|
1356 |
"Created: / 08-08-2006 / 11:15:01 / fm" |
|
9575 | 1357 |
"Modified: / 17-08-2006 / 20:53:34 / cg" |
1358 |
! |
|
1359 |
||
1360 |
fileDescription |
|
1361 |
"Returns a description string which will appear in libName.rc" |
|
1362 |
||
9803 | 1363 |
^self description |
9575 | 1364 |
|
1365 |
"Modified: / 17-08-2006 / 20:27:07 / cg" |
|
1366 |
! |
|
1367 |
||
1368 |
fileMajorVersionNr |
|
1369 |
"Returns a versionNumber which will appear in libName.rc" |
|
1370 |
||
1371 |
^ Smalltalk majorVersionNr printString |
|
1372 |
||
1373 |
"Created: / 18-08-2006 / 12:03:32 / cg" |
|
9817 | 1374 |
"Modified: / 30-08-2006 / 18:50:51 / cg" |
9575 | 1375 |
! |
1376 |
||
1377 |
fileMinorVersionNr |
|
1378 |
"Returns a versionNumber which will appear in libName.rc" |
|
1379 |
||
9618 | 1380 |
^ Smalltalk minorVersionNr printString |
9575 | 1381 |
|
1382 |
"Created: / 18-08-2006 / 12:03:13 / cg" |
|
9817 | 1383 |
"Modified: / 30-08-2006 / 18:50:46 / cg" |
9575 | 1384 |
! |
1385 |
||
1386 |
fileReleaseNr |
|
1387 |
"Returns a releaseNumber which will appear in libName.rc" |
|
1388 |
||
9817 | 1389 |
"take the default revision from the cvs-version" |
9618 | 1390 |
^ self cvsRevision last |
9575 | 1391 |
|
1392 |
"Created: / 18-08-2006 / 12:02:58 / cg" |
|
9817 | 1393 |
"Modified: / 30-08-2006 / 18:54:48 / cg" |
9536 | 1394 |
! |
1395 |
||
9575 | 1396 |
fileRevisionNr |
1397 |
"Returns a revisionNumber which will appear in libName.rc" |
|
9536 | 1398 |
|
9817 | 1399 |
"take the default revision from the cvs-version" |
9618 | 1400 |
^ self cvsRevision first |
9575 | 1401 |
|
1402 |
"Created: / 18-08-2006 / 12:02:39 / cg" |
|
9817 | 1403 |
"Modified: / 30-08-2006 / 18:54:39 / cg" |
9536 | 1404 |
! |
1405 |
||
9575 | 1406 |
fileVersion |
1407 |
"Returns a fileVersion string which will appear in libName.rc" |
|
1408 |
||
1409 |
"<major>.<minor>.<rev>.<rel> (such as '1.2.17.1') " |
|
1410 |
||
9817 | 1411 |
^ self fileMajorVersionNr |
9575 | 1412 |
, '.' |
9817 | 1413 |
, self fileMinorVersionNr |
9575 | 1414 |
, '.' |
9817 | 1415 |
, self fileRevisionNr |
9575 | 1416 |
, '.' |
9817 | 1417 |
, self fileReleaseNr |
9575 | 1418 |
|
1419 |
" |
|
1420 |
self fileVersion |
|
1421 |
" |
|
1422 |
||
9817 | 1423 |
"Modified: / 30-08-2006 / 18:51:49 / cg" |
9575 | 1424 |
! |
9536 | 1425 |
|
9575 | 1426 |
fileVersionCommaSeparated |
1427 |
"Returns a fileVersion string which will appear in libName.rc" |
|
1428 |
||
9817 | 1429 |
"<major>,<minor>,<revision>,<release> (such as '2,17,1,2') " |
1430 |
||
1431 |
^ self fileMajorVersionNr |
|
9575 | 1432 |
, ',' |
9817 | 1433 |
, self fileMinorVersionNr |
9575 | 1434 |
, ',' |
9817 | 1435 |
, self fileRevisionNr |
9575 | 1436 |
, ',' |
9579 | 1437 |
, self fileReleaseNr |
9575 | 1438 |
|
1439 |
"Created: / 17-08-2006 / 20:16:17 / cg" |
|
9817 | 1440 |
"Modified: / 30-08-2006 / 18:54:20 / cg" |
1441 |
! |
|
1442 |
||
1443 |
iconFileName |
|
1444 |
"Returns the icon-filename for the application (nil if there is none)" |
|
1445 |
||
1446 |
^ nil |
|
1447 |
||
1448 |
"Created: / 30-08-2006 / 18:44:15 / cg" |
|
9575 | 1449 |
! |
1450 |
||
1451 |
internalName |
|
1452 |
"Returns a name string which will appear in libName.rc" |
|
1453 |
||
1454 |
^self packageName |
|
1455 |
||
1456 |
"Modified: / 17-08-2006 / 20:27:37 / cg" |
|
9536 | 1457 |
! |
1458 |
||
9575 | 1459 |
legalCopyright |
9584 | 1460 |
"Returns a copyright string which will appear in <lib>.rc. |
1461 |
Under win32, this is placed into the dlls file-info" |
|
9575 | 1462 |
|
1463 |
self module = 'stx' ifTrue:[ |
|
9817 | 1464 |
"hardwired-default" |
9625 | 1465 |
^ 'Copyright Claus Gittinger 1988-%1\nCopyright eXept Software AG 1998-%1' |
1466 |
bindWith:(Date today year printString) |
|
9575 | 1467 |
]. |
9817 | 1468 |
self module = 'exept' ifTrue:[ |
1469 |
"hardwired-default" |
|
1470 |
^ 'Copyright eXept Software AG 1998-%1' |
|
1471 |
bindWith:(Date today year printString) |
|
1472 |
]. |
|
9575 | 1473 |
|
1474 |
^ 'My CopyRight or CopyLeft' |
|
1475 |
||
9817 | 1476 |
"Modified: / 30-08-2006 / 18:53:36 / cg" |
9575 | 1477 |
! |
1478 |
||
1479 |
majorVersionNr |
|
1480 |
"Returns a versionNumber which will appear in libName.rc" |
|
1481 |
||
1482 |
"<major>.<minor>.<revision>.<release> (such as '5.3.2.1') |
|
1483 |
the default here takes smalltalks version number. |
|
1484 |
But thats probably not good for an end-user-app." |
|
1485 |
||
9817 | 1486 |
^ Smalltalk majorVersionNr printString |
9575 | 1487 |
|
1488 |
"Created: / 17-08-2006 / 20:20:18 / cg" |
|
9817 | 1489 |
"Modified: / 30-08-2006 / 18:52:13 / cg" |
9575 | 1490 |
! |
1491 |
||
1492 |
minorVersionNr |
|
1493 |
"Returns a versionNumber which will appear in libName.rc" |
|
9536 | 1494 |
|
9575 | 1495 |
"<major>.<minor>.<revision>.<release> (such as '5.3.2.1') |
1496 |
the default here takes smalltalks version number. |
|
1497 |
But thats probably not good for an end-user-app." |
|
1498 |
||
9817 | 1499 |
^ Smalltalk minorVersionNr printString |
9575 | 1500 |
|
1501 |
"Created: / 17-08-2006 / 20:20:32 / cg" |
|
9817 | 1502 |
"Modified: / 30-08-2006 / 18:52:16 / cg" |
9575 | 1503 |
! |
1504 |
||
1505 |
productDate |
|
1506 |
"Returns a product-date string which will appear in libName.rc" |
|
1507 |
||
1508 |
"take the current date - by default" |
|
9536 | 1509 |
|
9575 | 1510 |
^ Timestamp now printStringRFC1123Format |
1511 |
||
1512 |
"Created: / 17-08-2006 / 20:17:28 / cg" |
|
1513 |
! |
|
1514 |
||
9898 | 1515 |
productInstallDir |
1516 |
"Returns a product default installDir which will appear in <app>.nsi." |
|
1517 |
||
1518 |
^ '$PROGRAMFILES\',self module |
|
1519 |
||
1520 |
"Created: / 14-09-2006 / 21:23:01 / cg" |
|
1521 |
! |
|
1522 |
||
9575 | 1523 |
productName |
9584 | 1524 |
"Returns a product name which will appear in <lib>.rc. |
1525 |
Under win32, this is placed into the dlls file-info" |
|
9575 | 1526 |
|
1527 |
self module = 'stx' ifTrue:[ |
|
1528 |
^ 'Smalltalk/X' |
|
1529 |
]. |
|
10296 | 1530 |
Error handle:[:ex | |
1531 |
^ 'ProductName' |
|
1532 |
] do:[ |
|
1533 |
^ self startupClassName |
|
1534 |
]. |
|
1535 |
||
1536 |
"Modified: / 18-12-2006 / 17:34:19 / cg" |
|
9536 | 1537 |
! |
1538 |
||
9898 | 1539 |
productPublisher |
1540 |
"Returns a product publisher which will appear in <app>.nsi." |
|
1541 |
||
1542 |
( #('exept' 'stx') includes:self module) ifTrue:[ |
|
1543 |
^ 'eXept Software AG' |
|
1544 |
]. |
|
1545 |
||
1546 |
^ 'thePublisher' |
|
1547 |
||
1548 |
"Created: / 14-09-2006 / 21:12:54 / cg" |
|
1549 |
! |
|
1550 |
||
9575 | 1551 |
productVersion |
1552 |
"Returns a product version which will appear in libName.rc" |
|
1553 |
||
1554 |
"<major>.<minor>.<revision>.<release> (such as '5.3.2.1')" |
|
9536 | 1555 |
|
9817 | 1556 |
^ self majorVersionNr |
9575 | 1557 |
, '.' |
9817 | 1558 |
, self minorVersionNr |
9575 | 1559 |
, '.' |
9817 | 1560 |
, self revisionNr |
9575 | 1561 |
, '.' |
9817 | 1562 |
, self releaseNr |
9536 | 1563 |
|
9575 | 1564 |
" |
1565 |
self productVersion |
|
1566 |
" |
|
1567 |
||
9817 | 1568 |
"Modified: / 30-08-2006 / 18:52:47 / cg" |
9536 | 1569 |
! |
1570 |
||
9575 | 1571 |
productVersionCommaSeparated |
1572 |
"Returns a product version which will appear in libName.rc" |
|
1573 |
||
1574 |
"<major>.<minor>.<revision>.<release> (such as '0,1,1,1') " |
|
9536 | 1575 |
|
9817 | 1576 |
^ self majorVersionNr |
9575 | 1577 |
, ',' |
9817 | 1578 |
, self minorVersionNr |
9575 | 1579 |
, ',' |
9817 | 1580 |
, self revisionNr |
9575 | 1581 |
, ',' |
9817 | 1582 |
, self releaseNr |
9536 | 1583 |
|
9575 | 1584 |
"Created: / 17-08-2006 / 20:13:32 / cg" |
9817 | 1585 |
"Modified: / 30-08-2006 / 18:52:42 / cg" |
9536 | 1586 |
! |
1587 |
||
9898 | 1588 |
productWebSite |
1589 |
"Returns a product webSite which will appear in <app>.nsi." |
|
1590 |
||
1591 |
( #('exept' 'stx') includes:self module) ifTrue:[ |
|
1592 |
^ 'http://www.exept.de' |
|
1593 |
]. |
|
1594 |
||
1595 |
^ 'http://www.yoursite.com' |
|
1596 |
||
1597 |
"Created: / 14-09-2006 / 21:15:05 / cg" |
|
1598 |
! |
|
1599 |
||
9575 | 1600 |
releaseNr |
1601 |
"Returns a releaseNr which will appear in libName.rc" |
|
1602 |
||
1603 |
"<major>.<minor>.<revision>.<release> (such as '5.3.2.1') |
|
1604 |
the default here takes smalltalks version number. |
|
1605 |
But thats probably not good for an end-user-app." |
|
1606 |
||
9817 | 1607 |
^ Smalltalk releaseNr printString |
9536 | 1608 |
|
9575 | 1609 |
"Created: / 17-08-2006 / 20:20:51 / cg" |
9817 | 1610 |
"Modified: / 30-08-2006 / 18:52:22 / cg" |
9575 | 1611 |
! |
1612 |
||
1613 |
revisionNr |
|
1614 |
"Returns a revisionNr which will appear in libName.rc" |
|
9536 | 1615 |
|
9575 | 1616 |
"<major>.<minor>.<revision>.<release> (such as '5.3.2.1') |
1617 |
the default here takes smalltalks version number. |
|
1618 |
But thats probably not good for an end-user-app." |
|
1619 |
||
9817 | 1620 |
^ Smalltalk revisionNr printString |
9575 | 1621 |
|
1622 |
"Created: / 17-08-2006 / 20:20:40 / cg" |
|
9817 | 1623 |
"Modified: / 30-08-2006 / 18:52:32 / cg" |
9536 | 1624 |
! |
1625 |
||
1626 |
versionNumber |
|
9575 | 1627 |
"Returns a version string which will appear in nt.def " |
9536 | 1628 |
|
9575 | 1629 |
^'' |
9536 | 1630 |
|
1631 |
"Created: / 08-08-2006 / 11:35:52 / fm" |
|
9575 | 1632 |
"Modified: / 17-08-2006 / 19:46:29 / cg" |
9536 | 1633 |
! ! |
1634 |
||
9569 | 1635 |
!ProjectDefinition class methodsFor:'file generation'! |
9536 | 1636 |
|
9852 | 1637 |
basicFileNamesToGenerate |
1638 |
self subclassResponsibility |
|
1639 |
||
1640 |
"Created: / 14-09-2006 / 14:36:31 / cg" |
|
1641 |
! |
|
1642 |
||
9536 | 1643 |
fileNamesToGenerate |
9852 | 1644 |
^ self basicFileNamesToGenerate reject:[:p | self protectedFileNames includes:(p first) ]. |
1645 |
||
1646 |
"Modified: / 14-09-2006 / 14:36:10 / cg" |
|
9536 | 1647 |
! |
1648 |
||
9544 | 1649 |
forEachFileNameAndGeneratedContentsDo:aTwoArgBlock |
1650 |
|pairs| |
|
1651 |
||
1652 |
pairs := OrderedCollection new. |
|
1653 |
self forEachFileNameAndGeneratorMethodDo:[:fileName :generator | |
|
1654 |
|file| |
|
1655 |
||
1656 |
file := self perform:generator. |
|
1657 |
pairs add:(Array with:fileName with:file) |
|
1658 |
]. |
|
1659 |
||
1660 |
pairs pairsDo:aTwoArgBlock |
|
1661 |
||
1662 |
"Created: / 16-08-2006 / 18:37:52 / User" |
|
1663 |
! |
|
1664 |
||
9536 | 1665 |
forEachFileNameAndGeneratorMethodDo:aTwoArgBlock |
1666 |
|fileNamesAndSelectors| |
|
1667 |
||
9898 | 1668 |
fileNamesAndSelectors := self fileNamesToGenerate. |
9536 | 1669 |
fileNamesAndSelectors pairsDo:aTwoArgBlock |
9831 | 1670 |
|
9898 | 1671 |
"Modified: / 14-09-2006 / 21:02:37 / cg" |
9536 | 1672 |
! |
1673 |
||
1674 |
generateFile:filename |
|
9883
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
1675 |
self basicFileNamesToGenerate |
9817 | 1676 |
pairsDo:[:fn :action | |
1677 |
filename = fn ifTrue:[ |
|
1678 |
^ self perform:action |
|
1679 |
]. |
|
1680 |
]. |
|
9898 | 1681 |
(filename = 'app.rc' or:[filename = 'lib.rc' or:[filename = self rcFilename]]) ifTrue:[ |
9817 | 1682 |
^ self generate_packageName_dot_rc |
9607 | 1683 |
]. |
9898 | 1684 |
(filename = 'app.nsi' or:[filename = self nsiFilename]) ifTrue:[ |
1685 |
^ self generate_packageName_dot_nsi |
|
1686 |
]. |
|
1687 |
||
9850 | 1688 |
(filename = 'loadAll') ifTrue:[ |
1689 |
^ self generate_loadAll |
|
1690 |
]. |
|
9621 | 1691 |
self error:('File "%1" not appropriate (not generated) for this type of project.' |
1692 |
bindWith:filename) |
|
9575 | 1693 |
|
9898 | 1694 |
"Modified: / 14-09-2006 / 21:07:49 / cg" |
9536 | 1695 |
! |
1696 |
||
1697 |
generate_abbrev_dot_stc |
|
10104
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1698 |
|anyNil check| |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1699 |
|
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1700 |
anyNil := false. |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1701 |
check := |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1702 |
[:eachClassName | |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1703 |
|cls fn wasLoaded failedToLoad numClassInstvars| |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1704 |
|
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1705 |
cls := Smalltalk classNamed:eachClassName. |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1706 |
cls isNil ifTrue:[ |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1707 |
anyNil := true. |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1708 |
]. |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1709 |
]. |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1710 |
|
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1711 |
self allClassNames do:check. |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1712 |
self namesAndAttributesIn:(self additionalClassNamesAndAttributes) do: [:nm :attr | |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1713 |
(attr isEmptyOrNil or:[(attr includes:#autoload) not]) ifTrue:[ |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1714 |
check value:nm |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1715 |
]. |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1716 |
]. |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1717 |
anyNil ifTrue:[ |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1718 |
(Dialog confirm:'Some classes are missing. Cannot generate a correct "abbrev.stc" file.\\Continue anyway?' withCRs) |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1719 |
ifFalse:[ |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1720 |
AbortSignal raise. |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1721 |
]. |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1722 |
]. |
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1723 |
|
9536 | 1724 |
^ String |
1725 |
streamContents:[:s | |
|
9621 | 1726 |
|addEntry| |
1727 |
||
1728 |
addEntry := |
|
1729 |
[:eachClassName | |
|
9681 | 1730 |
|cls fn wasLoaded failedToLoad numClassInstvars| |
9621 | 1731 |
|
1732 |
s nextPutAll:eachClassName. |
|
1733 |
s nextPutAll:' '. |
|
9536 | 1734 |
|
9621 | 1735 |
cls := Smalltalk classNamed:eachClassName. |
1736 |
cls isNil ifTrue:[ |
|
9678 | 1737 |
fn := (Smalltalk fileNameForClass:eachClassName) asFilename withoutSuffix. |
1738 |
fn suffix notEmptyOrNil ifTrue:[ |
|
1739 |
fn := fn withoutSuffix |
|
1740 |
]. |
|
1741 |
fn := fn baseName. |
|
1742 |
s nextPutAll:fn. |
|
10103
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
1743 |
s nextPutAll:' '; nextPutAll:(self package); nextPutAll:' '. |
9621 | 1744 |
s nextPutAll:' '; nextPutAll:'unknownCategory' storeString; nextPutAll:' '. |
1745 |
s nextPutAll:' '; nextPutAll:'0'. |
|
1746 |
] ifFalse:[ |
|
1747 |
wasLoaded := cls isLoaded. |
|
9714 | 1748 |
wasLoaded ifFalse:[ |
1749 |
failedToLoad := false. |
|
9681 | 1750 |
|
9714 | 1751 |
Error handle:[:ex | |
1752 |
failedToLoad := true. |
|
1753 |
] do:[ |
|
1754 |
ParserFlags |
|
1755 |
withSTCCompilation:#never |
|
1756 |
do:[ |
|
1757 |
cls autoload. |
|
1758 |
] |
|
1759 |
]. |
|
9681 | 1760 |
]. |
9584 | 1761 |
|
9678 | 1762 |
fn := cls classFilename asFilename withoutSuffix. |
1763 |
fn suffix notEmptyOrNil ifTrue:[ |
|
1764 |
fn := fn withoutSuffix |
|
1765 |
]. |
|
1766 |
fn := fn baseName. |
|
9621 | 1767 |
(fn includes:Character space) ifTrue:[ |
1768 |
s nextPutAll:fn storeString. |
|
1769 |
] ifFalse:[ |
|
1770 |
s nextPutAll:fn. |
|
1771 |
]. |
|
10103
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
1772 |
s nextPutAll:' '; nextPutAll:(self package); nextPutAll:' '. |
9621 | 1773 |
s nextPutAll: (cls category asString storeString). |
9681 | 1774 |
failedToLoad ifTrue:[ |
1775 |
s nextPutAll:' 0'. |
|
1776 |
] ifFalse:[ |
|
1777 |
numClassInstvars := cls theMetaclass instSize - Class instSize. |
|
1778 |
s nextPutAll:' '; nextPutAll:numClassInstvars printString. |
|
1779 |
]. |
|
9714 | 1780 |
|
9621 | 1781 |
wasLoaded ifFalse:[ |
1782 |
cls unload |
|
1783 |
] |
|
1784 |
]. |
|
1785 |
s cr. |
|
9536 | 1786 |
]. |
9615 | 1787 |
|
9621 | 1788 |
self allClassNames do:addEntry. |
1789 |
self namesAndAttributesIn:(self additionalClassNamesAndAttributes) do: [:nm :attr | |
|
1790 |
(attr isEmptyOrNil or:[(attr includes:#autoload) not]) ifTrue:[ |
|
1791 |
addEntry value:nm |
|
1792 |
]. |
|
1793 |
]. |
|
9536 | 1794 |
] |
1795 |
||
1796 |
" |
|
1797 |
DapasXProject generate_abbrev_dot_stc |
|
1798 |
DapasX_Datenbasis generate_abbrev_dot_stc |
|
1799 |
bosch_dapasx_interactiver_editor generate_abbrev_dot_stc |
|
1800 |
" |
|
1801 |
||
1802 |
"Created: / 09-08-2006 / 11:24:39 / fm" |
|
10104
96bce48c03b5
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10103
diff
changeset
|
1803 |
"Modified: / 20-10-2006 / 16:31:08 / cg" |
9536 | 1804 |
! |
1805 |
||
1806 |
generate_bc_dot_def |
|
1807 |
||
1808 |
^self replaceMappings: self bc_dot_def_mappings |
|
1809 |
in: self bc_dot_def |
|
1810 |
||
1811 |
" |
|
1812 |
DapasXProject generate_bc_dot_def |
|
1813 |
DapasX_Datenbasis generate_bc_dot_def |
|
1814 |
||
1815 |
" |
|
1816 |
||
1817 |
"Modified: / 09-08-2006 / 11:30:42 / fm" |
|
1818 |
! |
|
1819 |
||
9575 | 1820 |
generate_bmake_dot_mak |
1821 |
||
1822 |
^self replaceMappings: self bmake_dot_mak_mappings |
|
1823 |
in: self bmake_dot_mak |
|
1824 |
||
1825 |
"Created: / 17-08-2006 / 20:03:43 / cg" |
|
1826 |
! |
|
1827 |
||
9850 | 1828 |
generate_loadAll |
1829 |
^ String |
|
1830 |
streamContents:[:s | |
|
1831 |
|classNames classesLoaded classNamesUnloaded classesSorted classNamesSorted| |
|
1832 |
||
10005 | 1833 |
classNames := self compiled_classNames_common. |
9850 | 1834 |
classesLoaded := classNames |
10010 | 1835 |
collect:[:nm | Smalltalk classNamed:nm] |
9850 | 1836 |
thenSelect:[:cls | cls notNil and:[cls isLoaded] ]. |
1837 |
classNamesUnloaded := classNames |
|
1838 |
select:[:nm | |cls| cls := Smalltalk classNamed:nm. cls isNil or:[cls isLoaded not]]. |
|
1839 |
||
1840 |
classesSorted := Class classesSortedByLoadOrder:classesLoaded. |
|
10010 | 1841 |
classNamesSorted := classesSorted collect:[:cls | cls name]. |
9850 | 1842 |
|
1843 |
||
1844 |
s nextPutAll:'"/ |
|
1845 |
"/ $' , 'Header' , '$ |
|
1846 |
"/ |
|
1847 |
"/ loadAll-file to fileIn code for: ' , self package , ' |
|
1848 |
"/ |
|
1849 |
"/ Automatically generated from the ProjectDefinition. |
|
9911
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
1850 |
"/ DO NOT MODIFY THIS FILE; |
9850 | 1851 |
"/ |
1852 |
"/ |
|
1853 |
"/ Prerequisites: |
|
1854 |
"/ |
|
1855 |
"/ Smalltalk loadPackage:''module:directory''. |
|
1856 |
"/ Smalltalk loadPackage:''....''. |
|
1857 |
!! |
|
1858 |
||
1859 |
"{ package:''' , self package, ''' }" |
|
1860 |
!! |
|
1861 |
||
1862 |
|files| |
|
1863 |
||
9911
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
1864 |
''loading package ' , self package ,'...'' infoPrint. |
9850 | 1865 |
|
1866 |
files := #( |
|
1867 |
'. |
|
1868 |
||
1869 |
classesSorted do:[:eachClass | |
|
10080 | 1870 |
s nextPutLine:' ''' , eachClass classBaseFilename, ''''. |
9850 | 1871 |
]. |
1872 |
classNamesUnloaded do:[:nm | |
|
1873 |
s nextPutLine:' ''' , (Smalltalk fileNameForClass: nm) asFilename baseName, ''''. |
|
1874 |
]. |
|
1875 |
||
1876 |
self namesAndAttributesIn:(self additionalClassNamesAndAttributes) do:[:nm :attr | |
|
1877 |
(attr isEmptyOrNil or:[(attr includes:#autoload) not]) ifTrue:[ |
|
1878 |
s nextPutLine:' ''' , (Smalltalk fileNameForClass: nm) asFilename baseName, ''''. |
|
1879 |
]. |
|
1880 |
]. |
|
1881 |
||
9906
9efd21c9b1b6
hasExtensions is a bad name (conflicts with the other query)
Claus Gittinger <cg@exept.de>
parents:
9904
diff
changeset
|
1882 |
self hasExtensionMethods ifTrue:[ |
9850 | 1883 |
s nextPutLine:' ''extensions.st'''. |
1884 |
]. |
|
1885 |
||
1886 |
s nextPutAll:' |
|
9911
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
1887 |
). |
9850 | 1888 |
|
1889 |
"/ see if there is a classLibrary |
|
9911
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
1890 |
(Smalltalk fileInClassLibrary:''' , (self libraryName) , ''') ifTrue:[ |
9850 | 1891 |
|handle loaded| |
1892 |
||
1893 |
handle := ObjectFileLoader loadedObjectHandles |
|
1894 |
detect:[:h | h package = ''' , self package , '''] ifNone:nil. |
|
1895 |
handle ifNotNil:[ |
|
1896 |
loaded := Set new:(handle classes size). |
|
10080 | 1897 |
handle classes do:[:c| c isMeta ifFalse:[loaded add:c classBaseFilename]]. |
9911
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
1898 |
files := files \ loaded. |
9850 | 1899 |
]. |
1900 |
]. |
|
1901 |
||
1902 |
"/ load files which are not in the classLibrary (all if there is none) |
|
9911
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
1903 |
files notEmpty ifTrue:[ |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
1904 |
'''' infoPrintCR. |
9850 | 1905 |
files do:[:f | |
1906 |
''.'' infoPrint. |
|
1907 |
f asFilename exists ifTrue:[ |
|
1908 |
Smalltalk fileIn:f. |
|
1909 |
] ifFalse:[ |
|
1910 |
Smalltalk fileIn:(''source/'' , f) |
|
1911 |
] |
|
1912 |
]. |
|
1913 |
'' '' infoPrintCR. |
|
1914 |
]. |
|
9911
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
1915 |
''done (' , self package ,').'' infoPrintCR. |
9850 | 1916 |
'. |
1917 |
]. |
|
1918 |
||
1919 |
"Created: / 14-09-2006 / 14:21:31 / cg" |
|
10080 | 1920 |
"Modified: / 12-10-2006 / 15:55:00 / cg" |
9850 | 1921 |
! |
1922 |
||
9536 | 1923 |
generate_make_dot_proto |
1924 |
||
9733 | 1925 |
^ (self |
1926 |
replaceMappings: self make_dot_proto_mappings |
|
1927 |
in: self make_dot_proto) asStringCollection withTabs asString |
|
9536 | 1928 |
|
9733 | 1929 |
" |
1930 |
stx:libbasic2 generate_make_dot_proto |
|
1931 |
" |
|
9536 | 1932 |
|
1933 |
"Modified: / 09-08-2006 / 11:31:01 / fm" |
|
1934 |
! |
|
1935 |
||
1936 |
generate_make_dot_spec |
|
9733 | 1937 |
^ (self |
1938 |
replaceMappings: self make_dot_spec_mappings |
|
1939 |
in: self make_dot_spec) asStringCollection withTabs asString |
|
9536 | 1940 |
|
9733 | 1941 |
" |
1942 |
DapasXProject generate_make_dot_spec |
|
1943 |
DapasX_Datenbasis generate_make_dot_spec |
|
1944 |
bosch_dapasx_kernel_Definition generate_make_dot_spec |
|
1945 |
" |
|
9536 | 1946 |
|
1947 |
"Modified: / 09-08-2006 / 11:31:09 / fm" |
|
1948 |
! |
|
1949 |
||
1950 |
generate_modules_dot_stx |
|
1951 |
||
1952 |
^self replaceMappings: self modules_dot_stx_mappings |
|
1953 |
in: self modules_dot_stx |
|
1954 |
||
1955 |
" |
|
1956 |
bosch_dapasx_application generate_modules_dot_stx |
|
1957 |
||
1958 |
" |
|
1959 |
||
1960 |
"Modified: / 09-08-2006 / 11:31:09 / fm" |
|
1961 |
"Modified: / 11-08-2006 / 14:01:56 / cg" |
|
1962 |
! |
|
1963 |
||
1964 |
generate_nt_dot_def |
|
1965 |
||
1966 |
^self replaceMappings: self nt_dot_def_mappings |
|
1967 |
in: self nt_dot_def |
|
1968 |
||
1969 |
" |
|
1970 |
DapasXProject generate_nt_dot_def |
|
1971 |
DapasX_Datenbasis generate_nt_dot_def |
|
1972 |
||
1973 |
" |
|
1974 |
||
1975 |
"Modified: / 09-08-2006 / 11:31:21 / fm" |
|
1976 |
! |
|
1977 |
||
1978 |
generate_nt_dot_mak |
|
9733 | 1979 |
^ (self |
1980 |
replaceMappings: self nt_dot_mak_mappings |
|
1981 |
in: self nt_dot_mak) asStringCollection withTabs asString |
|
9536 | 1982 |
|
9733 | 1983 |
" |
1984 |
DapasXProject generate_nt_dot_mak |
|
1985 |
DapasX_Datenbasis generate_nt_dot_mak |
|
1986 |
" |
|
9536 | 1987 |
|
1988 |
"Modified: / 09-08-2006 / 11:46:14 / fm" |
|
1989 |
! |
|
1990 |
||
1991 |
generate_packageName_dot_rc |
|
1992 |
||
1993 |
^self replaceMappings: self packageName_dot_rc_mappings |
|
1994 |
in: self packageName_dot_rc |
|
1995 |
||
1996 |
" |
|
1997 |
bosch_dapasx_datenbasis generate_packageName_dot_rc |
|
1998 |
bosch_dapasx_hw_schnittstellen generate_packageName_dot_rc |
|
9575 | 1999 |
stx_libbasic3 generate_packageName_dot_rc |
9618 | 2000 |
stx_libwidg3 generate_packageName_dot_rc |
2001 |
stx_libwidg3 productVersion |
|
9536 | 2002 |
|
2003 |
" |
|
2004 |
||
2005 |
"Modified: / 09-08-2006 / 11:31:09 / fm" |
|
9618 | 2006 |
"Modified: / 21-08-2006 / 19:33:21 / cg" |
9831 | 2007 |
! |
2008 |
||
9898 | 2009 |
nsiFilename |
2010 |
^ self packageName,'.nsi'. |
|
2011 |
||
2012 |
"Created: / 14-09-2006 / 21:03:41 / cg" |
|
2013 |
! |
|
2014 |
||
9852 | 2015 |
protectedFileNames |
2016 |
"names of files which should NOT be generated |
|
2017 |
- redefine this to protect a hand-written Make.proto" |
|
2018 |
||
2019 |
^ #() |
|
2020 |
||
2021 |
"Created: / 14-09-2006 / 14:38:40 / cg" |
|
2022 |
! |
|
2023 |
||
9831 | 2024 |
rcFilename |
2025 |
^ self packageName,'.rc'. |
|
2026 |
||
2027 |
"Created: / 07-09-2006 / 17:07:00 / cg" |
|
9536 | 2028 |
! ! |
2029 |
||
9569 | 2030 |
!ProjectDefinition class methodsFor:'file templates'! |
9536 | 2031 |
|
9575 | 2032 |
bmake_dot_mak |
2033 |
"the template code for the bmake.bat file" |
|
2034 |
||
2035 |
^ |
|
9888 | 2036 |
'%(SUBPROJECT_BMAKE_CALLS) |
2037 |
make.exe -N -f nt.mak %%1 %%2 |
|
9575 | 2038 |
' |
2039 |
||
2040 |
"Created: / 17-08-2006 / 20:04:14 / cg" |
|
9888 | 2041 |
"Modified: / 14-09-2006 / 19:46:40 / cg" |
9575 | 2042 |
! |
2043 |
||
9962
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2044 |
classLine_libInit_dot_cc |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2045 |
|
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2046 |
^'_%(CLASS)_Init(pass,__pRT__,snd);' |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2047 |
|
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2048 |
"Created: / 08-08-2006 / 12:51:44 / fm" |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2049 |
"Modified: / 08-08-2006 / 15:46:05 / fm" |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2050 |
! |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2051 |
|
9817 | 2052 |
make_dot_spec |
2053 |
||
2054 |
^ |
|
2055 |
'# $','Header','$ |
|
2056 |
# |
|
2057 |
# DO NOT EDIT |
|
2058 |
# automagically generated from the projectDefinition: ',self name,'. |
|
2059 |
# |
|
2060 |
# Warning: once you modify this file, do not rerun |
|
2061 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
2062 |
# |
|
2063 |
# This file contains specifications which are common to all platforms. |
|
2064 |
# |
|
2065 |
||
2066 |
# Do NOT CHANGE THESE DEFINITIONS |
|
2067 |
# (otherwise, ST/X will have a hard time to find out the packages location from its packageID, |
|
2068 |
# to find the source code of a class and to find the library for a package) |
|
2069 |
MODULE=%(MODULE) |
|
2070 |
MODULE_DIR=%(MODULE_DIRECTORY) |
|
2071 |
PACKAGE=$(MODULE):$(MODULE_DIR) |
|
2072 |
||
2073 |
||
2074 |
# Argument(s) to the stc compiler (stc --usage). |
|
2075 |
# -H. : create header files locally |
|
2076 |
# (if removed, they will be created as common |
|
2077 |
# -Pxxx : defines the package |
|
2078 |
# -Zxxx : a prefix for variables within the classLib |
|
2079 |
# -Dxxx : defines passed to to CC for inline C-code |
|
2080 |
# -Ixxx : include path passed to CC for inline C-code |
|
2081 |
# +optspace : optimized for space |
|
2082 |
# +optspace2 : optimized more for space |
|
2083 |
# +optspace3 : optimized even more for space |
|
2084 |
# +optinline : generate inline code for some ST constructs |
|
2085 |
# +inlineNew : additionally inline new |
|
2086 |
# +inlineMath : additionally inline some floatPnt math stuff |
|
2087 |
# |
|
2088 |
# ********** OPTIONAL: MODIFY the next line(s) *** |
|
2089 |
# STCLOCALOPTIMIZATIONS=+optinline +inlineNew |
|
2090 |
# STCLOCALOPTIMIZATIONS=+optspace3 |
|
2091 |
STCLOCALOPTIMIZATIONS=%(STCOPTIMIZATIONOPTIONS) |
|
2092 |
||
2093 |
||
2094 |
# Argument(s) to the stc compiler (stc --usage). |
|
2095 |
# -warn : no warnings |
|
2096 |
# -warnNonStandard : no warnings about ST/X extensions |
|
2097 |
# -warnEOLComments : no warnings about EOL comment extension |
|
2098 |
# -warnPrivacy : no warnings about privateClass extension |
|
2099 |
# |
|
2100 |
# ********** OPTIONAL: MODIFY the next line(s) *** |
|
2101 |
# STCWARNINGS=-warn |
|
2102 |
# STCWARNINGS=-warnNonStandard |
|
2103 |
# STCWARNINGS=-warnEOLComments |
|
2104 |
STCWARNINGS=%(STCWARNINGOPTIONS) |
|
2105 |
||
2106 |
%(OBJECTS) |
|
2107 |
' |
|
2108 |
||
2109 |
"Created: / 08-08-2006 / 19:31:29 / fm" |
|
2110 |
"Modified: / 09-08-2006 / 15:10:57 / fm" |
|
2111 |
"Modified: / 30-08-2006 / 19:07:26 / cg" |
|
2112 |
! |
|
2113 |
||
2114 |
objectLine_make_dot_spec |
|
2115 |
||
2116 |
^' $(OUTDIR)%(CLASSFILE).$(O) \' |
|
2117 |
||
2118 |
"Created: / 08-08-2006 / 20:16:46 / fm" |
|
2119 |
"Modified: / 23-08-2006 / 11:11:38 / cg" |
|
2120 |
! |
|
2121 |
||
9627 | 2122 |
packageName_dot_rc |
2123 |
"the template code for the <libName>.rc file" |
|
2124 |
||
2125 |
^ |
|
2126 |
'// |
|
2127 |
// DO NOT EDIT |
|
2128 |
// automagically generated from the projectDefinition: ',self name,'. |
|
2129 |
// |
|
2130 |
VS_VERSION_INFO VERSIONINFO |
|
2131 |
FILEVERSION %(FILE_VERSION_COMMASEPARATED) |
|
2132 |
PRODUCTVERSION %(PRODUCT_VERSION_COMMASEPARATED) |
|
2133 |
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE |
|
2134 |
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD |
|
2135 |
FILEOS VOS_NT_WINDOWS32 |
|
2136 |
FILETYPE %(FILETYPE) |
|
2137 |
FILESUBTYPE VS_USER_DEFINED |
|
2138 |
||
2139 |
BEGIN |
|
2140 |
BLOCK "StringFileInfo" |
|
2141 |
BEGIN |
|
2142 |
BLOCK "040904E4" |
|
2143 |
BEGIN |
|
2144 |
VALUE "CompanyName", "%(COMPANY_NAME)\0" |
|
2145 |
VALUE "FileDescription", "%(FILE_DESCRIPTION)\0" |
|
2146 |
VALUE "FileVersion", "%(FILE_VERSION)\0" |
|
2147 |
VALUE "InternalName", "%(INTERNAL_NAME)\0" |
|
9630 | 2148 |
%(LEGAL_COPYRIGHT_LINE) |
9627 | 2149 |
VALUE "ProductName", "%(PRODUCT_NAME)\0" |
2150 |
VALUE "ProductVersion", "%(PRODUCT_VERSION)\0" |
|
2151 |
VALUE "ProductDate", "%(PRODUCT_DATE)\0" |
|
2152 |
END |
|
2153 |
||
2154 |
END |
|
2155 |
||
2156 |
BLOCK "VarFileInfo" |
|
2157 |
BEGIN // Language | Translation |
|
2158 |
VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual |
|
2159 |
END |
|
2160 |
END |
|
2161 |
' |
|
2162 |
" |
|
2163 |
stx_libbasic3 packageName_dot_rc |
|
2164 |
stx_libbasic3 generate_packageName_dot_rc |
|
2165 |
" |
|
2166 |
||
2167 |
"Created: / 08-08-2006 / 19:31:29 / fm" |
|
2168 |
"Modified: / 09-08-2006 / 15:10:57 / fm" |
|
9630 | 2169 |
"Modified: / 23-08-2006 / 01:32:23 / cg" |
9536 | 2170 |
! ! |
2171 |
||
9569 | 2172 |
!ProjectDefinition class methodsFor:'loading'! |
9551 | 2173 |
|
9911
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2174 |
load |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2175 |
"load the project" |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2176 |
|
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2177 |
"try to load a binary class library first. |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2178 |
If this fails, classes are filed in, as well as classes not present |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2179 |
in the class library" |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2180 |
|
10212 | 2181 |
thisContext isRecursive ifTrue:[^ self]. |
2182 |
||
10199 | 2183 |
(Object infoPrinting and:[Smalltalk silentLoading ~~ true]) ifTrue:[ |
2184 |
"/ thisContext fullPrintAll. |
|
2185 |
Transcript showCR:'loading ', self name. |
|
2186 |
]. |
|
2187 |
||
10187 | 2188 |
Class withoutUpdatingChangesDo:[ |
2189 |
self loadPreRequisites:true. |
|
2190 |
self loadClassLibrary. |
|
2191 |
self loadExtensions. |
|
2192 |
self loadAllClasses. |
|
2193 |
self loadSubProjects:true |
|
2194 |
] |
|
9579 | 2195 |
|
9627 | 2196 |
"Created: / 17-08-2006 / 01:01:41 / cg" |
10187 | 2197 |
"Modified: / 21-11-2006 / 15:07:09 / cg" |
9579 | 2198 |
! |
2199 |
||
9627 | 2200 |
loadAllClasses |
10005 | 2201 |
"load (fileIn) classes that should be present - |
2202 |
install as autoloaded classes marked to be autoloaded" |
|
2203 |
||
10149 | 2204 |
|classNamesToLoad classNamesToAutoload hasClassesToLoad loadedClasses platformName |
2205 |
classesWhichFailedToLoad| |
|
10005 | 2206 |
|
2207 |
platformName := OperatingSystem platformName. |
|
2208 |
classNamesToLoad := OrderedCollection new. |
|
2209 |
classNamesToAutoload := OrderedCollection new. |
|
2210 |
||
10007
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2211 |
self classNamesAndAttributesDo:[:eachClassname :eachAttributes | |eachClassnameSym isAutoload cls| |
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2212 |
eachClassnameSym := eachClassname asSymbol. |
10005 | 2213 |
isAutoload := eachAttributes includes:#autoload. |
2214 |
||
10007
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2215 |
"no need to (re-)load an existing class, but install if should be loaded" |
10198 | 2216 |
cls := Smalltalk loadedClassNamed:eachClassnameSym. |
2217 |
(cls isNil or:[cls isLoaded not and:[isAutoload not]]) ifTrue:[ |
|
10007
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2218 |
(eachAttributes isEmpty |
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2219 |
or:[(eachAttributes size == 1 and:[isAutoload]) |
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2220 |
or:[eachAttributes includes:platformName]]) ifTrue:[ |
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2221 |
hasClassesToLoad := true. |
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2222 |
isAutoload ifTrue:[ |
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2223 |
classNamesToAutoload add:eachClassnameSym. |
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2224 |
] ifFalse:[ |
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2225 |
classNamesToLoad add:eachClassnameSym. |
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2226 |
]. |
10005 | 2227 |
]. |
10007
93f73465ef11
Fix class loading (if class is already present)
Stefan Vogel <sv@exept.de>
parents:
10005
diff
changeset
|
2228 |
]. |
10005 | 2229 |
]. |
2230 |
||
2231 |
hasClassesToLoad ifTrue:[ |
|
2232 |
loadedClasses := OrderedCollection new. |
|
2233 |
||
2234 |
"we need the abbreviations, since sometimes there is no 1-to-1 mapping |
|
2235 |
of class name to file name" |
|
2236 |
||
2237 |
Smalltalk recursiveReadAllAbbreviationsFrom:self packageDirectory maxLevels:1. |
|
2238 |
||
2239 |
"install autoloaded classes first, |
|
2240 |
some others may depend on them" |
|
2241 |
||
2242 |
classNamesToAutoload do:[:eachClassName | |
|
2243 |
Smalltalk |
|
2244 |
installAutoloadedClassNamed:eachClassName |
|
2245 |
category:#autoloaded "FIXME" |
|
2246 |
package:self package |
|
2247 |
revision:nil |
|
2248 |
numClassInstVars:0. "FIXME" |
|
2249 |
]. |
|
2250 |
||
10149 | 2251 |
classesWhichFailedToLoad := OrderedCollection new. |
10005 | 2252 |
classNamesToLoad do:[:eachClassName | |
9627 | 2253 |
|cls| |
2254 |
||
10149 | 2255 |
Error handle:[:ex | |
2256 |
classesWhichFailedToLoad add:eachClassName. |
|
2257 |
Smalltalk |
|
2258 |
installAutoloadedClassNamed:eachClassName |
|
2259 |
category:#autoloaded "FIXME" |
|
2260 |
package:self package |
|
2261 |
revision:nil |
|
2262 |
numClassInstVars:0. "FIXME" |
|
2263 |
] do:[ |
|
2264 |
cls := Smalltalk |
|
2265 |
fileInClass:eachClassName |
|
2266 |
package:self package |
|
2267 |
initialize:false |
|
2268 |
lazy:false |
|
2269 |
silent:false. |
|
2270 |
cls notNil ifTrue:[ |
|
2271 |
loadedClasses add:cls |
|
2272 |
]. |
|
9627 | 2273 |
]. |
2274 |
]. |
|
10149 | 2275 |
classesWhichFailedToLoad do:[:eachClassName | |
2276 |
(Smalltalk at:eachClassName) autoload. |
|
2277 |
]. |
|
2278 |
||
10005 | 2279 |
loadedClasses do:[:eachLoadedClass | |
2280 |
"do not initialize, if initialize method is inherited" |
|
2281 |
(eachLoadedClass theMetaclass implements:#initialize) ifTrue:[ |
|
2282 |
eachLoadedClass initialize |
|
2283 |
]. |
|
9627 | 2284 |
]. |
2285 |
]. |
|
2286 |
||
2287 |
"Created: / 17-08-2006 / 01:01:14 / cg" |
|
10149 | 2288 |
"Modified: / 26-10-2006 / 12:30:01 / cg" |
9551 | 2289 |
! |
2290 |
||
9911
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2291 |
loadClassLibrary |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2292 |
"try to load a binary class library" |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2293 |
|
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2294 |
(Smalltalk fileInClassLibrary:self libraryName inPackage:self package) ifTrue:[ |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2295 |
"/ |handle loaded| |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2296 |
"/ |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2297 |
"/ handle := ObjectFileLoader loadedObjectHandles |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2298 |
"/ detect:[:h | h package = self package] ifNone:nil. |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2299 |
"/ handle ifNotNil:[ |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2300 |
"/ loaded := Set new:(handle classes size). |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2301 |
"/ handle classes do:[:c| c isMeta ifFalse:[loaded add:c classFilename]]. |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2302 |
"/ files := files \ loaded. |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2303 |
"/ ]. |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2304 |
]. |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2305 |
! |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2306 |
|
9627 | 2307 |
loadExtensions |
9911
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2308 |
"load extension methods - do not load if they are already present" |
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2309 |
|
114cf30d0561
Handle (load) binary class libraryies.
Stefan Vogel <sv@exept.de>
parents:
9909
diff
changeset
|
2310 |
self hasAllExtensionsLoaded ifFalse:[ |
9909
a92096c60681
Do not try to load extensions, if there are none
Stefan Vogel <sv@exept.de>
parents:
9908
diff
changeset
|
2311 |
Smalltalk loadExtensionsForPackage:self package. |
a92096c60681
Do not try to load extensions, if there are none
Stefan Vogel <sv@exept.de>
parents:
9908
diff
changeset
|
2312 |
]. |
9627 | 2313 |
|
2314 |
"Created: / 17-08-2006 / 00:21:39 / cg" |
|
2315 |
! |
|
2316 |
||
10146 | 2317 |
loadPackages:aListOfPackages fullLoad:fullLoad |
2318 |
"load some packages (at least the projectDefinitions and their extensions)" |
|
2319 |
||
10187 | 2320 |
Class withoutUpdatingChangesDo:[ |
10146 | 2321 |
aListOfPackages do:[:aPackage | |
2322 |
|def| |
|
2323 |
||
2324 |
def := ProjectDefinition definitionClassForPackage:aPackage. |
|
10187 | 2325 |
def isNil ifTrue:[ |
2326 |
Smalltalk loadPackage:aPackage. |
|
2327 |
] ifFalse:[ |
|
2328 |
def autoload. |
|
2329 |
]. |
|
2330 |
]. |
|
2331 |
||
2332 |
fullLoad ifTrue:[ |
|
2333 |
aListOfPackages do:[:aPackage | |
|
2334 |
|def| |
|
2335 |
||
2336 |
def := ProjectDefinition definitionClassForPackage:aPackage. |
|
2337 |
def notNil ifTrue:[ |
|
2338 |
def isFullyLoaded ifFalse:[ |
|
2339 |
def load. |
|
2340 |
]. |
|
10146 | 2341 |
]. |
2342 |
]. |
|
2343 |
]. |
|
2344 |
]. |
|
2345 |
||
2346 |
"Created: / 25-10-2006 / 17:51:07 / cg" |
|
10187 | 2347 |
"Modified: / 21-11-2006 / 15:06:42 / cg" |
10146 | 2348 |
! |
2349 |
||
10129
6103c9187040
load prerequisites after autoload (for extensions)
Claus Gittinger <cg@exept.de>
parents:
10124
diff
changeset
|
2350 |
loadPreRequisites |
6103c9187040
load prerequisites after autoload (for extensions)
Claus Gittinger <cg@exept.de>
parents:
10124
diff
changeset
|
2351 |
"load other packages (at least the projectDefinitions and their extensions)" |
6103c9187040
load prerequisites after autoload (for extensions)
Claus Gittinger <cg@exept.de>
parents:
10124
diff
changeset
|
2352 |
|
10140 | 2353 |
self loadPreRequisites:false |
2354 |
||
2355 |
"Modified: / 24-10-2006 / 23:48:45 / cg" |
|
2356 |
! |
|
2357 |
||
2358 |
loadPreRequisites:fullLoad |
|
2359 |
"load other packages (at least the projectDefinitions and their extensions)" |
|
2360 |
||
10146 | 2361 |
self loadPackages:(self preRequisites) fullLoad:fullLoad |
2362 |
||
2363 |
"Modified: / 25-10-2006 / 17:51:44 / cg" |
|
2364 |
! |
|
2365 |
||
2366 |
loadSubProjects:fullLoad |
|
2367 |
"load other packages (at least the projectDefinitions and their extensions)" |
|
2368 |
||
2369 |
self loadPackages:(self subProjects) fullLoad:fullLoad |
|
2370 |
||
2371 |
"Modified: / 25-10-2006 / 17:51:58 / cg" |
|
10129
6103c9187040
load prerequisites after autoload (for extensions)
Claus Gittinger <cg@exept.de>
parents:
10124
diff
changeset
|
2372 |
! |
6103c9187040
load prerequisites after autoload (for extensions)
Claus Gittinger <cg@exept.de>
parents:
10124
diff
changeset
|
2373 |
|
9627 | 2374 |
postAutoload |
10200
0d96fe352bd5
Disable the #postAutoload action.
Stefan Vogel <sv@exept.de>
parents:
10199
diff
changeset
|
2375 |
"why should we do this? |
0d96fe352bd5
Disable the #postAutoload action.
Stefan Vogel <sv@exept.de>
parents:
10199
diff
changeset
|
2376 |
we want to load the definition here - |
0d96fe352bd5
Disable the #postAutoload action.
Stefan Vogel <sv@exept.de>
parents:
10199
diff
changeset
|
2377 |
send #load to load the project!! (SV)" |
0d96fe352bd5
Disable the #postAutoload action.
Stefan Vogel <sv@exept.de>
parents:
10199
diff
changeset
|
2378 |
|
0d96fe352bd5
Disable the #postAutoload action.
Stefan Vogel <sv@exept.de>
parents:
10199
diff
changeset
|
2379 |
"/ self hasExtensionMethods ifTrue:[ |
0d96fe352bd5
Disable the #postAutoload action.
Stefan Vogel <sv@exept.de>
parents:
10199
diff
changeset
|
2380 |
"/ self loadExtensions |
0d96fe352bd5
Disable the #postAutoload action.
Stefan Vogel <sv@exept.de>
parents:
10199
diff
changeset
|
2381 |
"/ ]. |
0d96fe352bd5
Disable the #postAutoload action.
Stefan Vogel <sv@exept.de>
parents:
10199
diff
changeset
|
2382 |
"/ self loadPreRequisites:false. |
9627 | 2383 |
|
2384 |
"Created: / 17-08-2006 / 00:21:29 / cg" |
|
10140 | 2385 |
"Modified: / 24-10-2006 / 23:48:19 / cg" |
9551 | 2386 |
! ! |
2387 |
||
9569 | 2388 |
!ProjectDefinition class methodsFor:'mappings'! |
9536 | 2389 |
|
9627 | 2390 |
bc_dot_def_mappings |
2391 |
^ (Dictionary new) |
|
9887 | 2392 |
at:'DESCRIPTION' |
9627 | 2393 |
put:[ |
2394 |
|d| |
|
2395 |
||
2396 |
d := self description. |
|
2397 |
(d isEmptyOrNil ifTrue:[ self defaultDescription ] ifFalse:[ d ]) storeString. |
|
2398 |
]; |
|
2399 |
yourself |
|
2400 |
||
2401 |
"Created: / 09-08-2006 / 11:17:59 / fm" |
|
9887 | 2402 |
"Modified: / 14-09-2006 / 18:51:17 / cg" |
9536 | 2403 |
! |
2404 |
||
9627 | 2405 |
bmake_dot_mak_mappings |
2406 |
^ (Dictionary new) |
|
9887 | 2407 |
at:'SUBPROJECT_BMAKE_CALLS' put:(self subProjectBmakeCalls); |
9627 | 2408 |
yourself |
2409 |
||
2410 |
"Created: / 17-08-2006 / 21:41:56 / cg" |
|
9887 | 2411 |
"Modified: / 14-09-2006 / 18:55:33 / cg" |
9575 | 2412 |
! |
2413 |
||
9962
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2414 |
classLine_mappings: aClassName |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2415 |
|
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2416 |
^Dictionary new |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2417 |
at: 'CLASS' put: ( self st2c:aClassName ); |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2418 |
yourself |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2419 |
|
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2420 |
"Modified: / 09-08-2006 / 18:27:07 / fm" |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2421 |
"Created: / 19-09-2006 / 22:47:43 / cg" |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2422 |
! |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2423 |
|
9627 | 2424 |
make_dot_spec_mappings |
2425 |
^ Dictionary new |
|
9887 | 2426 |
at: 'TAB' put: ( Character tab asString ); |
2427 |
at: 'MODULE' put: ( self module ); |
|
2428 |
at: 'MODULE_DIRECTORY' put: ( self moduleDirectory ); |
|
2429 |
at: 'STCWARNINGOPTIONS' put: (self stcWarningOptions); |
|
2430 |
at: 'STCOPTIMIZATIONOPTIONS' put: (self stcOptimizationOptions); |
|
2431 |
at: 'OBJECTS' put: [self generateObjects_make_dot_spec]; |
|
9627 | 2432 |
yourself |
2433 |
||
2434 |
"Created: / 18-08-2006 / 11:44:23 / cg" |
|
9887 | 2435 |
"Modified: / 14-09-2006 / 18:51:24 / cg" |
9575 | 2436 |
! |
2437 |
||
9627 | 2438 |
nt_dot_mak_mappings |
2439 |
|d| |
|
2440 |
||
2441 |
d := Dictionary new. |
|
2442 |
d |
|
9887 | 2443 |
at: 'TAB' put: ( Character tab asString ); |
2444 |
at: 'TOP' put: ( self pathToTop_win32 ); |
|
2445 |
at: 'MODULE' put: ( self module ); |
|
9891 | 2446 |
at: 'MODULE_DIRECTORY' put: ( self moduleDirectory ); |
2447 |
at: 'MODULE_PATH' put: ( self moduleDirectory_win32 ). |
|
9627 | 2448 |
^ d |
2449 |
||
2450 |
"Created: / 18-08-2006 / 11:43:39 / cg" |
|
9891 | 2451 |
"Modified: / 14-09-2006 / 20:20:19 / cg" |
9575 | 2452 |
! |
2453 |
||
9817 | 2454 |
objectLine_make_dot_spec_mappings: aClassName |
10103
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2455 |
|cls fn| |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2456 |
|
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2457 |
(cls := Smalltalk classNamed:aClassName) isNil ifTrue:[ |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2458 |
fn := Smalltalk fileNameForClass:aClassName |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2459 |
] ifFalse:[ |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2460 |
fn := cls classFilename asFilename withoutSuffix baseName |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2461 |
]. |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2462 |
|
9817 | 2463 |
^ Dictionary new |
10103
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2464 |
at: 'CLASSFILE' put: fn; |
9817 | 2465 |
yourself |
2466 |
||
2467 |
"Created: / 08-08-2006 / 20:17:28 / fm" |
|
2468 |
"Modified: / 09-08-2006 / 18:26:52 / fm" |
|
10103
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2469 |
"Modified: / 20-10-2006 / 16:22:58 / cg" |
9817 | 2470 |
! |
2471 |
||
9627 | 2472 |
packageName_dot_rc_mappings |
9630 | 2473 |
|d s| |
9627 | 2474 |
|
9630 | 2475 |
d := Dictionary new. |
2476 |
d |
|
9887 | 2477 |
at: 'PRODUCT_NAME' put: (self productName); |
2478 |
at: 'PRODUCT_VERSION' put: (self productVersion); |
|
2479 |
at: 'PRODUCT_DATE' put: (self productDate); |
|
2480 |
at: 'FILETYPE' put: ( 'VFT_DLL' ); |
|
2481 |
at: 'FILE_VERSION_COMMASEPARATED' put: (self fileVersionCommaSeparated); |
|
2482 |
at: 'PRODUCT_VERSION_COMMASEPARATED' put: (self productVersionCommaSeparated); |
|
2483 |
||
2484 |
at: 'COMPANY_NAME' put: (self companyName); |
|
2485 |
at: 'FILE_DESCRIPTION' put: (self fileDescription); |
|
2486 |
at: 'FILE_VERSION' put: (self fileVersion); |
|
2487 |
at: 'INTERNAL_NAME' put: (self internalName). |
|
9630 | 2488 |
s := self legalCopyright. |
2489 |
s notNil ifTrue:[ |
|
2490 |
d |
|
9887 | 2491 |
at: 'LEGAL_COPYRIGHT_LINE' put: ' VALUE "LegalCopyright", "',s,'\0"' |
9630 | 2492 |
]. |
9817 | 2493 |
s := self iconFileName. |
2494 |
s notNil ifTrue:[ |
|
2495 |
d |
|
2496 |
at: #'ICONDEFINITION_LINE' put: 'IDR_MAINFRAME ICON DISCARDABLE "',s,'"' |
|
2497 |
]. |
|
2498 |
||
9630 | 2499 |
^ d |
9627 | 2500 |
|
2501 |
"Created: / 09-08-2006 / 11:21:21 / fm" |
|
9887 | 2502 |
"Modified: / 14-09-2006 / 18:52:37 / cg" |
9536 | 2503 |
! |
2504 |
||
9627 | 2505 |
replaceMappings: mappings in: fileTemplate |
9733 | 2506 |
"Replaces the defined variable mappings found in a file template with the corresponding information" |
9627 | 2507 |
|
9733 | 2508 |
^ fileTemplate bindWithArguments:mappings. |
9627 | 2509 |
|
9733 | 2510 |
" |
2511 |
self replaceMappings: (self nt_dot_def_mappingsFor: self) in: self nt_dot_def |
|
2512 |
" |
|
9627 | 2513 |
|
2514 |
"Created: / 08-08-2006 / 11:44:27 / fm" |
|
2515 |
"Modified: / 08-08-2006 / 12:46:13 / fm" |
|
9962
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2516 |
! |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2517 |
|
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2518 |
st2c:aString |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2519 |
^ (aString asString |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2520 |
copyReplaceString:'_' withString:('_',($_ codePoint printStringRadix:8))) |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2521 |
replaceAny:':' with:$_ |
9536 | 2522 |
! ! |
2523 |
||
9817 | 2524 |
!ProjectDefinition class methodsFor:'mappings support'! |
2525 |
||
10005 | 2526 |
generateClassLines:classLineTemplate |
2527 |
^ String |
|
2528 |
streamContents:[:s | |
|
2529 |
|classNames classesLoaded classNamesUnloaded classNamesSorted putLineForClassName| |
|
2530 |
||
2531 |
putLineForClassName := [:className | |
|
2532 |
|newClassLine mappings| |
|
2533 |
||
2534 |
mappings := self classLine_mappings:className. |
|
2535 |
newClassLine := self replaceMappings:mappings in:classLineTemplate. |
|
2536 |
s nextPutLine:newClassLine |
|
2537 |
]. |
|
2538 |
classNames := self compiled_classNames_common. |
|
10010 | 2539 |
classesLoaded := classNames collect:[:eachClassName | Smalltalk classNamed:eachClassName] |
2540 |
thenSelect:[:eachClass | eachClass notNil and:[eachClass isLoaded]]. |
|
10005 | 2541 |
classNamesUnloaded := classNames |
2542 |
select:[:nm | |
|
2543 |
|cls| |
|
2544 |
||
2545 |
cls := Smalltalk classNamed:nm. |
|
2546 |
cls isNil or:[ cls isLoaded not ] |
|
2547 |
]. |
|
10010 | 2548 |
classNamesSorted := (Class classesSortedByLoadOrder:classesLoaded) collect:[:cls | cls name]. |
10005 | 2549 |
classNamesSorted do:putLineForClassName. |
2550 |
classNamesUnloaded do:putLineForClassName. |
|
2551 |
self namesAndAttributesIn:(self additionalClassNamesAndAttributes) |
|
2552 |
do:[:nm :attr | |
|
2553 |
(attr isEmptyOrNil or:[ (attr includes:#autoload) not ]) ifTrue:[ |
|
2554 |
putLineForClassName value:nm. |
|
2555 |
]. |
|
2556 |
]. |
|
10010 | 2557 |
#( ('UNIX' unix) |
2558 |
('WIN32' win32) |
|
2559 |
('VMS' vms) |
|
2560 |
('BEOS' beos) ) |
|
2561 |
pairsDo:[:ifdef :platformName | |
|
10005 | 2562 |
|archClassNames archClassesLoaded| |
2563 |
||
10010 | 2564 |
archClassNames := self compiled_classNamesForPlatform:platformName. |
10005 | 2565 |
archClassNames notEmpty ifTrue:[ |
2566 |
s nextPutLine:'#ifdef ' , ifdef. |
|
2567 |
archClassNames do:[:clsName | |
|
2568 |
putLineForClassName value:clsName |
|
2569 |
]. |
|
2570 |
s nextPutLine:'#endif /* ' , ifdef , ' */'. |
|
2571 |
]. |
|
2572 |
]. |
|
2573 |
] |
|
9962
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2574 |
|
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2575 |
" |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2576 |
bosch_dapasx_datenbasis generateClassLines_libInit_dot_cc |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2577 |
bosch_dapasx_kernel generateClassLines_libInit_dot_cc |
10010 | 2578 |
stx_libbasic3 generateClassLines_libInit_dot_cc |
2579 |
" |
|
2580 |
||
9962
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2581 |
"Modified: / 16-08-2006 / 18:52:10 / User" |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2582 |
"Created: / 19-09-2006 / 22:47:50 / cg" |
9979
e2e247d73233
oops - libInit forgot non-loaded, alien-OS files.
Claus Gittinger <cg@exept.de>
parents:
9972
diff
changeset
|
2583 |
"Modified: / 20-09-2006 / 11:47:25 / cg" |
9962
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2584 |
! |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2585 |
|
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2586 |
generateClassLines_libInit_dot_cc |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2587 |
^ self generateClassLines:(self classLine_libInit_dot_cc) |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2588 |
|
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2589 |
" |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2590 |
bosch_dapasx_datenbasis generateClassLines_libInit_dot_cc |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2591 |
bosch_dapasx_kernel generateClassLines_libInit_dot_cc |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2592 |
stx_libbasic3 generateClassLines_libInit_dot_cc |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2593 |
" |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2594 |
|
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2595 |
"Created: / 09-08-2006 / 11:21:48 / fm" |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2596 |
"Modified: / 16-08-2006 / 18:52:10 / User" |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2597 |
"Modified: / 19-09-2006 / 22:48:14 / cg" |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2598 |
! |
905898cca08c
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9956
diff
changeset
|
2599 |
|
10005 | 2600 |
generateDependencies:whichArchitecture |
2601 |
^ String |
|
2602 |
streamContents:[:s | |
|
10144 | 2603 |
|classNames classesPresent classesLoaded classesSorted classNamesSorted putDependencyForClass |
2604 |
archClassNames archClassesLoaded |
|
2605 |
putSingleClassDependencyEntry putDependencyForExtensions| |
|
10005 | 2606 |
|
2607 |
putSingleClassDependencyEntry := [:cls | |
|
2608 |
|sclsBaseName| |
|
2609 |
||
2610 |
s nextPutAll:' $(INCLUDE_TOP)'. |
|
2611 |
s nextPutAll:(self pathSeparator:whichArchitecture) asString. |
|
2612 |
sclsBaseName := cls classFilename asFilename withoutSuffix baseName. |
|
2613 |
s nextPutAll:(self |
|
2614 |
topRelativePathTo:sclsBaseName |
|
2615 |
inPackage:cls package |
|
2616 |
architecture:whichArchitecture). |
|
2617 |
s nextPutAll:'.$(H)'. |
|
9887 | 2618 |
]. |
10144 | 2619 |
|
10005 | 2620 |
putDependencyForClass := [:cls | |
2621 |
|clsBaseName already| |
|
2622 |
||
2623 |
clsBaseName := cls classFilename asFilename withoutSuffix baseName. |
|
2624 |
s nextPutAll:'$(OUTDIR)'. |
|
2625 |
s nextPutAll:clsBaseName. |
|
2626 |
s nextPutAll:'.$(O)'. |
|
2627 |
s nextPutAll:' '. |
|
2628 |
s nextPutAll:clsBaseName. |
|
2629 |
s nextPutAll:'.$(H)'. |
|
2630 |
s nextPutAll:': '. |
|
2631 |
s nextPutAll:clsBaseName. |
|
2632 |
s nextPutAll:'.st'. |
|
10144 | 2633 |
cls isLoaded ifTrue:[ |
2634 |
already := Set new. |
|
2635 |
cls |
|
2636 |
allSuperclassesDo:[:scls | |
|
2637 |
putSingleClassDependencyEntry value:scls. |
|
2638 |
already add:scls. |
|
2639 |
]. |
|
2640 |
cls |
|
2641 |
privateClassesDo:[:eachPrivateClass | |
|
2642 |
eachPrivateClass |
|
2643 |
allSuperclassesDo:[:scls | |
|
2644 |
|sclsBaseName| |
|
2645 |
||
2646 |
scls ~~ cls ifTrue:[ |
|
2647 |
scls isPrivate ifFalse:[ |
|
2648 |
(already includes:scls) ifFalse:[ |
|
2649 |
putSingleClassDependencyEntry value:scls. |
|
2650 |
already add:scls. |
|
2651 |
]. |
|
10005 | 2652 |
]. |
2653 |
]. |
|
10144 | 2654 |
] |
2655 |
]. |
|
2656 |
]. |
|
2657 |
s nextPutLine:' $(STCHDR)'. |
|
9887 | 2658 |
]. |
10144 | 2659 |
|
10005 | 2660 |
putDependencyForExtensions := [ |
2661 |
|already| |
|
2662 |
||
2663 |
s nextPutAll:'$(OUTDIR)extensions.$(O): extensions.st'. |
|
2664 |
already := Set new. |
|
2665 |
self extensionMethodNames |
|
2666 |
pairWiseDo:[:className :selector | |
|
2667 |
|mthdCls cls| |
|
2668 |
||
2669 |
((mthdCls := Smalltalk classNamed:className) notNil |
|
2670 |
and:[ mthdCls isLoaded ]) |
|
2671 |
ifTrue:[ |
|
2672 |
cls := mthdCls theNonMetaclass. |
|
2673 |
(already includes:cls) ifFalse:[ |
|
2674 |
cls |
|
10063 | 2675 |
withAllSuperclassesDo:[:scls | |
10005 | 2676 |
(already includes:scls) ifFalse:[ |
2677 |
putSingleClassDependencyEntry value:scls. |
|
2678 |
already add:scls. |
|
2679 |
]. |
|
2680 |
]. |
|
2681 |
]. |
|
2682 |
]. |
|
9887 | 2683 |
]. |
10144 | 2684 |
s nextPutLine:' $(STCHDR)'. |
10005 | 2685 |
]. |
10144 | 2686 |
|
10005 | 2687 |
classNames := self compiled_classNames_common. |
10144 | 2688 |
classesPresent := classNames |
10010 | 2689 |
collect:[:className | Smalltalk classNamed:className] |
10144 | 2690 |
thenSelect:[:cls | cls notNil]. |
2691 |
classesLoaded := classesPresent |
|
2692 |
select:[:cls | cls isLoaded]. |
|
10010 | 2693 |
|
10005 | 2694 |
classesSorted := Class classesSortedByLoadOrder:classesLoaded. |
2695 |
classesSorted do:putDependencyForClass. |
|
10144 | 2696 |
(classesPresent select:[:cls | cls isLoaded not]) do:putDependencyForClass. |
2697 |
||
10005 | 2698 |
self namesAndAttributesIn:(self additionalClassNamesAndAttributes) |
2699 |
do:[:className :attr | |
|
2700 |
|cls| |
|
2701 |
||
2702 |
(attr isEmptyOrNil or:[ (attr includes:#autoload) not ]) ifTrue:[ |
|
2703 |
((cls := Smalltalk classNamed:className) notNil and:[ cls isLoaded ]) ifTrue:[ |
|
2704 |
putDependencyForClass value:cls. |
|
2705 |
] |
|
9887 | 2706 |
]. |
2707 |
]. |
|
10005 | 2708 |
archClassNames := self compiled_classNamesForPlatform:whichArchitecture. |
2709 |
archClassesLoaded := archClassNames |
|
10010 | 2710 |
collect:[:className | Smalltalk classNamed:className] |
10005 | 2711 |
thenSelect:[:cls | cls notNil and:[ cls isLoaded ] ]. |
10010 | 2712 |
|
10005 | 2713 |
archClassesLoaded notEmpty ifTrue:[ |
10010 | 2714 |
(Class classesSortedByLoadOrder:archClassesLoaded) do:putDependencyForClass. |
9887 | 2715 |
]. |
10005 | 2716 |
self hasExtensionMethods ifTrue:putDependencyForExtensions. |
2717 |
] |
|
9887 | 2718 |
|
2719 |
" |
|
2720 |
stx_libbasic3 generateDependencies:#unix |
|
10010 | 2721 |
stx_libbasic3 generateDependencies:#win32 |
2722 |
" |
|
2723 |
||
9887 | 2724 |
"Modified: / 16-08-2006 / 18:52:10 / User" |
2725 |
"Created: / 14-09-2006 / 12:38:57 / cg" |
|
10144 | 2726 |
"Modified: / 25-10-2006 / 16:01:13 / cg" |
9887 | 2727 |
! |
2728 |
||
2729 |
generateDependencies_unix |
|
2730 |
^ self generateDependencies:#unix |
|
2731 |
||
2732 |
" |
|
2733 |
stx_libbasic3 generateDependencies:#unix |
|
2734 |
stx_libbasic3 generateDependencies:#win32 |
|
2735 |
" |
|
2736 |
||
2737 |
"Modified: / 14-09-2006 / 13:32:34 / cg" |
|
2738 |
! |
|
2739 |
||
2740 |
generateDependencies_win32 |
|
2741 |
^ self generateDependencies:#win32 |
|
2742 |
||
2743 |
"Created: / 14-09-2006 / 12:39:18 / cg" |
|
2744 |
! |
|
2745 |
||
9956 | 2746 |
generateLocalIncludes_unix |
2747 |
^ String streamContents:[:s | |
|
2748 |
s nextPutAll:(self localIncludes_unix). |
|
2749 |
self searchForProjectsWhichProvideHeaderFiles |
|
2750 |
do:[:includeProject | |
|
2751 |
s nextPutAll:' -I$(INCLUDE_TOP)/',(self topRelativePathToPackage_unix: includeProject) |
|
2752 |
] |
|
2753 |
] |
|
2754 |
||
2755 |
" |
|
2756 |
bosch_dapasx generateLocalIncludes_unix |
|
2757 |
bosch_dapasx_datenbasis generateLocalIncludes_unix |
|
2758 |
stx_libbasic generateLocalIncludes_unix |
|
2759 |
stx_libview generateLocalIncludes_unix |
|
2760 |
stx_libtool2 generateLocalIncludes_unix |
|
2761 |
stx_libui generateLocalIncludes_unix |
|
2762 |
" |
|
2763 |
||
2764 |
"Created: / 09-08-2006 / 16:46:49 / fm" |
|
10251 | 2765 |
"Modified: / 07-12-2006 / 17:47:06 / cg" |
9956 | 2766 |
! |
2767 |
||
9887 | 2768 |
generateLocalIncludes_win32 |
2769 |
^ String streamContents:[:s | |
|
2770 |
s nextPutAll:(self localIncludes_win32). |
|
2771 |
self searchForProjectsWhichProvideHeaderFiles |
|
2772 |
do:[:includeProject | |
|
2773 |
s nextPutAll:' -I$(INCLUDE_TOP)\',(self topRelativePathToPackage_win32: includeProject) |
|
2774 |
] |
|
2775 |
] |
|
2776 |
||
2777 |
" |
|
2778 |
bosch_dapasx_application generateLocalIncludes_win32 |
|
2779 |
bosch_dapasx_datenbasis generateLocalIncludes_win32 |
|
2780 |
stx_libbasic generateLocalIncludes_win32 |
|
2781 |
stx_libview generateLocalIncludes_win32 |
|
2782 |
stx_libtool2 generateLocalIncludes_win32 |
|
2783 |
" |
|
2784 |
||
2785 |
"Created: / 09-08-2006 / 16:46:49 / fm" |
|
10251 | 2786 |
"Modified: / 07-12-2006 / 17:47:10 / cg" |
9887 | 2787 |
! |
2788 |
||
9817 | 2789 |
generateObjects_make_dot_spec |
9883
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
2790 |
|pivateClassesOf sorter classes| |
9817 | 2791 |
|
2792 |
classes := self compiled_classes_common. |
|
2793 |
pivateClassesOf := IdentityDictionary new. |
|
2794 |
classes do:[:each | pivateClassesOf at:each put:(each allPrivateClasses)]. |
|
2795 |
||
9883
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
2796 |
sorter := [:a :b | |
9817 | 2797 |
"/ a must come before b iff: |
2798 |
"/ b is a subclass of a |
|
2799 |
"/ b has a private class which is a subclass of a |
|
2800 |
"/ a is a sharedPool, used by b |
|
2801 |
||
2802 |
|mustComeBefore pivateClassesOfB| |
|
2803 |
||
2804 |
mustComeBefore := false. |
|
2805 |
mustComeBefore := (a isSharedPool and:[(b sharedPools includes: a name)]). |
|
2806 |
mustComeBefore := mustComeBefore or:[b isSubclassOf:a]. |
|
2807 |
mustComeBefore ifFalse:[ |
|
9883
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
2808 |
pivateClassesOfB := pivateClassesOf at:b ifAbsent:[ #() ]. |
9817 | 2809 |
pivateClassesOfB do:[:eachClassInB | |
2810 |
mustComeBefore := mustComeBefore or:[eachClassInB isSubclassOf:a] |
|
2811 |
]. |
|
2812 |
]. |
|
2813 |
mustComeBefore |
|
2814 |
]. |
|
2815 |
||
9883
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
2816 |
classes topologicalSort:sorter. |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
2817 |
|
9817 | 2818 |
^ String streamContents:[:s | |
10103
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2819 |
|putLineForClass putLineForClassName sysDepOrNil| |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2820 |
|
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2821 |
putLineForClassName := |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2822 |
[:eachClassName | |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2823 |
|mappings newObjectLine| |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2824 |
mappings := self objectLine_make_dot_spec_mappings: eachClassName. |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2825 |
newObjectLine := self replaceMappings: mappings in: self objectLine_make_dot_spec. |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2826 |
s nextPutLine:newObjectLine. |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2827 |
]. |
9817 | 2828 |
|
2829 |
putLineForClass := |
|
2830 |
[:eachClass | |
|
10103
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2831 |
putLineForClassName value:(eachClass name) |
9817 | 2832 |
]. |
2833 |
||
2834 |
sysDepOrNil := nil. |
|
2835 |
OperatingSystem knownPlatformNames do:[:platformID | |
|
10103
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2836 |
|define prefix depClasses depClassNames| |
9817 | 2837 |
|
2838 |
define := OperatingSystem platformDefineForPlatformName:platformID. |
|
2839 |
prefix := define copyFrom:('-D' size + 1). |
|
2840 |
depClasses := self compiled_classesForArchitecture:platformID. |
|
2841 |
depClasses notEmpty ifTrue:[ |
|
2842 |
sysDepOrNil := prefix,'_OBJS'. |
|
2843 |
s nextPutLine:sysDepOrNil,'= \'. |
|
10103
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2844 |
|
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2845 |
(depClasses includes:nil) ifTrue:[ |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2846 |
(Dialog confirm:'Dependencies are not in order (some classes are not present).\\Continue anyway ?' withCRs) |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2847 |
ifFalse:[ |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2848 |
AbortSignal raise. |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2849 |
]. |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2850 |
depClassNames := self compiled_classNamesForPlatform:platformID. |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2851 |
depClassNames do:putLineForClassName. |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2852 |
] ifFalse:[ |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2853 |
depClasses topologicalSort:sorter. |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2854 |
depClasses do:putLineForClass. |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2855 |
]. |
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2856 |
|
9817 | 2857 |
s cr. |
2858 |
s cr. |
|
2859 |
] |
|
2860 |
]. |
|
2861 |
||
2862 |
s nextPutLine:'COMMON_OBJS= \'. |
|
2863 |
||
2864 |
classes do:putLineForClass. |
|
2865 |
||
2866 |
self namesAndAttributesIn:(self additionalClassNamesAndAttributes) do: [:nm :attr | |
|
2867 |
(attr isEmptyOrNil or:[(attr includes:#autoload) not]) ifTrue:[ |
|
2868 |
s nextPutLine:(' $(OUTDIR)',(Smalltalk fileNameForClass:nm),'.$(O) \'). |
|
2869 |
]. |
|
2870 |
]. |
|
2871 |
||
9906
9efd21c9b1b6
hasExtensions is a bad name (conflicts with the other query)
Claus Gittinger <cg@exept.de>
parents:
9904
diff
changeset
|
2872 |
self hasExtensionMethods ifTrue:[ |
9850 | 2873 |
s nextPutLine:' $(OUTDIR)extensions.$(O) \'. |
2874 |
]. |
|
9817 | 2875 |
s cr. |
2876 |
] |
|
2877 |
||
2878 |
" |
|
2879 |
bosch_dapasx_hw_schnittstellen_Definition generateObjects_make_dot_spec |
|
2880 |
DapasXProject generateObjects_make_dot_spec |
|
2881 |
stx_libbasic3 generateObjects_make_dot_spec |
|
2882 |
" |
|
2883 |
||
2884 |
"Created: / 09-08-2006 / 11:24:39 / fm" |
|
10103
f63f419f9e27
some care for incomplete information bein present when
Claus Gittinger <cg@exept.de>
parents:
10086
diff
changeset
|
2885 |
"Modified: / 20-10-2006 / 16:18:54 / cg" |
9887 | 2886 |
! |
2887 |
||
10022 | 2888 |
generateSubDirectories |
2889 |
^ String streamContents:[:s | |
|
2890 |
self subProjects |
|
2891 |
do:[:projectID | |
|
2892 |
s space; nextPutAll:projectID |
|
2893 |
] |
|
2894 |
] |
|
2895 |
||
2896 |
" |
|
2897 |
DapasXProject generateSubDirectories |
|
2898 |
DapasX_Datenbasis generateSubDirectories |
|
2899 |
" |
|
2900 |
||
2901 |
"Created: / 09-08-2006 / 11:26:59 / fm" |
|
2902 |
"Modified: / 14-09-2006 / 18:46:18 / cg" |
|
2903 |
! |
|
2904 |
||
2905 |
headerFileOutputArg |
|
2906 |
"/ "all stx stuff goes to the common include directory. |
|
2907 |
"/ Everything else is left locally" |
|
2908 |
"/ |
|
2909 |
"/ ( |
|
2910 |
"/ #( |
|
2911 |
"/ 'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
2912 |
"/ 'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
2913 |
"/ 'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
2914 |
"/ 'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
2915 |
"/ 'stx:libboss' 'stx:libdb' |
|
2916 |
"/ ) |
|
2917 |
"/ includes:self package) ifTrue:[ |
|
2918 |
"/ ^ '-H$(INCLUDE)' |
|
2919 |
"/ ]. |
|
2920 |
^ '-H.' |
|
2921 |
||
2922 |
"Created: / 18-08-2006 / 13:01:52 / cg" |
|
2923 |
"Modified: / 14-09-2006 / 15:38:25 / cg" |
|
2924 |
! |
|
2925 |
||
9887 | 2926 |
subProjectBmakeCalls |
2927 |
^ String streamContents:[:s | |
|
2928 |
self subProjects do:[:packageID | |
|
2929 |
s nextPutLine:'cd ', (self msdosPathToPackage:packageID from:(self package)). |
|
2930 |
s nextPutLine:'call bmake %1 %2'. |
|
2931 |
s nextPutLine:'cd ', (self msdosPathToPackage:(self package) from:packageID). |
|
9888 | 2932 |
s cr. |
9887 | 2933 |
] |
2934 |
] |
|
2935 |
||
2936 |
"Created: / 14-09-2006 / 18:40:09 / cg" |
|
9888 | 2937 |
"Modified: / 14-09-2006 / 19:46:57 / cg" |
9817 | 2938 |
! ! |
2939 |
||
9575 | 2940 |
!ProjectDefinition class methodsFor:'private'! |
9536 | 2941 |
|
9996 | 2942 |
addReferencesToClassesFromGlobalsIn:aSetOfClasses to:usedClassReasons |
2943 |
aSetOfClasses |
|
2944 |
do:[:aClass | |
|
10067
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2945 |
self |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2946 |
addReferencesToClassesFromGlobalsInMethods: |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2947 |
(aClass theNonMetaclass methodDictionary values |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2948 |
select:[:m | m package = aClass package]) |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2949 |
to:usedClassReasons. |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2950 |
|
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2951 |
self |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2952 |
addReferencesToClassesFromGlobalsInMethods: |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2953 |
(aClass theMetaclass methodDictionary values |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2954 |
select:[:m | m package = aClass package]) |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2955 |
to:usedClassReasons. |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2956 |
]. |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2957 |
|
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2958 |
"Modified: / 10-10-2006 / 23:03:45 / cg" |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2959 |
! |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2960 |
|
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2961 |
addReferencesToClassesFromGlobalsInMethods:someMethods to:usedClassReasons |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2962 |
someMethods do:[:method | |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2963 |
method usedGlobals |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2964 |
do:[:global | |usedClass| |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2965 |
usedClass := Smalltalk at: global asSymbol. |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2966 |
(usedClass notNil and:[usedClass isClass and:[usedClass isNameSpace not]]) |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2967 |
ifTrue:[ |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2968 |
(usedClassReasons at: usedClass ifAbsentPut:[Set new]) |
10132 | 2969 |
add: (usedClass name, ' - referenced by ', method mclass name,'>>',method selector) |
9996 | 2970 |
] |
2971 |
] |
|
10067
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2972 |
] |
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2973 |
|
77697f0abbe6
exclude extensionmethods from OTHER packages
Claus Gittinger <cg@exept.de>
parents:
10064
diff
changeset
|
2974 |
"Created: / 10-10-2006 / 23:00:07 / cg" |
9996 | 2975 |
! |
2976 |
||
9627 | 2977 |
classNamesAndAttributesDo: aBlock |
2978 |
self namesAndAttributesIn:(self classNamesAndAttributes) do: aBlock |
|
2979 |
||
2980 |
"Modified: / 22-08-2006 / 18:20:21 / cg" |
|
9607 | 2981 |
! |
2982 |
||
9664 | 2983 |
compile:someCode categorized:category |
2984 |
Class packageQuerySignal |
|
2985 |
answer:self package |
|
2986 |
do:[ |
|
2987 |
self theMetaclass compilerClass |
|
2988 |
compile:someCode |
|
2989 |
forClass:self theMetaclass |
|
2990 |
inCategory:category |
|
2991 |
notifying:nil |
|
2992 |
install:true |
|
2993 |
skipIfSame:true |
|
2994 |
silent:true. |
|
2995 |
] |
|
2996 |
||
2997 |
"Created: / 23-08-2006 / 14:36:53 / cg" |
|
2998 |
! |
|
2999 |
||
9627 | 3000 |
compiled_classes |
10073 | 3001 |
^ self compiled_classNames |
3002 |
collect: |
|
3003 |
[:eachName| |
|
3004 |
|cls| |
|
3005 |
||
3006 |
cls := (Smalltalk at:eachName asSymbol). |
|
3007 |
cls isNil ifTrue:[ |
|
10251 | 3008 |
Transcript showCR:('missing class: ',eachName). |
10073 | 3009 |
]. |
3010 |
cls. |
|
3011 |
] |
|
10251 | 3012 |
thenSelect:[:cls | cls notNil] |
9627 | 3013 |
|
3014 |
"Created: / 09-08-2006 / 16:28:15 / fm" |
|
3015 |
"Modified: / 09-08-2006 / 18:02:28 / fm" |
|
10251 | 3016 |
"Modified: / 07-12-2006 / 17:48:11 / cg" |
9536 | 3017 |
! |
3018 |
||
9627 | 3019 |
compiled_classesDo:aBlock |
3020 |
self compiled_classes do:aBlock. |
|
3021 |
||
3022 |
"Created: / 09-08-2006 / 16:28:15 / fm" |
|
3023 |
"Modified: / 09-08-2006 / 18:02:28 / fm" |
|
3024 |
! |
|
3025 |
||
10005 | 3026 |
compiled_classesForArchitecture:arch |
3027 |
^ (self compiled_classNamesForPlatform:arch) |
|
3028 |
collect:[:eachName | (Smalltalk at:eachName asSymbol) ] |
|
9627 | 3029 |
|
10251 | 3030 |
" |
3031 |
stx_libbasic compiled_classesForArchitecture:#win32 |
|
3032 |
stx_libbasic compiled_classesForArchitecture:#macos |
|
3033 |
stx_libbasic compiled_classesForArchitecture:#unix |
|
3034 |
" |
|
3035 |
||
9627 | 3036 |
"Created: / 09-08-2006 / 16:28:15 / fm" |
3037 |
"Modified: / 09-08-2006 / 18:02:28 / fm" |
|
10251 | 3038 |
"Modified: / 07-12-2006 / 17:43:17 / cg" |
9627 | 3039 |
! |
3040 |
||
3041 |
compiled_classes_common |
|
3042 |
^ self compiled_classNames_common collect:[:eachName| (Smalltalk at:eachName asSymbol)] |
|
3043 |
||
3044 |
"Created: / 09-08-2006 / 16:28:15 / fm" |
|
3045 |
"Modified: / 09-08-2006 / 18:02:28 / fm" |
|
9607 | 3046 |
! |
3047 |
||
9627 | 3048 |
cvsRevision |
3049 |
|rev| |
|
3050 |
||
3051 |
rev := self revision. |
|
3052 |
rev isNil ifTrue:[ |
|
3053 |
"not yet pubplished" |
|
3054 |
^ #( '0' '1' ) |
|
3055 |
]. |
|
3056 |
^ rev asCollectionOfSubstringsSeparatedBy:$. . |
|
3057 |
||
3058 |
" |
|
3059 |
self cvsRevision |
|
3060 |
stx_libbasic3 cvsRevision |
|
3061 |
" |
|
3062 |
||
3063 |
"Created: / 17-08-2006 / 20:19:03 / cg" |
|
9575 | 3064 |
! |
3065 |
||
9627 | 3066 |
inconsistency:message |
3067 |
Dialog warn:message |
|
9536 | 3068 |
|
9627 | 3069 |
" |
3070 |
self searchForNeverCompiledSuperclasses |
|
3071 |
DapasX_Datenbasis searchForNeverCompiledSuperclasses |
|
3072 |
" |
|
3073 |
||
3074 |
"Created: / 09-08-2006 / 16:32:31 / fm" |
|
9536 | 3075 |
! |
3076 |
||
9826
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3077 |
makeOSIncludesWith:fileSeparator from:aString |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3078 |
^ aString copy replaceAny:'/\' with:fileSeparator |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3079 |
|
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3080 |
" |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3081 |
self makeOSIncludesWith:$/ from:'-I$(TOP)/foo/bar' |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3082 |
self makeOSIncludesWith:$\ from:'-I$(TOP)/foo/bar' |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3083 |
" |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3084 |
|
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3085 |
"Created: / 06-09-2006 / 18:17:03 / cg" |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3086 |
! |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3087 |
|
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3088 |
makeUnixIncludes:aString |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3089 |
^ self makeOSIncludesWith:$/ from:aString |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3090 |
|
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3091 |
"Created: / 06-09-2006 / 18:16:19 / cg" |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3092 |
! |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3093 |
|
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3094 |
makeWin32Includes:aString |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3095 |
^ self makeOSIncludesWith:$\ from:aString |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3096 |
|
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3097 |
"Created: / 06-09-2006 / 18:16:13 / cg" |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3098 |
! |
8d5fe8462720
common localIncludes for all oses
Claus Gittinger <cg@exept.de>
parents:
9825
diff
changeset
|
3099 |
|
9627 | 3100 |
namesAndAttributesIn:aCollection do: aBlock |
3101 |
aCollection do:[:entry | |
|
3102 |
|className attributes| |
|
3103 |
||
3104 |
entry isArray ifFalse:[ |
|
3105 |
className := entry. |
|
3106 |
attributes := #(). |
|
3107 |
] ifTrue:[ |
|
3108 |
className := entry first. |
|
3109 |
attributes := entry copyFrom:2. |
|
3110 |
]. |
|
3111 |
aBlock value: className value: attributes |
|
3112 |
]. |
|
3113 |
||
3114 |
"Created: / 22-08-2006 / 18:20:09 / cg" |
|
9621 | 3115 |
! |
3116 |
||
9627 | 3117 |
searchForClasses |
10010 | 3118 |
"answer all non-private classes that belong to this project. |
10005 | 3119 |
They are sorted in load order" |
3120 |
||
3121 |
^ Class classesSortedByLoadOrder:(self searchForClassesWithProject: self package) |
|
9627 | 3122 |
|
3123 |
" |
|
10010 | 3124 |
stx_libbasic3 searchForClasses |
9627 | 3125 |
" |
3126 |
||
3127 |
"Modified: / 07-08-2006 / 21:56:25 / fm" |
|
3128 |
"Created: / 17-08-2006 / 21:18:30 / cg" |
|
9536 | 3129 |
! |
3130 |
||
9627 | 3131 |
searchForClassesWithProject: aProjectID |
3132 |
||
3133 |
^ Smalltalk allClasses |
|
9829 | 3134 |
select:[:cls | (cls package = aProjectID) ]. |
9627 | 3135 |
|
3136 |
" |
|
3137 |
self searchForClassesWithProject: #'bosch:dapasx' |
|
3138 |
self searchForClassesWithProject: #'bosch:dapasx/datenbasis' |
|
3139 |
self searchForClassesWithProject: #'bosch:dapasx/kernel' |
|
3140 |
" |
|
3141 |
||
3142 |
"Created: / 07-08-2006 / 20:42:39 / fm" |
|
3143 |
"Modified: / 07-08-2006 / 21:56:25 / fm" |
|
3144 |
"Modified: / 16-08-2006 / 18:50:48 / User" |
|
9536 | 3145 |
! |
3146 |
||
9627 | 3147 |
searchForExtensions |
3148 |
^ self searchForExtensionsWithProject:self package |
|
3149 |
||
3150 |
" |
|
3151 |
self searchForExtensions |
|
3152 |
DapasXProject searchForExtensions |
|
3153 |
DapasX_Datenbasis searchForExtensions |
|
10106
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
3154 |
stx_libtool searchForExtensions |
9627 | 3155 |
" |
3156 |
||
3157 |
"Modified: / 09-08-2006 / 13:01:26 / fm" |
|
3158 |
"Created: / 17-08-2006 / 21:17:46 / cg" |
|
10106
c26879b72dfe
extensionlist generator was buggy
Claus Gittinger <cg@exept.de>
parents:
10104
diff
changeset
|
3159 |
"Modified: / 23-10-2006 / 11:03:07 / cg" |
9575 | 3160 |
! |
3161 |
||
9627 | 3162 |
searchForExtensionsWithProject:aProjectID |
3163 |
"search for any class which has extensions from aProjectID. |
|
10086
024ea420d1a6
extension method stuff refactored
Claus Gittinger <cg@exept.de>
parents:
10080
diff
changeset
|
3164 |
Return the extension-methods sorted by classname-selector" |
9627 | 3165 |
|
3166 |
|methods| |
|
3167 |
||
9904 | 3168 |
methods := OrderedCollection new. |
9627 | 3169 |
Smalltalk allClassesDo:[:eachClass | |
10086
024ea420d1a6
extension method stuff refactored
Claus Gittinger <cg@exept.de>
parents:
10080
diff
changeset
|
3170 |
methods addAll:(eachClass extensionsFrom:aProjectID). |
9627 | 3171 |
]. |
9908
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3172 |
methods |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3173 |
sort:[:m1 :m2 | |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3174 |
|c1 c2| |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3175 |
|
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3176 |
c1 := m1 mclass. |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3177 |
c2 := m2 mclass. |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3178 |
c1 == c2 ifTrue:[ |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3179 |
m1 selector < m2 selector |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3180 |
] ifFalse:[ |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3181 |
(c2 isMeta and:[c1 isMeta not]) ifTrue:[ |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3182 |
true |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3183 |
] ifFalse:[ |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3184 |
(c1 isMeta and:[c2 isMeta not]) ifTrue:[ |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3185 |
false |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3186 |
] ifFalse:[ |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3187 |
c1 name < c2 name |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3188 |
"/ (c2 isSubclassOf:c1) ifTrue:[ |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3189 |
"/ true |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3190 |
"/ ] ifFalse:[ |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3191 |
"/ (c1 isSubclassOf:c2) ifTrue:[ |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3192 |
"/ false |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3193 |
"/ ] ifFalse:[ |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3194 |
"/ "/ leave as is |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3195 |
"/ true |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3196 |
"/ ]. |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3197 |
"/ ]. |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3198 |
]. |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3199 |
]. |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3200 |
]. |
eede5b535b1e
extensions sorted by name (to avoid confusing cvs-diff)
Claus Gittinger <cg@exept.de>
parents:
9906
diff
changeset
|
3201 |
]. |
9627 | 3202 |
^ methods |
3203 |
||
3204 |
" |
|
3205 |
self searchForExtensionsWithProject:#'bosch:dapasx' |
|
3206 |
self searchForExtensionsWithProject:#'cg:oyster' |
|
10086
024ea420d1a6
extension method stuff refactored
Claus Gittinger <cg@exept.de>
parents:
10080
diff
changeset
|
3207 |
self searchForExtensionsWithProject:#'stx:libboss' |
9627 | 3208 |
" |
3209 |
||
3210 |
"Created: / 17-08-2006 / 21:19:04 / cg" |
|
10086
024ea420d1a6
extension method stuff refactored
Claus Gittinger <cg@exept.de>
parents:
10080
diff
changeset
|
3211 |
"Modified: / 12-10-2006 / 20:45:39 / cg" |
9536 | 3212 |
! |
3213 |
||
9983 | 3214 |
searchForPreRequisites |
10132 | 3215 |
"answer a Dictionary where the keys are the prerequisite package for this package |
3216 |
and the values are a Set of reasons, why each package is required" |
|
3217 |
||
3218 |
|requiredClasses requiredPackageReasons usedClassesWithReasons ignoredPackages| |
|
3219 |
||
3220 |
usedClassesWithReasons := Dictionary new. |
|
3221 |
||
3222 |
"my classes are required" |
|
3223 |
requiredClasses := (self searchForClassesWithProject:self package) asSet. |
|
3224 |
||
3225 |
"my subproject's classes are required" |
|
3226 |
self subProjects do:[:eachProjectName | |
|
3227 |
requiredClasses addAll: (self searchForClassesWithProject:eachProjectName asSymbol) |
|
9983 | 3228 |
]. |
3229 |
||
10132 | 3230 |
"all superclasses of my classes and my subProject's classes are required" |
3231 |
requiredClasses do:[:cls | |
|
3232 |
cls allSuperclassesDo:[:eachSuperclass | |
|
3233 |
(usedClassesWithReasons at: eachSuperclass ifAbsentPut:[Set new]) |
|
3234 |
add: (eachSuperclass name, ' - superclass of ', cls name). |
|
9983 | 3235 |
] |
3236 |
]. |
|
10132 | 3237 |
|
3238 |
"all classes referenced by my classes or my subproject's classes |
|
3239 |
are required. But: |
|
3240 |
only search for locals refered to by my methods (assuming that superclasses' |
|
3241 |
prerequisites are specified in their package)." |
|
3242 |
||
3243 |
self addReferencesToClassesFromGlobalsIn:requiredClasses to:usedClassesWithReasons. |
|
3244 |
self addReferencesToClassesFromGlobalsInMethods:(self searchForExtensionsWithProject:self package) to:usedClassesWithReasons. |
|
3245 |
||
3246 |
"don't put classes from subProjects into the required list" |
|
3247 |
ignoredPackages := (self siblingsAreSubProjects |
|
3248 |
ifTrue:[ self searchForSiblingProjects ] |
|
3249 |
ifFalse:[ self searchForSubProjects ]) asSet. |
|
3250 |
||
3251 |
ignoredPackages add:self package. |
|
3252 |
ignoredPackages add:Project noProjectID. |
|
3253 |
||
3254 |
"now map classes to packages and collect the reasons" |
|
3255 |
requiredPackageReasons := Dictionary new. |
|
3256 |
usedClassesWithReasons keysAndValuesDo:[:usedClass :reasonsPerClass | |usedClassPackage| |
|
3257 |
usedClassPackage := usedClass package. |
|
3258 |
(ignoredPackages includes:usedClassPackage) ifFalse:[ |
|
3259 |
(requiredPackageReasons at:usedClassPackage ifAbsentPut:[Set new]) |
|
3260 |
addAll:reasonsPerClass. |
|
9983 | 3261 |
]. |
10063 | 3262 |
]. |
9983 | 3263 |
|
10132 | 3264 |
^ requiredPackageReasons |
9983 | 3265 |
|
3266 |
" |
|
3267 |
self searchForPreRequisites |
|
10132 | 3268 |
stx_libbasic3 searchForPreRequisites |
9983 | 3269 |
bosch_dapasx_Application searchForPreRequisites |
10179 | 3270 |
bosch_dapasx_pav_browser searchForPreRequisites |
9983 | 3271 |
" |
3272 |
||
3273 |
"Created: / 07-08-2006 / 20:42:39 / fm" |
|
3274 |
"Modified: / 07-08-2006 / 21:56:25 / fm" |
|
10132 | 3275 |
"Modified: / 20-09-2006 / 17:29:59 / cg" |
9983 | 3276 |
! |
3277 |
||
9627 | 3278 |
searchForProjectsWhichProvideHeaderFiles |
9883
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3279 |
|addPackage myPackageID requiredPackages| |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3280 |
|
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3281 |
myPackageID := self package. |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3282 |
requiredPackages := Set new. |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3283 |
|
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3284 |
addPackage := |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3285 |
[:package | |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3286 |
(package ~= myPackageID) ifTrue:[ |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3287 |
true "(package startsWith:'stx:') not" ifTrue:[ |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3288 |
package ~= Project noProjectID ifTrue:[ |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3289 |
requiredPackages add:package. |
9627 | 3290 |
] |
9883
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3291 |
] |
9627 | 3292 |
] |
9883
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3293 |
]. |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3294 |
|
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3295 |
self compiled_classesDo:[:cls | |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3296 |
cls allSuperclassesDo:[:eachSuperClass | |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3297 |
addPackage value:(eachSuperClass package) |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3298 |
]. |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3299 |
|
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3300 |
cls privateClassesDo:[:eachPrivateClass | |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3301 |
eachPrivateClass allSuperclassesDo:[:eachSuperClass | |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3302 |
eachSuperClass isPrivate ifFalse:[ |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3303 |
addPackage value:(eachSuperClass package) |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3304 |
]. |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3305 |
] |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3306 |
]. |
9956 | 3307 |
|
3308 |
cls sharedPools do:[:eachPoolName | |
|
3309 |
|eachPoolClass| |
|
3310 |
||
3311 |
eachPoolClass := Smalltalk classNamed:eachPoolName. |
|
3312 |
eachPoolClass withAllSuperclassesDo:[:eachPoolSuperClass | |
|
3313 |
addPackage value:(eachPoolSuperClass package) |
|
3314 |
] |
|
3315 |
]. |
|
9883
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3316 |
]. |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3317 |
|
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3318 |
self extensionMethodNames pairWiseDo:[:className :selector | |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3319 |
|cls| |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3320 |
((cls := Smalltalk classNamed:className) notNil and:[cls isLoaded]) ifTrue:[ |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3321 |
addPackage value:(cls package) |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3322 |
] |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3323 |
]. |
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3324 |
^ requiredPackages |
9627 | 3325 |
|
9880 | 3326 |
" |
9883
c641767d1483
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9880
diff
changeset
|
3327 |
stx_libtool searchForProjectsWhichProvideHeaderFiles |
9880 | 3328 |
" |
9627 | 3329 |
|
10251 | 3330 |
"Created: / 07-12-2006 / 17:46:38 / cg" |
9664 | 3331 |
! |
3332 |
||
9667 | 3333 |
searchForSiblingProjects |
10132 | 3334 |
"answer all the packages (package names) having the my parent package" |
3335 |
||
9667 | 3336 |
|myPackage myParentPackage| |
3337 |
||
3338 |
myPackage := self package asPackageId. |
|
3339 |
myParentPackage := myPackage parentPackage. |
|
3340 |
myParentPackage isNil ifTrue:[^ #() ]. |
|
3341 |
||
3342 |
^ Smalltalk allProjectIDs |
|
3343 |
select:[:projectID | |
|
3344 |
|thisPackage| |
|
3345 |
thisPackage := projectID asPackageId. |
|
3346 |
(thisPackage parentPackage = myParentPackage) |
|
3347 |
and:[ thisPackage ~= myPackage ]. |
|
3348 |
] |
|
3349 |
||
3350 |
" |
|
3351 |
self searchForSiblingProjects |
|
3352 |
bosch_dapasx_Application searchForSiblingProjects |
|
3353 |
stx_goodies_refactoryBrowser_changes searchForSiblingProjects |
|
3354 |
" |
|
3355 |
||
3356 |
"Modified: / 07-08-2006 / 21:56:25 / fm" |
|
3357 |
"Created: / 23-08-2006 / 15:06:12 / cg" |
|
3358 |
! |
|
3359 |
||
9664 | 3360 |
searchForSubProjects |
10132 | 3361 |
"answer all packages (package names), that are my subProjects" |
3362 |
||
9664 | 3363 |
|myPackage| |
3364 |
||
3365 |
myPackage := self package. |
|
10215 | 3366 |
^ Smalltalk allProjectIDs |
3367 |
select:[:projectID | |
|
3368 |
projectID ~= Project noProjectID |
|
3369 |
and:[ (projectID asPackageId parentPackage) = myPackage ]]. |
|
9664 | 3370 |
|
3371 |
" |
|
3372 |
self searchForSubProjects |
|
3373 |
bosch_dapasx_Application searchForSubProjects |
|
3374 |
stx_goodies_refactoryBrowser_changes searchForSubProjects |
|
3375 |
" |
|
3376 |
||
3377 |
"Created: / 07-08-2006 / 20:42:39 / fm" |
|
3378 |
"Modified: / 07-08-2006 / 21:56:25 / fm" |
|
10215 | 3379 |
"Modified: / 05-12-2006 / 18:04:27 / cg" |
9664 | 3380 |
! |
3381 |
||
3382 |
setupForType:typeOrNil |
|
9714 | 3383 |
typeOrNil = GUIApplicationType ifTrue:[ |
9664 | 3384 |
self compile:'isGUIApplication\ ^ true' withCRs |
3385 |
categorized:'description'. |
|
3386 |
^ self |
|
3387 |
]. |
|
9714 | 3388 |
typeOrNil = NonGUIApplicationType ifTrue:[ |
9664 | 3389 |
self compile:'isGUIApplication\ ^ false' withCRs |
3390 |
categorized:'description'. |
|
3391 |
^ self |
|
3392 |
]. |
|
3393 |
^ self. |
|
3394 |
||
3395 |
"Created: / 23-08-2006 / 14:26:10 / cg" |
|
9536 | 3396 |
! ! |
3397 |
||
9585 | 3398 |
!ProjectDefinition class methodsFor:'queries'! |
3399 |
||
9627 | 3400 |
definitionClassForPackage: aPackageID |
3401 |
^ self definitionClassForPackage:aPackageID createIfAbsent:false |
|
3402 |
||
3403 |
"Modified: / 17-08-2006 / 14:33:35 / cg" |
|
9585 | 3404 |
! |
3405 |
||
9664 | 3406 |
definitionClassForPackage:aPackageID createIfAbsent:doCreateIfAbsent |
3407 |
^ self definitionClassForPackage:aPackageID createIfAbsent:doCreateIfAbsent projectType:nil |
|
3408 |
||
3409 |
"Modified: / 23-08-2006 / 14:29:15 / cg" |
|
3410 |
! |
|
3411 |
||
3412 |
definitionClassForPackage: aPackageID createIfAbsent: doCreateIfAbsent projectType:typeOrNil |
|
9627 | 3413 |
|packageDefinitionClassName class| |
3414 |
||
3415 |
packageDefinitionClassName := ProjectDefinition initialClassNameForDefinitionOf:aPackageID. |
|
3416 |
class := Smalltalk classNamed:packageDefinitionClassName. |
|
3417 |
class isNil ifTrue:[ |
|
3418 |
doCreateIfAbsent ifTrue:[ |
|
3419 |
class := self newForPackage:aPackageID. |
|
9664 | 3420 |
"setup before prerequisites are defined" |
3421 |
class setupForType:typeOrNil. |
|
9627 | 3422 |
]. |
9664 | 3423 |
] ifFalse:[ |
3424 |
typeOrNil notNil ifTrue:[ |
|
3425 |
class setupForType:typeOrNil. |
|
3426 |
]. |
|
9627 | 3427 |
]. |
3428 |
^ class |
|
3429 |
||
9664 | 3430 |
"Created: / 23-08-2006 / 14:29:21 / cg" |
3431 |
"Modified: / 23-08-2006 / 15:35:26 / cg" |
|
9585 | 3432 |
! |
3433 |
||
9664 | 3434 |
definitionClassForPackage:newProjectID projectType:typeOrNil createIfAbsent:createIfAbsent |
3435 |
^ (self definitionClassForType:typeOrNil) |
|
3436 |
definitionClassForPackage:newProjectID |
|
3437 |
createIfAbsent:createIfAbsent |
|
3438 |
projectType:typeOrNil |
|
9627 | 3439 |
|
9664 | 3440 |
"Created: / 23-08-2006 / 14:28:53 / cg" |
9627 | 3441 |
! |
3442 |
||
3443 |
definitionClassForType: type |
|
9714 | 3444 |
(type = GUIApplicationType) ifTrue:[ ^ ApplicationDefinition ]. |
3445 |
(type = NonGUIApplicationType) ifTrue:[ ^ ApplicationDefinition ]. |
|
3446 |
(type = LibraryType) ifTrue:[ ^ LibraryDefinition ]. |
|
9627 | 3447 |
(type = 'Application') ifTrue:[ ^ ApplicationDefinition ]. |
3448 |
self error. |
|
3449 |
||
3450 |
"Created: / 17-08-2006 / 14:46:28 / cg" |
|
9664 | 3451 |
"Modified: / 23-08-2006 / 13:49:27 / cg" |
9585 | 3452 |
! |
3453 |
||
10144 | 3454 |
hasAllClassesFullyLoaded |
3455 |
"return true, if all classes are present and loaded" |
|
3456 |
||
3457 |
^ self hasAllClassesLoaded:true |
|
3458 |
||
3459 |
"Created: / 25-10-2006 / 16:08:25 / cg" |
|
3460 |
! |
|
3461 |
||
9627 | 3462 |
hasAllClassesLoaded |
10205 | 3463 |
"return true, if all classes are present (although, some might be autoloaded)" |
10144 | 3464 |
|
3465 |
^ self hasAllClassesLoaded:false |
|
3466 |
||
3467 |
"Modified: / 25-10-2006 / 16:08:11 / cg" |
|
3468 |
! |
|
3469 |
||
3470 |
hasAllClassesLoaded:checkIfFullyLoaded |
|
10154 | 3471 |
^ (self |
3472 |
hasClasses:(self classNamesForWhich:[:nm :attr | attr isEmptyOrNil or:[ attr includes:#autoload]]) |
|
3473 |
loaded:checkIfFullyLoaded) |
|
3474 |
and:[ |
|
3475 |
self |
|
3476 |
hasClasses:(self compiled_classNamesForPlatform:OperatingSystem platformName) |
|
3477 |
loaded:checkIfFullyLoaded ] |
|
3478 |
||
3479 |
"Modified: / 07-11-2006 / 11:47:30 / cg" |
|
3480 |
! |
|
3481 |
||
3482 |
hasAllCompiledClassesFullyLoaded |
|
3483 |
"return true, if all compiled classes are present and loaded" |
|
3484 |
||
3485 |
^ self hasAllCompiledClassesLoaded:true |
|
3486 |
||
3487 |
"Created: / 07-11-2006 / 11:48:02 / cg" |
|
3488 |
! |
|
3489 |
||
3490 |
hasAllCompiledClassesLoaded:checkIfFullyLoaded |
|
3491 |
^ (self |
|
10206 | 3492 |
hasClasses:(self classNamesForWhich:[:nm :attr | attr isEmptyOrNil]) |
10154 | 3493 |
loaded:checkIfFullyLoaded) |
3494 |
||
3495 |
and:[ |
|
3496 |
||
3497 |
self |
|
3498 |
hasClasses:(self compiled_classNamesForPlatform:OperatingSystem platformName) |
|
3499 |
loaded:checkIfFullyLoaded ] |
|
3500 |
||
3501 |
"Created: / 07-11-2006 / 11:43:31 / cg" |
|
9585 | 3502 |
! |
3503 |
||
9627 | 3504 |
hasAllExtensionsLoaded |
10203
b210e7832fe1
Do not autoload when checking for extensions
Stefan Vogel <sv@exept.de>
parents:
10200
diff
changeset
|
3505 |
"answer true, if all extensions of this package have been loaded. |
b210e7832fe1
Do not autoload when checking for extensions
Stefan Vogel <sv@exept.de>
parents:
10200
diff
changeset
|
3506 |
This is a query - so no side effects please" |
b210e7832fe1
Do not autoload when checking for extensions
Stefan Vogel <sv@exept.de>
parents:
10200
diff
changeset
|
3507 |
|
9627 | 3508 |
self extensionMethodNames pairWiseDo:[:className :selector | |
3509 |
|cls| |
|
9585 | 3510 |
|
10140 | 3511 |
cls := Smalltalk classNamed:className. |
3512 |
(cls isNil "or:[cls isLoaded not]") ifTrue:[ |
|
3513 |
Transcript showCR:(self name,' missing extension class "',className,'".'). |
|
3514 |
^ false |
|
3515 |
]. |
|
10203
b210e7832fe1
Do not autoload when checking for extensions
Stefan Vogel <sv@exept.de>
parents:
10200
diff
changeset
|
3516 |
"there is no possibility that we installed an extension method in an unloaded class" |
b210e7832fe1
Do not autoload when checking for extensions
Stefan Vogel <sv@exept.de>
parents:
10200
diff
changeset
|
3517 |
(cls isLoaded not or:[(cls compiledMethodAt:selector) isNil]) ifTrue:[ |
10140 | 3518 |
Transcript showCR:(self name,' missing extension method "',className,'>>',selector,'".'). |
3519 |
^ false |
|
3520 |
]. |
|
9627 | 3521 |
]. |
3522 |
^ true. |
|
3523 |
||
3524 |
"Created: / 17-08-2006 / 00:50:01 / cg" |
|
10140 | 3525 |
"Modified: / 25-10-2006 / 00:01:10 / cg" |
9850 | 3526 |
! |
3527 |
||
10154 | 3528 |
hasClasses:classes loaded:checkIfFullyLoaded |
3529 |
|checkLoaded| |
|
3530 |
||
3531 |
checkLoaded := [:eachClassName | |
|
3532 |
|cls| |
|
3533 |
||
3534 |
cls := Smalltalk loadedClassNamed:eachClassName. |
|
3535 |
(cls isNil "or:[cls isLoaded not]") ifTrue:[ |
|
10232 | 3536 |
(self name,' [info]: missing class: "',eachClassName,'".') infoPrintCR. |
10154 | 3537 |
^ false |
3538 |
]. |
|
3539 |
checkIfFullyLoaded ifTrue:[ |
|
3540 |
cls isLoaded ifFalse:[ |
|
10232 | 3541 |
(self name,' [info]: unloaded class: "',eachClassName,'".') infoPrintCR. |
10154 | 3542 |
^ false |
3543 |
] |
|
3544 |
]. |
|
3545 |
]. |
|
3546 |
||
3547 |
classes do:checkLoaded. |
|
3548 |
^ true. |
|
3549 |
||
3550 |
"Created: / 07-11-2006 / 11:44:25 / cg" |
|
10232 | 3551 |
"Modified: / 06-12-2006 / 18:37:41 / cg" |
10154 | 3552 |
! |
3553 |
||
9906
9efd21c9b1b6
hasExtensions is a bad name (conflicts with the other query)
Claus Gittinger <cg@exept.de>
parents:
9904
diff
changeset
|
3554 |
hasExtensionMethods |
9850 | 3555 |
^ self extensionMethodNames notEmpty |
3556 |
||
3557 |
"Created: / 14-09-2006 / 14:19:35 / cg" |
|
10005 | 3558 |
! |
3559 |
||
10140 | 3560 |
isFullyLoaded |
10205 | 3561 |
^ self hasAllCompiledClassesFullyLoaded and:[self hasAllClassesLoaded and:[self hasAllExtensionsLoaded]] |
10140 | 3562 |
|
3563 |
"Created: / 24-10-2006 / 23:52:23 / cg" |
|
3564 |
! |
|
3565 |
||
10005 | 3566 |
packageDirectory |
3567 |
^ Smalltalk getPackageDirectoryForPackage:self package. |
|
3568 |
||
3569 |
" |
|
3570 |
self packageDirectory |
|
3571 |
stx_libbasic3 packageDirectory |
|
3572 |
" |
|
9585 | 3573 |
! ! |
3574 |
||
9726 | 3575 |
!ProjectDefinition class methodsFor:'sanity checks'! |
3576 |
||
3577 |
validateDescription |
|
9956 | 3578 |
|emptyProjects nonProjects emptyOrNonProjects| |
3579 |
||
3580 |
emptyProjects := Set withAll:self subProjects. |
|
3581 |
Smalltalk allClassesDo:[:cls | |
|
3582 |
emptyProjects remove:(cls package) ifAbsent:[]. |
|
3583 |
]. |
|
3584 |
nonProjects := self subProjects select:[:p | |
|
3585 |
(ProjectDefinition definitionClassForPackage: p) isNil |
|
3586 |
]. |
|
3587 |
||
3588 |
emptyOrNonProjects := Set withAll:emptyProjects. |
|
3589 |
emptyOrNonProjects addAll:nonProjects. |
|
3590 |
||
3591 |
emptyOrNonProjects notEmpty ifTrue:[ |
|
3592 |
(Dialog |
|
3593 |
confirm:('The following projects are non-existent, empty or without description:\\ ' |
|
3594 |
, ((emptyOrNonProjects |
|
3595 |
asSortedCollection |
|
3596 |
collect:[:p | p allBold]) |
|
3597 |
asStringWith:'\ ') |
|
3598 |
, '\\Continue ?') withCRs |
|
3599 |
yesLabel:'OK' noLabel:'Cancel') |
|
3600 |
ifFalse:[ |
|
3601 |
AbortSignal raise |
|
3602 |
]. |
|
3603 |
]. |
|
3604 |
||
3605 |
"Modified: / 19-09-2006 / 20:30:39 / cg" |
|
9726 | 3606 |
! ! |
3607 |
||
9585 | 3608 |
!ProjectDefinition class methodsFor:'testing'! |
3609 |
||
9664 | 3610 |
isApplicationDefinition |
3611 |
^ false |
|
3612 |
||
3613 |
"Created: / 23-08-2006 / 15:17:32 / cg" |
|
9983 | 3614 |
"Modified: / 20-09-2006 / 14:59:56 / cg" |
3615 |
! |
|
3616 |
||
3617 |
isGUIApplication |
|
3618 |
^ false |
|
3619 |
||
3620 |
"Created: / 20-09-2006 / 14:59:49 / cg" |
|
9664 | 3621 |
! |
3622 |
||
3623 |
isLibraryDefinition |
|
3624 |
^ false |
|
3625 |
||
3626 |
"Created: / 23-08-2006 / 15:17:46 / cg" |
|
9983 | 3627 |
"Modified: / 20-09-2006 / 15:00:00 / cg" |
9664 | 3628 |
! |
3629 |
||
9627 | 3630 |
isProjectDefinition |
9664 | 3631 |
"concrete i.e. not abstract" |
3632 |
||
9627 | 3633 |
^ self ~~ ProjectDefinition |
3634 |
||
3635 |
"Created: / 10-08-2006 / 16:24:02 / cg" |
|
9664 | 3636 |
"Modified: / 23-08-2006 / 14:24:38 / cg" |
9585 | 3637 |
! ! |
3638 |
||
9569 | 3639 |
!ProjectDefinition class methodsFor:'documentation'! |
9536 | 3640 |
|
3641 |
version |
|
10296 | 3642 |
^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.131 2007-01-09 19:02:20 cg Exp $' |
9536 | 3643 |
! ! |
9714 | 3644 |
|
3645 |
ProjectDefinition initialize! |