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