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