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