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