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