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