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