author | fm |
Tue, 15 Apr 2008 14:15:18 +0200 | |
changeset 10957 | 1761f8148208 |
parent 10874 | c5ee23aeedc2 |
child 10966 | b539f96552b0 |
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 |
10572 | 15 |
instanceVariableNames:'' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Support-Projects' |
|
9532 | 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 |
" |
|
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
35 |
! |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
36 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
37 |
documentation |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
38 |
" |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
39 |
subclasses provide the info on how to build executables and class libraries. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
40 |
Actually, subclasses must be subclasses of either LibraryDefinition or |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
41 |
ApplicationDefinition. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
42 |
These know how to generate all required help files for make-building. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
43 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
44 |
Concrete definition classes must redefine: |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
45 |
classNamesAndAttributes |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
46 |
list of classes which are part of the dll/exe |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
47 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
48 |
extensionMethodNames |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
49 |
list of extension methods |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
50 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
51 |
startupClassName / startupSelector |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
52 |
class and selector with which the show starts |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
53 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
54 |
buildTarget name of the generated exe-file |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
55 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
56 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
57 |
should redefine: |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
58 |
preRequisites list of required packages |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
59 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
60 |
iconFileName name of a .ico file containing the applications icon |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
61 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
62 |
companyName name of your company - will be shown by windows explorer |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
63 |
as attribute of a .dll or .exe |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
64 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
65 |
description short description; shown by windows explorer |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
66 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
67 |
legalCopyright copyright message; shown by windows explorer |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
68 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
69 |
productName product name; shown by windows explorer |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
70 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
71 |
applicationName app name; shown by windows explorer |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
72 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
73 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
74 |
might redefine: |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
75 |
isConsoleApplication if true, windows-build generates a console app. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
76 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
77 |
isGUIApplication if true, the GUI framework is linked in |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
78 |
(as opposed to a non-GUI server-like executable) |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
79 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
80 |
|
10427 | 81 |
The above info might be outdated a bit - see stx_projects_smalltalk as a concrete example. |
82 |
||
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
83 |
[author:] |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
84 |
Felix Madrid |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
85 |
Claus Gittinger |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
86 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
87 |
[see also:] |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
88 |
stx_projects_smalltalk |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
89 |
stx_libbasic |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
90 |
stx_libbasic2 |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
91 |
" |
9552 | 92 |
! ! |
9532 | 93 |
|
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
94 |
!ApplicationDefinition class methodsFor:'accessing'! |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
95 |
|
10563 | 96 |
appSourcesProjects |
97 |
"Returns only the application projects (which are included in the application module)" |
|
98 |
||
99 |
^self preRequisites select:[:each | |
|
100 |
(self moduleFor: each) = self module |
|
101 |
]. |
|
102 |
||
103 |
" |
|
104 |
bosch_dapasx_application appSourcesProjects |
|
105 |
" |
|
106 |
! |
|
107 |
||
108 |
stxSourcesProjects |
|
10565 | 109 |
"Returns only the required STX projects (which are included in the STX module)" |
110 |
||
111 |
^self preRequisites select:[:each | |
|
112 |
(self moduleFor: each) = (self moduleFor: #'stx') |
|
113 |
]. |
|
114 |
||
115 |
" |
|
116 |
bosch_dapasx_application stxSourcesProjects |
|
117 |
" |
|
118 |
||
119 |
" |
|
120 |
#( |
|
10563 | 121 |
'libbasic' |
122 |
'libbasic2' |
|
123 |
'libcomp' |
|
124 |
'libview' |
|
125 |
'libview2' |
|
126 |
'libwidg' |
|
127 |
'libwidg2' |
|
128 |
'libtool' |
|
129 |
'libtool2' |
|
130 |
'libhtml' |
|
131 |
'libui' |
|
132 |
) |
|
10565 | 133 |
" |
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
134 |
! ! |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
135 |
|
10000 | 136 |
!ApplicationDefinition class methodsFor:'code generation'! |
137 |
||
138 |
forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition |
|
139 |
super forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition. |
|
140 |
||
141 |
aTwoArgBlock |
|
142 |
value:self subProjects_code |
|
143 |
value:'description'. |
|
144 |
||
145 |
aTwoArgBlock |
|
146 |
value:self preRequisites_code |
|
147 |
value:'description'. |
|
148 |
||
149 |
(self class implements:#startupClassName) ifFalse:[ |
|
150 |
aTwoArgBlock |
|
151 |
value:self startupClassName_code |
|
152 |
value:'description - startup'. |
|
153 |
]. |
|
154 |
(self class implements:#startupSelector) ifFalse:[ |
|
155 |
aTwoArgBlock |
|
156 |
value:self startupSelector_code |
|
157 |
value:'description - startup'. |
|
158 |
]. |
|
159 |
||
160 |
"Created: / 10-08-2006 / 16:35:47 / cg" |
|
161 |
"Modified: / 30-08-2006 / 19:03:48 / cg" |
|
162 |
! |
|
163 |
||
164 |
startupClassName_code |
|
10283 | 165 |
|classes startClasses mainClasses appClasses cls| |
10275 | 166 |
|
167 |
classes := self classNamesAndAttributes |
|
168 |
collect:[:nm | Smalltalk classNamed:nm] |
|
169 |
thenSelect:[:cls | cls notNil and:[cls isProjectDefinition not ]]. |
|
170 |
||
10283 | 171 |
mainClasses := classes select:[:each | each theMetaclass implements:#main ]. |
10275 | 172 |
mainClasses size == 1 ifTrue:[ |
173 |
^ self startupClassName_codeFor:(mainClasses first name) |
|
174 |
]. |
|
175 |
mainClasses isEmpty ifTrue:[ |
|
10283 | 176 |
startClasses := classes select:[:each | each theMetaclass implements:#start ]. |
177 |
startClasses size == 1 ifTrue:[ |
|
178 |
^ self startupClassName_codeFor:(startClasses first name) |
|
10275 | 179 |
]. |
10283 | 180 |
startClasses isEmpty ifTrue:[ |
181 |
appClasses := classes select:[:each | each isSubclassOf:ApplicationModel ]. |
|
182 |
appClasses size == 1 ifTrue:[ |
|
183 |
^ self startupClassName_codeFor:(appClasses first name) |
|
184 |
]. |
|
185 |
] |
|
10275 | 186 |
]. |
187 |
||
10000 | 188 |
^ |
189 |
'startupClassName |
|
190 |
self error:''undefined startupClass''. |
|
191 |
^ ''<name of class here>'' |
|
192 |
' |
|
10275 | 193 |
|
10283 | 194 |
"Modified: / 27-12-2006 / 11:43:34 / cg" |
10000 | 195 |
! |
196 |
||
197 |
startupClassName_codeFor:aClassName |
|
198 |
^ |
|
199 |
'startupClassName |
|
200 |
^ ''',aClassName,''' |
|
201 |
' |
|
202 |
||
203 |
"Created: / 05-09-2006 / 13:40:32 / cg" |
|
204 |
! |
|
205 |
||
206 |
startupSelector_code |
|
10807
ab4e65750d0b
Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents:
10803
diff
changeset
|
207 |
"generate a the code that answers the startupSelector. |
ab4e65750d0b
Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents:
10803
diff
changeset
|
208 |
try #open and #start." |
ab4e65750d0b
Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents:
10803
diff
changeset
|
209 |
|
10283 | 210 |
|clsName cls sel| |
211 |
||
212 |
Error |
|
213 |
handle:[:ex | ] |
|
214 |
do:[ |
|
215 |
clsName := self startupClassName. |
|
216 |
cls := Smalltalk classNamed:clsName. |
|
217 |
]. |
|
10000 | 218 |
|
10807
ab4e65750d0b
Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents:
10803
diff
changeset
|
219 |
sel := #start. |
10283 | 220 |
cls notNil ifTrue:[ |
221 |
(cls respondsTo:#open) ifTrue:[ |
|
10807
ab4e65750d0b
Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents:
10803
diff
changeset
|
222 |
sel := #open |
10283 | 223 |
]. |
10275 | 224 |
]. |
225 |
||
226 |
^ self startupSelector_codeFor:sel |
|
227 |
||
10283 | 228 |
"Modified: / 27-12-2006 / 11:45:38 / cg" |
10000 | 229 |
! |
230 |
||
231 |
startupSelector_codeFor:aSelector |
|
232 |
^ |
|
233 |
'startupSelector |
|
10275 | 234 |
^ #''',aSelector,''' |
10000 | 235 |
' |
236 |
||
237 |
"Created: / 05-09-2006 / 13:41:01 / cg" |
|
10275 | 238 |
"Modified: / 15-12-2006 / 14:10:11 / cg" |
10000 | 239 |
! |
240 |
||
241 |
subProjects_code |
|
242 |
|subProjects| |
|
243 |
||
244 |
subProjects := |
|
245 |
(self siblingsAreSubProjects) |
|
246 |
ifTrue:[ self searchForSiblingProjects ] |
|
247 |
ifFalse:[ self searchForSubProjects ]. |
|
248 |
||
249 |
subProjects removeAll: self excludedFromSubProjects. |
|
250 |
||
251 |
^ String streamContents:[:s | |
|
252 |
s nextPutLine:'subProjects'. |
|
253 |
s nextPutLine:' ^ #('. |
|
254 |
subProjects do:[:eachPackageID | |
|
255 |
s nextPutLine:eachPackageID asString storeString |
|
256 |
]. |
|
257 |
s nextPutLine:')' |
|
258 |
]. |
|
259 |
||
260 |
" |
|
261 |
bosch_dapasx subProjectsGeneratedString |
|
262 |
stx_goodies subProjectsGeneratedString |
|
263 |
" |
|
264 |
||
265 |
"Modified: / 08-08-2006 / 19:24:34 / fm" |
|
266 |
"Created: / 17-08-2006 / 21:26:51 / cg" |
|
267 |
! ! |
|
268 |
||
9535 | 269 |
!ApplicationDefinition class methodsFor:'defaults'! |
9532 | 270 |
|
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
271 |
buildTarget |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
272 |
"which target in the Makefile should be built by default? |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
273 |
For now, reasonable return values are 'exe', which builds the executable(s), |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
274 |
and 'ALL', which builds everything, including an installable package. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
275 |
Here, 'ALL' is returned. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
276 |
There is usually no need to redefine this default - we at exept do it for the |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
277 |
stx package only to speed up our own build, as we seldom need new install packages, |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
278 |
put often build new executables..." |
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
279 |
|
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
280 |
^ 'ALL' |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
281 |
! |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
282 |
|
9886 | 283 |
guiClassFileNames_unix |
284 |
^ self guiClasses_unix |
|
10079 | 285 |
collect:[:cls | (cls classBaseFilename asFilename withSuffix:'so') baseName]. |
9886 | 286 |
|
287 |
"Created: / 14-09-2006 / 18:13:22 / cg" |
|
10079 | 288 |
"Modified: / 12-10-2006 / 15:50:39 / cg" |
9886 | 289 |
! |
290 |
||
9833 | 291 |
guiClassFileNames_win32 |
292 |
^ self guiClasses_win32 |
|
10079 | 293 |
collect:[:cls | (cls classBaseFilename asFilename withSuffix:'dll') baseName]. |
9833 | 294 |
|
295 |
"Created: / 07-09-2006 / 17:23:13 / cg" |
|
10079 | 296 |
"Modified: / 12-10-2006 / 15:50:42 / cg" |
9886 | 297 |
! |
298 |
||
299 |
guiClasses_unix |
|
300 |
^ #() |
|
301 |
||
302 |
"Created: / 14-09-2006 / 18:12:58 / cg" |
|
9532 | 303 |
! |
304 |
||
9833 | 305 |
guiClasses_win32 |
9886 | 306 |
^ #() |
307 |
"/ ^ Array with:XWorkstation |
|
9833 | 308 |
|
309 |
"Created: / 07-09-2006 / 17:22:27 / cg" |
|
9886 | 310 |
"Modified: / 14-09-2006 / 18:12:35 / cg" |
9535 | 311 |
! |
9532 | 312 |
|
9535 | 313 |
needResources |
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
314 |
"answer true, if this application |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
315 |
needs resources to be installed. This is normally true. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
316 |
Even non-GUI apps need some (libbasic/resources)" |
10214
19326faaa3c6
careful with resources rule (under nt) if module is stx.
Claus Gittinger <cg@exept.de>
parents:
10151
diff
changeset
|
317 |
|
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
318 |
^ true |
9532 | 319 |
! ! |
320 |
||
9535 | 321 |
!ApplicationDefinition class methodsFor:'description'! |
9532 | 322 |
|
10427 | 323 |
additionalFilesToInstall |
324 |
"application-specific files to be installed. |
|
325 |
Can be redefined in subclasses." |
|
326 |
||
327 |
^ #() |
|
328 |
||
329 |
"Created: / 01-03-2007 / 20:02:21 / cg" |
|
330 |
! |
|
331 |
||
10423 | 332 |
applicationIconFileName |
333 |
"answer the base-name of the application icon (i.e. 'app' in <app>.ico) |
|
334 |
||
335 |
Subclasses may redefine this" |
|
336 |
||
337 |
^ self applicationName |
|
338 |
! |
|
339 |
||
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
340 |
applicationName |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
341 |
"answer the name of the application. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
342 |
This is also the name of the generated .exe file. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
343 |
|
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
344 |
Subclasses may redefine this" |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
345 |
|
10420 | 346 |
^ self applicationNameFromPackage |
347 |
||
348 |
" |
|
349 |
bosch_dapasx_application applicationName |
|
350 |
stx_projects_smalltalk applicationName |
|
351 |
" |
|
352 |
||
353 |
"Created: / 08-08-2006 / 20:25:39 / fm" |
|
354 |
"Modified: / 30-08-2006 / 19:29:25 / cg" |
|
355 |
! |
|
356 |
||
357 |
applicationNameConsole |
|
358 |
^ self applicationName,'_debug' |
|
359 |
! |
|
360 |
||
361 |
applicationNameFromPackage |
|
362 |
"answer the name of the application. |
|
363 |
This is also the name of the generated .exe file. |
|
364 |
||
365 |
Subclasses may redefine this" |
|
366 |
||
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
367 |
|m path| |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
368 |
|
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
369 |
m := self moduleDirectory. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
370 |
path := m subStrings:$/. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
371 |
path last = 'application' ifTrue:[ |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
372 |
path size > 1 ifTrue:[ |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
373 |
path := path copyWithoutLast:1. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
374 |
]. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
375 |
]. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
376 |
^ path last |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
377 |
|
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
378 |
" |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
379 |
bosch_dapasx_application applicationName |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
380 |
stx_projects_smalltalk applicationName |
10708 | 381 |
alspa_batch_application applicationName |
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
382 |
" |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
383 |
|
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
384 |
"Created: / 08-08-2006 / 20:25:39 / fm" |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
385 |
"Modified: / 30-08-2006 / 19:29:25 / cg" |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
386 |
! |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
387 |
|
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
388 |
applicationNameNoConsole |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
389 |
^ self applicationName |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
390 |
! |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
391 |
|
10708 | 392 |
applicationPackage |
393 |
||
394 |
^self module, ':', self applicationNameFromPackage |
|
395 |
||
396 |
" |
|
397 |
bosch_dapasx_application applicationPackage |
|
398 |
stx_projects_smalltalk applicationPackage |
|
399 |
alspa_batch_application applicationPackage |
|
400 |
" |
|
401 |
||
402 |
"Created: / 08-08-2006 / 20:25:39 / fm" |
|
403 |
"Modified: / 30-08-2006 / 19:29:25 / cg" |
|
404 |
! |
|
405 |
||
406 |
applicationType |
|
407 |
||
408 |
^self isGUIApplication |
|
409 |
ifTrue:['GUI_APPLICATION'] |
|
410 |
ifFalse:['NON_GUI_APPLICATION'] |
|
411 |
! |
|
412 |
||
10427 | 413 |
commonFilesToInstall |
414 |
"files installed for applications. |
|
415 |
Do not redefine - see additionalFilesToInstall for a redefinable variant of this" |
|
416 |
||
417 |
^ #( |
|
418 |
'"*.dll"' |
|
419 |
'"symbols.stc"' |
|
10572 | 420 |
'"*.stx"' |
421 |
'"*.rc"' |
|
10427 | 422 |
'/r "resources"' |
423 |
) |
|
424 |
||
425 |
"Created: / 01-03-2007 / 20:05:40 / cg" |
|
426 |
! |
|
427 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
428 |
documentExtensions |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
429 |
"list extensions which should be registered with the application. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
430 |
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
|
431 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
432 |
^ #() |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
433 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
434 |
"Created: / 15-10-2006 / 12:44:14 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
435 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
436 |
|
10379
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
437 |
isConsoleApplication |
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
438 |
"Return true, if this is a console application (used with win32 only). |
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
439 |
Console applications have stdout and stderr and open up a command-window |
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
440 |
when started. Only console applications can interact with the user in the |
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
441 |
command line window. |
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
442 |
By default, GUI apps are compiled as non-console apps." |
9532 | 443 |
|
10379
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
444 |
^ self isGUIApplication not |
9578 | 445 |
|
10379
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
446 |
"Created: / 20-09-2006 / 11:29:24 / cg" |
9532 | 447 |
! |
448 |
||
9535 | 449 |
isGUIApplication |
9578 | 450 |
"Return true, if this is a GUI app. |
451 |
Redefine to return false for non-GUI applications (affects inclusion of Display classes)." |
|
9535 | 452 |
|
9578 | 453 |
^true |
9535 | 454 |
|
455 |
"Created: / 08-08-2006 / 11:15:01 / fm" |
|
9578 | 456 |
"Modified: / 17-08-2006 / 19:47:36 / cg" |
9532 | 457 |
! |
458 |
||
9823 | 459 |
isSingleThreadedApplication |
460 |
"Return true, if this should be started without multiple threads. |
|
461 |
(not possible with gui applications)" |
|
462 |
||
463 |
^false |
|
464 |
||
465 |
"Created: / 05-09-2006 / 13:36:18 / cg" |
|
466 |
! |
|
467 |
||
10418 | 468 |
logFilenameNoConsole |
469 |
"/ ^ (self applicationNameNoConsole , '_%d.log') |
|
470 |
^ (self applicationNameNoConsole , '.log') |
|
471 |
! |
|
472 |
||
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
473 |
offerApplicationSourceCode |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
474 |
"Return true, if the source code of the application should be offered as install option" |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
475 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
476 |
^ false |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
477 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
478 |
"Created: / 15-05-2007 / 16:46:05 / cg" |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
479 |
! |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
480 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
481 |
offerSmalltalkSourceCode |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
482 |
"Return true, if the source code of the smalltalk base system should be offered as install option" |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
483 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
484 |
^ false |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
485 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
486 |
"Created: / 15-05-2007 / 16:46:18 / cg" |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
487 |
! |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
488 |
|
9725 | 489 |
startupClassName |
9578 | 490 |
"The name of the class which provides the entry point for the application." |
9532 | 491 |
|
9578 | 492 |
self subclassResponsibility |
493 |
||
494 |
"Modified: / 17-08-2006 / 20:00:22 / cg" |
|
9532 | 495 |
! |
496 |
||
9725 | 497 |
startupSelector |
9578 | 498 |
"The name of the entry point method (in startUpClass) used to start the application." |
9532 | 499 |
|
10379
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
500 |
^ #start |
9578 | 501 |
|
502 |
"Modified: / 17-08-2006 / 20:01:00 / cg" |
|
503 |
! ! |
|
504 |
||
505 |
!ApplicationDefinition class methodsFor:'description - project information'! |
|
506 |
||
507 |
description |
|
508 |
"Returns a description string which will appear in nt.def / bc.def" |
|
509 |
||
510 |
self module = 'stx' ifTrue:[ |
|
511 |
^ 'Smalltalk/X Application' |
|
512 |
]. |
|
513 |
||
9587 | 514 |
^ 'Application' |
9578 | 515 |
|
516 |
"Created: / 17-08-2006 / 20:52:48 / cg" |
|
9587 | 517 |
"Modified: / 18-08-2006 / 16:16:01 / cg" |
9889 | 518 |
! |
519 |
||
9985 | 520 |
docDirPath_unix |
521 |
"path relative to my dir to the documentation - or nil" |
|
522 |
||
523 |
^ nil |
|
524 |
||
525 |
"Created: / 20-09-2006 / 17:58:44 / cg" |
|
526 |
! |
|
527 |
||
528 |
docDirPath_win32 |
|
529 |
"path relative to my dir to the documentation - or nil" |
|
530 |
||
531 |
^ nil |
|
532 |
||
533 |
"Created: / 20-09-2006 / 17:58:40 / cg" |
|
534 |
! |
|
535 |
||
9889 | 536 |
fileDescription |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
537 |
"Return a description string which will appear in nt.def / bc.def and the rc-file" |
9889 | 538 |
|
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
539 |
^ self description , ' App' |
9889 | 540 |
|
541 |
"Created: / 14-09-2006 / 20:08:11 / cg" |
|
9900 | 542 |
! |
543 |
||
544 |
hasLicenceToAcceptDuringInstallation |
|
545 |
^ false |
|
546 |
||
547 |
"Created: / 14-09-2006 / 22:34:00 / cg" |
|
9532 | 548 |
! ! |
549 |
||
550 |
!ApplicationDefinition class methodsFor:'file generation'! |
|
551 |
||
9854 | 552 |
basicFileNamesToGenerate |
10863
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
553 |
"answer a dictionary (filename -> generator method) with all the files, that have to be generated for this |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
554 |
package" |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
555 |
|
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
556 |
|dict| |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
557 |
|
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
558 |
dict := super basicFileNamesToGenerate. |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
559 |
|
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
560 |
dict |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
561 |
at:'modules.stx' put:#'generate_modules_dot_stx'; |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
562 |
at:'modules.c' put:#'generate_modules_dot_c'; |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
563 |
at:self rcFilename put:#'generate_packageName_dot_rc'; |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
564 |
at:self nsiFilename put:#'generate_packageName_dot_nsi'. |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
565 |
|
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
566 |
^ dict. |
9623 | 567 |
! |
568 |
||
10848
e0bd864b17f2
.nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents:
10809
diff
changeset
|
569 |
generateFile:filename |
e0bd864b17f2
.nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents:
10809
diff
changeset
|
570 |
(filename = 'app.nsi' or:[filename = self nsiFilename]) ifTrue:[ |
e0bd864b17f2
.nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents:
10809
diff
changeset
|
571 |
^ self generate_packageName_dot_nsi |
e0bd864b17f2
.nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents:
10809
diff
changeset
|
572 |
]. |
e0bd864b17f2
.nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents:
10809
diff
changeset
|
573 |
^ super generateFile:filename |
e0bd864b17f2
.nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents:
10809
diff
changeset
|
574 |
! |
e0bd864b17f2
.nsi file buidling for Application
Stefan Vogel <sv@exept.de>
parents:
10809
diff
changeset
|
575 |
|
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
576 |
generate_modules_dot_c |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
577 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
578 |
^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
|
579 |
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
|
580 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
581 |
" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
582 |
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
|
583 |
" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
584 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
585 |
"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
|
586 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
587 |
|
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
588 |
generate_modules_dot_stx |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
589 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
590 |
^self replaceMappings: self modules_dot_stx_mappings |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
591 |
in: self modules_dot_stx |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
592 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
593 |
" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
594 |
bosch_dapasx_application generate_modules_dot_stx |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
595 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
596 |
" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
597 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
598 |
"Modified: / 09-08-2006 / 11:31:09 / fm" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
599 |
"Modified: / 11-08-2006 / 14:01:56 / cg" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
600 |
! |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
601 |
|
9963 | 602 |
generate_packageName_dot_nsi |
603 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
604 |
^self |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
605 |
replaceMappings: self packageName_dot_nsi_mappings |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
606 |
in: self packageName_dot_nsi |
9963 | 607 |
|
608 |
" |
|
609 |
bosch_dapasx_application generate_packageName_dot_nsi |
|
610 |
" |
|
611 |
||
612 |
"Modified: / 09-08-2006 / 11:31:09 / fm" |
|
613 |
"Created: / 14-09-2006 / 21:08:23 / cg" |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
614 |
"Modified: / 15-10-2006 / 12:52:21 / cg" |
9963 | 615 |
! |
616 |
||
10863
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
617 |
nsiFilename |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
618 |
^ self packageName,'.nsi'. |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
619 |
|
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
620 |
"Created: / 14-09-2006 / 21:03:41 / cg" |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
621 |
! |
daabfcda3d90
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10848
diff
changeset
|
622 |
|
9830 | 623 |
rcFilename |
624 |
^ self packageName,'WinRC.rc'. |
|
625 |
||
626 |
"Created: / 07-09-2006 / 17:07:08 / cg" |
|
627 |
! |
|
628 |
||
629 |
resourceFilename |
|
630 |
^ (self rcFilename asFilename withSuffix:'res') name |
|
631 |
||
632 |
"Created: / 07-09-2006 / 17:12:53 / cg" |
|
9532 | 633 |
! ! |
634 |
||
635 |
!ApplicationDefinition class methodsFor:'file templates'! |
|
636 |
||
9535 | 637 |
bc_dot_def |
9578 | 638 |
"the template code for the bc.def file" |
9535 | 639 |
|
640 |
^ |
|
641 |
'DESCRIPTION %(DESCRIPTION) |
|
642 |
CODE PRELOAD MOVEABLE DISCARDABLE |
|
643 |
SEGMENTS |
|
644 |
INITCODE PRELOAD DISCARDABLE |
|
645 |
' |
|
646 |
||
647 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
648 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9578 | 649 |
"Modified: / 17-08-2006 / 20:05:17 / cg" |
9535 | 650 |
! |
651 |
||
10308 | 652 |
bc_dot_mak |
10316
b617a026a146
bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents:
10313
diff
changeset
|
653 |
"answer a template for the bc.mak makefile. |
b617a026a146
bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents:
10313
diff
changeset
|
654 |
Any variable definition %(Variable) will be later replaced by the mapping. |
b617a026a146
bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents:
10313
diff
changeset
|
655 |
$% characters have to be duplicated" |
10308 | 656 |
|
10316
b617a026a146
bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents:
10313
diff
changeset
|
657 |
^ '# $','Header','$ |
10308 | 658 |
# |
659 |
# DO NOT EDIT |
|
660 |
# automagically generated from the projectDefinition: ',self name,'. |
|
661 |
# |
|
662 |
# Warning: once you modify this file, do not rerun |
|
663 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
664 |
# |
|
665 |
||
666 |
TOP=%(TOP) |
|
667 |
INCLUDE_TOP=$(TOP)\.. |
|
668 |
||
669 |
# CFLAGS1= -WD -w-pro -w-ccc -w-rch -w-aus -w-par -x- -r- -k -y -v -vi- -c -tWDR |
|
670 |
CFLAGS1= -w-pro -w-ccc -w-rch -w-aus -w-par -x- -r- -k -y -v -vi- -c |
|
671 |
||
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
672 |
CFLAGS_CONSOLE=-tWC -tWR -D_NO_VCL;WIN32 |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
673 |
CFLAGS_NOCONSOLE=-tWR -D_NO_VCL;WIN32GUI;WIN32 |
10308 | 674 |
LFLAGS_CONSOLE=-ap |
675 |
LFLAGS_NOCONSOLE=-aa |
|
676 |
CRT_STARTUP_CONSOLE=c0x32.obj |
|
677 |
CRT_STARTUP_NOCONSOLE=c0w32.obj |
|
678 |
||
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
679 |
# notice: the following 3 are now defined via the make-stx and make-winstx rules. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
680 |
# |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
681 |
# CFLAGS_APPTYPE=$(CFLAGS_%(CONSOLE_OR_NOCONSOLE)) |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
682 |
# LFLAGS_APPTYPE=$(LFLAGS_%(CONSOLE_OR_NOCONSOLE)) |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
683 |
# CRT_STARTUP=$(CRT_STARTUP_%(CONSOLE_OR_NOCONSOLE)) |
10308 | 684 |
|
685 |
CFLAGS_LOCAL=$(CFLAGS_APPTYPE) \ |
|
686 |
-DSTARTUP_CLASS="\"%(STARTUP_CLASS)\"" \ |
|
687 |
-DSTARTUP_SELECTOR="\"%(STARTUP_SELECTOR)\"" \ |
|
688 |
-DUSE_MODULE_TABLE |
|
689 |
||
690 |
# |
|
691 |
||
692 |
!!INCLUDE $(TOP)\rules\stdHeader_bc |
|
693 |
!!INCLUDE Make.spec |
|
694 |
||
695 |
OBJS= $(COMMON_OBJS) $(WIN32_OBJS) |
|
696 |
||
697 |
# |
|
698 |
LIBNAME=dummy |
|
699 |
STCOPT="+optinline" |
|
700 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
701 |
STCLOCALOPT=''-package=$(PACKAGE)'' $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) $(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
|
702 |
||
703 |
LINKER = ilink32 |
|
704 |
||
705 |
# LFLAGS = -L$(TOP)\libbc;$(BCB)\lib;$(DEBUGLIBPATH) -H:0x400000 -Hc:0x100000 -S:0x40000 -Sc:0x10000 -ap -Tpe -x -Gn -v -Ao:0x10000 |
|
706 |
LFLAGS = -L$(TOP)\libbc;$(BCB)\lib -S:0x40000 -Sc:0x10000 $(LFLAGS_APPTYPE) -Tpe -x -Gn -v -Ao:0x10000 |
|
707 |
||
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
708 |
PROJECT_CONSOLE = %(CONSOLE_APPLICATION).exe |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
709 |
PROJECT_NOCONSOLE = %(NOCONSOLE_APPLICATION).exe |
10308 | 710 |
ALLOBJFILES = main.obj |
711 |
RESFILES = %(RESFILENAME) |
|
712 |
ALLOBJ = $(CRT_STARTUP) $(ALLOBJFILES) $(OBJS) |
|
10316
b617a026a146
bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents:
10313
diff
changeset
|
713 |
DEFFILE=$(TOP)\rules\bc_exe.def |
10308 | 714 |
|
715 |
LIBFILES=$(TOP)\libbc\librun.lib |
|
716 |
ALLLIB=$(LIBFILES) import32.lib $(RT_LIB) |
|
717 |
||
718 |
REQUIRED_LIBS=librun.dll %(REQUIRED_LIBS) |
|
719 |
REQUIRED_FILES=cs3245.dll symbols.stc $(REQUIRED_LIBS) |
|
720 |
||
721 |
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS) |
|
722 |
||
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
723 |
target: %(BUILD_TARGET) |
10308 | 724 |
|
725 |
# the executable, all required files and a self-installing-installer-exe |
|
10424 | 726 |
ALL:: exe setup |
10308 | 727 |
|
10648 | 728 |
exe: newBuildDate %(APPLICATION_OR_CONSOLEAPPLICATION) %(ADDITIONAL_TARGETS) |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
729 |
|
10308 | 730 |
# the executable only |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
731 |
# with console |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
732 |
%(CONSOLE_APPLICATION): |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
733 |
-del main.obj |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
734 |
$(MAKE) -N -f bc.mak \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
735 |
PROJECT=$(PROJECT_CONSOLE) \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
736 |
CFLAGS_APPTYPE="$(CFLAGS_CONSOLE)" \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
737 |
LFLAGS_APPTYPE="$(LFLAGS_CONSOLE)" \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
738 |
CRT_STARTUP="$(CRT_STARTUP_CONSOLE)" theExe |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
739 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
740 |
# without console |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
741 |
%(NOCONSOLE_APPLICATION): |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
742 |
-del main.obj |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
743 |
$(MAKE) -N -f bc.mak \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
744 |
PROJECT=$(PROJECT_NOCONSOLE) \ |
10418 | 745 |
CFLAGS_APPTYPE="$(CFLAGS_NOCONSOLE) -DWIN_LOGFILE="\\"\"%(NOCONSOLE_LOGFILE)\\"\""" \ |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
746 |
LFLAGS_APPTYPE="$(LFLAGS_NOCONSOLE)" \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
747 |
CRT_STARTUP="$(CRT_STARTUP_NOCONSOLE)" theExe |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
748 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
749 |
# the executable only (internal target; needs some defines) |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
750 |
theExe: $(OUTDIR) $(OBJS) $(REQUIRED_FILES) show $(PROJECT) |
10308 | 751 |
|
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
752 |
# build all prerequisite packages for this package |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
753 |
prereq: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
754 |
%(MAKE_PREREQUISITES) |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
755 |
|
10308 | 756 |
# a nullsoft installable delivery |
10424 | 757 |
setup: $(REQUIRED_SUPPORT_DIRS) install_%(APPLICATION).exe |
10308 | 758 |
|
10648 | 759 |
newBuildDate: |
760 |
del buildDate.h |
|
761 |
||
10308 | 762 |
# This uses the Nullsoft Installer Package and works in Windows only |
763 |
||
10870
71d98ad9c151
nsi filename was wrong in bc.mak
Claus Gittinger <cg@exept.de>
parents:
10863
diff
changeset
|
764 |
install_%(APPLICATION).exe: $(PROJECT) %(NSI_FILENAME) |
71d98ad9c151
nsi filename was wrong in bc.mak
Claus Gittinger <cg@exept.de>
parents:
10863
diff
changeset
|
765 |
$(MAKENSIS) %(NSI_FILENAME) |
10308 | 766 |
|
767 |
new: |
|
10565 | 768 |
bmake clean |
769 |
bmake |
|
10308 | 770 |
|
771 |
RESOURCEFILES: %(APPLICATION)_RESOURCES %(APPLICATION)_BITMAPS \ |
|
10565 | 772 |
stx_RESOURCES stx_STYLES stx_BITMAPS |
10308 | 773 |
|
774 |
%(RESOURCE_RULES) |
|
775 |
%(STX_RESOURCE_RULES) |
|
776 |
||
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
777 |
%(APP_SOURCE_RULES) |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
778 |
%(STX_SOURCE_RULES) |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
779 |
|
10308 | 780 |
%(PREREQUISITES_LIBS) |
781 |
%(SUBPROJECTS_LIBS) |
|
782 |
||
10565 | 783 |
sources\NUL: |
784 |
mkdir sources |
|
785 |
||
10308 | 786 |
show: |
10565 | 787 |
@echo LFLAGS= $(LFLAGS) |
788 |
@echo ALLOBJ= $(ALLOBJ) |
|
789 |
@echo PROJECT= $(PROJECT) |
|
790 |
@echo ALLLIB= $(ALLLIB) |
|
791 |
@echo DEFFILE= $(DEFFILE) |
|
792 |
@echo ALLRES= $(ALLRES) |
|
10308 | 793 |
|
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
794 |
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) |
10565 | 795 |
$(BCB)\BIN\$(LINKER) $(LFLAGS) $(ALLOBJ), $(PROJECT_CONSOLE),, $(ALLLIB), $(DEFFILE), $(RESFILES) |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
796 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
797 |
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) |
10565 | 798 |
$(BCB)\BIN\$(LINKER) $(LFLAGS) $(ALLOBJ), $(PROJECT_NOCONSOLE),, $(ALLLIB), $(DEFFILE), $(RESFILES) |
10308 | 799 |
|
800 |
#$(PROJECT): $(ALLOBJFILES) $(RESFILES) $(DEFFILE) |
|
801 |
# $(BCB)\BIN\$(LINKER) @&&!! |
|
802 |
# $(LFLAGS) + |
|
803 |
# $(ALLOBJ), + |
|
804 |
# $(PROJECT),, + |
|
805 |
# $(ALLLIB), + |
|
806 |
# $(DEFFILE), + |
|
807 |
# $(RESFILES) |
|
808 |
#!! |
|
809 |
||
810 |
||
811 |
!!INCLUDE $(TOP)\rules\stdRules_bc |
|
812 |
||
813 |
# |
|
814 |
# additional rules |
|
815 |
# |
|
816 |
%(APPLICATION)Win.res: %(APPLICATION)Win.rc %(APPLICATION).ico |
|
817 |
||
818 |
main.obj: buildDate.h main.c bc.mak |
|
819 |
||
820 |
main.c: $(TOP)\librun\main.c |
|
821 |
copy $(TOP)\librun\main.c main.c |
|
822 |
||
823 |
buildDate.h: $(TOP)\librun\genDate.exe |
|
824 |
$(TOP)\librun\genDate.exe |
|
825 |
||
826 |
librun.dll: $(TOP)\librun\librun.dll |
|
827 |
copy $(TOP)\librun\librun.dll librun.dll |
|
828 |
||
829 |
cs3245.dll: $(TOP)\support\win32\borland\cs3245.dll |
|
830 |
copy $(TOP)\support\win32\borland\cs3245.dll cs3245.dll |
|
831 |
||
832 |
symbols.stc: $(TOP)\include\symbols.stc |
|
833 |
copy $(TOP)\include\symbols.stc symbols.stc |
|
834 |
||
835 |
clobber:: |
|
836 |
-del librun.dll |
|
837 |
||
10313
b6ce260fe8cf
#additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents:
10308
diff
changeset
|
838 |
%(ADDITIONAL_RULES) |
b6ce260fe8cf
#additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents:
10308
diff
changeset
|
839 |
|
10308 | 840 |
clean:: |
841 |
-del genDate.exe |
|
842 |
-del c0x32.dll |
|
843 |
-del c0x32.lib |
|
844 |
-del buildDate.h |
|
845 |
-del $(PROJECT) |
|
846 |
-del install_%(APPLICATION).exe |
|
847 |
-del stx.lib |
|
848 |
-del stx.dll |
|
849 |
-del cs3245.dll |
|
850 |
-del $(REQUIRED_FILES) |
|
851 |
-del main.c |
|
852 |
-del *.log |
|
853 |
-del *.res |
|
854 |
-rmdir /S /Q resources |
|
855 |
-rmdir /S /Q objbc |
|
856 |
||
857 |
clobber:: |
|
858 |
-del *.dll |
|
859 |
-del *.exe |
|
860 |
||
861 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
862 |
%(DEPENDENCIES) |
|
863 |
# ENDMAKEDEPEND --- do not remove this line |
|
864 |
'. |
|
10424 | 865 |
|
10648 | 866 |
"Modified: / 05-07-2007 / 20:50:27 / cg" |
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
867 |
! |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
868 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
869 |
bc_dot_mak_app_source_rules |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
870 |
|p| |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
871 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
872 |
^ String streamContents:[:s | |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
873 |
s nextPutAll:' |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
874 |
%(APPLICATION)_SOURCES: sources\%(MODULE)\%(MODULE_PATH)\NUL |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
875 |
-copy ..\*.st sources\%(MODULE)\%(MODULE_PATH)\..\*.* |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
876 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
877 |
'. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
878 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
879 |
p := self moduleDirectory_win32 asCollectionOfSubstringsSeparatedBy:$\. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
880 |
p size to:2 by:-1 do:[:len | |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
881 |
|part2 part1| |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
882 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
883 |
part2 := (p copyTo:len) asStringWith:$\. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
884 |
part1 := (p copyTo:len-1) asStringWith:$\. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
885 |
s nextPutAll:' |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
886 |
sources\%(MODULE)\',part2,'\NUL: sources\%(MODULE)\',part1,'\NUL |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
887 |
mkdir sources\%(MODULE)\',part2,' |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
888 |
'. |
10565 | 889 |
s cr. |
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
890 |
]. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
891 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
892 |
s nextPutAll:' |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
893 |
sources\%(MODULE)\',p first,'\NUL: sources\%(MODULE)\NUL |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
894 |
mkdir sources\%(MODULE)\',p first,' |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
895 |
'. |
10565 | 896 |
s cr. |
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
897 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
898 |
"/ be careful to not include two rules for it (-> stx_source_rules). |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
899 |
self module ~= 'stx' ifTrue:[ |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
900 |
s nextPutAll: |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
901 |
'sources\%(MODULE)\NUL: sources\NUL |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
902 |
mkdir sources\%(MODULE) |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
903 |
'. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
904 |
]. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
905 |
] |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
906 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
907 |
"Created: / 15-05-2007 / 17:27:37 / cg" |
10308 | 908 |
! |
909 |
||
910 |
bc_dot_mak_resource_rules |
|
10378
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
911 |
|p| |
10308 | 912 |
|
10378
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
913 |
^ String streamContents:[:s | |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
914 |
s nextPutAll:' |
10308 | 915 |
%(APPLICATION)_RESOURCES: resources\%(MODULE)\%(MODULE_PATH)\NUL |
916 |
-copy ..\resources\*.rs resources\%(MODULE)\%(MODULE_PATH)\..\*.* |
|
917 |
||
918 |
%(APPLICATION)_BITMAPS: resources\%(MODULE)\%(MODULE_PATH)\bitmaps\NUL |
|
919 |
-copy *.ico resources\%(MODULE)\%(MODULE_PATH)\bitmaps\*.* |
|
920 |
-copy *.gif resources\%(MODULE)\%(MODULE_PATH)\bitmaps\*.* |
|
921 |
||
922 |
resources\%(MODULE)\%(MODULE_PATH)\bitmaps\NUL: resources\%(MODULE)\%(MODULE_PATH)\NUL |
|
923 |
mkdir resources\%(MODULE)\%(MODULE_PATH)\bitmaps |
|
924 |
'. |
|
10378
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
925 |
|
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
926 |
p := self moduleDirectory_win32 asCollectionOfSubstringsSeparatedBy:$\. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
927 |
p size to:2 by:-1 do:[:len | |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
928 |
|part2 part1| |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
929 |
|
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
930 |
part2 := (p copyTo:len) asStringWith:$\. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
931 |
part1 := (p copyTo:len-1) asStringWith:$\. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
932 |
s nextPutAll:' |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
933 |
resources\%(MODULE)\',part2,'\NUL: resources\%(MODULE)\',part1,'\NUL |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
934 |
mkdir resources\%(MODULE)\',part2,' |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
935 |
'. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
936 |
]. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
937 |
|
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
938 |
s nextPutAll:' |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
939 |
resources\%(MODULE)\',p first,'\NUL: resources\%(MODULE)\NUL |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
940 |
mkdir resources\%(MODULE)\',p first,' |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
941 |
'. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
942 |
|
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
943 |
"/ be careful to not include two rules for it (-> stx_resource_rules). |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
944 |
self module ~= 'stx' ifTrue:[ |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
945 |
s nextPutAll: |
10308 | 946 |
'resources\%(MODULE)\NUL: resources\NUL |
947 |
mkdir resources\%(MODULE) |
|
948 |
'. |
|
10378
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
949 |
]. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
950 |
] |
10308 | 951 |
|
10378
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
952 |
"Modified: / 09-02-2007 / 16:13:43 / cg" |
10308 | 953 |
! |
954 |
||
955 |
bc_dot_mak_stx_resource_rules |
|
956 |
^ ' |
|
957 |
||
958 |
stx_RESOURCES: \ |
|
959 |
keyboard.rc \ |
|
960 |
libbasic_RESOURCES \ |
|
961 |
libview_RESOURCES \ |
|
962 |
libtool_RESOURCES \ |
|
963 |
libtool2_RESOURCES |
|
964 |
||
965 |
keyboard.rc: $(TOP)\projects\smalltalk\keyboard.rc |
|
966 |
copy $(TOP)\projects\smalltalk\keyboard.rc *.* |
|
967 |
||
968 |
stx_STYLES: resources\stx\libview\NUL |
|
969 |
copy $(TOP)\libview\styles\mswindowsXP* resources\stx\libview\*.* |
|
970 |
copy $(TOP)\libview\styles\mswindows*.common resources\stx\libview\*.* |
|
971 |
||
972 |
stx_BITMAPS: \ |
|
973 |
libwidg_BITMAPS |
|
974 |
||
975 |
libwidg_BITMAPS: resources\stx\libwidg\bitmaps\NUL |
|
976 |
copy $(TOP)\libwidg\bitmaps\*.xpm resources\stx\libwidg\bitmaps\*.* |
|
977 |
||
978 |
libbasic_RESOURCES: resources\stx\libbasic\NUL |
|
979 |
copy $(TOP)\libbasic\resources\*.rs resources\stx\libbasic\*.* |
|
980 |
||
981 |
libtool_RESOURCES: resources\stx\libtool\NUL |
|
982 |
copy $(TOP)\libtool\resources\*.rs resources\stx\libtool\*.* |
|
983 |
||
984 |
libtool2_RESOURCES: resources\stx\libtool2\NUL |
|
985 |
copy $(TOP)\libtool2\resources\*.rs resources\stx\libtool2\*.* |
|
986 |
||
987 |
libview_RESOURCES: resources\stx\libview\NUL |
|
988 |
copy $(TOP)\libview\resources\*.rs resources\stx\libview\*.* |
|
989 |
||
990 |
libview2_RESOURCES: resources\stx\libview2\NUL |
|
991 |
copy $(TOP)\libview2\resources\*.rs resources\stx\libview2\*.* |
|
992 |
||
993 |
resources\stx\libbasic\NUL: resources\stx\NUL |
|
994 |
mkdir resources\stx\libbasic |
|
995 |
||
996 |
resources\stx\libtool\NUL: resources\stx\NUL |
|
997 |
mkdir resources\stx\libtool |
|
998 |
||
999 |
resources\stx\libtool2\NUL: resources\stx\NUL |
|
1000 |
mkdir resources\stx\libtool2 |
|
1001 |
||
1002 |
resources\stx\libview\NUL: resources\stx\NUL |
|
1003 |
mkdir resources\stx\libview |
|
1004 |
||
1005 |
resources\stx\libview2\NUL: resources\stx\NUL |
|
1006 |
mkdir resources\stx\libview2 |
|
1007 |
||
1008 |
resources\stx\libwidg\bitmaps\NUL: resources\stx\libwidg\NUL |
|
1009 |
mkdir resources\stx\libwidg\bitmaps |
|
1010 |
||
1011 |
resources\stx\libwidg\NUL: resources\stx\NUL |
|
1012 |
mkdir resources\stx\libwidg |
|
1013 |
||
1014 |
resources\stx\NUL: resources\NUL |
|
1015 |
mkdir resources\stx |
|
1016 |
||
1017 |
resources\NUL: |
|
1018 |
mkdir resources |
|
1019 |
||
1020 |
bitmaps\NUL: |
|
1021 |
mkdir bitmaps |
|
1022 |
||
1023 |
doc\NUL: |
|
1024 |
mkdir doc |
|
1025 |
||
1026 |
'. |
|
1027 |
||
1028 |
"Created: / 20-09-2006 / 17:36:29 / cg" |
|
1029 |
! |
|
1030 |
||
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1031 |
bc_dot_mak_stx_source_rules |
10563 | 1032 |
|libDirs| |
1033 |
||
10565 | 1034 |
libDirs := self stxSourcesProjects collect:[:projectID | self moduleDirectory_win32For:projectID]. |
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1035 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1036 |
^ String streamContents:[:s | |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1037 |
s nextPutAll:' |
10565 | 1038 |
STX_SOURCES:'. |
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1039 |
libDirs do:[:libDir | |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1040 |
s nextPutAll:' '; nextPutAll:('sources\stx\',libDir,'\NUL') |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1041 |
]. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1042 |
s cr. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1043 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1044 |
libDirs do:[:libDir | |
10565 | 1045 |
s nextPutLine:('sources\stx\',libDir,'\NUL: sources\stx\NUL'). |
1046 |
s tab; nextPutLine:('mkdir sources\stx\',libDir). |
|
1047 |
s tab; nextPutLine:('-copy $(TOP)\',libDir,'\*.st sources\stx\',libDir,'\*.*'). |
|
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1048 |
s cr. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1049 |
]. |
10565 | 1050 |
s nextPutLine:'sources\stx\NUL: sources\NUL'. |
1051 |
s tab; nextPutLine:'mkdir sources\stx'. |
|
1052 |
s cr. |
|
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1053 |
] |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1054 |
|
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1055 |
"Created: / 15-05-2007 / 17:27:37 / cg" |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1056 |
! |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1057 |
|
9816 | 1058 |
buildDate_dot_h |
1059 |
"the template code for the buildDate.h file" |
|
1060 |
||
1061 |
^ |
|
1062 |
'#define BUILD_DATE "%(BUILDDATE)"' |
|
1063 |
||
1064 |
"Created: / 30-08-2006 / 19:18:34 / cg" |
|
1065 |
! |
|
1066 |
||
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1067 |
classLine_modules_dot_c |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1068 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1069 |
^'_%(CLASS)_Init,' |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1070 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1071 |
"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
|
1072 |
"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
|
1073 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1074 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1075 |
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
|
1076 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1077 |
^'extern void _%(CLASS)_Init();' |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1078 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1079 |
"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
|
1080 |
"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
|
1081 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1082 |
|
10563 | 1083 |
defineAPPSourceLine_nsi_for: projectID |
1084 |
||
1085 |
^ |
|
10568 | 1086 |
' |
1087 |
SetOutPath "$INSTDIR\sources\',(self moduleFor: projectID),'\',(self moduleDirectory_win32For:projectID) ,'" |
|
1088 |
File /r "${STX_ROOT}\', (self moduleFor: projectID) ,'\',(self moduleDirectory_win32For:projectID) ,'\*.st"' |
|
10563 | 1089 |
|
1090 |
"Created: / 15-10-2006 / 12:50:00 / cg" |
|
1091 |
! |
|
1092 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1093 |
defineExtenionLine_nsi_for:extension |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1094 |
"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
|
1095 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1096 |
^ |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1097 |
' WriteRegStr HKCR ".',extension,'" "" "%(MODULE_KEY).%(PRODUCT_NAME).1"' |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1098 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1099 |
"Created: / 15-10-2006 / 12:50:00 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1100 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1101 |
|
10565 | 1102 |
defineSTXSourceLine_nsi_for: projectID |
10563 | 1103 |
|
1104 |
^ |
|
10572 | 1105 |
' |
1106 |
SetOutPath "$INSTDIR\sources\stx\', (self moduleDirectory_win32For:projectID),'" |
|
1107 |
File /r "${STX_ROOT}\stx\', (self moduleDirectory_win32For:projectID),'\*.st"' |
|
10563 | 1108 |
|
1109 |
"Created: / 15-10-2006 / 12:50:00 / cg" |
|
1110 |
! |
|
1111 |
||
10427 | 1112 |
installFileLine_nsi_for:filePattern |
1113 |
"the template code for a single file-install pattern to be added to the <appname>.nsi file" |
|
1114 |
||
1115 |
^ |
|
1116 |
' File ',filePattern |
|
1117 |
||
1118 |
"Created: / 01-03-2007 / 20:00:20 / cg" |
|
1119 |
! |
|
1120 |
||
10023 | 1121 |
make_dot_proto |
1122 |
||
1123 |
^ |
|
1124 |
'# $','Header','$ |
|
1125 |
# |
|
10708 | 1126 |
# -------------- no need to change anything below ---------- |
10023 | 1127 |
# |
10708 | 1128 |
# This makefile generates some standalone demo applications |
10023 | 1129 |
# |
10708 | 1130 |
# make |
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1131 |
# generates %(APPLICATION) |
10023 | 1132 |
# |
10708 | 1133 |
|
10714 | 1134 |
TOP=%(TOP) |
10023 | 1135 |
INCLUDE_TOP=$(TOP)/.. |
1136 |
||
10708 | 1137 |
PACKAGE=%(APPLICATION_PACKAGE) |
1138 |
SUBDIRS= |
|
1139 |
SUPPRESS_LOCAL_ABBREVS="yes" |
|
1140 |
NOAUTOLOAD=1 |
|
1141 |
NOSUBAUTOLOAD=1 |
|
1142 |
||
1143 |
LOCALINCLUDES=-I$(INCLUDE_TOP)/stx/libbasic |
|
1144 |
||
1145 |
RCSSOURCES=Make.proto *.st |
|
1146 |
LINKSOURCES=Make.proto *.st |
|
1147 |
||
1148 |
DELIVERBINARIES= |
|
1149 |
||
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1150 |
all:: %(APPLICATION) |
10708 | 1151 |
|
10803
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1152 |
LIBNAME=%(LIBRARY_NAME) |
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1153 |
STCLOCALOPT=''-package=$(PACKAGE)'' -I. -H. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
10803
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1154 |
|
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1155 |
|
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1156 |
# ********** OPTIONAL: MODIFY the next line *** |
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1157 |
# additional C-libraries that should be pre-linked with the class-objects |
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1158 |
LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES) |
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1159 |
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES) |
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1160 |
|
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1161 |
|
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1162 |
# ********** OPTIONAL: MODIFY the next line *** |
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1163 |
# additional C targets or libraries should be added below |
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1164 |
LOCAL_EXTRA_TARGETS= |
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1165 |
|
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1166 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1167 |
|
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1168 |
%(ADDITIONAL_DEFINITIONS) |
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1169 |
|
10708 | 1170 |
# required libs: |
1171 |
# |
|
10714 | 1172 |
|
1173 |
REQUIRED_LIBS=%(REQUIRED_LIBS) |
|
1174 |
||
1175 |
REQUIRED_LIBOBJS=%(REQUIRED_LIBOBJS) |
|
1176 |
||
1177 |
REQUIRED_LINK_LIBOBJS=%(REQUIRED_LINK_LIBOBJS) |
|
1178 |
||
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1179 |
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS) |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1180 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1181 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1182 |
%(APPLICATION): %(STARTUP_CLASSFILENAME).$(O) $(APP_DIRS_TO_MAKE) $(APP_LIBOBJS) $(OBJS) |
10708 | 1183 |
$(MAKE) %(APPLICATION_TYPE) \ |
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1184 |
TARGET=%(APPLICATION) \ |
10873
21c0c451a600
Fix unix Make.proto generation (with StartupClass in name space)
Stefan Vogel <sv@exept.de>
parents:
10871
diff
changeset
|
1185 |
APPLICATION_CLASSES="%(STARTUP_CLASSFILENAME)" \ |
10803
ca8a31c9ef0e
Try to fix Make.proto for UNIX
Stefan Vogel <sv@exept.de>
parents:
10801
diff
changeset
|
1186 |
APPLICATION_OBJS="$(OBJS)" \ |
10714 | 1187 |
APPLICATION_LIBLIST="$(REQUIRED_LIBS)" \ |
1188 |
APPLICATION_LIBOBJS="$(REQUIRED_LIBOBJS)" \ |
|
1189 |
APPLICATION_LINK_LIBOBJS="$(REQUIRED_LINK_LIBOBJS)" \ |
|
10708 | 1190 |
STARTUP_CLASS="%(STARTUP_CLASS)" \ |
1191 |
STARTUP_SELECTOR="%(STARTUP_SELECTOR)" \ |
|
1192 |
MAIN_DEFINES="-DIGNORE_IMAGE -DNO_DISPLAY" |
|
1193 |
||
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1194 |
# build all prerequisite packages for this package |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1195 |
prereq: $(REQUIRED_SUPPORT_DIRS) |
10715 | 1196 |
%(MAKE_PREREQUISITES) |
10708 | 1197 |
|
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1198 |
RESOURCEFILES: %(APPLICATION)_RESOURCES %(APPLICATION)_BITMAPS \ |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1199 |
stx_RESOURCES stx_STYLES stx_BITMAPS |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1200 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1201 |
%(RESOURCE_RULES) |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1202 |
%(STX_RESOURCE_RULES) |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1203 |
|
10023 | 1204 |
|
1205 |
clean:: |
|
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1206 |
-rm -f *.so %(APPLICATION).$(O) |
10023 | 1207 |
|
10807
ab4e65750d0b
Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents:
10803
diff
changeset
|
1208 |
clobber:: clean |
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1209 |
-rm -f %(APPLICATION) *.img *.sav |
10023 | 1210 |
' |
1211 |
||
1212 |
"Modified: / 09-08-2006 / 16:50:23 / fm" |
|
1213 |
"Created: / 29-09-2006 / 23:47:07 / cg" |
|
1214 |
! |
|
1215 |
||
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1216 |
make_dot_proto_resource_rules |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1217 |
^ String streamContents:[:s | |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1218 |
s nextPutAll:' |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1219 |
%(APPLICATION)_RESOURCES: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1220 |
mkdir -p resources/%(MODULE)/%(MODULE_PATH) |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1221 |
-cp ../resources/*.* resources/%(MODULE)/%(MODULE_PATH) |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1222 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1223 |
%(APPLICATION)_BITMAPS: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1224 |
mkdir -p resources/%(MODULE)/%(MODULE_PATH)/bitmaps |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1225 |
-cp *.ico *.gif resources/%(MODULE)/%(MODULE_PATH)/bitmaps |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1226 |
'. |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1227 |
]. |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1228 |
! |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1229 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1230 |
make_dot_proto_stx_resource_rules |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1231 |
^ ' |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1232 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1233 |
stx_RESOURCES: \ |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1234 |
keyboard.rc \ |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1235 |
libbasic_RESOURCES \ |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1236 |
libview_RESOURCES \ |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1237 |
libtool_RESOURCES \ |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1238 |
libtool2_RESOURCES |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1239 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1240 |
keyboard.rc: $(TOP)/projects/smalltalk/keyboard.rc |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1241 |
cp $(TOP)/projects/smalltalk/keyboard.rc . |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1242 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1243 |
stx_STYLES: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1244 |
mkdir -p resources/stx/libview |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1245 |
cp $(TOP)/libview/styles/mswindows* resources/stx/libview |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1246 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1247 |
stx_BITMAPS: \ |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1248 |
libwidg_BITMAPS |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1249 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1250 |
libwidg_BITMAPS: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1251 |
mkdir -p resources/stx/libwidg/bitmaps |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1252 |
cp $(TOP)/libwidg/bitmaps/*.* resources/stx/libwidg/bitmaps |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1253 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1254 |
libbasic_RESOURCES: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1255 |
mkdir -p resources/stx/libbasic |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1256 |
cp $(TOP)/libbasic/resources/*.* resources/stx/libbasic |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1257 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1258 |
libtool_RESOURCES: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1259 |
mkdir -p resources/stx/libtool |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1260 |
cp $(TOP)/libtool/resources/*.* resources/stx/libtool |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1261 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1262 |
libtool2_RESOURCES: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1263 |
mkdir -p resources/stx/libtool2 |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1264 |
cp $(TOP)/libtool2/resources/*.* resources/stx/libtool2 |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1265 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1266 |
libview_RESOURCES: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1267 |
mkdir -p resources/stx/libview |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1268 |
cp $(TOP)/libview/resources/*.* resources/stx/libview |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1269 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1270 |
libview2_RESOURCES: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1271 |
mkdir -p resources/stx/libview2 |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1272 |
cp $(TOP)/libview2/resources/*.* resources/stx/libview2 |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1273 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1274 |
bitmaps: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1275 |
mkdir -p bitmaps |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1276 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1277 |
doc: |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1278 |
mkdir -p doc |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1279 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1280 |
'. |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1281 |
! |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1282 |
|
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1283 |
modules_dot_c |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1284 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1285 |
^ |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1286 |
'/* $','Header','$ |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1287 |
* |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1288 |
* DO NOT EDIT |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1289 |
* 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
|
1290 |
* |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1291 |
* 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
|
1292 |
* 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
|
1293 |
*/ |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1294 |
typedef void (*vf)(); |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1295 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1296 |
%(EXTERN_INIT_NAME_LIST) |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1297 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1298 |
static vf modules[] = { |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1299 |
%(INIT_LIST) |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1300 |
(vf)0 |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1301 |
}; |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1302 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1303 |
vf *__modules__ = modules; |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1304 |
' |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1305 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1306 |
"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
|
1307 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1308 |
|
9535 | 1309 |
modules_dot_stx |
9532 | 1310 |
|
9535 | 1311 |
^ |
9542 | 1312 |
'# $','Header','$ |
9535 | 1313 |
# |
9578 | 1314 |
# DO NOT EDIT |
1315 |
# automagically generated from the projectDefinition: ',self name,'. |
|
1316 |
# |
|
1317 |
# Warning: once you modify this file, do not rerun |
|
1318 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
1319 |
# |
|
9535 | 1320 |
# This file is (currently) only used with win-95 / win-NT versions of STX. |
1321 |
# It lists the dll''s which are to be loaded at startup time. |
|
1322 |
# |
|
1323 |
# All classes loaded at startup time will be present as precompiled classes. |
|
1324 |
# Others will be autoloaded. |
|
1325 |
# |
|
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1326 |
%(ALLPREREQUISITE_LIBS) |
9535 | 1327 |
%(SUBPROJECT_LIBS) |
1328 |
' |
|
1329 |
||
1330 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
1331 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9542 | 1332 |
"Modified: / 16-08-2006 / 17:56:58 / User" |
9578 | 1333 |
"Modified: / 17-08-2006 / 20:35:38 / cg" |
9535 | 1334 |
! |
1335 |
||
9963 | 1336 |
packageName_dot_nsi |
1337 |
"the template code for the <appname>.nsi file" |
|
1338 |
||
1339 |
^ |
|
1340 |
'; $','Header','$ |
|
1341 |
; Script generated by ProjectDefinition. |
|
1342 |
||
1343 |
!!define PRODUCT_NAME "%(PRODUCT_NAME)" |
|
10427 | 1344 |
!!define PRODUCT_FILENAME "%(PRODUCT_FILENAME)" |
9963 | 1345 |
!!define PRODUCT_VERSION "%(PRODUCT_VERSION)" |
1346 |
!!define PRODUCT_PUBLISHER "%(PRODUCT_PUBLISHER)" |
|
10427 | 1347 |
!!define PRODUCT_WEB_SITE "%(PRODUCT_WEBSITE)" |
1348 |
!!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_FILENAME}" |
|
9963 | 1349 |
!!define PRODUCT_UNINST_ROOT_KEY "HKLM" |
1350 |
||
1351 |
!!define STX_ROOT "%(TOP)\.." |
|
1352 |
||
1353 |
SetCompressor lzma |
|
1354 |
||
1355 |
||
1356 |
; MUI 1.67 compatible ------ |
|
1357 |
!!include "MUI.nsh" |
|
1358 |
||
1359 |
; MUI Settings |
|
1360 |
||
1361 |
!!define MUI_ABORTWARNING |
|
9985 | 1362 |
%(SEMI_IF_ICON_EXISTS)!!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico" |
10423 | 1363 |
%(SEMI_IF_NO_ICON_EXISTS)!!define MUI_ICON "%(APPLICATION_ICON).ico" |
9985 | 1364 |
%(SEMI_IF_ICON_EXISTS)!!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" |
10423 | 1365 |
%(SEMI_IF_NO_ICON_EXISTS)!!define MUI_UNICON "%(APPLICATION_ICON).ico" |
9963 | 1366 |
|
1367 |
; Language Selection Dialog Settings |
|
1368 |
!!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" |
|
1369 |
!!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" |
|
1370 |
!!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" |
|
1371 |
||
1372 |
; Welcome page |
|
1373 |
!!insertmacro MUI_PAGE_WELCOME |
|
1374 |
; License page |
|
1375 |
; !!define MUI_LICENSEPAGE_CHECKBOX |
|
1376 |
||
1377 |
',(self hasLicenceToAcceptDuringInstallation |
|
1378 |
ifTrue:['!!insertmacro MUI_PAGE_LICENSE $(license)'] |
|
1379 |
ifFalse:['']),' |
|
1380 |
!!insertmacro MUI_PAGE_COMPONENTS |
|
1381 |
; Directory page |
|
1382 |
!!insertmacro MUI_PAGE_DIRECTORY |
|
1383 |
; Instfiles page |
|
1384 |
!!insertmacro MUI_PAGE_INSTFILES |
|
1385 |
; Finish page |
|
1386 |
!!insertmacro MUI_PAGE_FINISH |
|
1387 |
||
1388 |
; Uninstaller pages |
|
1389 |
!!insertmacro MUI_UNPAGE_INSTFILES |
|
1390 |
||
1391 |
; Language files |
|
1392 |
!!insertmacro MUI_LANGUAGE "English" |
|
1393 |
!!insertmacro MUI_LANGUAGE "German" |
|
1394 |
||
1395 |
; MUI end ------ |
|
1396 |
||
9985 | 1397 |
',((self hasLicenceToAcceptDuringInstallation and:[self docDirPath_win32 notNil]) |
9963 | 1398 |
ifTrue:[' |
9985 | 1399 |
LicenseLangString license ${LANG_ENGLISH} "',self docDirPath_win32,'\licence_en.txt" |
1400 |
LicenseLangString license ${LANG_GERMAN} "',self docDirPath_win32,'\licence_de.txt" |
|
9963 | 1401 |
'] |
1402 |
ifFalse:['']),' |
|
1403 |
||
1404 |
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" |
|
1405 |
VIProductVersion "${PRODUCT_VERSION}.0" |
|
1406 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${PRODUCT_NAME}" |
|
1407 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${PRODUCT_PUBLISHER}" |
|
1408 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "%(FILE_VERSION)" |
|
1409 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${PRODUCT_NAME} Installer" |
|
1410 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${PRODUCT_VERSION}" |
|
1411 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "%(LEGAL_COPYRIGHT)" |
|
1412 |
||
1413 |
||
10427 | 1414 |
OutFile "%(PRODUCT_FILENAME)Setup.exe" |
9963 | 1415 |
InstallDir "%(PRODUCT_INSTALLDIR)" |
1416 |
ShowInstDetails show |
|
1417 |
ShowUnInstDetails show |
|
1418 |
||
1419 |
Function .onInit |
|
1420 |
!!insertmacro MUI_LANGDLL_DISPLAY |
|
1421 |
FunctionEnd |
|
1422 |
||
1423 |
InstType Full |
|
1424 |
InstType Partial |
|
1425 |
||
1426 |
Section "Programme" Section1 |
|
1427 |
SectionIn 1 2 |
|
1428 |
SetOutPath "$INSTDIR\bin" |
|
1429 |
SetOverwrite ifnewer |
|
10419 | 1430 |
File %(DELIVERED_EXECUTABLES) |
10427 | 1431 |
%(COMMON_FILES_TO_INSTALL) |
1432 |
%(ADDITIONAL_FILES_TO_INSTALL) |
|
9963 | 1433 |
|
10427 | 1434 |
%(FILE_EXTENSION_DEFINITION_LINES) |
1435 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1" "" "%(PRODUCT_FILENAME) File" |
|
1436 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1\DefaultIcon" "" ''$INSTDIR\bin\%(NOCONSOLE_APPLICATION).exe,0'' |
|
1437 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1\Shell\open" "" $(appOpen) |
|
10957 | 1438 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1\Shell\open\command" "" ''"$INSTDIR\bin\%(NOCONSOLE_APPLICATION).exe" -- "%%1"'' |
9963 | 1439 |
SectionEnd |
1440 |
||
9985 | 1441 |
%(SEMI_IF_NO_DOC_EXISTS)Section "Online-Documentation for %(PRODUCT_NAME)" Section2 |
1442 |
%(SEMI_IF_NO_DOC_EXISTS) SectionIn 1 |
|
1443 |
%(SEMI_IF_NO_DOC_EXISTS) SetOutPath "$INSTDIR\doc" |
|
1444 |
%(SEMI_IF_NO_DOC_EXISTS) SetOverwrite ifnewer |
|
1445 |
%(SEMI_IF_NO_DOC_EXISTS) File /r /x CVS "${STX_ROOT}\%(MODULE)\%(APPLICATION)\doc\*" |
|
1446 |
%(SEMI_IF_NO_DOC_EXISTS)SectionEnd |
|
9963 | 1447 |
|
1448 |
;; Section "%(PRODUCT_NAME) Libraries and Demos" Section3 |
|
1449 |
;; SectionIn 1 |
|
1450 |
;; SetOutPath "$INSTDIR\lib" |
|
1451 |
;; SetOverwrite ifnewer |
|
1452 |
;; ; File /r /x CVS "${STX_ROOT}\%(MODULE)\%(APPLICATION)\examples\*" |
|
1453 |
;; SectionEnd |
|
1454 |
;; |
|
1455 |
;; Section "%(PRODUCT_NAME) Reports and Printing" Section4 |
|
1456 |
;; SectionIn 1 |
|
1457 |
;; SetOutPath "$INSTDIR\reportGenerator" |
|
1458 |
;; SetOverwrite ifnewer |
|
10801 | 1459 |
;; ; File /r /x CVS "..\reportGenerator\java" "..\reportGenerator\rules" "..\reportGenerator\*.xml" "..\reportGenerator\*.xslt" "..\reportGenerator\CloseApp.exe" "..\reportGenerator\expecco.jpg" |
9963 | 1460 |
;; SectionEnd |
1461 |
||
10575 | 1462 |
|
1463 |
%(STX_SOURCES_LINES) |
|
1464 |
||
1465 |
%(APP_SOURCES_LINES) |
|
1466 |
||
1467 |
%(ADDITIONAL_SECTIONS) |
|
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1468 |
|
9963 | 1469 |
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
|
1470 |
SetOutPath "$INSTDIR\bin" |
10427 | 1471 |
WriteIniStr "$INSTDIR\${PRODUCT_FILENAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" |
1472 |
CreateDirectory "$SMPROGRAMS\${PRODUCT_FILENAME}" |
|
1473 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\%(APPLICATION).lnk" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)" |
|
10419 | 1474 |
CreateShortCut "$DESKTOP\%(APPLICATION).lnk" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)" |
10427 | 1475 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk" "$INSTDIR\${PRODUCT_FILENAME}.url" |
1476 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk" "$INSTDIR\uninst.exe" |
|
9963 | 1477 |
SectionEnd |
1478 |
||
1479 |
Section -Post |
|
1480 |
WriteUninstaller "$INSTDIR\uninst.exe" |
|
1481 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" |
|
1482 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" |
|
1483 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" |
|
1484 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" |
|
1485 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" |
|
1486 |
SectionEnd |
|
1487 |
||
1488 |
LangString appOpen ${LANG_GERMAN} "Mit %(PRODUCT_NAME) öffnen" |
|
1489 |
LangString appOpen ${LANG_ENGLISH} "Open with %(PRODUCT_NAME)" |
|
1490 |
||
1491 |
LangString DESC_Section1 ${LANG_ENGLISH} "Program components of %(PRODUCT_NAME)" |
|
1492 |
LangString DESC_Section1 ${LANG_GERMAN} "Alle Programmkomponenten von %(PRODUCT_NAME)" |
|
9985 | 1493 |
%(SEMI_IF_NO_DOC_EXISTS)LangString DESC_Section2 ${LANG_ENGLISH} "Online-Documentation of %(PRODUCT_NAME)" |
1494 |
%(SEMI_IF_NO_DOC_EXISTS)LangString DESC_Section2 ${LANG_GERMAN} "Online-Dokumentation zu %(PRODUCT_NAME)" |
|
9963 | 1495 |
;; LangString DESC_Section3 ${LANG_ENGLISH} "Libraries and Demo Projects" |
1496 |
;; LangString DESC_Section3 ${LANG_GERMAN} "Bibliotheken und Beispielprojekte" |
|
1497 |
;; LangString DESC_Section4 ${LANG_ENGLISH} "Logfile Printing and Report Generation" |
|
1498 |
;; LangString DESC_Section4 ${LANG_GERMAN} "Drucken und Report-Generierung aus Log-Dateien" |
|
10575 | 1499 |
%(SEMI_IF_NO_STX_SOURCES) LangString DESC_Section3 ${LANG_ENGLISH} "Sources of ST/X (Base-System)" |
1500 |
%(SEMI_IF_NO_STX_SOURCES) LangString DESC_Section3 ${LANG_GERMAN} "Quellcode von ST/X (Basis-System)" |
|
1501 |
%(SEMI_IF_NO_APP_SOURCES) LangString DESC_Section4 ${LANG_ENGLISH} "Sources of %(PRODUCT_NAME)" |
|
1502 |
%(SEMI_IF_NO_APP_SOURCES) LangString DESC_Section4 ${LANG_GERMAN} "Quellcode von %(PRODUCT_NAME)" |
|
1503 |
%(ADDITIONAL_SECTIONS_DESCRIPTIONS) |
|
9963 | 1504 |
|
1505 |
!!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN |
|
1506 |
!!insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1) |
|
9985 | 1507 |
%(SEMI_IF_NO_DOC_EXISTS) !!insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2) |
10575 | 1508 |
%(SEMI_IF_NO_STX_SOURCES) !!insertmacro MUI_DESCRIPTION_TEXT ${Section3} $(DESC_Section3) |
1509 |
%(SEMI_IF_NO_APP_SOURCES) !!insertmacro MUI_DESCRIPTION_TEXT ${Section4} $(DESC_Section4) |
|
1510 |
%(ADDITIONAL_SECTIONS_INSERT_DESCRIPTIONS) |
|
9963 | 1511 |
!!insertmacro MUI_FUNCTION_DESCRIPTION_END |
1512 |
||
1513 |
||
1514 |
||
1515 |
Function un.onUninstSuccess |
|
1516 |
HideWindow |
|
1517 |
MessageBox MB_ICONINFORMATION|MB_OK "%(PRODUCT_NAME) wurde erfolgreich deinstalliert" |
|
1518 |
FunctionEnd |
|
1519 |
||
1520 |
Function un.onInit |
|
1521 |
!!insertmacro MUI_UNGETLANGUAGE |
|
1522 |
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Möchten Sie %(PRODUCT_NAME) und alle seine Komponenten deinstallieren?" IDYES +2 |
|
1523 |
Abort |
|
1524 |
FunctionEnd |
|
1525 |
||
1526 |
Section Uninstall |
|
10427 | 1527 |
Delete "$INSTDIR\${PRODUCT_FILENAME}.url" |
9963 | 1528 |
Delete "$INSTDIR\uninst.exe" |
10626 | 1529 |
%(DIRECTORY_UNINSTALL_LINES) |
9963 | 1530 |
|
10427 | 1531 |
Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk" |
1532 |
Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk" |
|
1533 |
Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\%(APPLICATION).lnk" |
|
9963 | 1534 |
Delete "$DESKTOP\%(APPLICATION).lnk" |
1535 |
||
10427 | 1536 |
RMDir "$SMPROGRAMS\${PRODUCT_FILENAME}" |
9963 | 1537 |
|
1538 |
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" |
|
10427 | 1539 |
DeleteRegKey HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1" |
1540 |
%(FILE_EXTENSION_UNDEFINITION_LINES) |
|
9963 | 1541 |
|
1542 |
SetAutoClose true |
|
1543 |
SectionEnd |
|
1544 |
' |
|
1545 |
" |
|
1546 |
bosch_dapasx_application packageName_dot_nsi |
|
1547 |
bosch_dapasx_application generateFile:'dapasx.nsi' |
|
1548 |
" |
|
1549 |
||
1550 |
"Modified: / 09-08-2006 / 15:10:57 / fm" |
|
1551 |
"Created: / 14-09-2006 / 21:09:18 / cg" |
|
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1552 |
"Modified: / 15-05-2007 / 17:22:37 / cg" |
9963 | 1553 |
! |
1554 |
||
9816 | 1555 |
packageName_dot_rc |
1556 |
"the template code for the <appname>.rc file" |
|
1557 |
||
1558 |
^ |
|
1559 |
'// |
|
1560 |
// DO NOT EDIT |
|
1561 |
// automagically generated from the projectDefinition: ',self name,'. |
|
1562 |
// |
|
1563 |
#define IDR_MAINFRAME 128 |
|
1564 |
||
1565 |
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US |
|
1566 |
#pragma code_page(1252) |
|
1567 |
||
1568 |
%(ICONDEFINITION_LINE) |
|
1569 |
||
1570 |
VS_VERSION_INFO VERSIONINFO |
|
1571 |
FILEVERSION %(FILE_VERSION_COMMASEPARATED) |
|
1572 |
PRODUCTVERSION %(PRODUCT_VERSION_COMMASEPARATED) |
|
1573 |
// FILEFLAGSMASK 0x3fL |
|
1574 |
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE |
|
1575 |
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD |
|
1576 |
FILEOS VOS_NT_WINDOWS32 |
|
1577 |
FILETYPE %(FILETYPE) |
|
1578 |
FILESUBTYPE VS_USER_DEFINED |
|
1579 |
||
1580 |
BEGIN |
|
1581 |
BLOCK "StringFileInfo" |
|
1582 |
BEGIN |
|
1583 |
BLOCK "040904E4" |
|
1584 |
BEGIN |
|
1585 |
VALUE "CompanyName", "%(COMPANY_NAME)\0" |
|
1586 |
VALUE "FileDescription", "%(FILE_DESCRIPTION)\0" |
|
1587 |
VALUE "FileVersion", "%(FILE_VERSION)\0" |
|
1588 |
VALUE "InternalName", "%(INTERNAL_NAME)\0" |
|
1589 |
%(LEGAL_COPYRIGHT_LINE) |
|
1590 |
VALUE "ProductName", "%(PRODUCT_NAME)\0" |
|
1591 |
VALUE "ProductVersion", "%(PRODUCT_VERSION)\0" |
|
1592 |
VALUE "ProductDate", "%(PRODUCT_DATE)\0" |
|
1593 |
END |
|
1594 |
END |
|
1595 |
||
1596 |
BLOCK "VarFileInfo" |
|
1597 |
BEGIN // Language | Translation |
|
1598 |
VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual |
|
1599 |
END |
|
1600 |
END |
|
1601 |
' |
|
1602 |
" |
|
1603 |
stx_libbasic3 packageName_dot_rc |
|
1604 |
stx_libbasic3 generate_packageName_dot_rc |
|
1605 |
" |
|
1606 |
||
1607 |
"Modified: / 09-08-2006 / 15:10:57 / fm" |
|
1608 |
"Created: / 30-08-2006 / 18:41:47 / cg" |
|
1609 |
! |
|
1610 |
||
10308 | 1611 |
preRequisiteLine_bc_dot_mak |
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1612 |
^ |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1613 |
'%(FILE_NAME).dll: %(MODULE_DIRECTORY)\objbc\%(FILE_NAME).dll |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1614 |
copy %(MODULE_DIRECTORY)\objbc\%(FILE_NAME).dll *.* |
9532 | 1615 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1616 |
%(MODULE_DIRECTORY)\objbc\%(FILE_NAME).dll: |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1617 |
cd %(MODULE_DIRECTORY) |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1618 |
bmake |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1619 |
cd %(BACK_DIRECTORY) |
9532 | 1620 |
' |
9900 | 1621 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1622 |
"Modified: / 09-02-2007 / 16:22:47 / cg" |
9532 | 1623 |
! |
1624 |
||
10308 | 1625 |
subProjectLine_bc_dot_mak |
9532 | 1626 |
|
1627 |
^'%(LIBRARY_NAME).dll: $(TOP)\..\%(PATH_TO_SUB_PROJECT)\objbc\%(LIBRARY_NAME).dll |
|
1628 |
copy $(TOP)\..\%(PATH_TO_SUB_PROJECT)\objbc\%(LIBRARY_NAME).dll *.* |
|
1629 |
||
1630 |
$(TOP)\..\%(PATH_TO_SUB_PROJECT)\objbc\%(LIBRARY_NAME).dll: |
|
1631 |
cd $(TOP)\..\%(PATH_TO_SUB_PROJECT) |
|
1632 |
bmake |
|
1633 |
-cd $(TOP)\..\%(PATH_TO_MYPROJECT) |
|
1634 |
' |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1635 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1636 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1637 |
undefineExtenionLine_nsi_for:extension |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1638 |
"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
|
1639 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1640 |
^ |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1641 |
' DeleteRegKey HKCR ".',extension,'"' |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1642 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1643 |
"Created: / 15-10-2006 / 12:51:00 / cg" |
9532 | 1644 |
! ! |
1645 |
||
1646 |
!ApplicationDefinition class methodsFor:'mappings'! |
|
1647 |
||
10427 | 1648 |
additionalFilesToInstall_dot_nsi:bindings |
1649 |
^ String streamContents:[:s | |
|
1650 |
self additionalFilesToInstall do:[:pattern | |
|
1651 |
s nextPutLine:((self installFileLine_nsi_for:pattern) expandPlaceholdersWith:bindings) |
|
1652 |
]. |
|
1653 |
]. |
|
1654 |
||
1655 |
"Created: / 01-03-2007 / 19:59:18 / cg" |
|
1656 |
! |
|
1657 |
||
10575 | 1658 |
additionalSectionsDescriptions_dot_nsi |
1659 |
^'' |
|
1660 |
! |
|
1661 |
||
1662 |
additionalSectionsDescriptions_dot_nsi:bindings |
|
1663 |
^self additionalSectionsDescriptions_dot_nsi expandPlaceholdersWith:bindings |
|
1664 |
! |
|
1665 |
||
1666 |
additionalSectionsInsertDescriptions_dot_nsi |
|
1667 |
^'' |
|
1668 |
! |
|
1669 |
||
1670 |
additionalSectionsInsertDescriptions_dot_nsi:bindings |
|
1671 |
^self additionalSectionsInsertDescriptions_dot_nsi expandPlaceholdersWith:bindings |
|
1672 |
! |
|
1673 |
||
1674 |
additionalSections_dot_nsi |
|
1675 |
^'' |
|
1676 |
! |
|
1677 |
||
1678 |
additionalSections_dot_nsi:bindings |
|
1679 |
^self additionalSections_dot_nsi expandPlaceholdersWith:bindings |
|
1680 |
! |
|
1681 |
||
10563 | 1682 |
appSourcesLines_dot_nsi:bindings |
1683 |
^ String streamContents:[:s | |
|
1684 |
s nextPutAll: |
|
10575 | 1685 |
('Section "Application Sources" Section4 |
10563 | 1686 |
SectionIn 1 |
1687 |
SetOverwrite ifnewer |
|
1688 |
' expandPlaceholdersWith:bindings). |
|
1689 |
self appSourcesProjects do:[:projectID | |
|
1690 |
s nextPutAll:((self defineAPPSourceLine_nsi_for: projectID)expandPlaceholdersWith:bindings). |
|
1691 |
s cr. |
|
1692 |
]. |
|
1693 |
s nextPutAll: |
|
10575 | 1694 |
'SectionEnd' |
10563 | 1695 |
]. |
1696 |
||
1697 |
"Created: / 15-10-2006 / 12:59:03 / cg" |
|
1698 |
! |
|
1699 |
||
10308 | 1700 |
bc_dot_mak_mappings |
1701 |
|d| |
|
1702 |
||
1703 |
d := super bc_dot_mak_mappings. |
|
1704 |
d |
|
1705 |
at: 'CONSOLE_OR_NOCONSOLE' put:(self isConsoleApplication ifTrue:'CONSOLE' ifFalse:'NOCONSOLE'); |
|
1706 |
at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32); |
|
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
1707 |
at: 'APPLICATION_OR_CONSOLEAPPLICATION' put:(self isConsoleApplication ifTrue:(self applicationNameConsole) ifFalse:(self applicationNameNoConsole)); |
10308 | 1708 |
at: 'APPLICATION' put: (self applicationName); |
10870
71d98ad9c151
nsi filename was wrong in bc.mak
Claus Gittinger <cg@exept.de>
parents:
10863
diff
changeset
|
1709 |
at: 'NSI_FILENAME' put: self nsiFilename ; |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
1710 |
at: 'CONSOLE_APPLICATION' put: (self applicationNameConsole); |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
1711 |
at: 'NOCONSOLE_APPLICATION' put: (self applicationNameNoConsole); |
10418 | 1712 |
at: 'NOCONSOLE_LOGFILE' put:(self logFilenameNoConsole); |
10308 | 1713 |
at: 'RESFILENAME' put: (self resourceFilename ); |
1714 |
at: 'RCFILENAME' put: (self rcFilename ); |
|
1715 |
at: 'STARTUP_CLASS' put: ( self startupClassName ); |
|
1716 |
at: 'STARTUP_SELECTOR' put: (self startupSelector ); |
|
1717 |
at: 'REQUIRED_LIBS' put: (self generateRequiredLibs_bc_dot_mak); |
|
1718 |
at: 'PREREQUISITES_LIBS' put: (self generatePreRequisiteLines_bc_dot_mak ); |
|
1719 |
at: 'DEPENDENCIES' put: (self generateDependencies_win32); |
|
1720 |
at: 'SUBPROJECTS_LIBS' put: (self generateSubProjectLines_bc_dot_mak ); |
|
10313
b6ce260fe8cf
#additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents:
10308
diff
changeset
|
1721 |
at: 'BUILD_TARGET' put: (self buildTarget ); |
b6ce260fe8cf
#additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents:
10308
diff
changeset
|
1722 |
at: 'ADDITIONAL_TARGETS' put: (self additionalTargets_bc_dot_mak); |
b6ce260fe8cf
#additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents:
10308
diff
changeset
|
1723 |
at: 'ADDITIONAL_RULES' put: (self additionalRules_bc_dot_mak); |
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1724 |
at: 'MAKE_PREREQUISITES' put: (self generateRequiredMakePrerequisites_bc_dot_mak); |
10308 | 1725 |
yourself. |
1726 |
||
1727 |
self needResources ifTrue:[ |
|
1728 |
d |
|
1729 |
at: 'REQUIRED_SUPPORT_DIRS' put: 'RESOURCEFILES'; |
|
1730 |
at: 'RESOURCE_RULES' put:( self replaceMappings: d |
|
1731 |
in: self bc_dot_mak_resource_rules ); |
|
1732 |
at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: d |
|
1733 |
in: self bc_dot_mak_stx_resource_rules); |
|
1734 |
yourself |
|
1735 |
]. |
|
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1736 |
self offerSmalltalkSourceCode ifTrue:[ |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1737 |
d |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1738 |
at: 'STX_SOURCE_RULES' put: ( self replaceMappings: d |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1739 |
in: self bc_dot_mak_stx_source_rules); |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1740 |
yourself |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1741 |
]. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1742 |
self offerApplicationSourceCode ifTrue:[ |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1743 |
d |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1744 |
at: 'APP_SOURCE_RULES' put: ( self replaceMappings: d |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1745 |
in: self bc_dot_mak_app_source_rules); |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1746 |
yourself |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1747 |
]. |
10308 | 1748 |
^ d |
1749 |
||
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1750 |
"Modified: / 15-05-2007 / 17:27:04 / cg" |
10308 | 1751 |
! |
1752 |
||
9816 | 1753 |
buildDate_dot_h_mappings |
1754 |
|d| |
|
1755 |
||
1756 |
d := Dictionary new. |
|
1757 |
d |
|
9886 | 1758 |
at: 'BUILDDATE' put: (Timestamp now printStringRFC1123Format ). |
9816 | 1759 |
|
1760 |
^ d |
|
1761 |
||
1762 |
"Created: / 30-08-2006 / 19:19:30 / cg" |
|
9886 | 1763 |
"Modified: / 14-09-2006 / 18:58:31 / cg" |
9816 | 1764 |
! |
1765 |
||
10427 | 1766 |
commonFilesToInstall_dot_nsi:bindings |
1767 |
^ String streamContents:[:s | |
|
1768 |
self commonFilesToInstall do:[:pattern | |
|
1769 |
s nextPutLine:((self installFileLine_nsi_for:pattern) expandPlaceholdersWith:bindings) |
|
1770 |
]. |
|
1771 |
]. |
|
1772 |
||
1773 |
"Created: / 01-03-2007 / 20:05:20 / cg" |
|
1774 |
! |
|
1775 |
||
10626 | 1776 |
directoryUninstallLines_dot_nsi |
1777 |
"%(DIRECTORY_UNINSTALL_LINES)" |
|
1778 |
||
1779 |
^' |
|
1780 |
Delete "$INSTDIR\*" |
|
1781 |
RMDir /r "$INSTDIR"' |
|
1782 |
! |
|
1783 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1784 |
fileExtensionDefinitionLines_dot_nsi:bindings |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1785 |
^ String streamContents:[:s | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1786 |
self documentExtensions do:[:ext | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1787 |
s nextPutAll:((self defineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings) |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1788 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1789 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1790 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1791 |
"Created: / 15-10-2006 / 12:59:03 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1792 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1793 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1794 |
fileExtensionUndefinitionLines_dot_nsi:bindings |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1795 |
^ String streamContents:[:s | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1796 |
self documentExtensions do:[:ext | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1797 |
s nextPutAll:((self undefineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings) |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1798 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1799 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1800 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1801 |
"Created: / 15-10-2006 / 12:59:18 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1802 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1803 |
|
10708 | 1804 |
make_dot_proto_mappings |
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1805 |
|mappings| |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1806 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1807 |
mappings := super make_dot_proto_mappings. |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1808 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1809 |
mappings |
10714 | 1810 |
at: 'TOP' put: ( self pathToTop_unix ); |
10870
71d98ad9c151
nsi filename was wrong in bc.mak
Claus Gittinger <cg@exept.de>
parents:
10863
diff
changeset
|
1811 |
at: 'NSI_FILENAME' put: self nsiFilename ; |
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1812 |
at: 'APPLICATION' put: self applicationName; |
10714 | 1813 |
at: 'APPLICATION_PACKAGE' put: self package printString "applicationPackage"; |
10708 | 1814 |
at: 'APPLICATION_TYPE' put: self applicationType; |
1815 |
at: 'STARTUP_CLASS' put: ( self startupClassName ); |
|
10871
7f92c5f55e64
Fix unix Make.proto generation
Stefan Vogel <sv@exept.de>
parents:
10870
diff
changeset
|
1816 |
at: 'STARTUP_CLASSFILENAME' put: ( Smalltalk fileNameForClass:self startupClassName ); |
10708 | 1817 |
at: 'STARTUP_SELECTOR' put: (self startupSelector ); |
10714 | 1818 |
at: 'REQUIRED_LIBS' put: (self generateRequiredLibs_make_dot_proto); |
1819 |
at: 'REQUIRED_LIBOBJS' put: (self generateRequiredLibobjs_make_dot_proto); |
|
1820 |
at: 'REQUIRED_LINK_LIBOBJS' put: (self generateRequiredLinkLibobjs_make_dot_proto); |
|
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1821 |
at: 'MAKE_PREREQUISITES' put: (self generateRequiredMakePrerequisites_make_dot_proto). |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1822 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1823 |
self needResources ifTrue:[ |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1824 |
mappings |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1825 |
at: 'REQUIRED_SUPPORT_DIRS' put: 'RESOURCEFILES'; |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1826 |
at: 'RESOURCE_RULES' put:( self replaceMappings: mappings |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1827 |
in: self make_dot_proto_resource_rules ); |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1828 |
at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: mappings |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1829 |
in: self make_dot_proto_stx_resource_rules). |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1830 |
]. |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1831 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
1832 |
^ mappings |
10708 | 1833 |
! |
1834 |
||
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1835 |
modules_dot_c_mappings |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1836 |
|d| |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1837 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1838 |
d := Dictionary new. |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1839 |
d |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1840 |
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
|
1841 |
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
|
1842 |
yourself. |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1843 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1844 |
^ d |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1845 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1846 |
"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
|
1847 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1848 |
|
9535 | 1849 |
modules_dot_stx_mappings |
1850 |
|d| |
|
1851 |
||
1852 |
d := Dictionary new. |
|
1853 |
d |
|
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1854 |
at: 'PREREQUISITE_LIBS' put: (self generatePreRequisiteLibs_modules_dot_stx); |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1855 |
at: 'ALLPREREQUISITE_LIBS' put: (self generateAllPreRequisiteLibs_modules_dot_stx); |
9886 | 1856 |
at: 'SUBPROJECT_LIBS' put: (self generateSubProjectLines_modules_dot_stx ). |
9535 | 1857 |
|
1858 |
^ d |
|
9886 | 1859 |
|
1860 |
"Modified: / 14-09-2006 / 18:58:41 / cg" |
|
9535 | 1861 |
! |
1862 |
||
10419 | 1863 |
nsiDeliveredExecutables |
10427 | 1864 |
"by default, an executable named after the application. |
1865 |
Redefine, if thats not the case." |
|
1866 |
||
10419 | 1867 |
^ '"',self applicationName,'.exe','"' |
10427 | 1868 |
|
1869 |
"Modified: / 01-03-2007 / 20:26:50 / cg" |
|
10419 | 1870 |
! |
1871 |
||
9963 | 1872 |
packageName_dot_nsi_mappings |
10563 | 1873 |
|d s defLines undefLines stxSourcesLines appSourcesLines| |
9963 | 1874 |
|
1875 |
d := Dictionary new. |
|
1876 |
d |
|
1877 |
at: 'TOP' put: ( self pathToTop_win32 ); |
|
1878 |
||
1879 |
at: 'APPLICATION' put: (self applicationName); |
|
10423 | 1880 |
at: 'APPLICATION_ICON' put: (self applicationIconFileName); |
10870
71d98ad9c151
nsi filename was wrong in bc.mak
Claus Gittinger <cg@exept.de>
parents:
10863
diff
changeset
|
1881 |
at: 'NSI_FILENAME' put: (self nsiFilename ); |
10419 | 1882 |
at: 'CONSOLE_APPLICATION' put: (self applicationNameConsole); |
1883 |
at: 'NOCONSOLE_APPLICATION' put: (self applicationNameNoConsole); |
|
1884 |
at: 'DELIVERED_EXECUTABLES' put: (self nsiDeliveredExecutables); |
|
9963 | 1885 |
at: 'MODULE' put: ( self module ); |
1886 |
at: 'MODULE_KEY' put: ( self module asUppercaseFirst ); |
|
1887 |
at: 'PRODUCT_NAME' put: (self productName); |
|
10427 | 1888 |
at: 'PRODUCT_FILENAME' put: (self productFilename); |
9963 | 1889 |
at: 'PRODUCT_VERSION' put: (self productVersion); |
1890 |
at: 'PRODUCT_DATE' put: (self productDate); |
|
1891 |
at: 'PRODUCT_PUBLISHER' put: (self productPublisher); |
|
1892 |
at: 'PRODUCT_WEBSITE' put: (self productWebSite); |
|
1893 |
at: 'PRODUCT_INSTALLDIR' put: (self productInstallDir); |
|
1894 |
at: 'FILETYPE' put: ( 'VFT_DLL' ); |
|
1895 |
at: 'FILE_VERSION_COMMASEPARATED' put: (self fileVersionCommaSeparated); |
|
1896 |
at: 'PRODUCT_VERSION_COMMASEPARATED' put: (self productVersionCommaSeparated); |
|
1897 |
||
1898 |
at: 'COMPANY_NAME' put: (self companyName); |
|
1899 |
at: 'FILE_DESCRIPTION' put: (self fileDescription); |
|
1900 |
at: 'FILE_VERSION' put: (self fileVersion); |
|
1901 |
at: 'LEGAL_COPYRIGHT' put: (self legalCopyright ? ''); |
|
1902 |
at: 'INTERNAL_NAME' put: (self internalName). |
|
1903 |
s := self legalCopyright. |
|
1904 |
s notNil ifTrue:[ |
|
9985 | 1905 |
d at: 'LEGAL_COPYRIGHT_LINE' put: ' VALUE "LegalCopyright", "',s,'\0"' |
9963 | 1906 |
]. |
1907 |
s := self iconFileName. |
|
9985 | 1908 |
s isNil ifTrue:[ |
1909 |
d at:'SEMI_IF_NO_ICON_EXISTS' put:';; '. |
|
1910 |
d at:'SEMI_IF_ICON_EXISTS' put:''. |
|
1911 |
] ifFalse:[ |
|
1912 |
d at:'SEMI_IF_NO_ICON_EXISTS' put:''. |
|
1913 |
d at:'SEMI_IF_ICON_EXISTS' put:';; '. |
|
1914 |
d at: #'ICONDEFINITION_LINE' put: 'IDR_MAINFRAME ICON DISCARDABLE "',s,'"' |
|
1915 |
]. |
|
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1916 |
s := self docDirPath_win32. |
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1917 |
s isNil ifTrue:[ |
9985 | 1918 |
d at:'SEMI_IF_NO_DOC_EXISTS' put:';; '. |
1919 |
] ifFalse:[ |
|
1920 |
d at:'SEMI_IF_NO_DOC_EXISTS' put:''. |
|
10575 | 1921 |
]. |
1922 |
self offerSmalltalkSourceCode |
|
1923 |
ifTrue:[ |
|
1924 |
stxSourcesLines := self stxSourcesLines_dot_nsi:d. |
|
1925 |
d at:'STX_SOURCES_LINES' put:stxSourcesLines. |
|
1926 |
d at:'SEMI_IF_NO_STX_SOURCES' put:''. |
|
1927 |
] |
|
1928 |
ifFalse:[ |
|
1929 |
d at:'STX_SOURCES_LINES' put:''. |
|
1930 |
d at:'SEMI_IF_NO_STX_SOURCES' put:';;'. |
|
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1931 |
]. |
10575 | 1932 |
self offerApplicationSourceCode |
1933 |
ifTrue:[ |
|
1934 |
appSourcesLines := self appSourcesLines_dot_nsi:d. |
|
1935 |
d at:'APP_SOURCES_LINES' put:appSourcesLines. |
|
1936 |
d at:'SEMI_IF_NO_STX_SOURCES' put:''. |
|
1937 |
] |
|
1938 |
ifFalse:[ |
|
1939 |
d at:'APP_SOURCES_LINES' put:''. |
|
1940 |
d at:'SEMI_IF_NO_APP_SOURCES' put:';;'. |
|
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1941 |
]. |
9963 | 1942 |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1943 |
defLines := self fileExtensionDefinitionLines_dot_nsi:d. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1944 |
undefLines := self fileExtensionUndefinitionLines_dot_nsi:d. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1945 |
|
10427 | 1946 |
d at:'FILE_EXTENSION_DEFINITION_LINES' put:defLines. |
1947 |
d at:'FILE_EXTENSION_UNDEFINITION_LINES' put:undefLines. |
|
1948 |
d at:'ADDITIONAL_FILES_TO_INSTALL' put:(self additionalFilesToInstall_dot_nsi:d). |
|
1949 |
d at:'COMMON_FILES_TO_INSTALL' put:(self commonFilesToInstall_dot_nsi:d). |
|
10575 | 1950 |
d at:'ADDITIONAL_SECTIONS' put:(self additionalSections_dot_nsi:d). |
1951 |
d at:'ADDITIONAL_SECTIONS_DESCRIPTIONS' put:(self additionalSectionsDescriptions_dot_nsi:d). |
|
1952 |
d at:'ADDITIONAL_SECTIONS_INSERT_DESCRIPTIONS' put:(self additionalSectionsInsertDescriptions_dot_nsi:d). |
|
10626 | 1953 |
d at: 'DIRECTORY_UNINSTALL_LINES' put: (self directoryUninstallLines_dot_nsi). |
9963 | 1954 |
^ d |
1955 |
||
1956 |
"Created: / 14-09-2006 / 21:08:44 / cg" |
|
10547
af59f1ae6f0b
preparations for source code delivery option
Claus Gittinger <cg@exept.de>
parents:
10509
diff
changeset
|
1957 |
"Modified: / 15-05-2007 / 17:24:27 / cg" |
9963 | 1958 |
! |
1959 |
||
10308 | 1960 |
preRequisiteLine_bc_dot_mak_mappings: aProjectID |
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1961 |
|module relPath relBackPath| |
9532 | 1962 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1963 |
module := self module. |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1964 |
|
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1965 |
relPath := self msdosPathToPackage:aProjectID from:(self package). |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1966 |
relBackPath := Array new:(relPath asCollectionOfSubstringsSeparatedBy:$\) size withAll:'..'. |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1967 |
relBackPath := relBackPath asStringWith:$\. |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1968 |
relBackPath := relBackPath , '\',module,'\',(self moduleDirectory_win32). |
9567 | 1969 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1970 |
^ Dictionary new |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1971 |
at: 'FILE_NAME' put: (self libraryNameFor: aProjectID ); |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1972 |
at: 'MODULE_DIRECTORY' put: relPath; |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1973 |
at: 'BACK_DIRECTORY' put: relBackPath; |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1974 |
yourself |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1975 |
|
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1976 |
"Modified: / 09-02-2007 / 16:59:21 / cg" |
9532 | 1977 |
! |
1978 |
||
10308 | 1979 |
preRequisiteLine_bc_dot_mak_mappingsForClass:aClass |
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1980 |
|relPath relBackPath| |
9535 | 1981 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1982 |
relPath := (PackageId from:aClass package) directory copy replaceAll:$/ with:$\. |
9567 | 1983 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1984 |
^ Dictionary new |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1985 |
at: 'FILE_NAME' put: ( aClass classBaseFilename asFilename withoutSuffix baseName ); |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1986 |
at: 'MODULE_DIRECTORY' put:relPath; |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1987 |
yourself |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1988 |
|
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1989 |
"Modified: / 09-02-2007 / 16:28:12 / cg" |
9535 | 1990 |
! |
1991 |
||
10563 | 1992 |
stxSourcesLines_dot_nsi:bindings |
1993 |
^ String streamContents:[:s | |
|
1994 |
s nextPutAll: |
|
10575 | 1995 |
'Section "STX Sources" Section3 |
10563 | 1996 |
SectionIn 1 |
1997 |
SetOverwrite ifnewer |
|
1998 |
'. |
|
10565 | 1999 |
self stxSourcesProjects do:[:projectID | |
2000 |
s nextPutAll:((self defineSTXSourceLine_nsi_for: projectID) expandPlaceholdersWith:bindings). |
|
10563 | 2001 |
s cr. |
2002 |
]. |
|
10575 | 2003 |
s nextPutAll: |
2004 |
'SectionEnd'. |
|
2005 |
||
10563 | 2006 |
]. |
2007 |
||
2008 |
"Created: / 15-10-2006 / 12:59:03 / cg" |
|
2009 |
! |
|
2010 |
||
10308 | 2011 |
subProjectLine_bc_dot_mak_mappings: aProjectID |
9557 | 2012 |
^ Dictionary new |
9886 | 2013 |
at: 'LIBRARY_NAME' put: (self libraryNameFor: aProjectID ); |
2014 |
at: 'PATH_TO_SUB_PROJECT' put: ( (PackageId from:aProjectID) module,'\',(PackageId from:aProjectID) directory copy replaceAll:$/ with:$\ ); |
|
2015 |
at: 'PATH_TO_MYPROJECT' put: (self msdosPathToPackage: self package from: aProjectID); |
|
9557 | 2016 |
yourself |
9532 | 2017 |
|
9886 | 2018 |
"Modified: / 14-09-2006 / 18:59:26 / cg" |
9532 | 2019 |
! ! |
2020 |
||
2021 |
!ApplicationDefinition class methodsFor:'mappings support'! |
|
2022 |
||
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2023 |
generateAllPreRequisiteLibs_modules_dot_stx |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2024 |
^ String streamContents:[:s | |
10809
54122f536ce6
When generating prereq: lines in makefiles, use sorted prerequisites
Stefan Vogel <sv@exept.de>
parents:
10807
diff
changeset
|
2025 |
self allPreRequisitesSorted do:[:projectID | |
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2026 |
s nextPutLine:(self libraryNameFor:projectID) |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2027 |
]. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2028 |
self isGUIApplication ifTrue:[ |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2029 |
self guiClassFileNames_win32 do:[:eachFilename | |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2030 |
s nextPutLine:(eachFilename asFilename withoutSuffix baseName) |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2031 |
]. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2032 |
]. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2033 |
]. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2034 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2035 |
" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2036 |
bosch_dapasx_application generatePreRequisiteLibs_modules_dot_stx |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2037 |
" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2038 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2039 |
"Modified: / 07-09-2006 / 17:22:58 / cg" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2040 |
! |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
2041 |
|
9535 | 2042 |
generatePreRequisiteLibs_modules_dot_stx |
9578 | 2043 |
^ String streamContents:[:s | |
2044 |
self preRequisites do:[:projectID | |
|
9687 | 2045 |
s nextPutLine:(self libraryNameFor:projectID) |
2046 |
]. |
|
2047 |
self isGUIApplication ifTrue:[ |
|
9833 | 2048 |
self guiClassFileNames_win32 do:[:eachFilename | |
9687 | 2049 |
s nextPutLine:(eachFilename asFilename withoutSuffix baseName) |
9535 | 2050 |
]. |
9578 | 2051 |
]. |
9687 | 2052 |
]. |
9535 | 2053 |
|
2054 |
" |
|
9687 | 2055 |
bosch_dapasx_application generatePreRequisiteLibs_modules_dot_stx |
9535 | 2056 |
" |
9567 | 2057 |
|
9833 | 2058 |
"Modified: / 07-09-2006 / 17:22:58 / cg" |
9535 | 2059 |
! |
2060 |
||
10308 | 2061 |
generatePreRequisiteLines_bc_dot_mak |
9532 | 2062 |
|
2063 |
^ String streamContents:[:s | |
|
10809
54122f536ce6
When generating prereq: lines in makefiles, use sorted prerequisites
Stefan Vogel <sv@exept.de>
parents:
10807
diff
changeset
|
2064 |
self allPreRequisitesSorted do:[:eachPackage | |
9532 | 2065 |
|mappings newObjectLine| |
10308 | 2066 |
mappings := self preRequisiteLine_bc_dot_mak_mappings: eachPackage. |
9532 | 2067 |
newObjectLine := self replaceMappings: mappings |
10308 | 2068 |
in: self preRequisiteLine_bc_dot_mak. |
9532 | 2069 |
s nextPutAll:newObjectLine. |
2070 |
s cr. |
|
9535 | 2071 |
]. |
9833 | 2072 |
self guiClasses_win32 do:[:eachClass | |
9535 | 2073 |
|mappings newObjectLine| |
10308 | 2074 |
mappings := self preRequisiteLine_bc_dot_mak_mappingsForClass: eachClass. |
9535 | 2075 |
newObjectLine := self replaceMappings: mappings |
10308 | 2076 |
in: self preRequisiteLine_bc_dot_mak. |
9535 | 2077 |
s nextPutAll:newObjectLine. |
2078 |
s cr. |
|
2079 |
]. |
|
10509
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
2080 |
] |
9535 | 2081 |
|
9900 | 2082 |
" |
10308 | 2083 |
bosch_dapasx_application generatePreRequisiteLines_bc_dot_mak |
9900 | 2084 |
" |
9532 | 2085 |
|
2086 |
"Created: / 09-08-2006 / 11:24:39 / fm" |
|
9900 | 2087 |
"Modified: / 14-09-2006 / 21:58:47 / cg" |
9532 | 2088 |
! |
2089 |
||
10714 | 2090 |
generateRequiredLibobjs_make_dot_proto |
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2091 |
|libobjPath libPath| |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2092 |
|
10714 | 2093 |
^ String streamContents:[:s | |
2094 |
self allPreRequisites do:[:projectID | |
|
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2095 |
libPath := self pathToPackage_unix:projectID. |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2096 |
libobjPath := libPath , '/', (self libraryNameFor:projectID). |
10714 | 2097 |
s space; nextPutAll: libobjPath,'$(O_EXT)'; nextPutLine:' \'. |
2098 |
]. |
|
2099 |
||
2100 |
s cr. |
|
2101 |
]. |
|
2102 |
||
2103 |
" |
|
2104 |
alspa_batch_application generateRequiredLibobjs_make_dot_proto |
|
2105 |
" |
|
2106 |
! |
|
2107 |
||
10308 | 2108 |
generateRequiredLibs_bc_dot_mak |
9578 | 2109 |
^ String streamContents:[:s | |
9816 | 2110 |
s nextPutLine:' \'. |
10509
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
2111 |
self allPreRequisites do:[:projectID | |
9816 | 2112 |
s space; nextPutAll:(self libraryNameFor:projectID),'.dll'; nextPutLine:' \'. |
9578 | 2113 |
]. |
9535 | 2114 |
|
9578 | 2115 |
self isGUIApplication ifTrue:[ |
9833 | 2116 |
self guiClassFileNames_win32 do:[:eachFilename | |
9816 | 2117 |
s space; nextPutAll:eachFilename; nextPutLine:' \'. |
9578 | 2118 |
]. |
2119 |
]. |
|
10509
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
2120 |
"/ self subProjects do:[:projectID | |
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
2121 |
"/ s space; nextPutAll:(self libraryNameFor:projectID),'.dll'; nextPutLine:' \'. |
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
2122 |
"/ ]. |
9816 | 2123 |
s cr. |
9532 | 2124 |
]. |
2125 |
||
9535 | 2126 |
" |
10308 | 2127 |
bosch_dapasx_application generateRequiredLibs_bc_dot_mak |
9535 | 2128 |
" |
9567 | 2129 |
|
9833 | 2130 |
"Modified: / 07-09-2006 / 17:22:51 / cg" |
9532 | 2131 |
! |
2132 |
||
10714 | 2133 |
generateRequiredLibs_make_dot_proto |
2134 |
^ String streamContents:[:s | |
|
2135 |
self allPreRequisites do:[:projectID | |
|
2136 |
s space; nextPutAll:(self libraryNameFor:projectID); nextPutLine:' \'. |
|
2137 |
]. |
|
2138 |
||
2139 |
self isGUIApplication ifTrue:[ |
|
2140 |
self guiClassFileNames_unix do:[:eachFilename | |
|
2141 |
s space; nextPutAll:eachFilename; nextPutLine:' \'. |
|
2142 |
]. |
|
2143 |
]. |
|
2144 |
"/ self subProjects do:[:projectID | |
|
2145 |
"/ s space; nextPutAll:(self libraryNameFor:projectID); nextPutLine:' \'. |
|
2146 |
"/ ]. |
|
2147 |
s cr. |
|
2148 |
]. |
|
2149 |
||
2150 |
" |
|
2151 |
alspa_batch_application generateRequiredLibs_make_dot_proto |
|
2152 |
" |
|
2153 |
! |
|
2154 |
||
2155 |
generateRequiredLinkLibobjs_make_dot_proto |
|
2156 |
||
2157 |
^ String streamContents:[:s | |
|
2158 |
self allPreRequisites do:[:projectID | |
|
2159 |
s space; nextPutAll:(self libraryNameFor:projectID),'$(O_EXT)'; nextPutLine:' \'. |
|
2160 |
]. |
|
2161 |
||
2162 |
self isGUIApplication ifTrue:[ |
|
2163 |
self guiClassFileNames_unix do:[:eachFilename | |
|
2164 |
s space; nextPutAll:eachFilename,'$(O_EXT)'; nextPutLine:' \'. |
|
2165 |
]. |
|
2166 |
]. |
|
2167 |
"/ self subProjects do:[:projectID | |
|
2168 |
"/ s space; nextPutAll:(self libraryNameFor:projectID),'$(O_EXT)'; nextPutLine:' \'. |
|
2169 |
"/ ]. |
|
2170 |
s cr. |
|
2171 |
]. |
|
2172 |
||
2173 |
" |
|
2174 |
alspa_batch_application generateRequiredLinkLibobjs_make_dot_proto |
|
2175 |
" |
|
2176 |
! |
|
2177 |
||
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2178 |
generateRequiredMakePrerequisites_bc_dot_mak |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2179 |
|libPath| |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2180 |
|
10714 | 2181 |
^ String streamContents:[:s | |
10809
54122f536ce6
When generating prereq: lines in makefiles, use sorted prerequisites
Stefan Vogel <sv@exept.de>
parents:
10807
diff
changeset
|
2182 |
self allPreRequisitesSorted do:[:projectID | |
10874
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2183 |
libPath := self pathToPackage_win32:projectID. |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2184 |
s tab; nextPutAll: '(cd ', libPath; nextPutLine:' ; $(MAKE))'. |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2185 |
]. |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2186 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2187 |
s cr. |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2188 |
]. |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2189 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2190 |
" |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2191 |
exept_expecco_application generateRequiredMakePrerequisites_bc_dot_mak |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2192 |
alspa_batch_application generateRequiredMakePrerequisites_bc_dot_mak |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2193 |
" |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2194 |
! |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2195 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2196 |
generateRequiredMakePrerequisites_make_dot_proto |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2197 |
|libPath| |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2198 |
|
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2199 |
^ String streamContents:[:s | |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2200 |
self allPreRequisitesSorted do:[:projectID | |
c5ee23aeedc2
Fix unix Make.proto generation: resource file copy
Stefan Vogel <sv@exept.de>
parents:
10873
diff
changeset
|
2201 |
libPath := self pathToPackage_unix:projectID. |
10807
ab4e65750d0b
Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents:
10803
diff
changeset
|
2202 |
s tab; nextPutAll: '(cd ', libPath; nextPutLine:' ; $(MAKE))'. |
10714 | 2203 |
]. |
2204 |
||
2205 |
s cr. |
|
2206 |
]. |
|
2207 |
||
2208 |
" |
|
10807
ab4e65750d0b
Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents:
10803
diff
changeset
|
2209 |
exept_expecco_application generateRequiredMakePrerequisites_make_dot_proto |
10714 | 2210 |
alspa_batch_application generateRequiredMakePrerequisites_make_dot_proto |
2211 |
" |
|
2212 |
! |
|
2213 |
||
10308 | 2214 |
generateSubProjectLines_bc_dot_mak |
2215 |
||
2216 |
^ String streamContents:[:s | |
|
2217 |
self subProjects do:[:projectID | |
|
2218 |
|mappings newObjectLine| |
|
2219 |
||
2220 |
mappings := self subProjectLine_bc_dot_mak_mappings: projectID. |
|
2221 |
newObjectLine := self replaceMappings: mappings |
|
2222 |
in: self subProjectLine_bc_dot_mak. |
|
2223 |
s nextPutAll:newObjectLine. |
|
2224 |
s cr. |
|
2225 |
] |
|
2226 |
] |
|
2227 |
" |
|
2228 |
bosch_dapasx_application generateSubProjectLines_bc_dot_mak |
|
2229 |
||
2230 |
" |
|
2231 |
||
2232 |
"Created: / 09-08-2006 / 11:24:39 / fm" |
|
2233 |
"Modified: / 14-09-2006 / 18:46:09 / cg" |
|
2234 |
! |
|
2235 |
||
9535 | 2236 |
generateSubProjectLines_modules_dot_stx |
2237 |
|string| |
|
2238 |
||
2239 |
string := String streamContents:[:s | |
|
2240 |
self subProjects do:[:projectID | |
|
9687 | 2241 |
s nextPutLine:(self libraryNameFor:projectID) |
9535 | 2242 |
]. |
2243 |
]. |
|
2244 |
||
2245 |
^ string |
|
2246 |
||
2247 |
" |
|
9687 | 2248 |
bosch_dapasx_application generateSubProjectLines_modules_dot_stx |
9535 | 2249 |
" |
9567 | 2250 |
|
2251 |
"Modified: / 17-08-2006 / 17:22:37 / cg" |
|
9532 | 2252 |
! ! |
2253 |
||
9813 | 2254 |
!ApplicationDefinition class methodsFor:'queries'! |
2255 |
||
2256 |
canHaveExtensions |
|
2257 |
"return true, if this class allows extensions from other packages. |
|
2258 |
Private classes, namespaces and projectDefinitions dont allow this" |
|
2259 |
||
2260 |
^ self == ApplicationDefinition |
|
2261 |
||
2262 |
" |
|
2263 |
Smalltalk allClasses select:[:each | each canHaveExtensions not] |
|
2264 |
" |
|
2265 |
||
2266 |
"Created: / 30-08-2006 / 15:29:49 / cg" |
|
2267 |
! ! |
|
2268 |
||
9725 | 2269 |
!ApplicationDefinition class methodsFor:'sanity checks'! |
2270 |
||
2271 |
validateDescription |
|
9958 | 2272 |
super validateDescription. |
2273 |
||
9725 | 2274 |
#( |
2275 |
startupClassName |
|
2276 |
"/ startupSelector |
|
2277 |
) do:[:sel | |
|
2278 |
(self theMetaclass implements:sel) ifFalse:[ |
|
2279 |
Dialog |
|
2280 |
warn:('The %1-method is missing from the description %2!!' |
|
2281 |
bindWith:sel allBold |
|
2282 |
with:self name allBold). |
|
2283 |
AbortSignal raise. |
|
2284 |
]. |
|
2285 |
(Error catch:[ self perform:sel ]) ifTrue:[ |
|
2286 |
Dialog |
|
2287 |
warn:('The %1-method needs to be edited in the description %2!!' |
|
2288 |
bindWith:sel allBold |
|
2289 |
with:self name allBold). |
|
2290 |
AbortSignal raise. |
|
2291 |
]. |
|
2292 |
]. |
|
9958 | 2293 |
|
2294 |
"Modified: / 19-09-2006 / 20:17:38 / cg" |
|
9725 | 2295 |
! ! |
2296 |
||
9587 | 2297 |
!ApplicationDefinition class methodsFor:'testing'! |
2298 |
||
9669 | 2299 |
isApplicationDefinition |
2300 |
^ self ~~ ApplicationDefinition |
|
2301 |
||
2302 |
"Created: / 23-08-2006 / 15:17:38 / cg" |
|
2303 |
! |
|
2304 |
||
9587 | 2305 |
isProjectDefinition |
2306 |
^ self ~~ ApplicationDefinition |
|
2307 |
||
2308 |
"Created: / 17-08-2006 / 14:11:56 / cg" |
|
2309 |
! ! |
|
2310 |
||
9532 | 2311 |
!ApplicationDefinition class methodsFor:'documentation'! |
2312 |
||
2313 |
version |
|
10957 | 2314 |
^ '$Header: /cvs/stx/stx/libbasic/ApplicationDefinition.st,v 1.100 2008-04-15 12:15:18 fm Exp $' |
9532 | 2315 |
! ! |