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