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