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