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