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