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