author | Claus Gittinger <cg@exept.de> |
Tue, 07 Nov 2006 14:00:21 +0100 | |
changeset 10156 | d35f30a7fde5 |
parent 10151 | 8be8745d851c |
child 10214 | 19326faaa3c6 |
permissions | -rw-r--r-- |
9552 | 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' }" |
9532 | 13 |
|
9567 | 14 |
ProjectDefinition subclass:#ApplicationDefinition |
9532 | 15 |
instanceVariableNames:'' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Support-Projects' |
|
19 |
! |
|
20 |
||
9552 | 21 |
!ApplicationDefinition class methodsFor:'documentation'! |
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! ! |
|
9532 | 36 |
|
9535 | 37 |
!ApplicationDefinition class methodsFor:'accessing'! |
9532 | 38 |
|
39 |
applicationName |
|
9816 | 40 |
|m path| |
9532 | 41 |
|
9816 | 42 |
m := self moduleDirectory. |
43 |
path := m subStrings:$/. |
|
44 |
path last = 'application' ifTrue:[ |
|
45 |
path size > 1 ifTrue:[ |
|
46 |
path := path copyWithoutLast:1. |
|
47 |
]. |
|
48 |
]. |
|
49 |
^ path last |
|
50 |
||
51 |
" |
|
52 |
bosch_dapasx_application applicationName |
|
53 |
stx_projects_smalltalk applicationName |
|
54 |
" |
|
9532 | 55 |
|
56 |
"Created: / 08-08-2006 / 20:25:39 / fm" |
|
9816 | 57 |
"Modified: / 30-08-2006 / 19:29:25 / cg" |
9535 | 58 |
! ! |
9532 | 59 |
|
10000 | 60 |
!ApplicationDefinition class methodsFor:'code generation'! |
61 |
||
62 |
forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition |
|
63 |
super forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition. |
|
64 |
||
65 |
aTwoArgBlock |
|
66 |
value:self subProjects_code |
|
67 |
value:'description'. |
|
68 |
||
69 |
aTwoArgBlock |
|
70 |
value:self preRequisites_code |
|
71 |
value:'description'. |
|
72 |
||
73 |
(self class implements:#startupClassName) ifFalse:[ |
|
74 |
aTwoArgBlock |
|
75 |
value:self startupClassName_code |
|
76 |
value:'description - startup'. |
|
77 |
]. |
|
78 |
(self class implements:#startupSelector) ifFalse:[ |
|
79 |
aTwoArgBlock |
|
80 |
value:self startupSelector_code |
|
81 |
value:'description - startup'. |
|
82 |
]. |
|
83 |
||
84 |
"Created: / 10-08-2006 / 16:35:47 / cg" |
|
85 |
"Modified: / 30-08-2006 / 19:03:48 / cg" |
|
86 |
! |
|
87 |
||
88 |
startupClassName_code |
|
89 |
^ |
|
90 |
'startupClassName |
|
91 |
self error:''undefined startupClass''. |
|
92 |
^ ''<name of class here>'' |
|
93 |
' |
|
94 |
! |
|
95 |
||
96 |
startupClassName_codeFor:aClassName |
|
97 |
^ |
|
98 |
'startupClassName |
|
99 |
^ ''',aClassName,''' |
|
100 |
' |
|
101 |
||
102 |
"Created: / 05-09-2006 / 13:40:32 / cg" |
|
103 |
! |
|
104 |
||
105 |
startupSelector_code |
|
106 |
^ |
|
107 |
'startupSelector |
|
108 |
self error:''undefined startupSelector''. |
|
109 |
^ #''start'' "startupSelector here" |
|
110 |
' |
|
111 |
||
112 |
"Created: / 30-08-2006 / 19:02:50 / cg" |
|
113 |
! |
|
114 |
||
115 |
startupSelector_codeFor:aSelector |
|
116 |
^ |
|
117 |
'startupSelector |
|
118 |
^ #''',aSelector,''' |
|
119 |
' |
|
120 |
||
121 |
"Created: / 05-09-2006 / 13:41:01 / cg" |
|
122 |
! |
|
123 |
||
124 |
subProjects_code |
|
125 |
|subProjects| |
|
126 |
||
127 |
subProjects := |
|
128 |
(self siblingsAreSubProjects) |
|
129 |
ifTrue:[ self searchForSiblingProjects ] |
|
130 |
ifFalse:[ self searchForSubProjects ]. |
|
131 |
||
132 |
subProjects removeAll: self excludedFromSubProjects. |
|
133 |
||
134 |
^ String streamContents:[:s | |
|
135 |
s nextPutLine:'subProjects'. |
|
136 |
s nextPutLine:' ^ #('. |
|
137 |
subProjects do:[:eachPackageID | |
|
138 |
s nextPutLine:eachPackageID asString storeString |
|
139 |
]. |
|
140 |
s nextPutLine:')' |
|
141 |
]. |
|
142 |
||
143 |
" |
|
144 |
bosch_dapasx subProjectsGeneratedString |
|
145 |
stx_goodies subProjectsGeneratedString |
|
146 |
" |
|
147 |
||
148 |
"Modified: / 08-08-2006 / 19:24:34 / fm" |
|
149 |
"Created: / 17-08-2006 / 21:26:51 / cg" |
|
150 |
! ! |
|
151 |
||
9535 | 152 |
!ApplicationDefinition class methodsFor:'defaults'! |
9532 | 153 |
|
9535 | 154 |
defaultDescription |
155 |
^ 'an application' |
|
9532 | 156 |
! |
157 |
||
9886 | 158 |
guiClassFileNames_unix |
159 |
^ self guiClasses_unix |
|
10079 | 160 |
collect:[:cls | (cls classBaseFilename asFilename withSuffix:'so') baseName]. |
9886 | 161 |
|
162 |
"Created: / 14-09-2006 / 18:13:22 / cg" |
|
10079 | 163 |
"Modified: / 12-10-2006 / 15:50:39 / cg" |
9886 | 164 |
! |
165 |
||
9833 | 166 |
guiClassFileNames_win32 |
167 |
^ self guiClasses_win32 |
|
10079 | 168 |
collect:[:cls | (cls classBaseFilename asFilename withSuffix:'dll') baseName]. |
9833 | 169 |
|
170 |
"Created: / 07-09-2006 / 17:23:13 / cg" |
|
10079 | 171 |
"Modified: / 12-10-2006 / 15:50:42 / cg" |
9886 | 172 |
! |
173 |
||
174 |
guiClasses_unix |
|
175 |
^ #() |
|
176 |
||
177 |
"Created: / 14-09-2006 / 18:12:58 / cg" |
|
9532 | 178 |
! |
179 |
||
9833 | 180 |
guiClasses_win32 |
9886 | 181 |
^ #() |
182 |
"/ ^ Array with:XWorkstation |
|
9833 | 183 |
|
184 |
"Created: / 07-09-2006 / 17:22:27 / cg" |
|
9886 | 185 |
"Modified: / 14-09-2006 / 18:12:35 / cg" |
9535 | 186 |
! |
9532 | 187 |
|
9535 | 188 |
needResources |
189 |
^ self isGUIApplication |
|
9532 | 190 |
! ! |
191 |
||
9535 | 192 |
!ApplicationDefinition class methodsFor:'description'! |
9532 | 193 |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
194 |
documentExtensions |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
195 |
"list extensions which should be registered with the application. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
196 |
Results in the application to be started when double-clicking on such a file (win32)" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
197 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
198 |
^ #() |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
199 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
200 |
"Created: / 15-10-2006 / 12:44:14 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
201 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
202 |
|
9532 | 203 |
excludedFromSubProjects |
9578 | 204 |
"list packages which are to be explicitely excluded from the automatic constructed |
205 |
subProjects list. If empty, every sub-package is included as a prerequisite." |
|
9532 | 206 |
|
9578 | 207 |
^ #() |
208 |
||
209 |
"Modified: / 17-08-2006 / 19:49:40 / cg" |
|
9532 | 210 |
! |
211 |
||
9535 | 212 |
isGUIApplication |
9578 | 213 |
"Return true, if this is a GUI app. |
214 |
Redefine to return false for non-GUI applications (affects inclusion of Display classes)." |
|
9535 | 215 |
|
9578 | 216 |
^true |
9535 | 217 |
|
218 |
"Created: / 08-08-2006 / 11:15:01 / fm" |
|
9578 | 219 |
"Modified: / 17-08-2006 / 19:47:36 / cg" |
9532 | 220 |
! |
221 |
||
9823 | 222 |
isSingleThreadedApplication |
223 |
"Return true, if this should be started without multiple threads. |
|
224 |
(not possible with gui applications)" |
|
225 |
||
226 |
^false |
|
227 |
||
228 |
"Created: / 05-09-2006 / 13:36:18 / cg" |
|
229 |
! |
|
230 |
||
9725 | 231 |
startupClassName |
9578 | 232 |
"The name of the class which provides the entry point for the application." |
9532 | 233 |
|
9578 | 234 |
self subclassResponsibility |
235 |
||
236 |
"Modified: / 17-08-2006 / 20:00:22 / cg" |
|
9532 | 237 |
! |
238 |
||
9725 | 239 |
startupSelector |
9578 | 240 |
"The name of the entry point method (in startUpClass) used to start the application." |
9532 | 241 |
|
9578 | 242 |
^ #'start' |
243 |
||
244 |
"Modified: / 17-08-2006 / 20:01:00 / cg" |
|
245 |
! ! |
|
246 |
||
247 |
!ApplicationDefinition class methodsFor:'description - project information'! |
|
248 |
||
249 |
description |
|
250 |
"Returns a description string which will appear in nt.def / bc.def" |
|
251 |
||
252 |
self module = 'stx' ifTrue:[ |
|
253 |
^ 'Smalltalk/X Application' |
|
254 |
]. |
|
255 |
||
9587 | 256 |
^ 'Application' |
9578 | 257 |
|
258 |
"Created: / 17-08-2006 / 20:52:48 / cg" |
|
9587 | 259 |
"Modified: / 18-08-2006 / 16:16:01 / cg" |
9889 | 260 |
! |
261 |
||
9985 | 262 |
docDirPath_unix |
263 |
"path relative to my dir to the documentation - or nil" |
|
264 |
||
265 |
^ nil |
|
266 |
||
267 |
"Created: / 20-09-2006 / 17:58:44 / cg" |
|
268 |
! |
|
269 |
||
270 |
docDirPath_win32 |
|
271 |
"path relative to my dir to the documentation - or nil" |
|
272 |
||
273 |
^ nil |
|
274 |
||
275 |
"Created: / 20-09-2006 / 17:58:40 / cg" |
|
276 |
! |
|
277 |
||
9889 | 278 |
fileDescription |
279 |
"Return a description string which will appear in nt.def / bc.def" |
|
280 |
||
281 |
^self description , ' Application' |
|
282 |
||
283 |
"Created: / 14-09-2006 / 20:08:11 / cg" |
|
9900 | 284 |
! |
285 |
||
286 |
hasLicenceToAcceptDuringInstallation |
|
287 |
^ false |
|
288 |
||
289 |
"Created: / 14-09-2006 / 22:34:00 / cg" |
|
9532 | 290 |
! ! |
291 |
||
292 |
!ApplicationDefinition class methodsFor:'file generation'! |
|
293 |
||
9854 | 294 |
basicFileNamesToGenerate |
9535 | 295 |
^ #( |
9816 | 296 |
#('Make.spec' #'generate_make_dot_spec') |
10023 | 297 |
#('Make.proto' #'generate_make_dot_proto') |
9605 | 298 |
#('bc.def' #'generate_bc_dot_def') |
299 |
#('nt.mak' #'generate_nt_dot_mak') |
|
300 |
#('modules.stx' #'generate_modules_dot_stx') |
|
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
301 |
#('modules.c' #'generate_modules_dot_c') |
9532 | 302 |
" |
9605 | 303 |
#('nt.def' #'generate_nt_dot_def') |
9816 | 304 |
" |
9605 | 305 |
#('abbrev.stc' #'generate_abbrev_dot_stc') |
306 |
#('bmake.bat' #'generate_bmake_dot_mak') |
|
9897 | 307 |
) , (Array |
308 |
with: |
|
309 |
(Array |
|
310 |
with:self rcFilename |
|
311 |
with:#'generate_packageName_dot_rc') |
|
312 |
with: |
|
313 |
(Array |
|
314 |
with:self nsiFilename |
|
315 |
with:#'generate_packageName_dot_nsi') |
|
316 |
). |
|
9578 | 317 |
|
9854 | 318 |
"Created: / 14-09-2006 / 14:36:00 / cg" |
10023 | 319 |
"Modified: / 29-09-2006 / 17:32:57 / cg" |
9623 | 320 |
! |
321 |
||
322 |
generateFile:filename |
|
323 |
^ super generateFile:filename |
|
324 |
||
325 |
"Created: / 22-08-2006 / 18:35:40 / cg" |
|
9816 | 326 |
"Modified: / 30-08-2006 / 19:23:12 / cg" |
9830 | 327 |
! |
328 |
||
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
329 |
generate_modules_dot_c |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
330 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
331 |
^self replaceMappings: self modules_dot_c_mappings |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
332 |
in: self modules_dot_c |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
333 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
334 |
" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
335 |
bosch_dapasx_application generate_modules_dot_c |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
336 |
" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
337 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
338 |
"Created: / 19-09-2006 / 22:35:27 / cg" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
339 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
340 |
|
9963 | 341 |
generate_packageName_dot_nsi |
342 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
343 |
^self |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
344 |
replaceMappings: self packageName_dot_nsi_mappings |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
345 |
in: self packageName_dot_nsi |
9963 | 346 |
|
347 |
" |
|
348 |
bosch_dapasx_application generate_packageName_dot_nsi |
|
349 |
" |
|
350 |
||
351 |
"Modified: / 09-08-2006 / 11:31:09 / fm" |
|
352 |
"Created: / 14-09-2006 / 21:08:23 / cg" |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
353 |
"Modified: / 15-10-2006 / 12:52:21 / cg" |
9963 | 354 |
! |
355 |
||
9830 | 356 |
rcFilename |
357 |
^ self packageName,'WinRC.rc'. |
|
358 |
||
359 |
"Created: / 07-09-2006 / 17:07:08 / cg" |
|
360 |
! |
|
361 |
||
362 |
resourceFilename |
|
363 |
^ (self rcFilename asFilename withSuffix:'res') name |
|
364 |
||
365 |
"Created: / 07-09-2006 / 17:12:53 / cg" |
|
9532 | 366 |
! ! |
367 |
||
368 |
!ApplicationDefinition class methodsFor:'file templates'! |
|
369 |
||
9535 | 370 |
bc_dot_def |
9578 | 371 |
"the template code for the bc.def file" |
9535 | 372 |
|
373 |
^ |
|
374 |
'DESCRIPTION %(DESCRIPTION) |
|
375 |
CODE PRELOAD MOVEABLE DISCARDABLE |
|
376 |
SEGMENTS |
|
377 |
INITCODE PRELOAD DISCARDABLE |
|
378 |
' |
|
379 |
||
380 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
381 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9578 | 382 |
"Modified: / 17-08-2006 / 20:05:17 / cg" |
9535 | 383 |
! |
384 |
||
9816 | 385 |
buildDate_dot_h |
386 |
"the template code for the buildDate.h file" |
|
387 |
||
388 |
^ |
|
389 |
'#define BUILD_DATE "%(BUILDDATE)"' |
|
390 |
||
391 |
"Created: / 30-08-2006 / 19:18:34 / cg" |
|
392 |
! |
|
393 |
||
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
394 |
classLine_modules_dot_c |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
395 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
396 |
^'_%(CLASS)_Init,' |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
397 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
398 |
"Modified: / 08-08-2006 / 15:46:05 / fm" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
399 |
"Created: / 19-09-2006 / 22:49:46 / cg" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
400 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
401 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
402 |
classLine_modules_dot_c_extern |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
403 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
404 |
^'extern void _%(CLASS)_Init();' |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
405 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
406 |
"Modified: / 08-08-2006 / 15:46:05 / fm" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
407 |
"Created: / 19-09-2006 / 22:50:14 / cg" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
408 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
409 |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
410 |
defineExtenionLine_nsi_for:extension |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
411 |
"the template code for a single extenions definition line in the <appname>.nsi file" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
412 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
413 |
^ |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
414 |
' WriteRegStr HKCR ".',extension,'" "" "%(MODULE_KEY).%(PRODUCT_NAME).1"' |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
415 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
416 |
"Created: / 15-10-2006 / 12:50:00 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
417 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
418 |
|
10023 | 419 |
make_dot_proto |
420 |
||
421 |
^ |
|
422 |
'# $','Header','$ |
|
423 |
# |
|
424 |
# DO NOT EDIT |
|
425 |
# automagically generated from the projectDefinition: ',self name,'. |
|
426 |
# |
|
427 |
# Warning: once you modify this file, do not rerun |
|
428 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
429 |
# |
|
430 |
# The Makefile as generated by this Make.proto supports the following targets: |
|
431 |
# make - compile all st-files to a classLib |
|
432 |
# make clean - clean all temp files |
|
433 |
# make clobber - clean all |
|
434 |
# |
|
435 |
# This file contains definitions for Unix based platforms. |
|
436 |
# It shares common definitions with the win32-make in Make.spec. |
|
437 |
||
438 |
# |
|
439 |
# position (of this package) in directory hierarchy: |
|
440 |
# (must point to ST/X top directory, for tools and includes) |
|
441 |
TOP=%(TOP) |
|
442 |
INCLUDE_TOP=$(TOP)/.. |
|
443 |
||
444 |
# subdirectories where targets are to be made: |
|
445 |
SUBDIRS=%(SUBDIRECTORIES) |
|
446 |
||
447 |
||
448 |
# subdirectories where Makefiles are to be made: |
|
449 |
# (only define if different from SUBDIRS) |
|
450 |
# ALLSUBDIRS= |
|
451 |
||
452 |
||
453 |
# if your embedded C code requires any system includes, |
|
454 |
# add the path(es) here:, |
|
455 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
456 |
# LOCALINCLUDES=-Ifoo -Ibar |
|
457 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
458 |
||
459 |
||
460 |
# if you need any additional defines for embedded C code, |
|
461 |
# add them here:, |
|
462 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
463 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
464 |
LOCALDEFINES=%(LOCAL_DEFINES) |
|
465 |
||
466 |
LIBNAME=%(LIBRARY_NAME) |
|
467 |
STCLOCALOPT=''-package=$(PACKAGE)'' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
|
468 |
||
469 |
||
470 |
# ********** OPTIONAL: MODIFY the next line *** |
|
471 |
# additional C-libraries that should be pre-linked with the class-objects |
|
472 |
LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES) |
|
473 |
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES) |
|
474 |
||
475 |
||
476 |
# ********** OPTIONAL: MODIFY the next line *** |
|
477 |
# additional C targets or libraries should be added below |
|
478 |
LOCAL_EXTRA_TARGETS= |
|
479 |
||
480 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
|
481 |
||
482 |
%(ADDITIONAL_DEFINITIONS) |
|
483 |
||
484 |
all:: preMake classLibRule postMake |
|
485 |
||
486 |
pre_objs:: %(ADDITIONAL_TARGETS) |
|
487 |
||
488 |
%(ADDITIONAL_RULES) |
|
489 |
||
490 |
# add more install actions here |
|
491 |
install:: |
|
492 |
||
493 |
# add more install actions for aux-files (resources) here |
|
494 |
installAux:: |
|
495 |
||
496 |
# add more preMake actions here |
|
497 |
preMake:: |
|
498 |
||
499 |
# add more postMake actions here |
|
500 |
postMake:: cleanjunk |
|
501 |
||
502 |
cleanjunk:: |
|
503 |
||
504 |
clean:: |
|
505 |
%(TAB)-rm -f *.o *.H |
|
506 |
||
507 |
clobber:: |
|
508 |
%(TAB)-rm -f *.so *.dll |
|
509 |
||
510 |
', |
|
511 |
" |
|
512 |
$(INSTALLBASE):: |
|
513 |
%(TAB)@test -d $@ || mkdir $@ |
|
514 |
||
515 |
$(INSTALLBASE)/packages:: $(INSTALLBASE) |
|
516 |
%(TAB)@test -d $@ || mkdir $@ |
|
517 |
||
518 |
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages |
|
519 |
%(TAB)@test -d $@ || mkdir $@ |
|
520 |
||
521 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx:: $(INSTALLBASE)/packages/$(MODULE) |
|
522 |
%(TAB)@test -d $@ || mkdir $@ |
|
523 |
||
524 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx/interactiver_editor:: $(INSTALLBASE)/packages/$(MODULE)/dapasx |
|
525 |
%(TAB)@test -d $@ || mkdir $@ |
|
526 |
||
527 |
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE) |
|
528 |
%(TAB)@test -d $@ || mkdir $@ |
|
529 |
" |
|
530 |
' |
|
531 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
532 |
%(DEPENDENCIES) |
|
533 |
# ENDMAKEDEPEND --- do not remove this line |
|
534 |
||
535 |
' |
|
536 |
||
537 |
"Modified: / 09-08-2006 / 16:50:23 / fm" |
|
538 |
"Created: / 29-09-2006 / 23:47:07 / cg" |
|
539 |
! |
|
540 |
||
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
541 |
modules_dot_c |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
542 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
543 |
^ |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
544 |
'/* $','Header','$ |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
545 |
* |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
546 |
* DO NOT EDIT |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
547 |
* automagically generated from the projectDefinition: ',self name,'. |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
548 |
* |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
549 |
* Warning: once you modify this file, do not rerun |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
550 |
* stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
551 |
*/ |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
552 |
typedef void (*vf)(); |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
553 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
554 |
%(EXTERN_INIT_NAME_LIST) |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
555 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
556 |
static vf modules[] = { |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
557 |
%(INIT_LIST) |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
558 |
(vf)0 |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
559 |
}; |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
560 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
561 |
vf *__modules__ = modules; |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
562 |
' |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
563 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
564 |
"Created: / 19-09-2006 / 22:36:58 / cg" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
565 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
566 |
|
9535 | 567 |
modules_dot_stx |
9532 | 568 |
|
9535 | 569 |
^ |
9542 | 570 |
'# $','Header','$ |
9535 | 571 |
# |
9578 | 572 |
# DO NOT EDIT |
573 |
# automagically generated from the projectDefinition: ',self name,'. |
|
574 |
# |
|
575 |
# Warning: once you modify this file, do not rerun |
|
576 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
577 |
# |
|
9535 | 578 |
# This file is (currently) only used with win-95 / win-NT versions of STX. |
579 |
# It lists the dll''s which are to be loaded at startup time. |
|
580 |
# |
|
581 |
# All classes loaded at startup time will be present as precompiled classes. |
|
582 |
# Others will be autoloaded. |
|
583 |
# |
|
584 |
%(PREREQUISITE_LIBS) |
|
585 |
%(SUBPROJECT_LIBS) |
|
586 |
' |
|
587 |
||
588 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
589 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9542 | 590 |
"Modified: / 16-08-2006 / 17:56:58 / User" |
9578 | 591 |
"Modified: / 17-08-2006 / 20:35:38 / cg" |
9535 | 592 |
! |
593 |
||
594 |
nt_dot_mak |
|
595 |
|def needResources| |
|
596 |
||
597 |
needResources := false "self isGUIApplication". |
|
598 |
||
599 |
def := |
|
9687 | 600 |
'# $','Header','$ |
601 |
# |
|
9578 | 602 |
# DO NOT EDIT |
603 |
# automagically generated from the projectDefinition: ',self name,'. |
|
604 |
# |
|
605 |
# Warning: once you modify this file, do not rerun |
|
606 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
9532 | 607 |
# |
608 |
||
9886 | 609 |
TOP=%(TOP) |
610 |
INCLUDE_TOP=$(TOP)\.. |
|
611 |
||
9687 | 612 |
# CFLAGS1= -WD -w-pro -w-ccc -w-rch -w-aus -w-par -x- -r- -k -y -v -vi- -c -tWDR |
9532 | 613 |
CFLAGS1= -w-pro -w-ccc -w-rch -w-aus -w-par -x- -r- -k -y -v -vi- -c |
614 |
||
9980 | 615 |
CFLAGS_CONSOLE= -tWC -tWR -D_NO_VCL;WIN32 -DWIN_LOGFILE="\"%(APPLICATION)_%%d.log\"" |
9532 | 616 |
CFLAGS_NOCONSOLE=-tWR -D_NO_VCL;WIN32GUI;WIN32 -DWIN_LOGFILE="\"%(APPLICATION)_%%d.log\"" |
617 |
LFLAGS_CONSOLE=-ap |
|
618 |
LFLAGS_NOCONSOLE=-aa |
|
619 |
CRT_STARTUP_CONSOLE=c0x32.obj |
|
620 |
CRT_STARTUP_NOCONSOLE=c0w32.obj |
|
621 |
||
9980 | 622 |
CFLAGS_APPTYPE=$(CFLAGS_%(CONSOLE_OR_NOCONSOLE)) |
623 |
LFLAGS_APPTYPE=$(LFLAGS_%(CONSOLE_OR_NOCONSOLE)) |
|
624 |
CRT_STARTUP=$(CRT_STARTUP_%(CONSOLE_OR_NOCONSOLE)) |
|
9532 | 625 |
|
9614 | 626 |
CFLAGS_LOCAL=$(CFLAGS_APPTYPE) \ |
627 |
-DSTARTUP_CLASS="\"%(STARTUP_CLASS)\"" \ |
|
628 |
-DSTARTUP_SELECTOR="\"%(STARTUP_SELECTOR)\"" \ |
|
629 |
-DUSE_MODULE_TABLE |
|
9532 | 630 |
|
631 |
# |
|
632 |
||
633 |
!!INCLUDE $(TOP)\rules\stdHeader_nt |
|
9816 | 634 |
!!INCLUDE Make.spec |
635 |
||
636 |
OBJS= $(COMMON_OBJS) $(WIN32_OBJS) |
|
637 |
||
9532 | 638 |
# |
639 |
LIBNAME=dummy |
|
640 |
STCOPT="+optinline" |
|
9886 | 641 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
642 |
STCLOCALOPT=''-package=$(PACKAGE)'' $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) $(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
|
9532 | 643 |
|
644 |
LINKER = ilink32 |
|
645 |
||
646 |
# LFLAGS = -L$(TOP)\libbc;$(BCB)\lib;$(DEBUGLIBPATH) -H:0x400000 -Hc:0x100000 -S:0x40000 -Sc:0x10000 -ap -Tpe -x -Gn -v -Ao:0x10000 |
|
647 |
LFLAGS = -L$(TOP)\libbc;$(BCB)\lib -S:0x40000 -Sc:0x10000 $(LFLAGS_APPTYPE) -Tpe -x -Gn -v -Ao:0x10000 |
|
648 |
||
649 |
PROJECT = %(APPLICATION).exe |
|
650 |
ALLOBJFILES = main.obj |
|
9830 | 651 |
RESFILES = %(RESFILENAME) |
9532 | 652 |
ALLOBJ = $(CRT_STARTUP) $(ALLOBJFILES) $(OBJS) |
653 |
DEFFILE=bc.def |
|
654 |
||
655 |
LIBFILES=$(TOP)\libbc\librun.lib |
|
656 |
ALLLIB=$(LIBFILES) import32.lib $(RT_LIB) |
|
657 |
||
9535 | 658 |
REQUIRED_LIBS=librun.dll %(REQUIRED_LIBS) |
659 |
REQUIRED_FILES=cs3245.dll symbols.stc $(REQUIRED_LIBS) |
|
9532 | 660 |
|
9535 | 661 |
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS) |
9532 | 662 |
|
9943 | 663 |
ALL:: exe setup |
9532 | 664 |
|
9941 | 665 |
# the executable only and all required files here |
9943 | 666 |
exe: $(OUTDIR) $(OBJS) $(REQUIRED_FILES) show $(PROJECT) $(REQUIRED_SUPPORT_DIRS) |
9941 | 667 |
|
668 |
# a nullsoft installable delivery |
|
9532 | 669 |
setup: install_%(APPLICATION).exe |
670 |
||
671 |
# This uses the Nullsoft Installer Package and works in Windows only |
|
672 |
||
673 |
install_%(APPLICATION).exe: $(PROJECT) %(APPLICATION).nsi |
|
9897 | 674 |
$(MAKENSIS) %(APPLICATION).nsi |
9532 | 675 |
|
676 |
new: |
|
677 |
bmake clean |
|
678 |
bmake |
|
679 |
||
9985 | 680 |
RESOURCEFILES: %(APPLICATION)_RESOURCES %(APPLICATION)_BITMAPS \ |
681 |
stx_RESOURCES stx_STYLES stx_BITMAPS |
|
682 |
||
9535 | 683 |
%(RESOURCE_RULES) |
9985 | 684 |
%(STX_RESOURCE_RULES) |
9532 | 685 |
|
686 |
%(PREREQUISITES_LIBS) |
|
687 |
%(SUBPROJECTS_LIBS) |
|
688 |
||
689 |
show: |
|
690 |
@echo LFLAGS= $(LFLAGS) |
|
691 |
@echo ALLOBJ= $(ALLOBJ) |
|
692 |
@echo PROJECT= $(PROJECT) |
|
693 |
@echo ALLLIB= $(ALLLIB) |
|
694 |
@echo DEFFILE= $(DEFFILE) |
|
695 |
@echo ALLRES= $(ALLRES) |
|
696 |
||
697 |
$(PROJECT): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) |
|
698 |
$(BCB)\BIN\$(LINKER) $(LFLAGS) $(ALLOBJ), $(PROJECT),, $(ALLLIB), $(DEFFILE), $(RESFILES) |
|
699 |
||
700 |
#$(PROJECT): $(ALLOBJFILES) $(RESFILES) $(DEFFILE) |
|
701 |
# $(BCB)\BIN\$(LINKER) @&&!! |
|
702 |
# $(LFLAGS) + |
|
703 |
# $(ALLOBJ), + |
|
704 |
# $(PROJECT),, + |
|
705 |
# $(ALLLIB), + |
|
706 |
# $(DEFFILE), + |
|
707 |
# $(RESFILES) |
|
708 |
#!! |
|
709 |
||
710 |
||
711 |
!!INCLUDE $(TOP)\rules\stdRules_nt |
|
712 |
||
713 |
# |
|
714 |
# additional rules |
|
715 |
# |
|
9830 | 716 |
%(APPLICATION)Win.res: %(APPLICATION)Win.rc %(APPLICATION).ico |
9532 | 717 |
|
718 |
main.obj: buildDate.h main.c nt.mak |
|
719 |
||
9687 | 720 |
main.c: $(TOP)\librun\main.c |
9532 | 721 |
copy $(TOP)\librun\main.c main.c |
722 |
||
9816 | 723 |
buildDate.h: $(TOP)\librun\genDate.exe |
724 |
$(TOP)\librun\genDate.exe |
|
9532 | 725 |
|
726 |
librun.dll: $(TOP)\librun\librun.dll |
|
727 |
copy $(TOP)\librun\librun.dll librun.dll |
|
728 |
||
729 |
cs3245.dll: $(TOP)\support\win32\borland\cs3245.dll |
|
730 |
copy $(TOP)\support\win32\borland\cs3245.dll cs3245.dll |
|
731 |
||
732 |
symbols.stc: $(TOP)\include\symbols.stc |
|
733 |
copy $(TOP)\include\symbols.stc symbols.stc |
|
734 |
||
9830 | 735 |
clobber:: |
736 |
-del librun.dll |
|
737 |
||
9532 | 738 |
clean:: |
739 |
-del genDate.exe |
|
740 |
-del c0x32.dll |
|
741 |
-del c0x32.lib |
|
742 |
-del buildDate.h |
|
743 |
-del $(PROJECT) |
|
744 |
-del install_%(APPLICATION).exe |
|
745 |
-del stx.lib |
|
746 |
-del stx.dll |
|
747 |
-del cs3245.dll |
|
748 |
-del $(REQUIRED_FILES) |
|
749 |
-del main.c |
|
750 |
-del *.log |
|
9830 | 751 |
-del *.res |
9532 | 752 |
-rmdir /S /Q resources |
753 |
-rmdir /S /Q objbc |
|
754 |
||
9830 | 755 |
clobber:: |
756 |
-del *.dll |
|
9942 | 757 |
-del *.exe |
9830 | 758 |
|
9532 | 759 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
9886 | 760 |
%(DEPENDENCIES) |
9532 | 761 |
# ENDMAKEDEPEND --- do not remove this line |
9535 | 762 |
'. |
763 |
||
764 |
^ def. |
|
9578 | 765 |
|
9985 | 766 |
"Modified: / 20-09-2006 / 17:39:36 / cg" |
9535 | 767 |
! |
768 |
||
769 |
nt_dot_mak_resource_rules |
|
770 |
^ ' |
|
9890 | 771 |
%(APPLICATION)_RESOURCES: resources\%(MODULE)\%(MODULE_PATH)\NUL |
9985 | 772 |
-copy ..\resources\*.rs resources\%(MODULE)\%(MODULE_PATH)\..\*.* |
9890 | 773 |
|
9893 | 774 |
%(APPLICATION)_BITMAPS: resources\%(MODULE)\%(MODULE_PATH)\bitmaps\NUL |
9985 | 775 |
-copy *.ico resources\%(MODULE)\%(MODULE_PATH)\bitmaps\*.* |
776 |
-copy *.gif resources\%(MODULE)\%(MODULE_PATH)\bitmaps\*.* |
|
777 |
||
778 |
resources\%(MODULE)\%(MODULE_PATH)\bitmaps\NUL: resources\%(MODULE)\%(MODULE_PATH)\NUL |
|
779 |
mkdir resources\%(MODULE)\%(MODULE_PATH)\bitmaps |
|
780 |
||
781 |
resources\%(MODULE)\%(MODULE_PATH)\NUL: resources\%(MODULE)\NUL |
|
782 |
mkdir resources\%(MODULE)\%(MODULE_PATH) |
|
783 |
||
784 |
resources\%(MODULE)\NUL: resources\NUL |
|
785 |
mkdir resources\%(MODULE) |
|
786 |
'. |
|
787 |
||
788 |
"Modified: / 20-09-2006 / 17:41:40 / cg" |
|
789 |
! |
|
790 |
||
791 |
nt_dot_mak_stx_resource_rules |
|
792 |
^ ' |
|
9535 | 793 |
|
794 |
stx_RESOURCES: \ |
|
9894 | 795 |
keyboard.rc \ |
9535 | 796 |
libbasic_RESOURCES \ |
9985 | 797 |
libview_RESOURCES \ |
9535 | 798 |
libtool_RESOURCES \ |
9985 | 799 |
libtool2_RESOURCES |
9535 | 800 |
|
9894 | 801 |
keyboard.rc: $(TOP)\projects\smalltalk\keyboard.rc |
802 |
copy $(TOP)\projects\smalltalk\keyboard.rc *.* |
|
803 |
||
9535 | 804 |
stx_STYLES: resources\stx\libview\NUL |
805 |
copy $(TOP)\libview\styles\mswindowsXP* resources\stx\libview\*.* |
|
806 |
copy $(TOP)\libview\styles\mswindows*.common resources\stx\libview\*.* |
|
807 |
||
808 |
stx_BITMAPS: \ |
|
809 |
libwidg_BITMAPS |
|
810 |
||
811 |
libwidg_BITMAPS: resources\stx\libwidg\bitmaps\NUL |
|
812 |
copy $(TOP)\libwidg\bitmaps\*.xpm resources\stx\libwidg\bitmaps\*.* |
|
813 |
||
814 |
libbasic_RESOURCES: resources\stx\libbasic\NUL |
|
815 |
copy $(TOP)\libbasic\resources\*.rs resources\stx\libbasic\*.* |
|
816 |
||
817 |
libtool_RESOURCES: resources\stx\libtool\NUL |
|
818 |
copy $(TOP)\libtool\resources\*.rs resources\stx\libtool\*.* |
|
819 |
||
820 |
libtool2_RESOURCES: resources\stx\libtool2\NUL |
|
821 |
copy $(TOP)\libtool2\resources\*.rs resources\stx\libtool2\*.* |
|
822 |
||
823 |
libview_RESOURCES: resources\stx\libview\NUL |
|
824 |
copy $(TOP)\libview\resources\*.rs resources\stx\libview\*.* |
|
825 |
||
826 |
libview2_RESOURCES: resources\stx\libview2\NUL |
|
827 |
copy $(TOP)\libview2\resources\*.rs resources\stx\libview2\*.* |
|
828 |
||
829 |
resources\stx\libbasic\NUL: resources\stx\NUL |
|
830 |
mkdir resources\stx\libbasic |
|
831 |
||
832 |
resources\stx\libtool\NUL: resources\stx\NUL |
|
833 |
mkdir resources\stx\libtool |
|
834 |
||
835 |
resources\stx\libtool2\NUL: resources\stx\NUL |
|
836 |
mkdir resources\stx\libtool2 |
|
837 |
||
838 |
resources\stx\libview\NUL: resources\stx\NUL |
|
839 |
mkdir resources\stx\libview |
|
840 |
||
841 |
resources\stx\libview2\NUL: resources\stx\NUL |
|
842 |
mkdir resources\stx\libview2 |
|
843 |
||
844 |
resources\stx\libwidg\bitmaps\NUL: resources\stx\libwidg\NUL |
|
845 |
mkdir resources\stx\libwidg\bitmaps |
|
846 |
||
847 |
resources\stx\libwidg\NUL: resources\stx\NUL |
|
848 |
mkdir resources\stx\libwidg |
|
849 |
||
850 |
resources\stx\NUL: resources\NUL |
|
851 |
mkdir resources\stx |
|
852 |
||
853 |
resources\NUL: |
|
854 |
mkdir resources |
|
855 |
||
856 |
bitmaps\NUL: |
|
857 |
mkdir bitmaps |
|
858 |
||
859 |
doc\NUL: |
|
860 |
mkdir doc |
|
861 |
||
862 |
'. |
|
9890 | 863 |
|
9985 | 864 |
"Created: / 20-09-2006 / 17:36:29 / cg" |
9532 | 865 |
! |
866 |
||
9963 | 867 |
packageName_dot_nsi |
868 |
"the template code for the <appname>.nsi file" |
|
869 |
||
870 |
^ |
|
871 |
'; $','Header','$ |
|
872 |
; Script generated by ProjectDefinition. |
|
873 |
||
874 |
!!define PRODUCT_NAME "%(PRODUCT_NAME)" |
|
875 |
!!define PRODUCT_VERSION "%(PRODUCT_VERSION)" |
|
876 |
!!define PRODUCT_PUBLISHER "%(PRODUCT_PUBLISHER)" |
|
877 |
!!define PRODUCT_WEB_SITE "http://www.expecco.de" |
|
878 |
!!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" |
|
879 |
!!define PRODUCT_UNINST_ROOT_KEY "HKLM" |
|
880 |
||
881 |
!!define STX_ROOT "%(TOP)\.." |
|
882 |
||
883 |
SetCompressor lzma |
|
884 |
||
885 |
||
886 |
; MUI 1.67 compatible ------ |
|
887 |
!!include "MUI.nsh" |
|
888 |
||
889 |
; MUI Settings |
|
890 |
||
891 |
!!define MUI_ABORTWARNING |
|
9985 | 892 |
%(SEMI_IF_ICON_EXISTS)!!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico" |
893 |
%(SEMI_IF_NO_ICON_EXISTS)!!define MUI_ICON "%(APPLICATION).ico" |
|
894 |
%(SEMI_IF_ICON_EXISTS)!!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" |
|
895 |
%(SEMI_IF_NO_ICON_EXISTS)!!define MUI_UNICON "%(APPLICATION).ico" |
|
9963 | 896 |
|
897 |
; Language Selection Dialog Settings |
|
898 |
!!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" |
|
899 |
!!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" |
|
900 |
!!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" |
|
901 |
||
902 |
; Welcome page |
|
903 |
!!insertmacro MUI_PAGE_WELCOME |
|
904 |
; License page |
|
905 |
; !!define MUI_LICENSEPAGE_CHECKBOX |
|
906 |
||
907 |
',(self hasLicenceToAcceptDuringInstallation |
|
908 |
ifTrue:['!!insertmacro MUI_PAGE_LICENSE $(license)'] |
|
909 |
ifFalse:['']),' |
|
910 |
!!insertmacro MUI_PAGE_COMPONENTS |
|
911 |
; Directory page |
|
912 |
!!insertmacro MUI_PAGE_DIRECTORY |
|
913 |
; Instfiles page |
|
914 |
!!insertmacro MUI_PAGE_INSTFILES |
|
915 |
; Finish page |
|
916 |
!!insertmacro MUI_PAGE_FINISH |
|
917 |
||
918 |
; Uninstaller pages |
|
919 |
!!insertmacro MUI_UNPAGE_INSTFILES |
|
920 |
||
921 |
; Language files |
|
922 |
!!insertmacro MUI_LANGUAGE "English" |
|
923 |
!!insertmacro MUI_LANGUAGE "German" |
|
924 |
||
925 |
; MUI end ------ |
|
926 |
||
9985 | 927 |
',((self hasLicenceToAcceptDuringInstallation and:[self docDirPath_win32 notNil]) |
9963 | 928 |
ifTrue:[' |
9985 | 929 |
LicenseLangString license ${LANG_ENGLISH} "',self docDirPath_win32,'\licence_en.txt" |
930 |
LicenseLangString license ${LANG_GERMAN} "',self docDirPath_win32,'\licence_de.txt" |
|
9963 | 931 |
'] |
932 |
ifFalse:['']),' |
|
933 |
||
934 |
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" |
|
935 |
VIProductVersion "${PRODUCT_VERSION}.0" |
|
936 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${PRODUCT_NAME}" |
|
937 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${PRODUCT_PUBLISHER}" |
|
938 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "%(FILE_VERSION)" |
|
939 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${PRODUCT_NAME} Installer" |
|
940 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${PRODUCT_VERSION}" |
|
941 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "%(LEGAL_COPYRIGHT)" |
|
942 |
||
943 |
||
944 |
OutFile "%(PRODUCT_NAME)Setup.exe" |
|
945 |
InstallDir "%(PRODUCT_INSTALLDIR)" |
|
946 |
ShowInstDetails show |
|
947 |
ShowUnInstDetails show |
|
948 |
||
949 |
Function .onInit |
|
950 |
!!insertmacro MUI_LANGDLL_DISPLAY |
|
951 |
FunctionEnd |
|
952 |
||
953 |
InstType Full |
|
954 |
InstType Partial |
|
955 |
||
956 |
Section "Programme" Section1 |
|
957 |
SectionIn 1 2 |
|
958 |
SetOutPath "$INSTDIR\bin" |
|
959 |
SetOverwrite ifnewer |
|
960 |
File "*.dll" |
|
961 |
File "%(APPLICATION).exe" |
|
962 |
File "symbols.stc" |
|
963 |
File "modules.stx" |
|
964 |
File /r "resources" |
|
965 |
File "keyboard.rc" |
|
966 |
||
967 |
; File "${STX_ROOT}\stx\projects\smalltalk\patches" |
|
968 |
; File /r "${STX_ROOT}\stx\projects\smalltalk\include" |
|
969 |
; File /r "${STX_ROOT}\stx\*.rs" |
|
970 |
; File /r "${STX_ROOT}\%(MODULE)\%(APPLICATION)\*.rs" |
|
971 |
; File /x CVS "${STX_ROOT}\stx\libview\styles\*" |
|
972 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
973 |
%(FILE_EXTENION_DEFINITION_LINES) |
9963 | 974 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_NAME).1" "" "%(PRODUCT_NAME) File" |
975 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_NAME).1\DefaultIcon" "" ''$INSTDIR\bin\%(APPLICATION).exe,0'' |
|
976 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_NAME).1\Shell\open" "" $(appOpen) |
|
977 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_NAME).1\Shell\open\command" "" ''"$INSTDIR\bin\%(APPLICATION).exe" -- "%1"'' |
|
978 |
SectionEnd |
|
979 |
||
9985 | 980 |
%(SEMI_IF_NO_DOC_EXISTS)Section "Online-Documentation for %(PRODUCT_NAME)" Section2 |
981 |
%(SEMI_IF_NO_DOC_EXISTS) SectionIn 1 |
|
982 |
%(SEMI_IF_NO_DOC_EXISTS) SetOutPath "$INSTDIR\doc" |
|
983 |
%(SEMI_IF_NO_DOC_EXISTS) SetOverwrite ifnewer |
|
984 |
%(SEMI_IF_NO_DOC_EXISTS) File /r /x CVS "${STX_ROOT}\%(MODULE)\%(APPLICATION)\doc\*" |
|
985 |
%(SEMI_IF_NO_DOC_EXISTS)SectionEnd |
|
9963 | 986 |
|
987 |
;; Section "%(PRODUCT_NAME) Libraries and Demos" Section3 |
|
988 |
;; SectionIn 1 |
|
989 |
;; SetOutPath "$INSTDIR\lib" |
|
990 |
;; SetOverwrite ifnewer |
|
991 |
;; ; File /r /x CVS "${STX_ROOT}\%(MODULE)\%(APPLICATION)\examples\*" |
|
992 |
;; SectionEnd |
|
993 |
;; |
|
994 |
;; Section "%(PRODUCT_NAME) Reports and Printing" Section4 |
|
995 |
;; SectionIn 1 |
|
996 |
;; SetOutPath "$INSTDIR\reportGenerator" |
|
997 |
;; SetOverwrite ifnewer |
|
998 |
;; ; File /r /x CVS "..\reportGenerator\java" "..\reportGenerator\rules" "..\reportGenerator\*.xml" "..\reportGenerator\*.xslt" "..\reportGenerator\CloseApp.exe" "..\reportGenerator\eXpecco.jpg" |
|
999 |
;; SectionEnd |
|
1000 |
||
1001 |
Section -AdditionalIcons |
|
10151
8be8745d851c
app must start in bin-dir, in order for resource files to be found.
Claus Gittinger <cg@exept.de>
parents:
10094
diff
changeset
|
1002 |
SetOutPath "$INSTDIR\bin" |
9963 | 1003 |
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" |
1004 |
CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}" |
|
1005 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\%(APPLICATION).lnk" "$INSTDIR\bin\%(APPLICATION)" |
|
1006 |
CreateShortCut "$DESKTOP\%(APPLICATION).lnk" "$INSTDIR\bin\%(APPLICATION)" |
|
1007 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" |
|
1008 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" "$INSTDIR\uninst.exe" |
|
1009 |
SectionEnd |
|
1010 |
||
1011 |
Section -Post |
|
1012 |
WriteUninstaller "$INSTDIR\uninst.exe" |
|
1013 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" |
|
1014 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" |
|
1015 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" |
|
1016 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" |
|
1017 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" |
|
1018 |
SectionEnd |
|
1019 |
||
1020 |
LangString appOpen ${LANG_GERMAN} "Mit %(PRODUCT_NAME) öffnen" |
|
1021 |
LangString appOpen ${LANG_ENGLISH} "Open with %(PRODUCT_NAME)" |
|
1022 |
||
1023 |
LangString DESC_Section1 ${LANG_ENGLISH} "Program components of %(PRODUCT_NAME)" |
|
1024 |
LangString DESC_Section1 ${LANG_GERMAN} "Alle Programmkomponenten von %(PRODUCT_NAME)" |
|
9985 | 1025 |
%(SEMI_IF_NO_DOC_EXISTS)LangString DESC_Section2 ${LANG_ENGLISH} "Online-Documentation of %(PRODUCT_NAME)" |
1026 |
%(SEMI_IF_NO_DOC_EXISTS)LangString DESC_Section2 ${LANG_GERMAN} "Online-Dokumentation zu %(PRODUCT_NAME)" |
|
9963 | 1027 |
;; LangString DESC_Section3 ${LANG_ENGLISH} "Libraries and Demo Projects" |
1028 |
;; LangString DESC_Section3 ${LANG_GERMAN} "Bibliotheken und Beispielprojekte" |
|
1029 |
;; LangString DESC_Section4 ${LANG_ENGLISH} "Logfile Printing and Report Generation" |
|
1030 |
;; LangString DESC_Section4 ${LANG_GERMAN} "Drucken und Report-Generierung aus Log-Dateien" |
|
1031 |
||
1032 |
||
1033 |
!!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN |
|
1034 |
!!insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1) |
|
9985 | 1035 |
%(SEMI_IF_NO_DOC_EXISTS) !!insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2) |
9963 | 1036 |
;; !!insertmacro MUI_DESCRIPTION_TEXT ${Section3} $(DESC_Section3) |
1037 |
;; !!insertmacro MUI_DESCRIPTION_TEXT ${Section4} $(DESC_Section4) |
|
1038 |
!!insertmacro MUI_FUNCTION_DESCRIPTION_END |
|
1039 |
||
1040 |
||
1041 |
||
1042 |
Function un.onUninstSuccess |
|
1043 |
HideWindow |
|
1044 |
MessageBox MB_ICONINFORMATION|MB_OK "%(PRODUCT_NAME) wurde erfolgreich deinstalliert" |
|
1045 |
FunctionEnd |
|
1046 |
||
1047 |
Function un.onInit |
|
1048 |
!!insertmacro MUI_UNGETLANGUAGE |
|
1049 |
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Möchten Sie %(PRODUCT_NAME) und alle seine Komponenten deinstallieren?" IDYES +2 |
|
1050 |
Abort |
|
1051 |
FunctionEnd |
|
1052 |
||
1053 |
Section Uninstall |
|
1054 |
Delete "$INSTDIR\${PRODUCT_NAME}.url" |
|
1055 |
Delete "$INSTDIR\uninst.exe" |
|
1056 |
Delete "$INSTDIR\*" |
|
1057 |
||
1058 |
Delete "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" |
|
1059 |
Delete "$SMPROGRAMS\${PRODUCT_NAME}\Website.lnk" |
|
1060 |
Delete "$SMPROGRAMS\${PRODUCT_NAME}\%(APPLICATION).lnk" |
|
1061 |
Delete "$DESKTOP\%(APPLICATION).lnk" |
|
1062 |
||
1063 |
RMDir "$SMPROGRAMS\${PRODUCT_NAME}" |
|
1064 |
RMDir /r "$INSTDIR" |
|
1065 |
||
1066 |
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" |
|
1067 |
DeleteRegKey HKCR "%(MODULE_KEY).%(PRODUCT_NAME).1" |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1068 |
%(FILE_EXTENION_UNDEFINITION_LINES) |
9963 | 1069 |
|
1070 |
SetAutoClose true |
|
1071 |
SectionEnd |
|
1072 |
' |
|
1073 |
" |
|
1074 |
bosch_dapasx_application packageName_dot_nsi |
|
1075 |
bosch_dapasx_application generateFile:'dapasx.nsi' |
|
1076 |
" |
|
1077 |
||
1078 |
"Modified: / 09-08-2006 / 15:10:57 / fm" |
|
1079 |
"Created: / 14-09-2006 / 21:09:18 / cg" |
|
10151
8be8745d851c
app must start in bin-dir, in order for resource files to be found.
Claus Gittinger <cg@exept.de>
parents:
10094
diff
changeset
|
1080 |
"Modified: / 27-10-2006 / 19:07:39 / cg" |
9963 | 1081 |
! |
1082 |
||
9816 | 1083 |
packageName_dot_rc |
1084 |
"the template code for the <appname>.rc file" |
|
1085 |
||
1086 |
^ |
|
1087 |
'// |
|
1088 |
// DO NOT EDIT |
|
1089 |
// automagically generated from the projectDefinition: ',self name,'. |
|
1090 |
// |
|
1091 |
#define IDR_MAINFRAME 128 |
|
1092 |
||
1093 |
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US |
|
1094 |
#pragma code_page(1252) |
|
1095 |
||
1096 |
%(ICONDEFINITION_LINE) |
|
1097 |
||
1098 |
VS_VERSION_INFO VERSIONINFO |
|
1099 |
FILEVERSION %(FILE_VERSION_COMMASEPARATED) |
|
1100 |
PRODUCTVERSION %(PRODUCT_VERSION_COMMASEPARATED) |
|
1101 |
// FILEFLAGSMASK 0x3fL |
|
1102 |
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE |
|
1103 |
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD |
|
1104 |
FILEOS VOS_NT_WINDOWS32 |
|
1105 |
FILETYPE %(FILETYPE) |
|
1106 |
FILESUBTYPE VS_USER_DEFINED |
|
1107 |
||
1108 |
BEGIN |
|
1109 |
BLOCK "StringFileInfo" |
|
1110 |
BEGIN |
|
1111 |
BLOCK "040904E4" |
|
1112 |
BEGIN |
|
1113 |
VALUE "CompanyName", "%(COMPANY_NAME)\0" |
|
1114 |
VALUE "FileDescription", "%(FILE_DESCRIPTION)\0" |
|
1115 |
VALUE "FileVersion", "%(FILE_VERSION)\0" |
|
1116 |
// VALUE "OriginalFilename", "DAPASX.EXE\0" |
|
1117 |
VALUE "InternalName", "%(INTERNAL_NAME)\0" |
|
1118 |
%(LEGAL_COPYRIGHT_LINE) |
|
1119 |
VALUE "ProductName", "%(PRODUCT_NAME)\0" |
|
1120 |
VALUE "ProductVersion", "%(PRODUCT_VERSION)\0" |
|
1121 |
VALUE "ProductDate", "%(PRODUCT_DATE)\0" |
|
1122 |
END |
|
1123 |
END |
|
1124 |
||
1125 |
BLOCK "VarFileInfo" |
|
1126 |
BEGIN // Language | Translation |
|
1127 |
VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual |
|
1128 |
END |
|
1129 |
END |
|
1130 |
' |
|
1131 |
" |
|
1132 |
stx_libbasic3 packageName_dot_rc |
|
1133 |
stx_libbasic3 generate_packageName_dot_rc |
|
1134 |
" |
|
1135 |
||
1136 |
"Modified: / 09-08-2006 / 15:10:57 / fm" |
|
1137 |
"Created: / 30-08-2006 / 18:41:47 / cg" |
|
1138 |
! |
|
1139 |
||
9532 | 1140 |
preRequisiteLine_nt_dot_mak |
1141 |
||
9900 | 1142 |
^'%(FILE_NAME).dll: %(MODULE_DIRECTORY)\objbc\%(FILE_NAME).dll |
1143 |
copy %(MODULE_DIRECTORY)\objbc\%(FILE_NAME).dll *.* |
|
9532 | 1144 |
' |
9900 | 1145 |
|
1146 |
"Modified: / 14-09-2006 / 22:00:19 / cg" |
|
9532 | 1147 |
! |
1148 |
||
1149 |
subProjectLine_nt_dot_mak |
|
1150 |
||
1151 |
^'%(LIBRARY_NAME).dll: $(TOP)\..\%(PATH_TO_SUB_PROJECT)\objbc\%(LIBRARY_NAME).dll |
|
1152 |
copy $(TOP)\..\%(PATH_TO_SUB_PROJECT)\objbc\%(LIBRARY_NAME).dll *.* |
|
1153 |
||
1154 |
$(TOP)\..\%(PATH_TO_SUB_PROJECT)\objbc\%(LIBRARY_NAME).dll: |
|
1155 |
cd $(TOP)\..\%(PATH_TO_SUB_PROJECT) |
|
1156 |
bmake |
|
1157 |
-cd $(TOP)\..\%(PATH_TO_MYPROJECT) |
|
1158 |
' |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1159 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1160 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1161 |
undefineExtenionLine_nsi_for:extension |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1162 |
"the template code for a single extenions undefinition line in the <appname>.nsi file" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1163 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1164 |
^ |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1165 |
' DeleteRegKey HKCR ".',extension,'"' |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1166 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1167 |
"Created: / 15-10-2006 / 12:51:00 / cg" |
9532 | 1168 |
! ! |
1169 |
||
1170 |
!ApplicationDefinition class methodsFor:'mappings'! |
|
1171 |
||
9816 | 1172 |
buildDate_dot_h_mappings |
1173 |
|d| |
|
1174 |
||
1175 |
d := Dictionary new. |
|
1176 |
d |
|
9886 | 1177 |
at: 'BUILDDATE' put: (Timestamp now printStringRFC1123Format ). |
9816 | 1178 |
|
1179 |
^ d |
|
1180 |
||
1181 |
"Created: / 30-08-2006 / 19:19:30 / cg" |
|
9886 | 1182 |
"Modified: / 14-09-2006 / 18:58:31 / cg" |
9816 | 1183 |
! |
1184 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1185 |
fileExtensionDefinitionLines_dot_nsi:bindings |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1186 |
^ String streamContents:[:s | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1187 |
self documentExtensions do:[:ext | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1188 |
s nextPutAll:((self defineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings) |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1189 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1190 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1191 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1192 |
"Created: / 15-10-2006 / 12:59:03 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1193 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1194 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1195 |
fileExtensionUndefinitionLines_dot_nsi:bindings |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1196 |
^ String streamContents:[:s | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1197 |
self documentExtensions do:[:ext | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1198 |
s nextPutAll:((self undefineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings) |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1199 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1200 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1201 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1202 |
"Created: / 15-10-2006 / 12:59:18 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1203 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1204 |
|
10023 | 1205 |
make_dot_proto_mappings |
1206 |
^ Dictionary new |
|
1207 |
at: 'TAB' put: ( Character tab asString ); |
|
1208 |
at: 'TOP' put: ( self pathToTop_unix ); |
|
1209 |
at: 'LIBRARY_NAME' put: ( self libraryName ); |
|
1210 |
at: 'SUBDIRECTORIES' put: (self generateSubDirectories); |
|
1211 |
at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_unix); |
|
1212 |
at: 'LOCAL_DEFINES' put: ''; |
|
1213 |
at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
|
1214 |
at: 'ADDITIONAL_DEFINITIONS' put: (self additionalDefinitions_make_dot_proto); |
|
1215 |
at: 'ADDITIONAL_RULES' put: (self additionalRules_make_dot_proto); |
|
1216 |
at: 'ADDITIONAL_TARGETS' put: (self additionalTargets_make_dot_proto); |
|
1217 |
at: 'ADDITIONAL_LINK_LIBRARIES' put: (self additionalLinkLibraries_make_dot_proto); |
|
1218 |
at: 'ADDITIONAL_SHARED_LINK_LIBRARIES' put: (self additionalSharedLinkLibraries_make_dot_proto); |
|
1219 |
at: 'DEPENDENCIES' put: (self generateDependencies_unix); |
|
1220 |
yourself |
|
1221 |
||
1222 |
"Modified: / 09-08-2006 / 16:44:48 / fm" |
|
1223 |
"Created: / 29-09-2006 / 23:47:21 / cg" |
|
1224 |
! |
|
1225 |
||
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1226 |
modules_dot_c_mappings |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1227 |
|d| |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1228 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1229 |
d := Dictionary new. |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1230 |
d |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1231 |
at: 'INIT_LIST' put: (self generateClassLines:(self classLine_modules_dot_c)); |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1232 |
at: 'EXTERN_INIT_NAME_LIST' put: (self generateClassLines:(self classLine_modules_dot_c_extern)); |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1233 |
yourself. |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1234 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1235 |
^ d |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1236 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1237 |
"Created: / 19-09-2006 / 22:42:15 / cg" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1238 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1239 |
|
9535 | 1240 |
modules_dot_stx_mappings |
1241 |
|d| |
|
1242 |
||
1243 |
d := Dictionary new. |
|
1244 |
d |
|
9886 | 1245 |
at: 'PREREQUISITE_LIBS' put: (self generatePreRequisiteLibs_modules_dot_stx); |
1246 |
at: 'SUBPROJECT_LIBS' put: (self generateSubProjectLines_modules_dot_stx ). |
|
9535 | 1247 |
|
1248 |
^ d |
|
9886 | 1249 |
|
1250 |
"Modified: / 14-09-2006 / 18:58:41 / cg" |
|
9535 | 1251 |
! |
1252 |
||
9532 | 1253 |
nt_dot_mak_mappings |
9535 | 1254 |
|d| |
9532 | 1255 |
|
9578 | 1256 |
d := super nt_dot_mak_mappings. |
9535 | 1257 |
d |
9980 | 1258 |
at: 'CONSOLE_OR_NOCONSOLE' put:(self isConsoleApplication ifTrue:'CONSOLE' ifFalse:'NOCONSOLE'); |
9886 | 1259 |
at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32); |
1260 |
at: 'APPLICATION' put: (self applicationName); |
|
1261 |
at: 'RESFILENAME' put: (self resourceFilename ); |
|
1262 |
at: 'RCFILENAME' put: (self rcFilename ); |
|
1263 |
at: 'STARTUP_CLASS' put: ( self startupClassName ); |
|
1264 |
at: 'STARTUP_SELECTOR' put: (self startupSelector ); |
|
1265 |
at: 'REQUIRED_LIBS' put: (self generateRequiredLibs_nt_dot_mak); |
|
1266 |
at: 'PREREQUISITES_LIBS' put: (self generatePreRequisiteLines_nt_dot_mak ); |
|
1267 |
at: 'DEPENDENCIES' put: (self generateDependencies_win32); |
|
9985 | 1268 |
at: 'SUBPROJECTS_LIBS' put: (self generateSubProjectLines_nt_dot_mak ); |
1269 |
yourself. |
|
9535 | 1270 |
|
1271 |
self needResources ifTrue:[ |
|
1272 |
d |
|
9985 | 1273 |
at: 'REQUIRED_SUPPORT_DIRS' put: 'RESOURCEFILES'; |
9886 | 1274 |
at: 'RESOURCE_RULES' put:( self replaceMappings: d |
9985 | 1275 |
in: self nt_dot_mak_resource_rules ); |
1276 |
at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: d |
|
1277 |
in: self nt_dot_mak_stx_resource_rules); |
|
1278 |
yourself |
|
9535 | 1279 |
]. |
1280 |
^ d |
|
9578 | 1281 |
|
9985 | 1282 |
"Modified: / 20-09-2006 / 17:37:57 / cg" |
9532 | 1283 |
! |
1284 |
||
9963 | 1285 |
packageName_dot_nsi_mappings |
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1286 |
|d s defLines undefLines| |
9963 | 1287 |
|
1288 |
d := Dictionary new. |
|
1289 |
d |
|
1290 |
at: 'TOP' put: ( self pathToTop_win32 ); |
|
1291 |
||
1292 |
at: 'APPLICATION' put: (self applicationName); |
|
1293 |
at: 'MODULE' put: ( self module ); |
|
1294 |
at: 'MODULE_KEY' put: ( self module asUppercaseFirst ); |
|
1295 |
at: 'PRODUCT_NAME' put: (self productName); |
|
1296 |
at: 'PRODUCT_VERSION' put: (self productVersion); |
|
1297 |
at: 'PRODUCT_DATE' put: (self productDate); |
|
1298 |
at: 'PRODUCT_PUBLISHER' put: (self productPublisher); |
|
1299 |
at: 'PRODUCT_WEBSITE' put: (self productWebSite); |
|
1300 |
at: 'PRODUCT_INSTALLDIR' put: (self productInstallDir); |
|
1301 |
at: 'FILETYPE' put: ( 'VFT_DLL' ); |
|
1302 |
at: 'FILE_VERSION_COMMASEPARATED' put: (self fileVersionCommaSeparated); |
|
1303 |
at: 'PRODUCT_VERSION_COMMASEPARATED' put: (self productVersionCommaSeparated); |
|
1304 |
||
1305 |
at: 'COMPANY_NAME' put: (self companyName); |
|
1306 |
at: 'FILE_DESCRIPTION' put: (self fileDescription); |
|
1307 |
at: 'FILE_VERSION' put: (self fileVersion); |
|
1308 |
at: 'LEGAL_COPYRIGHT' put: (self legalCopyright ? ''); |
|
1309 |
at: 'INTERNAL_NAME' put: (self internalName). |
|
1310 |
s := self legalCopyright. |
|
1311 |
s notNil ifTrue:[ |
|
9985 | 1312 |
d at: 'LEGAL_COPYRIGHT_LINE' put: ' VALUE "LegalCopyright", "',s,'\0"' |
9963 | 1313 |
]. |
1314 |
s := self iconFileName. |
|
9985 | 1315 |
s isNil ifTrue:[ |
1316 |
d at:'SEMI_IF_NO_ICON_EXISTS' put:';; '. |
|
1317 |
d at:'SEMI_IF_ICON_EXISTS' put:''. |
|
1318 |
] ifFalse:[ |
|
1319 |
d at:'SEMI_IF_NO_ICON_EXISTS' put:''. |
|
1320 |
d at:'SEMI_IF_ICON_EXISTS' put:';; '. |
|
1321 |
d at: #'ICONDEFINITION_LINE' put: 'IDR_MAINFRAME ICON DISCARDABLE "',s,'"' |
|
1322 |
]. |
|
1323 |
self docDirPath_win32 isNil ifTrue:[ |
|
1324 |
d at:'SEMI_IF_NO_DOC_EXISTS' put:';; '. |
|
1325 |
] ifFalse:[ |
|
1326 |
d at:'SEMI_IF_NO_DOC_EXISTS' put:''. |
|
9963 | 1327 |
]. |
1328 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1329 |
defLines := self fileExtensionDefinitionLines_dot_nsi:d. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1330 |
undefLines := self fileExtensionUndefinitionLines_dot_nsi:d. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1331 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1332 |
d at:'FILE_EXTENION_DEFINITION_LINES' put:defLines. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1333 |
d at:'FILE_EXTENION_UNDEFINITION_LINES' put:undefLines. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1334 |
|
9963 | 1335 |
^ d |
1336 |
||
1337 |
"Created: / 14-09-2006 / 21:08:44 / cg" |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1338 |
"Modified: / 15-10-2006 / 13:00:36 / cg" |
9963 | 1339 |
! |
1340 |
||
9532 | 1341 |
preRequisiteLine_nt_dot_mak_mappings: aProjectID |
1342 |
||
1343 |
^Dictionary new |
|
9886 | 1344 |
at: 'FILE_NAME' put: (self libraryNameFor: aProjectID ); |
9900 | 1345 |
at: 'MODULE_DIRECTORY' put: ( self msdosPathToPackage:aProjectID from:(self package) ); |
9532 | 1346 |
yourself |
9567 | 1347 |
|
9900 | 1348 |
"Modified: / 14-09-2006 / 22:01:36 / cg" |
9532 | 1349 |
! |
1350 |
||
9535 | 1351 |
preRequisiteLine_nt_dot_mak_mappingsForClass:aClass |
1352 |
||
1353 |
^Dictionary new |
|
10079 | 1354 |
at: 'FILE_NAME' put: ( aClass classBaseFilename asFilename withoutSuffix baseName ); |
9886 | 1355 |
at: 'MODULE_DIRECTORY' put: ( (PackageId from:aClass package) directory copy replaceAll:$/ with:$\ ); |
9535 | 1356 |
yourself |
9567 | 1357 |
|
10079 | 1358 |
"Modified: / 12-10-2006 / 15:50:52 / cg" |
9535 | 1359 |
! |
1360 |
||
9532 | 1361 |
subProjectLine_nt_dot_mak_mappings: aProjectID |
9557 | 1362 |
^ Dictionary new |
9886 | 1363 |
at: 'LIBRARY_NAME' put: (self libraryNameFor: aProjectID ); |
1364 |
at: 'PATH_TO_SUB_PROJECT' put: ( (PackageId from:aProjectID) module,'\',(PackageId from:aProjectID) directory copy replaceAll:$/ with:$\ ); |
|
1365 |
at: 'PATH_TO_MYPROJECT' put: (self msdosPathToPackage: self package from: aProjectID); |
|
9557 | 1366 |
yourself |
9532 | 1367 |
|
9886 | 1368 |
"Modified: / 14-09-2006 / 18:59:26 / cg" |
9532 | 1369 |
! ! |
1370 |
||
1371 |
!ApplicationDefinition class methodsFor:'mappings support'! |
|
1372 |
||
9535 | 1373 |
generatePreRequisiteLibs_modules_dot_stx |
9578 | 1374 |
^ String streamContents:[:s | |
1375 |
self preRequisites do:[:projectID | |
|
9687 | 1376 |
s nextPutLine:(self libraryNameFor:projectID) |
1377 |
]. |
|
1378 |
self isGUIApplication ifTrue:[ |
|
9833 | 1379 |
self guiClassFileNames_win32 do:[:eachFilename | |
9687 | 1380 |
s nextPutLine:(eachFilename asFilename withoutSuffix baseName) |
9535 | 1381 |
]. |
9578 | 1382 |
]. |
9687 | 1383 |
]. |
9535 | 1384 |
|
1385 |
" |
|
9687 | 1386 |
bosch_dapasx_application generatePreRequisiteLibs_modules_dot_stx |
9535 | 1387 |
" |
9567 | 1388 |
|
9833 | 1389 |
"Modified: / 07-09-2006 / 17:22:58 / cg" |
9535 | 1390 |
! |
1391 |
||
1392 |
generatePreRequisiteLines_nt_dot_mak |
|
9532 | 1393 |
|
1394 |
^ String streamContents:[:s | |
|
9535 | 1395 |
self preRequisites do:[:eachPackage | |
9532 | 1396 |
|mappings newObjectLine| |
9535 | 1397 |
mappings := self preRequisiteLine_nt_dot_mak_mappings: eachPackage. |
9532 | 1398 |
newObjectLine := self replaceMappings: mappings |
1399 |
in: self preRequisiteLine_nt_dot_mak. |
|
1400 |
s nextPutAll:newObjectLine. |
|
1401 |
s cr. |
|
9535 | 1402 |
]. |
9833 | 1403 |
self guiClasses_win32 do:[:eachClass | |
9535 | 1404 |
|mappings newObjectLine| |
1405 |
mappings := self preRequisiteLine_nt_dot_mak_mappingsForClass: eachClass. |
|
1406 |
newObjectLine := self replaceMappings: mappings |
|
1407 |
in: self preRequisiteLine_nt_dot_mak. |
|
1408 |
s nextPutAll:newObjectLine. |
|
1409 |
s cr. |
|
1410 |
]. |
|
1411 |
||
9532 | 1412 |
] |
9900 | 1413 |
" |
1414 |
bosch_dapasx_application generatePreRequisiteLines_nt_dot_mak |
|
1415 |
" |
|
9532 | 1416 |
|
1417 |
"Created: / 09-08-2006 / 11:24:39 / fm" |
|
9900 | 1418 |
"Modified: / 14-09-2006 / 21:58:47 / cg" |
9532 | 1419 |
! |
1420 |
||
1421 |
generateRequiredLibs_nt_dot_mak |
|
9578 | 1422 |
^ String streamContents:[:s | |
9816 | 1423 |
s nextPutLine:' \'. |
9578 | 1424 |
self preRequisites do:[:projectID | |
9816 | 1425 |
s space; nextPutAll:(self libraryNameFor:projectID),'.dll'; nextPutLine:' \'. |
9578 | 1426 |
]. |
9535 | 1427 |
|
9578 | 1428 |
self isGUIApplication ifTrue:[ |
9833 | 1429 |
self guiClassFileNames_win32 do:[:eachFilename | |
9816 | 1430 |
s space; nextPutAll:eachFilename; nextPutLine:' \'. |
9578 | 1431 |
]. |
1432 |
]. |
|
1433 |
self subProjects do:[:projectID | |
|
9816 | 1434 |
s space; nextPutAll:(self libraryNameFor:projectID),'.dll'; nextPutLine:' \'. |
9535 | 1435 |
]. |
9816 | 1436 |
s cr. |
9532 | 1437 |
]. |
1438 |
||
9535 | 1439 |
" |
9816 | 1440 |
bosch_dapasx_application generateRequiredLibs_nt_dot_mak |
9535 | 1441 |
" |
9567 | 1442 |
|
9833 | 1443 |
"Modified: / 07-09-2006 / 17:22:51 / cg" |
9532 | 1444 |
! |
1445 |
||
9535 | 1446 |
generateSubProjectLines_modules_dot_stx |
1447 |
|string| |
|
1448 |
||
1449 |
string := String streamContents:[:s | |
|
1450 |
self subProjects do:[:projectID | |
|
9687 | 1451 |
s nextPutLine:(self libraryNameFor:projectID) |
9535 | 1452 |
]. |
1453 |
]. |
|
1454 |
||
1455 |
^ string |
|
1456 |
||
1457 |
" |
|
9687 | 1458 |
bosch_dapasx_application generateSubProjectLines_modules_dot_stx |
9535 | 1459 |
" |
9567 | 1460 |
|
1461 |
"Modified: / 17-08-2006 / 17:22:37 / cg" |
|
9535 | 1462 |
! |
1463 |
||
1464 |
generateSubProjectLines_nt_dot_mak |
|
9532 | 1465 |
|
1466 |
^ String streamContents:[:s | |
|
9886 | 1467 |
self subProjects do:[:projectID | |
9532 | 1468 |
|mappings newObjectLine| |
9687 | 1469 |
|
9886 | 1470 |
mappings := self subProjectLine_nt_dot_mak_mappings: projectID. |
9532 | 1471 |
newObjectLine := self replaceMappings: mappings |
1472 |
in: self subProjectLine_nt_dot_mak. |
|
1473 |
s nextPutAll:newObjectLine. |
|
1474 |
s cr. |
|
1475 |
] |
|
1476 |
] |
|
1477 |
" |
|
9535 | 1478 |
bosch_dapasx_application generateSubProjectLinesnt_dot_mak |
9532 | 1479 |
|
1480 |
" |
|
1481 |
||
1482 |
"Created: / 09-08-2006 / 11:24:39 / fm" |
|
9886 | 1483 |
"Modified: / 14-09-2006 / 18:46:09 / cg" |
9532 | 1484 |
! ! |
1485 |
||
9813 | 1486 |
!ApplicationDefinition class methodsFor:'queries'! |
1487 |
||
1488 |
canHaveExtensions |
|
1489 |
"return true, if this class allows extensions from other packages. |
|
1490 |
Private classes, namespaces and projectDefinitions dont allow this" |
|
1491 |
||
1492 |
^ self == ApplicationDefinition |
|
1493 |
||
1494 |
" |
|
1495 |
Smalltalk allClasses select:[:each | each canHaveExtensions not] |
|
1496 |
" |
|
1497 |
||
1498 |
"Created: / 30-08-2006 / 15:29:49 / cg" |
|
1499 |
! ! |
|
1500 |
||
9725 | 1501 |
!ApplicationDefinition class methodsFor:'sanity checks'! |
1502 |
||
1503 |
validateDescription |
|
9958 | 1504 |
super validateDescription. |
1505 |
||
9725 | 1506 |
#( |
1507 |
startupClassName |
|
1508 |
"/ startupSelector |
|
1509 |
) do:[:sel | |
|
1510 |
(self theMetaclass implements:sel) ifFalse:[ |
|
1511 |
Dialog |
|
1512 |
warn:('The %1-method is missing from the description %2!!' |
|
1513 |
bindWith:sel allBold |
|
1514 |
with:self name allBold). |
|
1515 |
AbortSignal raise. |
|
1516 |
]. |
|
1517 |
(Error catch:[ self perform:sel ]) ifTrue:[ |
|
1518 |
Dialog |
|
1519 |
warn:('The %1-method needs to be edited in the description %2!!' |
|
1520 |
bindWith:sel allBold |
|
1521 |
with:self name allBold). |
|
1522 |
AbortSignal raise. |
|
1523 |
]. |
|
1524 |
]. |
|
9958 | 1525 |
|
1526 |
"Modified: / 19-09-2006 / 20:17:38 / cg" |
|
9725 | 1527 |
! ! |
1528 |
||
9587 | 1529 |
!ApplicationDefinition class methodsFor:'testing'! |
1530 |
||
9669 | 1531 |
isApplicationDefinition |
1532 |
^ self ~~ ApplicationDefinition |
|
1533 |
||
1534 |
"Created: / 23-08-2006 / 15:17:38 / cg" |
|
1535 |
! |
|
1536 |
||
9587 | 1537 |
isProjectDefinition |
1538 |
^ self ~~ ApplicationDefinition |
|
1539 |
||
1540 |
"Created: / 17-08-2006 / 14:11:56 / cg" |
|
1541 |
! ! |
|
1542 |
||
9532 | 1543 |
!ApplicationDefinition class methodsFor:'documentation'! |
1544 |
||
1545 |
version |
|
10151
8be8745d851c
app must start in bin-dir, in order for resource files to be found.
Claus Gittinger <cg@exept.de>
parents:
10094
diff
changeset
|
1546 |
^ '$Header: /cvs/stx/stx/libbasic/ApplicationDefinition.st,v 1.52 2006-10-27 17:10:37 cg Exp $' |
9532 | 1547 |
! ! |