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