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