9536
|
1 |
"{ Package: 'stx:libbasic3' }"
|
|
2 |
|
9537
|
3 |
Object subclass:#BuildDefinition
|
9536
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'System-Support-Projects'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
9537
|
11 |
!BuildDefinition class methodsFor:'accessing'!
|
9536
|
12 |
|
|
13 |
defaultCategory
|
|
14 |
^'* Projects *'
|
|
15 |
|
|
16 |
"Created: / 11-08-2006 / 14:16:49 / cg"
|
|
17 |
!
|
|
18 |
|
|
19 |
initialClassNameForDefinitionOf:aPackageId
|
|
20 |
|s|
|
|
21 |
|
|
22 |
s := aPackageId asString copy replaceAny:':/' with:$_.
|
|
23 |
(s endsWith:$_) ifTrue:[
|
|
24 |
s := s copyWithoutLast:1
|
|
25 |
].
|
|
26 |
^ s
|
|
27 |
|
|
28 |
"
|
|
29 |
DapasXProject initialClassNameForDefinitionOf:'bosch:dapasx/interactiver_editor'
|
|
30 |
DapasXProject initialClassNameForDefinitionOf:'stx:libbasic'
|
|
31 |
DapasXProject initialClassNameForDefinitionOf:'stx:goodies/xml'
|
|
32 |
"
|
|
33 |
|
|
34 |
"Created: / 09-08-2006 / 17:44:47 / fm"
|
|
35 |
"Modified: / 11-08-2006 / 14:00:05 / cg"
|
|
36 |
!
|
|
37 |
|
|
38 |
libraryName
|
|
39 |
^ self libraryNameFor: self package
|
|
40 |
|
|
41 |
"
|
|
42 |
bosch_dapasx_datenbasis_Definition libraryName
|
|
43 |
"
|
|
44 |
|
|
45 |
"Modified: / 09-08-2006 / 18:20:29 / fm"
|
|
46 |
!
|
|
47 |
|
|
48 |
libraryNameFor: aProjectID
|
|
49 |
^ aProjectID asString copy replaceAny:':/' with:$_
|
|
50 |
|
|
51 |
"
|
|
52 |
bosch_dapasx_datenbasis libraryName
|
|
53 |
"
|
|
54 |
|
|
55 |
"Modified: / 09-08-2006 / 18:20:29 / fm"
|
|
56 |
"Modified: / 11-08-2006 / 14:02:06 / cg"
|
|
57 |
!
|
|
58 |
|
|
59 |
module
|
|
60 |
|
|
61 |
^self moduleOfClass: self
|
|
62 |
|
|
63 |
"
|
|
64 |
bosch_dapasx_datenbasis_Definition module
|
|
65 |
DapasX_Datenbasis module
|
|
66 |
"
|
|
67 |
|
|
68 |
"Created: / 08-08-2006 / 20:24:53 / fm"
|
|
69 |
"Modified: / 09-08-2006 / 16:16:37 / fm"
|
|
70 |
!
|
|
71 |
|
|
72 |
moduleDirectory
|
|
73 |
|
|
74 |
^self moduleDirectoryFor: self package
|
|
75 |
|
|
76 |
"
|
|
77 |
bosch_dapasx_datenbasis_Definition moduleDirectory
|
|
78 |
bosch_dapasx_parameter_system_Definition moduleDirectory
|
|
79 |
"
|
|
80 |
|
|
81 |
"Created: / 08-08-2006 / 20:25:39 / fm"
|
|
82 |
!
|
|
83 |
|
|
84 |
moduleDirectoryFor: aProjectID
|
|
85 |
|
|
86 |
^(aProjectID subStrings: $:) last
|
|
87 |
|
|
88 |
"
|
|
89 |
bosch_dapasx_datenbasis_Definition moduleDirectory
|
|
90 |
bosch_dapasx_parameter_system_Definition moduleDirectory
|
|
91 |
"
|
|
92 |
|
|
93 |
"Created: / 08-08-2006 / 20:25:39 / fm"
|
|
94 |
!
|
|
95 |
|
|
96 |
moduleFor: aProjectID
|
|
97 |
|
|
98 |
^(aProjectID subStrings: $:) first
|
|
99 |
|
|
100 |
"
|
|
101 |
DapasXProject module
|
|
102 |
DapasX_Datenbasis module
|
|
103 |
"
|
|
104 |
|
|
105 |
"Created: / 09-08-2006 / 16:16:16 / fm"
|
|
106 |
!
|
|
107 |
|
|
108 |
moduleOfClass: aClass
|
|
109 |
|
|
110 |
^self moduleFor: aClass package
|
|
111 |
|
|
112 |
"
|
|
113 |
DapasXProject module
|
|
114 |
DapasX_Datenbasis module
|
|
115 |
"
|
|
116 |
|
|
117 |
"Created: / 09-08-2006 / 16:16:16 / fm"
|
|
118 |
!
|
|
119 |
|
|
120 |
msdosPathToPackage:aPackageID
|
|
121 |
"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"
|
|
122 |
|
|
123 |
^ self msdosPathToTop , '\..\' , (aPackageID asString copy replaceAny:':/' by:$\)
|
|
124 |
|
|
125 |
"
|
|
126 |
self msdosPathToPackage:'bosch:dapasx/kernel'
|
|
127 |
"
|
|
128 |
|
|
129 |
"Created: / 09-08-2006 / 16:35:22 / fm"
|
|
130 |
!
|
|
131 |
|
|
132 |
msdosPathToProjectFor: aProjectID
|
|
133 |
|
|
134 |
^ aProjectID asString copy replaceAny:':/' with:$\
|
|
135 |
|
|
136 |
"
|
|
137 |
self msdosPathToProjectFor: #'bosch:dapasx/datenbasis'
|
|
138 |
"
|
|
139 |
|
|
140 |
"Modified: / 09-08-2006 / 18:20:29 / fm"
|
|
141 |
!
|
|
142 |
|
|
143 |
msdosPathToTop
|
|
144 |
"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"
|
|
145 |
|
|
146 |
|
|
147 |
^self msdosPathToTopFor: self package
|
|
148 |
|
|
149 |
"
|
|
150 |
bosch_dapasx_datenbasis_Definition msdosPathToTop
|
|
151 |
DapasX_Datenbasis pathToTop
|
|
152 |
"
|
|
153 |
|
|
154 |
"Created: / 09-08-2006 / 15:45:54 / fm"
|
|
155 |
!
|
|
156 |
|
|
157 |
msdosPathToTopFor: aProjectID
|
|
158 |
"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"
|
|
159 |
|
|
160 |
|
|
161 |
^ (((1 to:(aProjectID asCollectionOfSubstringsSeparatedByAny:':/') size)
|
|
162 |
collect:[:n | '..\']) asStringWith:'') , 'stx'
|
|
163 |
|
|
164 |
"
|
|
165 |
self msdosPathToTopFor: #'bosch:dapasx/datenbasis'
|
|
166 |
|
|
167 |
"
|
|
168 |
|
|
169 |
"Created: / 09-08-2006 / 15:45:54 / fm"
|
|
170 |
!
|
|
171 |
|
|
172 |
packageName
|
|
173 |
|
|
174 |
^self packageNameFor: self package
|
|
175 |
|
|
176 |
|
|
177 |
"
|
|
178 |
bosch_dapasx_hw_schnittstellen_Definition packageName
|
|
179 |
bosch_dapasx_datenbasis_Definition packageName
|
|
180 |
bosch_dapasx_parameter_system_Definition packageName
|
|
181 |
"
|
|
182 |
|
|
183 |
"Created: / 08-08-2006 / 20:24:53 / fm"
|
|
184 |
"Modified: / 09-08-2006 / 16:16:37 / fm"
|
|
185 |
!
|
|
186 |
|
|
187 |
packageNameFor: aProjectID
|
|
188 |
|
|
189 |
^((aProjectID asString copy replaceAny:'/' with:$:) subStrings: $:) last
|
|
190 |
|
|
191 |
|
|
192 |
"
|
|
193 |
bosch_dapasx_hw_schnittstellen packageName
|
|
194 |
bosch_dapasx_datenbasis packageName
|
|
195 |
bosch_dapasx_parameter_system packageName
|
|
196 |
"
|
|
197 |
|
|
198 |
"Created: / 08-08-2006 / 20:24:53 / fm"
|
|
199 |
"Modified: / 09-08-2006 / 16:16:37 / fm"
|
|
200 |
"Modified: / 11-08-2006 / 14:02:32 / cg"
|
|
201 |
!
|
|
202 |
|
|
203 |
parentProject
|
|
204 |
|
|
205 |
^(self parentProjectFor: self package)
|
|
206 |
|
|
207 |
"
|
|
208 |
bosch_dapasx_hw_schnittstellen_Definition parentProject
|
|
209 |
DapasX_Datenbasis parentProject
|
|
210 |
"
|
|
211 |
|
|
212 |
"Created: / 07-08-2006 / 20:18:27 / fm"
|
|
213 |
"Modified: / 08-08-2006 / 10:47:37 / fm"
|
|
214 |
!
|
|
215 |
|
|
216 |
parentProjectFor: aProjectID
|
|
217 |
|
|
218 |
^(aProjectID subStrings: $/) first
|
|
219 |
|
|
220 |
"
|
|
221 |
bosch_dapasx_hw_schnittstellen parentProject
|
|
222 |
"
|
|
223 |
|
|
224 |
"Created: / 07-08-2006 / 20:18:27 / fm"
|
|
225 |
"Modified: / 08-08-2006 / 10:47:37 / fm"
|
|
226 |
"Modified: / 11-08-2006 / 14:02:56 / cg"
|
|
227 |
!
|
|
228 |
|
|
229 |
requiredProjects
|
|
230 |
|
|
231 |
^self preRequisites, self subProjects
|
|
232 |
!
|
|
233 |
|
|
234 |
unixPathToPackage:aPackageID
|
|
235 |
"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"
|
|
236 |
|
|
237 |
^ self unixPathToTop , '/../' , (aPackageID asString copy replaceAll:$: by:$/)
|
|
238 |
|
|
239 |
"
|
|
240 |
DapasX_Datenbasis pathToPackage:'bosch:dapasx/kernel'
|
|
241 |
"
|
|
242 |
|
|
243 |
"Created: / 09-08-2006 / 16:35:22 / fm"
|
|
244 |
!
|
|
245 |
|
|
246 |
unixPathToProjectFor: aProjectID
|
|
247 |
|
|
248 |
^ aProjectID asString copy replaceAny:':/' with:$/
|
|
249 |
|
|
250 |
"
|
|
251 |
self unixPathToProjectFor: #'bosch:dapasx/datenbasis'
|
|
252 |
"
|
|
253 |
|
|
254 |
"Modified: / 09-08-2006 / 18:20:29 / fm"
|
|
255 |
!
|
|
256 |
|
|
257 |
unixPathToTop
|
|
258 |
"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"
|
|
259 |
|
|
260 |
|
|
261 |
^ (((1 to:(self package asCollectionOfSubstringsSeparatedByAny:':/') size)
|
|
262 |
collect:[:n | '../']) asStringWith:'') , 'stx'
|
|
263 |
|
|
264 |
"
|
|
265 |
DapasXProject pathToTop
|
|
266 |
DapasX_Datenbasis pathToTop
|
|
267 |
"
|
|
268 |
|
|
269 |
"Created: / 09-08-2006 / 15:45:54 / fm"
|
|
270 |
! !
|
|
271 |
|
9537
|
272 |
!BuildDefinition class methodsFor:'defaults'!
|
9536
|
273 |
|
|
274 |
defaultDescription
|
|
275 |
^ 'description'
|
|
276 |
! !
|
|
277 |
|
9537
|
278 |
!BuildDefinition class methodsFor:'description'!
|
9536
|
279 |
|
|
280 |
autoloaded_classNames
|
|
281 |
"classes listed here will NOT be compiled, but remain autoloaded.
|
|
282 |
to be excluded from the build process can be user-defined in my subclasses"
|
|
283 |
|
|
284 |
^#()
|
|
285 |
|
|
286 |
"Created: / 07-08-2006 / 19:02:57 / fm"
|
|
287 |
"Modified: / 07-08-2006 / 21:25:25 / fm"
|
|
288 |
!
|
|
289 |
|
|
290 |
classNames
|
|
291 |
"this is a stupid default, a correponding method with real names
|
|
292 |
is generated in my subclasses"
|
|
293 |
|
|
294 |
^#()
|
|
295 |
|
|
296 |
"Created: / 07-08-2006 / 19:02:57 / fm"
|
|
297 |
"Modified: / 07-08-2006 / 21:25:25 / fm"
|
|
298 |
!
|
|
299 |
|
|
300 |
compiled_classNames
|
|
301 |
"this is a stupid default, a correponding method with real names
|
|
302 |
is generated in my subclasses"
|
|
303 |
|
|
304 |
^#()
|
|
305 |
|
|
306 |
"Created: / 07-08-2006 / 19:02:57 / fm"
|
|
307 |
"Modified: / 07-08-2006 / 21:25:25 / fm"
|
|
308 |
!
|
|
309 |
|
|
310 |
compiled_classes
|
|
311 |
^ self compiled_classNames collect:[:eachName| (Smalltalk at:eachName asSymbol)]
|
|
312 |
|
|
313 |
"Created: / 09-08-2006 / 16:28:15 / fm"
|
|
314 |
"Modified: / 09-08-2006 / 18:02:28 / fm"
|
|
315 |
!
|
|
316 |
|
|
317 |
compiled_classesDo:aBlock
|
|
318 |
self compiled_classes do:aBlock.
|
|
319 |
|
|
320 |
"Created: / 09-08-2006 / 16:28:15 / fm"
|
|
321 |
"Modified: / 09-08-2006 / 18:02:28 / fm"
|
|
322 |
!
|
|
323 |
|
|
324 |
description
|
|
325 |
"Returns a description string which will appear in nt.def and in the files info inside it's properties "
|
|
326 |
|
|
327 |
^''
|
|
328 |
|
|
329 |
"Created: / 08-08-2006 / 11:15:01 / fm"
|
|
330 |
!
|
|
331 |
|
|
332 |
excluded_classNames
|
|
333 |
"this is a stupid default, a correponding method with real names
|
|
334 |
to be excluded from the build process can be user-defined in my subclasses"
|
|
335 |
|
|
336 |
^#()
|
|
337 |
|
|
338 |
"Created: / 07-08-2006 / 19:02:57 / fm"
|
|
339 |
"Modified: / 07-08-2006 / 21:25:25 / fm"
|
|
340 |
!
|
|
341 |
|
|
342 |
extensionMethodNames
|
|
343 |
|
|
344 |
^#()
|
|
345 |
|
|
346 |
"Created: / 08-08-2006 / 11:07:08 / fm"
|
|
347 |
!
|
|
348 |
|
|
349 |
postLoadAction
|
|
350 |
"raise an error: must be redefined in concrete subclass(es)"
|
|
351 |
|
|
352 |
^ self subclassResponsibility
|
|
353 |
|
|
354 |
"Created: / 08-08-2006 / 11:07:40 / fm"
|
|
355 |
!
|
|
356 |
|
|
357 |
preUnloadAction
|
|
358 |
"raise an error: must be redefined in concrete subclass(es)"
|
|
359 |
|
|
360 |
^ self subclassResponsibility
|
|
361 |
|
|
362 |
"Created: / 08-08-2006 / 11:07:40 / fm"
|
|
363 |
!
|
|
364 |
|
|
365 |
prerequisiteProjects
|
|
366 |
|
|
367 |
^#()
|
|
368 |
|
|
369 |
"Created: / 08-08-2006 / 21:17:34 / fm"
|
|
370 |
!
|
|
371 |
|
|
372 |
subProjects
|
|
373 |
|
|
374 |
^#()
|
|
375 |
|
|
376 |
"Created: / 08-08-2006 / 11:08:23 / fm"
|
|
377 |
!
|
|
378 |
|
|
379 |
versionNumber
|
|
380 |
"Returns a version string which will appear in nt.def and in the files info inside it's properties "
|
|
381 |
|
|
382 |
^''
|
|
383 |
|
|
384 |
"Created: / 08-08-2006 / 11:35:52 / fm"
|
|
385 |
! !
|
|
386 |
|
9537
|
387 |
!BuildDefinition class methodsFor:'file generation'!
|
9536
|
388 |
|
|
389 |
allClassNames
|
|
390 |
^ (self compiled_classNames , self autoloaded_classNames , self excluded_classNames)
|
|
391 |
!
|
|
392 |
|
|
393 |
fileNamesToGenerate
|
|
394 |
self subclassResponsibility
|
|
395 |
!
|
|
396 |
|
|
397 |
forEachFileNameAndGeneratorMethodDo:aTwoArgBlock
|
|
398 |
|fileNamesAndSelectors|
|
|
399 |
|
|
400 |
fileNamesAndSelectors := self fileNamesToGenerate asOrderedCollection.
|
|
401 |
fileNamesAndSelectors
|
|
402 |
add:(Array
|
|
403 |
with:self packageName , '.rc'
|
|
404 |
with:#'generate_packageName_dot_rc').
|
|
405 |
fileNamesAndSelectors pairsDo:aTwoArgBlock
|
|
406 |
!
|
|
407 |
|
|
408 |
generateFile:filename
|
|
409 |
filename = 'nt.mak' ifTrue:[
|
|
410 |
^ self generate_nt_dot_mak
|
|
411 |
].
|
|
412 |
filename = 'Make.spec' ifTrue:[
|
|
413 |
^ self generate_make_dot_spec
|
|
414 |
].
|
|
415 |
filename = 'bc.def' ifTrue:[
|
|
416 |
^ self generate_bc_dot_def
|
|
417 |
].
|
|
418 |
filename = 'libInit.cc' ifTrue:[
|
|
419 |
^ self generate_libInit_dot_cc
|
|
420 |
].
|
|
421 |
filename = 'modules.stx' ifTrue:[
|
|
422 |
^ self generate_modules_dot_stx
|
|
423 |
].
|
|
424 |
self halt.
|
|
425 |
!
|
|
426 |
|
|
427 |
generate_abbrev_dot_stc
|
|
428 |
^ String
|
|
429 |
streamContents:[:s |
|
|
430 |
self allClassNames do:[:eachClassName |
|
|
431 |
|cls fn|
|
|
432 |
|
|
433 |
cls := Smalltalk classNamed:eachClassName.
|
|
434 |
cls autoload.
|
|
435 |
s nextPutAll:eachClassName.
|
|
436 |
s nextPutAll:' '.
|
|
437 |
fn := cls classFilename asFilename withoutSuffix baseName.
|
|
438 |
(fn includes:Character space) ifTrue:[
|
|
439 |
s nextPutAll:fn storeString.
|
|
440 |
] ifFalse:[
|
|
441 |
s nextPutAll:fn.
|
|
442 |
].
|
|
443 |
s nextPutAll:' '.
|
|
444 |
s nextPutAll:cls package.
|
|
445 |
s nextPutAll:' '.
|
|
446 |
s nextPutAll:cls category asString storeString.
|
|
447 |
s nextPutAll:' '.
|
|
448 |
s nextPutAll:(cls theMetaclass instVarNames size) printString.
|
|
449 |
s cr.
|
|
450 |
]
|
|
451 |
]
|
|
452 |
|
|
453 |
"
|
|
454 |
DapasXProject generate_abbrev_dot_stc
|
|
455 |
DapasX_Datenbasis generate_abbrev_dot_stc
|
|
456 |
bosch_dapasx_interactiver_editor generate_abbrev_dot_stc
|
|
457 |
"
|
|
458 |
|
|
459 |
"Created: / 09-08-2006 / 11:24:39 / fm"
|
|
460 |
"Modified: / 11-08-2006 / 14:01:51 / cg"
|
|
461 |
!
|
|
462 |
|
|
463 |
generate_bc_dot_def
|
|
464 |
|
|
465 |
^self replaceMappings: self bc_dot_def_mappings
|
|
466 |
in: self bc_dot_def
|
|
467 |
|
|
468 |
"
|
|
469 |
DapasXProject generate_bc_dot_def
|
|
470 |
DapasX_Datenbasis generate_bc_dot_def
|
|
471 |
|
|
472 |
"
|
|
473 |
|
|
474 |
"Modified: / 09-08-2006 / 11:30:42 / fm"
|
|
475 |
!
|
|
476 |
|
|
477 |
generate_libInit_dot_cc
|
|
478 |
|
|
479 |
^self replaceMappings: self libInit_dot_cc_mappings
|
|
480 |
in: self libInit_dot_cc
|
|
481 |
|
|
482 |
"
|
|
483 |
DapasXProject generate_libInit_dot_cc
|
|
484 |
DapasX_Datenbasis generate_libInit_dot_cc
|
|
485 |
|
|
486 |
"
|
|
487 |
|
|
488 |
"Created: / 08-08-2006 / 12:47:16 / fm"
|
|
489 |
"Modified: / 09-08-2006 / 11:30:52 / fm"
|
|
490 |
!
|
|
491 |
|
|
492 |
generate_make_dot_proto
|
|
493 |
|
|
494 |
^self replaceMappings: self make_dot_proto_mappings
|
|
495 |
in: self make_dot_proto
|
|
496 |
|
|
497 |
"
|
|
498 |
DapasXProject generate_make_dot_proto
|
|
499 |
DapasX_Datenbasis generate_make_dot_proto
|
|
500 |
|
|
501 |
"
|
|
502 |
|
|
503 |
"Modified: / 09-08-2006 / 11:31:01 / fm"
|
|
504 |
!
|
|
505 |
|
|
506 |
generate_make_dot_spec
|
|
507 |
|
|
508 |
^self replaceMappings: self make_dot_spec_mappings
|
|
509 |
in: self make_dot_spec
|
|
510 |
|
|
511 |
"
|
|
512 |
DapasXProject generate_make_dot_spec
|
|
513 |
DapasX_Datenbasis generate_make_dot_spec
|
|
514 |
bosch_dapasx_kernel_Definition generate_make_dot_spec
|
|
515 |
|
|
516 |
"
|
|
517 |
|
|
518 |
"Modified: / 09-08-2006 / 11:31:09 / fm"
|
|
519 |
!
|
|
520 |
|
|
521 |
generate_modules_dot_stx
|
|
522 |
|
|
523 |
^self replaceMappings: self modules_dot_stx_mappings
|
|
524 |
in: self modules_dot_stx
|
|
525 |
|
|
526 |
"
|
|
527 |
bosch_dapasx_application generate_modules_dot_stx
|
|
528 |
|
|
529 |
"
|
|
530 |
|
|
531 |
"Modified: / 09-08-2006 / 11:31:09 / fm"
|
|
532 |
"Modified: / 11-08-2006 / 14:01:56 / cg"
|
|
533 |
!
|
|
534 |
|
|
535 |
generate_nt_dot_def
|
|
536 |
|
|
537 |
^self replaceMappings: self nt_dot_def_mappings
|
|
538 |
in: self nt_dot_def
|
|
539 |
|
|
540 |
"
|
|
541 |
DapasXProject generate_nt_dot_def
|
|
542 |
DapasX_Datenbasis generate_nt_dot_def
|
|
543 |
|
|
544 |
"
|
|
545 |
|
|
546 |
"Modified: / 09-08-2006 / 11:31:21 / fm"
|
|
547 |
!
|
|
548 |
|
|
549 |
generate_nt_dot_mak
|
|
550 |
|
|
551 |
^self replaceMappings: self nt_dot_mak_mappings
|
|
552 |
in: self nt_dot_mak
|
|
553 |
|
|
554 |
"
|
|
555 |
DapasXProject generate_nt_dot_mak
|
|
556 |
DapasX_Datenbasis generate_nt_dot_mak
|
|
557 |
|
|
558 |
"
|
|
559 |
|
|
560 |
"Modified: / 09-08-2006 / 11:46:14 / fm"
|
|
561 |
!
|
|
562 |
|
|
563 |
generate_packageName_dot_rc
|
|
564 |
|
|
565 |
^self replaceMappings: self packageName_dot_rc_mappings
|
|
566 |
in: self packageName_dot_rc
|
|
567 |
|
|
568 |
"
|
|
569 |
bosch_dapasx_datenbasis generate_packageName_dot_rc
|
|
570 |
bosch_dapasx_hw_schnittstellen generate_packageName_dot_rc
|
|
571 |
|
|
572 |
"
|
|
573 |
|
|
574 |
"Modified: / 09-08-2006 / 11:31:09 / fm"
|
|
575 |
"Modified: / 11-08-2006 / 14:01:56 / cg"
|
|
576 |
! !
|
|
577 |
|
9537
|
578 |
!BuildDefinition class methodsFor:'file templates'!
|
9536
|
579 |
|
|
580 |
packageName_dot_rc
|
|
581 |
|
|
582 |
^
|
|
583 |
'VS_VERSION_INFO VERSIONINFO
|
|
584 |
FILEVERSION 0,1,1,1
|
|
585 |
PRODUCTVERSION 0,1,1,1
|
|
586 |
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE
|
|
587 |
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD
|
|
588 |
FILEOS VOS_NT_WINDOWS32
|
|
589 |
FILETYPE VFT_DLL
|
|
590 |
FILESUBTYPE VS_USER_DEFINED
|
|
591 |
|
|
592 |
BEGIN
|
|
593 |
BLOCK "StringFileInfo"
|
|
594 |
BEGIN
|
|
595 |
BLOCK "040904E4"
|
|
596 |
BEGIN
|
|
597 |
VALUE "CompanyName", "%(COMPANY_NAME)\0"
|
|
598 |
VALUE "FileDescription", "%(FILE_DESCRIPTION)\0"
|
|
599 |
VALUE "FileVersion", "%(FILE_VERSION)\0"
|
|
600 |
VALUE "InternalName", "%(INTERNAL_NAME)\0"
|
|
601 |
VALUE "LegalCopyright", "%(LEGAL_COPYRIGHT)\0"
|
|
602 |
VALUE "ProductName", "%(PRODUCT_NAME)\0"
|
|
603 |
VALUE "ProductVersion", "%(PRODUCT_VERSION)\0"
|
|
604 |
END
|
|
605 |
|
|
606 |
END
|
|
607 |
|
|
608 |
BLOCK "VarFileInfo"
|
|
609 |
BEGIN // Language | Translation
|
|
610 |
VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual
|
|
611 |
END
|
|
612 |
END
|
|
613 |
'
|
|
614 |
|
|
615 |
|
|
616 |
"Created: / 08-08-2006 / 19:31:29 / fm"
|
|
617 |
"Modified: / 09-08-2006 / 15:10:57 / fm"
|
|
618 |
! !
|
|
619 |
|
9537
|
620 |
!BuildDefinition class methodsFor:'mappings'!
|
9536
|
621 |
|
|
622 |
bc_dot_def_mappings
|
|
623 |
^ (Dictionary new)
|
|
624 |
at:#'DESCRIPTION'
|
|
625 |
put:[
|
|
626 |
|d|
|
|
627 |
|
|
628 |
d := self description.
|
|
629 |
(d isEmptyOrNil ifTrue:[ self defaultDescription ] ifFalse:[ d ]) storeString.
|
|
630 |
];
|
|
631 |
yourself
|
|
632 |
|
|
633 |
"Created: / 09-08-2006 / 11:17:59 / fm"
|
|
634 |
!
|
|
635 |
|
|
636 |
packageName_dot_rc_mappings
|
|
637 |
|
|
638 |
^Dictionary new
|
|
639 |
at: #'COMPANY_NAME' put: [self companyName];
|
|
640 |
at: #'FILE_DESCRIPTION' put: [self fileDescription];
|
|
641 |
at: #'FILE_VERSION' put: [self fileVersion];
|
|
642 |
at: #'INTERNAL_NAME' put: [self internalName];
|
|
643 |
at: #'LEGAL_COPYRIGHT' put: [self legalCopyright];
|
|
644 |
at: #'PRODUCT_NAME' put: [self productName];
|
|
645 |
at: #'PRODUCT_VERSION' put: [self productVersion];
|
|
646 |
yourself
|
|
647 |
|
|
648 |
"Created: / 09-08-2006 / 11:21:21 / fm"
|
|
649 |
!
|
|
650 |
|
|
651 |
replaceMappings: mappings in: fileTemplate
|
|
652 |
"Replaces the defined variable mappings found in a file template with the corresponding information"
|
|
653 |
|
|
654 |
^ fileTemplate bindWithArguments:mappings.
|
|
655 |
|
|
656 |
"
|
|
657 |
self replaceMappings: (self nt_dot_def_mappingsFor: self) in: self nt_dot_def
|
|
658 |
"
|
|
659 |
|
|
660 |
"Created: / 08-08-2006 / 11:44:27 / fm"
|
|
661 |
"Modified: / 08-08-2006 / 12:46:13 / fm"
|
|
662 |
! !
|
|
663 |
|
9537
|
664 |
!BuildDefinition class methodsFor:'project information'!
|
9536
|
665 |
|
|
666 |
companyName
|
|
667 |
^'eXept Software AG'
|
|
668 |
!
|
|
669 |
|
|
670 |
fileDescription
|
|
671 |
^self productName,' ', self packageName
|
|
672 |
!
|
|
673 |
|
|
674 |
fileVersion
|
|
675 |
^self revision ? '0.1.1.1'
|
|
676 |
!
|
|
677 |
|
|
678 |
internalName
|
|
679 |
^self packageName
|
|
680 |
!
|
|
681 |
|
|
682 |
legalCopyright
|
|
683 |
^'Copyright eXept Software AG 2006 (until payment)'
|
|
684 |
!
|
|
685 |
|
|
686 |
productName
|
|
687 |
^'Product Name'
|
|
688 |
!
|
|
689 |
|
|
690 |
productVersion
|
|
691 |
^'0.1.1.1'
|
|
692 |
! !
|
|
693 |
|
9537
|
694 |
!BuildDefinition class methodsFor:'testing'!
|
9536
|
695 |
|
|
696 |
isProjectDefinition
|
|
697 |
^ self ~~ ProjectDefinition
|
|
698 |
|
|
699 |
"Created: / 10-08-2006 / 16:24:02 / cg"
|
|
700 |
! !
|
|
701 |
|
9537
|
702 |
!BuildDefinition class methodsFor:'update description'!
|
9536
|
703 |
|
|
704 |
compileDescriptionMethods
|
9541
|
705 |
Class packageQuerySignal
|
|
706 |
answer:self package
|
|
707 |
do:[
|
|
708 |
self forEachMethodsCodeToCompileDo:[:code :category |
|
|
709 |
self theMetaclass
|
|
710 |
compile: code
|
|
711 |
classified: category.
|
|
712 |
].
|
9536
|
713 |
].
|
|
714 |
|
|
715 |
"
|
|
716 |
DapasXProject compileDescriptionMethods
|
|
717 |
DapasX_Datenbasis compileDescriptionMethods
|
|
718 |
bosch_dapasx_interactiver_editor compileDescriptionMethods
|
|
719 |
"
|
|
720 |
|
|
721 |
"Created: / 09-08-2006 / 18:00:31 / fm"
|
|
722 |
"Modified: / 11-08-2006 / 14:01:29 / cg"
|
|
723 |
!
|
|
724 |
|
|
725 |
inconsistency:message
|
|
726 |
Dialog warn:message
|
|
727 |
|
|
728 |
"
|
|
729 |
self searchForNeverCompiledSuperclasses
|
|
730 |
DapasX_Datenbasis searchForNeverCompiledSuperclasses
|
|
731 |
"
|
|
732 |
|
|
733 |
"Created: / 09-08-2006 / 16:32:31 / fm"
|
|
734 |
!
|
|
735 |
|
|
736 |
searchForClassesNamesWithProject
|
|
737 |
|
|
738 |
^self searchForClassesWithProject collect:[:each | each name].
|
|
739 |
|
|
740 |
"
|
|
741 |
self searchForClassesNamesWithProject
|
|
742 |
"
|
|
743 |
|
|
744 |
"Created: / 07-08-2006 / 21:37:06 / fm"
|
|
745 |
!
|
|
746 |
|
|
747 |
searchForClassesWithProject
|
|
748 |
|
|
749 |
^self searchForClassesWithProject: self package
|
|
750 |
|
|
751 |
"
|
|
752 |
self searchForClassesWithProject
|
|
753 |
"
|
|
754 |
|
|
755 |
"Created: / 07-08-2006 / 20:42:39 / fm"
|
|
756 |
"Modified: / 07-08-2006 / 21:56:25 / fm"
|
|
757 |
!
|
|
758 |
|
|
759 |
searchForClassesWithProject: aProjectID
|
|
760 |
|
|
761 |
^ Smalltalk allClasses select:[:cls | cls package == aProjectID].
|
|
762 |
|
|
763 |
"
|
|
764 |
self searchForClassesWithProject: #'bosch:dapasx'
|
|
765 |
self searchForClassesWithProject: #'bosch:dapasx/datenbasis'
|
|
766 |
"
|
|
767 |
|
|
768 |
"Created: / 07-08-2006 / 20:42:39 / fm"
|
|
769 |
"Modified: / 07-08-2006 / 21:56:25 / fm"
|
|
770 |
!
|
|
771 |
|
|
772 |
searchForExtensionsForProject:aProjectID
|
|
773 |
|methods|
|
|
774 |
|
|
775 |
methods := IdentitySet new.
|
|
776 |
Smalltalk allClassesDo:[:eachClass |
|
|
777 |
|classPackage|
|
|
778 |
|
|
779 |
classPackage := eachClass package.
|
|
780 |
eachClass instAndClassMethodsDo:[:mthd |
|
|
781 |
mthd package ~= classPackage ifTrue:[
|
|
782 |
mthd package == aProjectID ifTrue:[
|
|
783 |
methods add:mthd
|
|
784 |
]
|
|
785 |
].
|
|
786 |
].
|
|
787 |
].
|
|
788 |
^ methods
|
|
789 |
"
|
|
790 |
self searchForExtensionsForProject:#'bosch:dapasx'
|
|
791 |
"
|
|
792 |
|
|
793 |
"Created: / 07-08-2006 / 22:03:55 / fm"
|
|
794 |
!
|
|
795 |
|
|
796 |
searchForExtensionsWithProject
|
|
797 |
^ self searchForExtensionsForProject:self package
|
|
798 |
|
|
799 |
"
|
|
800 |
self searchForExtensionsWithProject
|
|
801 |
DapasXProject searchForExtensionsWithProject
|
|
802 |
DapasX_Datenbasis searchForExtensionsWithProject
|
|
803 |
|
|
804 |
"
|
|
805 |
|
|
806 |
"Created: / 07-08-2006 / 21:03:10 / fm"
|
|
807 |
"Modified: / 09-08-2006 / 13:01:26 / fm"
|
|
808 |
!
|
|
809 |
|
|
810 |
searchForProjectsWhichProvideHeaderFiles
|
|
811 |
|myPackageID requiredPackages|
|
|
812 |
|
|
813 |
requiredPackages := Set new.
|
|
814 |
myPackageID := self package.
|
|
815 |
|
|
816 |
self compiled_classesDo:[:includedClass |
|
|
817 |
includedClass allSuperclassesDo:[:eachSuperClass |
|
|
818 |
((eachSuperClass package ~= myPackageID)
|
|
819 |
and:[ (self moduleOfClass: eachSuperClass) ~= 'stx' ])
|
|
820 |
ifTrue:[
|
|
821 |
eachSuperClass package == Project noProjectID ifFalse:[
|
|
822 |
requiredPackages add:(eachSuperClass package).
|
|
823 |
]
|
|
824 |
]
|
|
825 |
]
|
|
826 |
].
|
|
827 |
^ requiredPackages
|
|
828 |
|
|
829 |
"
|
|
830 |
self searchForProjectsWhichProvideHeaderFiles
|
|
831 |
DapasX_Datenbasis searchForProjectsWhichProvideHeaderFiles
|
|
832 |
"
|
|
833 |
|
|
834 |
"Created: / 09-08-2006 / 16:26:37 / fm"
|
|
835 |
! !
|
|
836 |
|
9537
|
837 |
!BuildDefinition class methodsFor:'documentation'!
|
9536
|
838 |
|
|
839 |
version
|
9541
|
840 |
^ '$Header: /cvs/stx/stx/libbasic/ProjectDefinition.st,v 1.3 2006-08-16 15:38:19 fm Exp $'
|
9536
|
841 |
! !
|