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