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