author | Claus Gittinger <cg@exept.de> |
Mon, 16 Apr 2007 15:35:43 +0200 | |
changeset 10514 | d79947992c91 |
parent 10509 | 1c17129cf670 |
child 10547 | af59f1ae6f0b |
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 |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
15 |
instanceVariableNames:'' |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
16 |
classVariableNames:'' |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
17 |
poolDictionaries:'' |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
18 |
category:'System-Support-Projects' |
9532 | 19 |
! |
20 |
||
9552 | 21 |
!ApplicationDefinition class methodsFor:'documentation'! |
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
35 |
! |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
36 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
37 |
documentation |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
38 |
" |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
39 |
subclasses provide the info on how to build executables and class libraries. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
40 |
Actually, subclasses must be subclasses of either LibraryDefinition or |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
41 |
ApplicationDefinition. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
42 |
These know how to generate all required help files for make-building. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
43 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
44 |
Concrete definition classes must redefine: |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
45 |
classNamesAndAttributes |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
46 |
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
|
47 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
48 |
extensionMethodNames |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
49 |
list of extension methods |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
50 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
51 |
startupClassName / startupSelector |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
52 |
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
|
53 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
54 |
buildTarget name of the generated exe-file |
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 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
57 |
should redefine: |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
58 |
preRequisites list of required packages |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
59 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
60 |
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
|
61 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
62 |
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
|
63 |
as attribute of a .dll or .exe |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
64 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
65 |
description short description; shown by windows explorer |
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 |
legalCopyright copyright message; 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 |
productName product name; 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 |
applicationName app 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 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
74 |
might redefine: |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
75 |
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
|
76 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
77 |
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
|
78 |
(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
|
79 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
80 |
|
10427 | 81 |
The above info might be outdated a bit - see stx_projects_smalltalk as a concrete example. |
82 |
||
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
83 |
[author:] |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
84 |
Felix Madrid |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
85 |
Claus Gittinger |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
86 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
87 |
[see also:] |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
88 |
stx_projects_smalltalk |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
89 |
stx_libbasic |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
90 |
stx_libbasic2 |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
91 |
" |
9552 | 92 |
! ! |
9532 | 93 |
|
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
94 |
!ApplicationDefinition class methodsFor:'accessing'! |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
95 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
96 |
allPreRequisites |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
97 |
|setOfAllPreRequisites allPreRequisites toAdd| |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
98 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
99 |
setOfAllPreRequisites := Set new. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
100 |
allPreRequisites := OrderedCollection new. |
10508
af67a731b6db
oops - forgot subProjects in generated modules.stx
Claus Gittinger <cg@exept.de>
parents:
10506
diff
changeset
|
101 |
toAdd := OrderedCollection new. |
af67a731b6db
oops - forgot subProjects in generated modules.stx
Claus Gittinger <cg@exept.de>
parents:
10506
diff
changeset
|
102 |
toAdd addAll:(self preRequisites). |
af67a731b6db
oops - forgot subProjects in generated modules.stx
Claus Gittinger <cg@exept.de>
parents:
10506
diff
changeset
|
103 |
toAdd addAll:(self subProjects ). |
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
104 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
105 |
[toAdd notEmpty] whileTrue:[ |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
106 |
|aPreRequisiteProjectID def| |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
107 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
108 |
aPreRequisiteProjectID := toAdd removeFirst. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
109 |
(setOfAllPreRequisites includes:aPreRequisiteProjectID) ifFalse:[ |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
110 |
allPreRequisites add:aPreRequisiteProjectID. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
111 |
setOfAllPreRequisites add:aPreRequisiteProjectID. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
112 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
113 |
def := ProjectDefinition definitionClassForPackage:aPreRequisiteProjectID. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
114 |
def isNil ifTrue:[ |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
115 |
Transcript showCR:'ProjectDefinition ',aPreRequisiteProjectID,' is missing - cannot find its preRequisites.'. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
116 |
] ifFalse:[ |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
117 |
def preRequisites |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
118 |
select:[:eachSubPreRequisite | (setOfAllPreRequisites includes:eachSubPreRequisite) not] |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
119 |
thenDo:[:eachSubPreRequisite | toAdd add:eachSubPreRequisite ]. |
10508
af67a731b6db
oops - forgot subProjects in generated modules.stx
Claus Gittinger <cg@exept.de>
parents:
10506
diff
changeset
|
120 |
def subProjects |
af67a731b6db
oops - forgot subProjects in generated modules.stx
Claus Gittinger <cg@exept.de>
parents:
10506
diff
changeset
|
121 |
select:[:eachSubPreRequisite | (setOfAllPreRequisites includes:eachSubPreRequisite) not] |
af67a731b6db
oops - forgot subProjects in generated modules.stx
Claus Gittinger <cg@exept.de>
parents:
10506
diff
changeset
|
122 |
thenDo:[:eachSubPreRequisite | toAdd add:eachSubPreRequisite ]. |
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
123 |
]. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
124 |
] |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
125 |
]. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
126 |
^ allPreRequisites. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
127 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
128 |
" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
129 |
exept_expeccoNET_application allPreRequisites |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
130 |
" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
131 |
! ! |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
132 |
|
10000 | 133 |
!ApplicationDefinition class methodsFor:'code generation'! |
134 |
||
135 |
forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition |
|
136 |
super forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition. |
|
137 |
||
138 |
aTwoArgBlock |
|
139 |
value:self subProjects_code |
|
140 |
value:'description'. |
|
141 |
||
142 |
aTwoArgBlock |
|
143 |
value:self preRequisites_code |
|
144 |
value:'description'. |
|
145 |
||
146 |
(self class implements:#startupClassName) ifFalse:[ |
|
147 |
aTwoArgBlock |
|
148 |
value:self startupClassName_code |
|
149 |
value:'description - startup'. |
|
150 |
]. |
|
151 |
(self class implements:#startupSelector) ifFalse:[ |
|
152 |
aTwoArgBlock |
|
153 |
value:self startupSelector_code |
|
154 |
value:'description - startup'. |
|
155 |
]. |
|
156 |
||
157 |
"Created: / 10-08-2006 / 16:35:47 / cg" |
|
158 |
"Modified: / 30-08-2006 / 19:03:48 / cg" |
|
159 |
! |
|
160 |
||
161 |
startupClassName_code |
|
10283 | 162 |
|classes startClasses mainClasses appClasses cls| |
10275 | 163 |
|
164 |
classes := self classNamesAndAttributes |
|
165 |
collect:[:nm | Smalltalk classNamed:nm] |
|
166 |
thenSelect:[:cls | cls notNil and:[cls isProjectDefinition not ]]. |
|
167 |
||
10283 | 168 |
mainClasses := classes select:[:each | each theMetaclass implements:#main ]. |
10275 | 169 |
mainClasses size == 1 ifTrue:[ |
170 |
^ self startupClassName_codeFor:(mainClasses first name) |
|
171 |
]. |
|
172 |
mainClasses isEmpty ifTrue:[ |
|
10283 | 173 |
startClasses := classes select:[:each | each theMetaclass implements:#start ]. |
174 |
startClasses size == 1 ifTrue:[ |
|
175 |
^ self startupClassName_codeFor:(startClasses first name) |
|
10275 | 176 |
]. |
10283 | 177 |
startClasses isEmpty ifTrue:[ |
178 |
appClasses := classes select:[:each | each isSubclassOf:ApplicationModel ]. |
|
179 |
appClasses size == 1 ifTrue:[ |
|
180 |
^ self startupClassName_codeFor:(appClasses first name) |
|
181 |
]. |
|
182 |
] |
|
10275 | 183 |
]. |
184 |
||
10000 | 185 |
^ |
186 |
'startupClassName |
|
187 |
self error:''undefined startupClass''. |
|
188 |
^ ''<name of class here>'' |
|
189 |
' |
|
10275 | 190 |
|
10283 | 191 |
"Modified: / 27-12-2006 / 11:43:34 / cg" |
10000 | 192 |
! |
193 |
||
194 |
startupClassName_codeFor:aClassName |
|
195 |
^ |
|
196 |
'startupClassName |
|
197 |
^ ''',aClassName,''' |
|
198 |
' |
|
199 |
||
200 |
"Created: / 05-09-2006 / 13:40:32 / cg" |
|
201 |
! |
|
202 |
||
203 |
startupSelector_code |
|
10283 | 204 |
|clsName cls sel| |
205 |
||
206 |
Error |
|
207 |
handle:[:ex | ] |
|
208 |
do:[ |
|
209 |
clsName := self startupClassName. |
|
210 |
cls := Smalltalk classNamed:clsName. |
|
211 |
]. |
|
10000 | 212 |
|
10283 | 213 |
sel := #'start'. |
214 |
cls notNil ifTrue:[ |
|
215 |
(cls respondsTo:#open) ifTrue:[ |
|
216 |
sel := #'open' |
|
217 |
] ifFalse:[ |
|
218 |
(cls respondsTo:#main) ifTrue:[ |
|
219 |
sel := #'main' |
|
220 |
] |
|
221 |
]. |
|
10275 | 222 |
]. |
223 |
||
224 |
^ self startupSelector_codeFor:sel |
|
225 |
||
10283 | 226 |
"Modified: / 27-12-2006 / 11:45:38 / cg" |
10000 | 227 |
! |
228 |
||
229 |
startupSelector_codeFor:aSelector |
|
230 |
^ |
|
231 |
'startupSelector |
|
10275 | 232 |
^ #''',aSelector,''' |
10000 | 233 |
' |
234 |
||
235 |
"Created: / 05-09-2006 / 13:41:01 / cg" |
|
10275 | 236 |
"Modified: / 15-12-2006 / 14:10:11 / cg" |
10000 | 237 |
! |
238 |
||
239 |
subProjects_code |
|
240 |
|subProjects| |
|
241 |
||
242 |
subProjects := |
|
243 |
(self siblingsAreSubProjects) |
|
244 |
ifTrue:[ self searchForSiblingProjects ] |
|
245 |
ifFalse:[ self searchForSubProjects ]. |
|
246 |
||
247 |
subProjects removeAll: self excludedFromSubProjects. |
|
248 |
||
249 |
^ String streamContents:[:s | |
|
250 |
s nextPutLine:'subProjects'. |
|
251 |
s nextPutLine:' ^ #('. |
|
252 |
subProjects do:[:eachPackageID | |
|
253 |
s nextPutLine:eachPackageID asString storeString |
|
254 |
]. |
|
255 |
s nextPutLine:')' |
|
256 |
]. |
|
257 |
||
258 |
" |
|
259 |
bosch_dapasx subProjectsGeneratedString |
|
260 |
stx_goodies subProjectsGeneratedString |
|
261 |
" |
|
262 |
||
263 |
"Modified: / 08-08-2006 / 19:24:34 / fm" |
|
264 |
"Created: / 17-08-2006 / 21:26:51 / cg" |
|
265 |
! ! |
|
266 |
||
9535 | 267 |
!ApplicationDefinition class methodsFor:'defaults'! |
9532 | 268 |
|
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
269 |
buildTarget |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
270 |
"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
|
271 |
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
|
272 |
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
|
273 |
Here, 'ALL' is returned. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
274 |
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
|
275 |
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
|
276 |
put often build new executables..." |
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
277 |
|
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
278 |
^ 'ALL' |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
279 |
! |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
280 |
|
9886 | 281 |
guiClassFileNames_unix |
282 |
^ self guiClasses_unix |
|
10079 | 283 |
collect:[:cls | (cls classBaseFilename asFilename withSuffix:'so') baseName]. |
9886 | 284 |
|
285 |
"Created: / 14-09-2006 / 18:13:22 / cg" |
|
10079 | 286 |
"Modified: / 12-10-2006 / 15:50:39 / cg" |
9886 | 287 |
! |
288 |
||
9833 | 289 |
guiClassFileNames_win32 |
290 |
^ self guiClasses_win32 |
|
10079 | 291 |
collect:[:cls | (cls classBaseFilename asFilename withSuffix:'dll') baseName]. |
9833 | 292 |
|
293 |
"Created: / 07-09-2006 / 17:23:13 / cg" |
|
10079 | 294 |
"Modified: / 12-10-2006 / 15:50:42 / cg" |
9886 | 295 |
! |
296 |
||
297 |
guiClasses_unix |
|
298 |
^ #() |
|
299 |
||
300 |
"Created: / 14-09-2006 / 18:12:58 / cg" |
|
9532 | 301 |
! |
302 |
||
9833 | 303 |
guiClasses_win32 |
9886 | 304 |
^ #() |
305 |
"/ ^ Array with:XWorkstation |
|
9833 | 306 |
|
307 |
"Created: / 07-09-2006 / 17:22:27 / cg" |
|
9886 | 308 |
"Modified: / 14-09-2006 / 18:12:35 / cg" |
9535 | 309 |
! |
9532 | 310 |
|
9535 | 311 |
needResources |
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
312 |
"answer true, if this application |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
313 |
needs resources to be installed. This is normally true. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
314 |
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
|
315 |
|
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
316 |
^ true |
9532 | 317 |
! ! |
318 |
||
9535 | 319 |
!ApplicationDefinition class methodsFor:'description'! |
9532 | 320 |
|
10427 | 321 |
additionalFilesToInstall |
322 |
"application-specific files to be installed. |
|
323 |
Can be redefined in subclasses." |
|
324 |
||
325 |
^ #() |
|
326 |
||
327 |
"Created: / 01-03-2007 / 20:02:21 / cg" |
|
328 |
! |
|
329 |
||
10423 | 330 |
applicationIconFileName |
331 |
"answer the base-name of the application icon (i.e. 'app' in <app>.ico) |
|
332 |
||
333 |
Subclasses may redefine this" |
|
334 |
||
335 |
^ self applicationName |
|
336 |
! |
|
337 |
||
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
338 |
applicationName |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
339 |
"answer the name of the application. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
340 |
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
|
341 |
|
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
342 |
Subclasses may redefine this" |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
343 |
|
10420 | 344 |
^ self applicationNameFromPackage |
345 |
||
346 |
" |
|
347 |
bosch_dapasx_application applicationName |
|
348 |
stx_projects_smalltalk applicationName |
|
349 |
" |
|
350 |
||
351 |
"Created: / 08-08-2006 / 20:25:39 / fm" |
|
352 |
"Modified: / 30-08-2006 / 19:29:25 / cg" |
|
353 |
! |
|
354 |
||
355 |
applicationNameConsole |
|
356 |
^ self applicationName,'_debug' |
|
357 |
! |
|
358 |
||
359 |
applicationNameFromPackage |
|
360 |
"answer the name of the application. |
|
361 |
This is also the name of the generated .exe file. |
|
362 |
||
363 |
Subclasses may redefine this" |
|
364 |
||
10302
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
365 |
|m path| |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
366 |
|
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
367 |
m := self moduleDirectory. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
368 |
path := m subStrings:$/. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
369 |
path last = 'application' ifTrue:[ |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
370 |
path size > 1 ifTrue:[ |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
371 |
path := path copyWithoutLast:1. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
372 |
]. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
373 |
]. |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
374 |
^ path last |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
375 |
|
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
376 |
" |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
377 |
bosch_dapasx_application applicationName |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
378 |
stx_projects_smalltalk applicationName |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
379 |
" |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
380 |
|
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
381 |
"Created: / 08-08-2006 / 20:25:39 / fm" |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
382 |
"Modified: / 30-08-2006 / 19:29:25 / cg" |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
383 |
! |
8b6235498f47
Some adaptions for stx building
Stefan Vogel <sv@exept.de>
parents:
10300
diff
changeset
|
384 |
|
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
385 |
applicationNameNoConsole |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
386 |
^ self applicationName |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
387 |
! |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
388 |
|
10427 | 389 |
commonFilesToInstall |
390 |
"files installed for applications. |
|
391 |
Do not redefine - see additionalFilesToInstall for a redefinable variant of this" |
|
392 |
||
393 |
^ #( |
|
394 |
'"*.dll"' |
|
395 |
'"symbols.stc"' |
|
396 |
'"modules.stx"' |
|
397 |
'"keyboard.rc"' |
|
398 |
'/r "resources"' |
|
399 |
) |
|
400 |
||
401 |
"Created: / 01-03-2007 / 20:05:40 / cg" |
|
402 |
! |
|
403 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
404 |
documentExtensions |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
405 |
"list extensions which should be registered with the application. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
406 |
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
|
407 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
408 |
^ #() |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
409 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
410 |
"Created: / 15-10-2006 / 12:44:14 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
411 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
412 |
|
10379
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
413 |
isConsoleApplication |
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
414 |
"Return true, if this is a console application (used with win32 only). |
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
415 |
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
|
416 |
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
|
417 |
command line window. |
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
418 |
By default, GUI apps are compiled as non-console apps." |
9532 | 419 |
|
10379
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
420 |
^ self isGUIApplication not |
9578 | 421 |
|
10379
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
422 |
"Created: / 20-09-2006 / 11:29:24 / cg" |
9532 | 423 |
! |
424 |
||
9535 | 425 |
isGUIApplication |
9578 | 426 |
"Return true, if this is a GUI app. |
427 |
Redefine to return false for non-GUI applications (affects inclusion of Display classes)." |
|
9535 | 428 |
|
9578 | 429 |
^true |
9535 | 430 |
|
431 |
"Created: / 08-08-2006 / 11:15:01 / fm" |
|
9578 | 432 |
"Modified: / 17-08-2006 / 19:47:36 / cg" |
9532 | 433 |
! |
434 |
||
9823 | 435 |
isSingleThreadedApplication |
436 |
"Return true, if this should be started without multiple threads. |
|
437 |
(not possible with gui applications)" |
|
438 |
||
439 |
^false |
|
440 |
||
441 |
"Created: / 05-09-2006 / 13:36:18 / cg" |
|
442 |
! |
|
443 |
||
10418 | 444 |
logFilenameNoConsole |
445 |
"/ ^ (self applicationNameNoConsole , '_%d.log') |
|
446 |
^ (self applicationNameNoConsole , '.log') |
|
447 |
! |
|
448 |
||
9725 | 449 |
startupClassName |
9578 | 450 |
"The name of the class which provides the entry point for the application." |
9532 | 451 |
|
9578 | 452 |
self subclassResponsibility |
453 |
||
454 |
"Modified: / 17-08-2006 / 20:00:22 / cg" |
|
9532 | 455 |
! |
456 |
||
9725 | 457 |
startupSelector |
9578 | 458 |
"The name of the entry point method (in startUpClass) used to start the application." |
9532 | 459 |
|
10379
d8b54dc361d2
Some methods moved from/to ProjectDefinition
Stefan Vogel <sv@exept.de>
parents:
10378
diff
changeset
|
460 |
^ #start |
9578 | 461 |
|
462 |
"Modified: / 17-08-2006 / 20:01:00 / cg" |
|
463 |
! ! |
|
464 |
||
465 |
!ApplicationDefinition class methodsFor:'description - project information'! |
|
466 |
||
467 |
description |
|
468 |
"Returns a description string which will appear in nt.def / bc.def" |
|
469 |
||
470 |
self module = 'stx' ifTrue:[ |
|
471 |
^ 'Smalltalk/X Application' |
|
472 |
]. |
|
473 |
||
9587 | 474 |
^ 'Application' |
9578 | 475 |
|
476 |
"Created: / 17-08-2006 / 20:52:48 / cg" |
|
9587 | 477 |
"Modified: / 18-08-2006 / 16:16:01 / cg" |
9889 | 478 |
! |
479 |
||
9985 | 480 |
docDirPath_unix |
481 |
"path relative to my dir to the documentation - or nil" |
|
482 |
||
483 |
^ nil |
|
484 |
||
485 |
"Created: / 20-09-2006 / 17:58:44 / cg" |
|
486 |
! |
|
487 |
||
488 |
docDirPath_win32 |
|
489 |
"path relative to my dir to the documentation - or nil" |
|
490 |
||
491 |
^ nil |
|
492 |
||
493 |
"Created: / 20-09-2006 / 17:58:40 / cg" |
|
494 |
! |
|
495 |
||
9889 | 496 |
fileDescription |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
497 |
"Return a description string which will appear in nt.def / bc.def and the rc-file" |
9889 | 498 |
|
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
499 |
^ self description , ' App' |
9889 | 500 |
|
501 |
"Created: / 14-09-2006 / 20:08:11 / cg" |
|
9900 | 502 |
! |
503 |
||
504 |
hasLicenceToAcceptDuringInstallation |
|
505 |
^ false |
|
506 |
||
507 |
"Created: / 14-09-2006 / 22:34:00 / cg" |
|
9532 | 508 |
! ! |
509 |
||
510 |
!ApplicationDefinition class methodsFor:'file generation'! |
|
511 |
||
9854 | 512 |
basicFileNamesToGenerate |
9535 | 513 |
^ #( |
9816 | 514 |
#('Make.spec' #'generate_make_dot_spec') |
10023 | 515 |
#('Make.proto' #'generate_make_dot_proto') |
10308 | 516 |
#('bc.mak' #'generate_bc_dot_mak') |
9605 | 517 |
#('modules.stx' #'generate_modules_dot_stx') |
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
518 |
#('modules.c' #'generate_modules_dot_c') |
9605 | 519 |
#('abbrev.stc' #'generate_abbrev_dot_stc') |
520 |
#('bmake.bat' #'generate_bmake_dot_mak') |
|
9897 | 521 |
) , (Array |
522 |
with: |
|
523 |
(Array |
|
524 |
with:self rcFilename |
|
525 |
with:#'generate_packageName_dot_rc') |
|
526 |
with: |
|
527 |
(Array |
|
528 |
with:self nsiFilename |
|
529 |
with:#'generate_packageName_dot_nsi') |
|
530 |
). |
|
9578 | 531 |
|
9854 | 532 |
"Created: / 14-09-2006 / 14:36:00 / cg" |
10023 | 533 |
"Modified: / 29-09-2006 / 17:32:57 / cg" |
9623 | 534 |
! |
535 |
||
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
536 |
generate_modules_dot_c |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
537 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
538 |
^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
|
539 |
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
|
540 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
541 |
" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
542 |
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
|
543 |
" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
544 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
545 |
"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
|
546 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
547 |
|
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
548 |
generate_modules_dot_stx |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
549 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
550 |
^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
|
551 |
in: self modules_dot_stx |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
552 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
553 |
" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
554 |
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
|
555 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
556 |
" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
557 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
558 |
"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
|
559 |
"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
|
560 |
! |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
561 |
|
9963 | 562 |
generate_packageName_dot_nsi |
563 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
564 |
^self |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
565 |
replaceMappings: self packageName_dot_nsi_mappings |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
566 |
in: self packageName_dot_nsi |
9963 | 567 |
|
568 |
" |
|
569 |
bosch_dapasx_application generate_packageName_dot_nsi |
|
570 |
" |
|
571 |
||
572 |
"Modified: / 09-08-2006 / 11:31:09 / fm" |
|
573 |
"Created: / 14-09-2006 / 21:08:23 / cg" |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
574 |
"Modified: / 15-10-2006 / 12:52:21 / cg" |
9963 | 575 |
! |
576 |
||
9830 | 577 |
rcFilename |
578 |
^ self packageName,'WinRC.rc'. |
|
579 |
||
580 |
"Created: / 07-09-2006 / 17:07:08 / cg" |
|
581 |
! |
|
582 |
||
583 |
resourceFilename |
|
584 |
^ (self rcFilename asFilename withSuffix:'res') name |
|
585 |
||
586 |
"Created: / 07-09-2006 / 17:12:53 / cg" |
|
9532 | 587 |
! ! |
588 |
||
589 |
!ApplicationDefinition class methodsFor:'file templates'! |
|
590 |
||
9535 | 591 |
bc_dot_def |
9578 | 592 |
"the template code for the bc.def file" |
9535 | 593 |
|
594 |
^ |
|
595 |
'DESCRIPTION %(DESCRIPTION) |
|
596 |
CODE PRELOAD MOVEABLE DISCARDABLE |
|
597 |
SEGMENTS |
|
598 |
INITCODE PRELOAD DISCARDABLE |
|
599 |
' |
|
600 |
||
601 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
602 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9578 | 603 |
"Modified: / 17-08-2006 / 20:05:17 / cg" |
9535 | 604 |
! |
605 |
||
10308 | 606 |
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
|
607 |
"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
|
608 |
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
|
609 |
$% characters have to be duplicated" |
10308 | 610 |
|
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
|
611 |
^ '# $','Header','$ |
10308 | 612 |
# |
613 |
# DO NOT EDIT |
|
614 |
# automagically generated from the projectDefinition: ',self name,'. |
|
615 |
# |
|
616 |
# Warning: once you modify this file, do not rerun |
|
617 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
618 |
# |
|
619 |
||
620 |
TOP=%(TOP) |
|
621 |
INCLUDE_TOP=$(TOP)\.. |
|
622 |
||
623 |
# CFLAGS1= -WD -w-pro -w-ccc -w-rch -w-aus -w-par -x- -r- -k -y -v -vi- -c -tWDR |
|
624 |
CFLAGS1= -w-pro -w-ccc -w-rch -w-aus -w-par -x- -r- -k -y -v -vi- -c |
|
625 |
||
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
626 |
CFLAGS_CONSOLE=-tWC -tWR -D_NO_VCL;WIN32 |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
627 |
CFLAGS_NOCONSOLE=-tWR -D_NO_VCL;WIN32GUI;WIN32 |
10308 | 628 |
LFLAGS_CONSOLE=-ap |
629 |
LFLAGS_NOCONSOLE=-aa |
|
630 |
CRT_STARTUP_CONSOLE=c0x32.obj |
|
631 |
CRT_STARTUP_NOCONSOLE=c0w32.obj |
|
632 |
||
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
633 |
# notice: the following 3 are now defined via the make-stx and make-winstx rules. |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
634 |
# |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
635 |
# CFLAGS_APPTYPE=$(CFLAGS_%(CONSOLE_OR_NOCONSOLE)) |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
636 |
# LFLAGS_APPTYPE=$(LFLAGS_%(CONSOLE_OR_NOCONSOLE)) |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
637 |
# CRT_STARTUP=$(CRT_STARTUP_%(CONSOLE_OR_NOCONSOLE)) |
10308 | 638 |
|
639 |
CFLAGS_LOCAL=$(CFLAGS_APPTYPE) \ |
|
640 |
-DSTARTUP_CLASS="\"%(STARTUP_CLASS)\"" \ |
|
641 |
-DSTARTUP_SELECTOR="\"%(STARTUP_SELECTOR)\"" \ |
|
642 |
-DUSE_MODULE_TABLE |
|
643 |
||
644 |
# |
|
645 |
||
646 |
!!INCLUDE $(TOP)\rules\stdHeader_bc |
|
647 |
!!INCLUDE Make.spec |
|
648 |
||
649 |
OBJS= $(COMMON_OBJS) $(WIN32_OBJS) |
|
650 |
||
651 |
# |
|
652 |
LIBNAME=dummy |
|
653 |
STCOPT="+optinline" |
|
654 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
655 |
STCLOCALOPT=''-package=$(PACKAGE)'' $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) $(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
|
656 |
||
657 |
LINKER = ilink32 |
|
658 |
||
659 |
# LFLAGS = -L$(TOP)\libbc;$(BCB)\lib;$(DEBUGLIBPATH) -H:0x400000 -Hc:0x100000 -S:0x40000 -Sc:0x10000 -ap -Tpe -x -Gn -v -Ao:0x10000 |
|
660 |
LFLAGS = -L$(TOP)\libbc;$(BCB)\lib -S:0x40000 -Sc:0x10000 $(LFLAGS_APPTYPE) -Tpe -x -Gn -v -Ao:0x10000 |
|
661 |
||
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
662 |
PROJECT_CONSOLE = %(CONSOLE_APPLICATION).exe |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
663 |
PROJECT_NOCONSOLE = %(NOCONSOLE_APPLICATION).exe |
10308 | 664 |
ALLOBJFILES = main.obj |
665 |
RESFILES = %(RESFILENAME) |
|
666 |
ALLOBJ = $(CRT_STARTUP) $(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
|
667 |
DEFFILE=$(TOP)\rules\bc_exe.def |
10308 | 668 |
|
669 |
LIBFILES=$(TOP)\libbc\librun.lib |
|
670 |
ALLLIB=$(LIBFILES) import32.lib $(RT_LIB) |
|
671 |
||
672 |
REQUIRED_LIBS=librun.dll %(REQUIRED_LIBS) |
|
673 |
REQUIRED_FILES=cs3245.dll symbols.stc $(REQUIRED_LIBS) |
|
674 |
||
675 |
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS) |
|
676 |
||
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
677 |
target: %(BUILD_TARGET) |
10308 | 678 |
|
679 |
# the executable, all required files and a self-installing-installer-exe |
|
10424 | 680 |
ALL:: exe setup |
10308 | 681 |
|
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
682 |
exe: %(APPLICATION_OR_CONSOLEAPPLICATION) %(ADDITIONAL_TARGETS) |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
683 |
|
10308 | 684 |
# the executable only |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
685 |
# with console |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
686 |
%(CONSOLE_APPLICATION): |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
687 |
-del main.obj |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
688 |
$(MAKE) -N -f bc.mak \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
689 |
PROJECT=$(PROJECT_CONSOLE) \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
690 |
CFLAGS_APPTYPE="$(CFLAGS_CONSOLE)" \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
691 |
LFLAGS_APPTYPE="$(LFLAGS_CONSOLE)" \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
692 |
CRT_STARTUP="$(CRT_STARTUP_CONSOLE)" theExe |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
693 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
694 |
# without console |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
695 |
%(NOCONSOLE_APPLICATION): |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
696 |
-del main.obj |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
697 |
$(MAKE) -N -f bc.mak \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
698 |
PROJECT=$(PROJECT_NOCONSOLE) \ |
10418 | 699 |
CFLAGS_APPTYPE="$(CFLAGS_NOCONSOLE) -DWIN_LOGFILE="\\"\"%(NOCONSOLE_LOGFILE)\\"\""" \ |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
700 |
LFLAGS_APPTYPE="$(LFLAGS_NOCONSOLE)" \ |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
701 |
CRT_STARTUP="$(CRT_STARTUP_NOCONSOLE)" theExe |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
702 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
703 |
# 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
|
704 |
theExe: $(OUTDIR) $(OBJS) $(REQUIRED_FILES) show $(PROJECT) |
10308 | 705 |
|
706 |
# a nullsoft installable delivery |
|
10424 | 707 |
setup: $(REQUIRED_SUPPORT_DIRS) install_%(APPLICATION).exe |
10308 | 708 |
|
709 |
# This uses the Nullsoft Installer Package and works in Windows only |
|
710 |
||
711 |
install_%(APPLICATION).exe: $(PROJECT) %(APPLICATION).nsi |
|
712 |
$(MAKENSIS) %(APPLICATION).nsi |
|
713 |
||
714 |
new: |
|
715 |
bmake clean |
|
716 |
bmake |
|
717 |
||
718 |
RESOURCEFILES: %(APPLICATION)_RESOURCES %(APPLICATION)_BITMAPS \ |
|
719 |
stx_RESOURCES stx_STYLES stx_BITMAPS |
|
720 |
||
721 |
%(RESOURCE_RULES) |
|
722 |
%(STX_RESOURCE_RULES) |
|
723 |
||
724 |
%(PREREQUISITES_LIBS) |
|
725 |
%(SUBPROJECTS_LIBS) |
|
726 |
||
727 |
show: |
|
728 |
@echo LFLAGS= $(LFLAGS) |
|
729 |
@echo ALLOBJ= $(ALLOBJ) |
|
730 |
@echo PROJECT= $(PROJECT) |
|
731 |
@echo ALLLIB= $(ALLLIB) |
|
732 |
@echo DEFFILE= $(DEFFILE) |
|
733 |
@echo ALLRES= $(ALLRES) |
|
734 |
||
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
735 |
$(PROJECT_CONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
736 |
$(BCB)\BIN\$(LINKER) $(LFLAGS) $(ALLOBJ), $(PROJECT_CONSOLE),, $(ALLLIB), $(DEFFILE), $(RESFILES) |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
737 |
|
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
738 |
$(PROJECT_NOCONSOLE): $(ALLOBJFILES) $(OBJS) $(RESFILES) $(DEFFILE) |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
739 |
$(BCB)\BIN\$(LINKER) $(LFLAGS) $(ALLOBJ), $(PROJECT_NOCONSOLE),, $(ALLLIB), $(DEFFILE), $(RESFILES) |
10308 | 740 |
|
741 |
#$(PROJECT): $(ALLOBJFILES) $(RESFILES) $(DEFFILE) |
|
742 |
# $(BCB)\BIN\$(LINKER) @&&!! |
|
743 |
# $(LFLAGS) + |
|
744 |
# $(ALLOBJ), + |
|
745 |
# $(PROJECT),, + |
|
746 |
# $(ALLLIB), + |
|
747 |
# $(DEFFILE), + |
|
748 |
# $(RESFILES) |
|
749 |
#!! |
|
750 |
||
751 |
||
752 |
!!INCLUDE $(TOP)\rules\stdRules_bc |
|
753 |
||
754 |
# |
|
755 |
# additional rules |
|
756 |
# |
|
757 |
%(APPLICATION)Win.res: %(APPLICATION)Win.rc %(APPLICATION).ico |
|
758 |
||
759 |
main.obj: buildDate.h main.c bc.mak |
|
760 |
||
761 |
main.c: $(TOP)\librun\main.c |
|
762 |
copy $(TOP)\librun\main.c main.c |
|
763 |
||
764 |
buildDate.h: $(TOP)\librun\genDate.exe |
|
765 |
$(TOP)\librun\genDate.exe |
|
766 |
||
767 |
librun.dll: $(TOP)\librun\librun.dll |
|
768 |
copy $(TOP)\librun\librun.dll librun.dll |
|
769 |
||
770 |
cs3245.dll: $(TOP)\support\win32\borland\cs3245.dll |
|
771 |
copy $(TOP)\support\win32\borland\cs3245.dll cs3245.dll |
|
772 |
||
773 |
symbols.stc: $(TOP)\include\symbols.stc |
|
774 |
copy $(TOP)\include\symbols.stc symbols.stc |
|
775 |
||
776 |
clobber:: |
|
777 |
-del librun.dll |
|
778 |
||
10313
b6ce260fe8cf
#additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents:
10308
diff
changeset
|
779 |
%(ADDITIONAL_RULES) |
b6ce260fe8cf
#additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents:
10308
diff
changeset
|
780 |
|
10308 | 781 |
clean:: |
782 |
-del genDate.exe |
|
783 |
-del c0x32.dll |
|
784 |
-del c0x32.lib |
|
785 |
-del buildDate.h |
|
786 |
-del $(PROJECT) |
|
787 |
-del install_%(APPLICATION).exe |
|
788 |
-del stx.lib |
|
789 |
-del stx.dll |
|
790 |
-del cs3245.dll |
|
791 |
-del $(REQUIRED_FILES) |
|
792 |
-del main.c |
|
793 |
-del *.log |
|
794 |
-del *.res |
|
795 |
-rmdir /S /Q resources |
|
796 |
-rmdir /S /Q objbc |
|
797 |
||
798 |
clobber:: |
|
799 |
-del *.dll |
|
800 |
-del *.exe |
|
801 |
||
802 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
803 |
%(DEPENDENCIES) |
|
804 |
# ENDMAKEDEPEND --- do not remove this line |
|
805 |
'. |
|
10424 | 806 |
|
807 |
"Modified: / 01-03-2007 / 18:07:05 / cg" |
|
10308 | 808 |
! |
809 |
||
810 |
bc_dot_mak_resource_rules |
|
10378
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
811 |
|p| |
10308 | 812 |
|
10378
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
813 |
^ String streamContents:[:s | |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
814 |
s nextPutAll:' |
10308 | 815 |
%(APPLICATION)_RESOURCES: resources\%(MODULE)\%(MODULE_PATH)\NUL |
816 |
-copy ..\resources\*.rs resources\%(MODULE)\%(MODULE_PATH)\..\*.* |
|
817 |
||
818 |
%(APPLICATION)_BITMAPS: resources\%(MODULE)\%(MODULE_PATH)\bitmaps\NUL |
|
819 |
-copy *.ico resources\%(MODULE)\%(MODULE_PATH)\bitmaps\*.* |
|
820 |
-copy *.gif resources\%(MODULE)\%(MODULE_PATH)\bitmaps\*.* |
|
821 |
||
822 |
resources\%(MODULE)\%(MODULE_PATH)\bitmaps\NUL: resources\%(MODULE)\%(MODULE_PATH)\NUL |
|
823 |
mkdir resources\%(MODULE)\%(MODULE_PATH)\bitmaps |
|
824 |
'. |
|
10378
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
825 |
|
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
826 |
p := self moduleDirectory_win32 asCollectionOfSubstringsSeparatedBy:$\. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
827 |
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
|
828 |
|part2 part1| |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
829 |
|
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
830 |
part2 := (p copyTo:len) asStringWith:$\. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
831 |
part1 := (p copyTo:len-1) asStringWith:$\. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
832 |
s nextPutAll:' |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
833 |
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
|
834 |
mkdir resources\%(MODULE)\',part2,' |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
835 |
'. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
836 |
]. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
837 |
|
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
838 |
s nextPutAll:' |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
839 |
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
|
840 |
mkdir resources\%(MODULE)\',p first,' |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
841 |
'. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
842 |
|
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
843 |
"/ 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
|
844 |
self module ~= 'stx' ifTrue:[ |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
845 |
s nextPutAll: |
10308 | 846 |
'resources\%(MODULE)\NUL: resources\NUL |
847 |
mkdir resources\%(MODULE) |
|
848 |
'. |
|
10378
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
849 |
]. |
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
850 |
] |
10308 | 851 |
|
10378
12f4f3d800cb
fixed resource-directory setup if directory is
Claus Gittinger <cg@exept.de>
parents:
10316
diff
changeset
|
852 |
"Modified: / 09-02-2007 / 16:13:43 / cg" |
10308 | 853 |
! |
854 |
||
855 |
bc_dot_mak_stx_resource_rules |
|
856 |
^ ' |
|
857 |
||
858 |
stx_RESOURCES: \ |
|
859 |
keyboard.rc \ |
|
860 |
libbasic_RESOURCES \ |
|
861 |
libview_RESOURCES \ |
|
862 |
libtool_RESOURCES \ |
|
863 |
libtool2_RESOURCES |
|
864 |
||
865 |
keyboard.rc: $(TOP)\projects\smalltalk\keyboard.rc |
|
866 |
copy $(TOP)\projects\smalltalk\keyboard.rc *.* |
|
867 |
||
868 |
stx_STYLES: resources\stx\libview\NUL |
|
869 |
copy $(TOP)\libview\styles\mswindowsXP* resources\stx\libview\*.* |
|
870 |
copy $(TOP)\libview\styles\mswindows*.common resources\stx\libview\*.* |
|
871 |
||
872 |
stx_BITMAPS: \ |
|
873 |
libwidg_BITMAPS |
|
874 |
||
875 |
libwidg_BITMAPS: resources\stx\libwidg\bitmaps\NUL |
|
876 |
copy $(TOP)\libwidg\bitmaps\*.xpm resources\stx\libwidg\bitmaps\*.* |
|
877 |
||
878 |
libbasic_RESOURCES: resources\stx\libbasic\NUL |
|
879 |
copy $(TOP)\libbasic\resources\*.rs resources\stx\libbasic\*.* |
|
880 |
||
881 |
libtool_RESOURCES: resources\stx\libtool\NUL |
|
882 |
copy $(TOP)\libtool\resources\*.rs resources\stx\libtool\*.* |
|
883 |
||
884 |
libtool2_RESOURCES: resources\stx\libtool2\NUL |
|
885 |
copy $(TOP)\libtool2\resources\*.rs resources\stx\libtool2\*.* |
|
886 |
||
887 |
libview_RESOURCES: resources\stx\libview\NUL |
|
888 |
copy $(TOP)\libview\resources\*.rs resources\stx\libview\*.* |
|
889 |
||
890 |
libview2_RESOURCES: resources\stx\libview2\NUL |
|
891 |
copy $(TOP)\libview2\resources\*.rs resources\stx\libview2\*.* |
|
892 |
||
893 |
resources\stx\libbasic\NUL: resources\stx\NUL |
|
894 |
mkdir resources\stx\libbasic |
|
895 |
||
896 |
resources\stx\libtool\NUL: resources\stx\NUL |
|
897 |
mkdir resources\stx\libtool |
|
898 |
||
899 |
resources\stx\libtool2\NUL: resources\stx\NUL |
|
900 |
mkdir resources\stx\libtool2 |
|
901 |
||
902 |
resources\stx\libview\NUL: resources\stx\NUL |
|
903 |
mkdir resources\stx\libview |
|
904 |
||
905 |
resources\stx\libview2\NUL: resources\stx\NUL |
|
906 |
mkdir resources\stx\libview2 |
|
907 |
||
908 |
resources\stx\libwidg\bitmaps\NUL: resources\stx\libwidg\NUL |
|
909 |
mkdir resources\stx\libwidg\bitmaps |
|
910 |
||
911 |
resources\stx\libwidg\NUL: resources\stx\NUL |
|
912 |
mkdir resources\stx\libwidg |
|
913 |
||
914 |
resources\stx\NUL: resources\NUL |
|
915 |
mkdir resources\stx |
|
916 |
||
917 |
resources\NUL: |
|
918 |
mkdir resources |
|
919 |
||
920 |
bitmaps\NUL: |
|
921 |
mkdir bitmaps |
|
922 |
||
923 |
doc\NUL: |
|
924 |
mkdir doc |
|
925 |
||
926 |
'. |
|
927 |
||
928 |
"Created: / 20-09-2006 / 17:36:29 / cg" |
|
929 |
! |
|
930 |
||
9816 | 931 |
buildDate_dot_h |
932 |
"the template code for the buildDate.h file" |
|
933 |
||
934 |
^ |
|
935 |
'#define BUILD_DATE "%(BUILDDATE)"' |
|
936 |
||
937 |
"Created: / 30-08-2006 / 19:18:34 / cg" |
|
938 |
! |
|
939 |
||
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
940 |
classLine_modules_dot_c |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
941 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
942 |
^'_%(CLASS)_Init,' |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
943 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
944 |
"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
|
945 |
"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
|
946 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
947 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
948 |
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
|
949 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
950 |
^'extern void _%(CLASS)_Init();' |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
951 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
952 |
"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
|
953 |
"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
|
954 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
955 |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
956 |
defineExtenionLine_nsi_for:extension |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
957 |
"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
|
958 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
959 |
^ |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
960 |
' WriteRegStr HKCR ".',extension,'" "" "%(MODULE_KEY).%(PRODUCT_NAME).1"' |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
961 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
962 |
"Created: / 15-10-2006 / 12:50:00 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
963 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
964 |
|
10427 | 965 |
installFileLine_nsi_for:filePattern |
966 |
"the template code for a single file-install pattern to be added to the <appname>.nsi file" |
|
967 |
||
968 |
^ |
|
969 |
' File ',filePattern |
|
970 |
||
971 |
"Created: / 01-03-2007 / 20:00:20 / cg" |
|
972 |
! |
|
973 |
||
10023 | 974 |
make_dot_proto |
975 |
||
976 |
^ |
|
977 |
'# $','Header','$ |
|
978 |
# |
|
979 |
# DO NOT EDIT |
|
980 |
# automagically generated from the projectDefinition: ',self name,'. |
|
981 |
# |
|
982 |
# Warning: once you modify this file, do not rerun |
|
983 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
984 |
# |
|
985 |
# The Makefile as generated by this Make.proto supports the following targets: |
|
986 |
# make - compile all st-files to a classLib |
|
987 |
# make clean - clean all temp files |
|
988 |
# make clobber - clean all |
|
989 |
# |
|
990 |
# This file contains definitions for Unix based platforms. |
|
991 |
# It shares common definitions with the win32-make in Make.spec. |
|
992 |
||
993 |
# |
|
994 |
# position (of this package) in directory hierarchy: |
|
995 |
# (must point to ST/X top directory, for tools and includes) |
|
996 |
TOP=%(TOP) |
|
997 |
INCLUDE_TOP=$(TOP)/.. |
|
998 |
||
999 |
# subdirectories where targets are to be made: |
|
1000 |
SUBDIRS=%(SUBDIRECTORIES) |
|
1001 |
||
1002 |
||
1003 |
# subdirectories where Makefiles are to be made: |
|
1004 |
# (only define if different from SUBDIRS) |
|
1005 |
# ALLSUBDIRS= |
|
1006 |
||
1007 |
||
1008 |
# if your embedded C code requires any system includes, |
|
1009 |
# add the path(es) here:, |
|
1010 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
1011 |
# LOCALINCLUDES=-Ifoo -Ibar |
|
1012 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
1013 |
||
1014 |
||
1015 |
# if you need any additional defines for embedded C code, |
|
1016 |
# add them here:, |
|
1017 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
1018 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
1019 |
LOCALDEFINES=%(LOCAL_DEFINES) |
|
1020 |
||
1021 |
LIBNAME=%(LIBRARY_NAME) |
|
1022 |
STCLOCALOPT=''-package=$(PACKAGE)'' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
|
1023 |
||
1024 |
||
1025 |
# ********** OPTIONAL: MODIFY the next line *** |
|
1026 |
# additional C-libraries that should be pre-linked with the class-objects |
|
1027 |
LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES) |
|
1028 |
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES) |
|
1029 |
||
1030 |
||
1031 |
# ********** OPTIONAL: MODIFY the next line *** |
|
1032 |
# additional C targets or libraries should be added below |
|
1033 |
LOCAL_EXTRA_TARGETS= |
|
1034 |
||
1035 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
|
1036 |
||
1037 |
%(ADDITIONAL_DEFINITIONS) |
|
1038 |
||
1039 |
all:: preMake classLibRule postMake |
|
1040 |
||
1041 |
pre_objs:: %(ADDITIONAL_TARGETS) |
|
1042 |
||
1043 |
%(ADDITIONAL_RULES) |
|
1044 |
||
1045 |
# add more install actions here |
|
1046 |
install:: |
|
1047 |
||
1048 |
# add more install actions for aux-files (resources) here |
|
1049 |
installAux:: |
|
1050 |
||
1051 |
# add more preMake actions here |
|
1052 |
preMake:: |
|
1053 |
||
1054 |
# add more postMake actions here |
|
1055 |
postMake:: cleanjunk |
|
1056 |
||
1057 |
cleanjunk:: |
|
1058 |
||
1059 |
clean:: |
|
1060 |
%(TAB)-rm -f *.o *.H |
|
1061 |
||
1062 |
clobber:: |
|
1063 |
%(TAB)-rm -f *.so *.dll |
|
1064 |
||
1065 |
', |
|
1066 |
" |
|
1067 |
$(INSTALLBASE):: |
|
1068 |
%(TAB)@test -d $@ || mkdir $@ |
|
1069 |
||
1070 |
$(INSTALLBASE)/packages:: $(INSTALLBASE) |
|
1071 |
%(TAB)@test -d $@ || mkdir $@ |
|
1072 |
||
1073 |
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages |
|
1074 |
%(TAB)@test -d $@ || mkdir $@ |
|
1075 |
||
1076 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx:: $(INSTALLBASE)/packages/$(MODULE) |
|
1077 |
%(TAB)@test -d $@ || mkdir $@ |
|
1078 |
||
1079 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx/interactiver_editor:: $(INSTALLBASE)/packages/$(MODULE)/dapasx |
|
1080 |
%(TAB)@test -d $@ || mkdir $@ |
|
1081 |
||
1082 |
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE) |
|
1083 |
%(TAB)@test -d $@ || mkdir $@ |
|
1084 |
" |
|
1085 |
' |
|
1086 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
1087 |
%(DEPENDENCIES) |
|
1088 |
# ENDMAKEDEPEND --- do not remove this line |
|
1089 |
||
1090 |
' |
|
1091 |
||
1092 |
"Modified: / 09-08-2006 / 16:50:23 / fm" |
|
1093 |
"Created: / 29-09-2006 / 23:47:07 / cg" |
|
1094 |
! |
|
1095 |
||
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1096 |
modules_dot_c |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1097 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1098 |
^ |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1099 |
'/* $','Header','$ |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1100 |
* |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1101 |
* DO NOT EDIT |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1102 |
* 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
|
1103 |
* |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1104 |
* 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
|
1105 |
* 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
|
1106 |
*/ |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1107 |
typedef void (*vf)(); |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1108 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1109 |
%(EXTERN_INIT_NAME_LIST) |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1110 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1111 |
static vf modules[] = { |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1112 |
%(INIT_LIST) |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1113 |
(vf)0 |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1114 |
}; |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1115 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1116 |
vf *__modules__ = modules; |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1117 |
' |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1118 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1119 |
"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
|
1120 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1121 |
|
9535 | 1122 |
modules_dot_stx |
9532 | 1123 |
|
9535 | 1124 |
^ |
9542 | 1125 |
'# $','Header','$ |
9535 | 1126 |
# |
9578 | 1127 |
# DO NOT EDIT |
1128 |
# automagically generated from the projectDefinition: ',self name,'. |
|
1129 |
# |
|
1130 |
# Warning: once you modify this file, do not rerun |
|
1131 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
1132 |
# |
|
9535 | 1133 |
# This file is (currently) only used with win-95 / win-NT versions of STX. |
1134 |
# It lists the dll''s which are to be loaded at startup time. |
|
1135 |
# |
|
1136 |
# All classes loaded at startup time will be present as precompiled classes. |
|
1137 |
# Others will be autoloaded. |
|
1138 |
# |
|
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1139 |
%(ALLPREREQUISITE_LIBS) |
9535 | 1140 |
%(SUBPROJECT_LIBS) |
1141 |
' |
|
1142 |
||
1143 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
1144 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9542 | 1145 |
"Modified: / 16-08-2006 / 17:56:58 / User" |
9578 | 1146 |
"Modified: / 17-08-2006 / 20:35:38 / cg" |
9535 | 1147 |
! |
1148 |
||
9963 | 1149 |
packageName_dot_nsi |
1150 |
"the template code for the <appname>.nsi file" |
|
1151 |
||
1152 |
^ |
|
1153 |
'; $','Header','$ |
|
1154 |
; Script generated by ProjectDefinition. |
|
1155 |
||
1156 |
!!define PRODUCT_NAME "%(PRODUCT_NAME)" |
|
10427 | 1157 |
!!define PRODUCT_FILENAME "%(PRODUCT_FILENAME)" |
9963 | 1158 |
!!define PRODUCT_VERSION "%(PRODUCT_VERSION)" |
1159 |
!!define PRODUCT_PUBLISHER "%(PRODUCT_PUBLISHER)" |
|
10427 | 1160 |
!!define PRODUCT_WEB_SITE "%(PRODUCT_WEBSITE)" |
1161 |
!!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_FILENAME}" |
|
9963 | 1162 |
!!define PRODUCT_UNINST_ROOT_KEY "HKLM" |
1163 |
||
1164 |
!!define STX_ROOT "%(TOP)\.." |
|
1165 |
||
1166 |
SetCompressor lzma |
|
1167 |
||
1168 |
||
1169 |
; MUI 1.67 compatible ------ |
|
1170 |
!!include "MUI.nsh" |
|
1171 |
||
1172 |
; MUI Settings |
|
1173 |
||
1174 |
!!define MUI_ABORTWARNING |
|
9985 | 1175 |
%(SEMI_IF_ICON_EXISTS)!!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico" |
10423 | 1176 |
%(SEMI_IF_NO_ICON_EXISTS)!!define MUI_ICON "%(APPLICATION_ICON).ico" |
9985 | 1177 |
%(SEMI_IF_ICON_EXISTS)!!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" |
10423 | 1178 |
%(SEMI_IF_NO_ICON_EXISTS)!!define MUI_UNICON "%(APPLICATION_ICON).ico" |
9963 | 1179 |
|
1180 |
; Language Selection Dialog Settings |
|
1181 |
!!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" |
|
1182 |
!!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" |
|
1183 |
!!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" |
|
1184 |
||
1185 |
; Welcome page |
|
1186 |
!!insertmacro MUI_PAGE_WELCOME |
|
1187 |
; License page |
|
1188 |
; !!define MUI_LICENSEPAGE_CHECKBOX |
|
1189 |
||
1190 |
',(self hasLicenceToAcceptDuringInstallation |
|
1191 |
ifTrue:['!!insertmacro MUI_PAGE_LICENSE $(license)'] |
|
1192 |
ifFalse:['']),' |
|
1193 |
!!insertmacro MUI_PAGE_COMPONENTS |
|
1194 |
; Directory page |
|
1195 |
!!insertmacro MUI_PAGE_DIRECTORY |
|
1196 |
; Instfiles page |
|
1197 |
!!insertmacro MUI_PAGE_INSTFILES |
|
1198 |
; Finish page |
|
1199 |
!!insertmacro MUI_PAGE_FINISH |
|
1200 |
||
1201 |
; Uninstaller pages |
|
1202 |
!!insertmacro MUI_UNPAGE_INSTFILES |
|
1203 |
||
1204 |
; Language files |
|
1205 |
!!insertmacro MUI_LANGUAGE "English" |
|
1206 |
!!insertmacro MUI_LANGUAGE "German" |
|
1207 |
||
1208 |
; MUI end ------ |
|
1209 |
||
9985 | 1210 |
',((self hasLicenceToAcceptDuringInstallation and:[self docDirPath_win32 notNil]) |
9963 | 1211 |
ifTrue:[' |
9985 | 1212 |
LicenseLangString license ${LANG_ENGLISH} "',self docDirPath_win32,'\licence_en.txt" |
1213 |
LicenseLangString license ${LANG_GERMAN} "',self docDirPath_win32,'\licence_de.txt" |
|
9963 | 1214 |
'] |
1215 |
ifFalse:['']),' |
|
1216 |
||
1217 |
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" |
|
1218 |
VIProductVersion "${PRODUCT_VERSION}.0" |
|
1219 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${PRODUCT_NAME}" |
|
1220 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "${PRODUCT_PUBLISHER}" |
|
1221 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "%(FILE_VERSION)" |
|
1222 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "${PRODUCT_NAME} Installer" |
|
1223 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${PRODUCT_VERSION}" |
|
1224 |
VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "%(LEGAL_COPYRIGHT)" |
|
1225 |
||
1226 |
||
10427 | 1227 |
OutFile "%(PRODUCT_FILENAME)Setup.exe" |
9963 | 1228 |
InstallDir "%(PRODUCT_INSTALLDIR)" |
1229 |
ShowInstDetails show |
|
1230 |
ShowUnInstDetails show |
|
1231 |
||
1232 |
Function .onInit |
|
1233 |
!!insertmacro MUI_LANGDLL_DISPLAY |
|
1234 |
FunctionEnd |
|
1235 |
||
1236 |
InstType Full |
|
1237 |
InstType Partial |
|
1238 |
||
1239 |
Section "Programme" Section1 |
|
1240 |
SectionIn 1 2 |
|
1241 |
SetOutPath "$INSTDIR\bin" |
|
1242 |
SetOverwrite ifnewer |
|
10419 | 1243 |
File %(DELIVERED_EXECUTABLES) |
10427 | 1244 |
%(COMMON_FILES_TO_INSTALL) |
1245 |
%(ADDITIONAL_FILES_TO_INSTALL) |
|
9963 | 1246 |
|
10427 | 1247 |
%(FILE_EXTENSION_DEFINITION_LINES) |
1248 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1" "" "%(PRODUCT_FILENAME) File" |
|
1249 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1\DefaultIcon" "" ''$INSTDIR\bin\%(NOCONSOLE_APPLICATION).exe,0'' |
|
1250 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1\Shell\open" "" $(appOpen) |
|
1251 |
WriteRegStr HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1\Shell\open\command" "" ''"$INSTDIR\bin\%(NOCONSOLE_APPLICATION).exe" -- "%1"'' |
|
9963 | 1252 |
SectionEnd |
1253 |
||
9985 | 1254 |
%(SEMI_IF_NO_DOC_EXISTS)Section "Online-Documentation for %(PRODUCT_NAME)" Section2 |
1255 |
%(SEMI_IF_NO_DOC_EXISTS) SectionIn 1 |
|
1256 |
%(SEMI_IF_NO_DOC_EXISTS) SetOutPath "$INSTDIR\doc" |
|
1257 |
%(SEMI_IF_NO_DOC_EXISTS) SetOverwrite ifnewer |
|
1258 |
%(SEMI_IF_NO_DOC_EXISTS) File /r /x CVS "${STX_ROOT}\%(MODULE)\%(APPLICATION)\doc\*" |
|
1259 |
%(SEMI_IF_NO_DOC_EXISTS)SectionEnd |
|
9963 | 1260 |
|
1261 |
;; Section "%(PRODUCT_NAME) Libraries and Demos" Section3 |
|
1262 |
;; SectionIn 1 |
|
1263 |
;; SetOutPath "$INSTDIR\lib" |
|
1264 |
;; SetOverwrite ifnewer |
|
1265 |
;; ; File /r /x CVS "${STX_ROOT}\%(MODULE)\%(APPLICATION)\examples\*" |
|
1266 |
;; SectionEnd |
|
1267 |
;; |
|
1268 |
;; Section "%(PRODUCT_NAME) Reports and Printing" Section4 |
|
1269 |
;; SectionIn 1 |
|
1270 |
;; SetOutPath "$INSTDIR\reportGenerator" |
|
1271 |
;; SetOverwrite ifnewer |
|
1272 |
;; ; File /r /x CVS "..\reportGenerator\java" "..\reportGenerator\rules" "..\reportGenerator\*.xml" "..\reportGenerator\*.xslt" "..\reportGenerator\CloseApp.exe" "..\reportGenerator\eXpecco.jpg" |
|
1273 |
;; SectionEnd |
|
1274 |
||
1275 |
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
|
1276 |
SetOutPath "$INSTDIR\bin" |
10427 | 1277 |
WriteIniStr "$INSTDIR\${PRODUCT_FILENAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" |
1278 |
CreateDirectory "$SMPROGRAMS\${PRODUCT_FILENAME}" |
|
1279 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\%(APPLICATION).lnk" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)" |
|
10419 | 1280 |
CreateShortCut "$DESKTOP\%(APPLICATION).lnk" "$INSTDIR\bin\%(NOCONSOLE_APPLICATION)" |
10427 | 1281 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk" "$INSTDIR\${PRODUCT_FILENAME}.url" |
1282 |
CreateShortCut "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk" "$INSTDIR\uninst.exe" |
|
9963 | 1283 |
SectionEnd |
1284 |
||
1285 |
Section -Post |
|
1286 |
WriteUninstaller "$INSTDIR\uninst.exe" |
|
1287 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" |
|
1288 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" |
|
1289 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" |
|
1290 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" |
|
1291 |
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" |
|
1292 |
SectionEnd |
|
1293 |
||
1294 |
LangString appOpen ${LANG_GERMAN} "Mit %(PRODUCT_NAME) öffnen" |
|
1295 |
LangString appOpen ${LANG_ENGLISH} "Open with %(PRODUCT_NAME)" |
|
1296 |
||
1297 |
LangString DESC_Section1 ${LANG_ENGLISH} "Program components of %(PRODUCT_NAME)" |
|
1298 |
LangString DESC_Section1 ${LANG_GERMAN} "Alle Programmkomponenten von %(PRODUCT_NAME)" |
|
9985 | 1299 |
%(SEMI_IF_NO_DOC_EXISTS)LangString DESC_Section2 ${LANG_ENGLISH} "Online-Documentation of %(PRODUCT_NAME)" |
1300 |
%(SEMI_IF_NO_DOC_EXISTS)LangString DESC_Section2 ${LANG_GERMAN} "Online-Dokumentation zu %(PRODUCT_NAME)" |
|
9963 | 1301 |
;; LangString DESC_Section3 ${LANG_ENGLISH} "Libraries and Demo Projects" |
1302 |
;; LangString DESC_Section3 ${LANG_GERMAN} "Bibliotheken und Beispielprojekte" |
|
1303 |
;; LangString DESC_Section4 ${LANG_ENGLISH} "Logfile Printing and Report Generation" |
|
1304 |
;; LangString DESC_Section4 ${LANG_GERMAN} "Drucken und Report-Generierung aus Log-Dateien" |
|
1305 |
||
1306 |
||
1307 |
!!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN |
|
1308 |
!!insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1) |
|
9985 | 1309 |
%(SEMI_IF_NO_DOC_EXISTS) !!insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2) |
9963 | 1310 |
;; !!insertmacro MUI_DESCRIPTION_TEXT ${Section3} $(DESC_Section3) |
1311 |
;; !!insertmacro MUI_DESCRIPTION_TEXT ${Section4} $(DESC_Section4) |
|
1312 |
!!insertmacro MUI_FUNCTION_DESCRIPTION_END |
|
1313 |
||
1314 |
||
1315 |
||
1316 |
Function un.onUninstSuccess |
|
1317 |
HideWindow |
|
1318 |
MessageBox MB_ICONINFORMATION|MB_OK "%(PRODUCT_NAME) wurde erfolgreich deinstalliert" |
|
1319 |
FunctionEnd |
|
1320 |
||
1321 |
Function un.onInit |
|
1322 |
!!insertmacro MUI_UNGETLANGUAGE |
|
1323 |
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Möchten Sie %(PRODUCT_NAME) und alle seine Komponenten deinstallieren?" IDYES +2 |
|
1324 |
Abort |
|
1325 |
FunctionEnd |
|
1326 |
||
1327 |
Section Uninstall |
|
10427 | 1328 |
Delete "$INSTDIR\${PRODUCT_FILENAME}.url" |
9963 | 1329 |
Delete "$INSTDIR\uninst.exe" |
1330 |
Delete "$INSTDIR\*" |
|
1331 |
||
10427 | 1332 |
Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Uninstall.lnk" |
1333 |
Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\Website.lnk" |
|
1334 |
Delete "$SMPROGRAMS\${PRODUCT_FILENAME}\%(APPLICATION).lnk" |
|
9963 | 1335 |
Delete "$DESKTOP\%(APPLICATION).lnk" |
1336 |
||
10427 | 1337 |
RMDir "$SMPROGRAMS\${PRODUCT_FILENAME}" |
9963 | 1338 |
RMDir /r "$INSTDIR" |
1339 |
||
1340 |
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" |
|
10427 | 1341 |
DeleteRegKey HKCR "%(MODULE_KEY).%(PRODUCT_FILENAME).1" |
1342 |
%(FILE_EXTENSION_UNDEFINITION_LINES) |
|
9963 | 1343 |
|
1344 |
SetAutoClose true |
|
1345 |
SectionEnd |
|
1346 |
' |
|
1347 |
" |
|
1348 |
bosch_dapasx_application packageName_dot_nsi |
|
1349 |
bosch_dapasx_application generateFile:'dapasx.nsi' |
|
1350 |
" |
|
1351 |
||
1352 |
"Modified: / 09-08-2006 / 15:10:57 / fm" |
|
1353 |
"Created: / 14-09-2006 / 21:09:18 / cg" |
|
10427 | 1354 |
"Modified: / 01-03-2007 / 20:13:45 / cg" |
9963 | 1355 |
! |
1356 |
||
9816 | 1357 |
packageName_dot_rc |
1358 |
"the template code for the <appname>.rc file" |
|
1359 |
||
1360 |
^ |
|
1361 |
'// |
|
1362 |
// DO NOT EDIT |
|
1363 |
// automagically generated from the projectDefinition: ',self name,'. |
|
1364 |
// |
|
1365 |
#define IDR_MAINFRAME 128 |
|
1366 |
||
1367 |
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US |
|
1368 |
#pragma code_page(1252) |
|
1369 |
||
1370 |
%(ICONDEFINITION_LINE) |
|
1371 |
||
1372 |
VS_VERSION_INFO VERSIONINFO |
|
1373 |
FILEVERSION %(FILE_VERSION_COMMASEPARATED) |
|
1374 |
PRODUCTVERSION %(PRODUCT_VERSION_COMMASEPARATED) |
|
1375 |
// FILEFLAGSMASK 0x3fL |
|
1376 |
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE |
|
1377 |
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD |
|
1378 |
FILEOS VOS_NT_WINDOWS32 |
|
1379 |
FILETYPE %(FILETYPE) |
|
1380 |
FILESUBTYPE VS_USER_DEFINED |
|
1381 |
||
1382 |
BEGIN |
|
1383 |
BLOCK "StringFileInfo" |
|
1384 |
BEGIN |
|
1385 |
BLOCK "040904E4" |
|
1386 |
BEGIN |
|
1387 |
VALUE "CompanyName", "%(COMPANY_NAME)\0" |
|
1388 |
VALUE "FileDescription", "%(FILE_DESCRIPTION)\0" |
|
1389 |
VALUE "FileVersion", "%(FILE_VERSION)\0" |
|
1390 |
VALUE "InternalName", "%(INTERNAL_NAME)\0" |
|
1391 |
%(LEGAL_COPYRIGHT_LINE) |
|
1392 |
VALUE "ProductName", "%(PRODUCT_NAME)\0" |
|
1393 |
VALUE "ProductVersion", "%(PRODUCT_VERSION)\0" |
|
1394 |
VALUE "ProductDate", "%(PRODUCT_DATE)\0" |
|
1395 |
END |
|
1396 |
END |
|
1397 |
||
1398 |
BLOCK "VarFileInfo" |
|
1399 |
BEGIN // Language | Translation |
|
1400 |
VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual |
|
1401 |
END |
|
1402 |
END |
|
1403 |
' |
|
1404 |
" |
|
1405 |
stx_libbasic3 packageName_dot_rc |
|
1406 |
stx_libbasic3 generate_packageName_dot_rc |
|
1407 |
" |
|
1408 |
||
1409 |
"Modified: / 09-08-2006 / 15:10:57 / fm" |
|
1410 |
"Created: / 30-08-2006 / 18:41:47 / cg" |
|
1411 |
! |
|
1412 |
||
10308 | 1413 |
preRequisiteLine_bc_dot_mak |
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1414 |
^ |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1415 |
'%(FILE_NAME).dll: %(MODULE_DIRECTORY)\objbc\%(FILE_NAME).dll |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1416 |
copy %(MODULE_DIRECTORY)\objbc\%(FILE_NAME).dll *.* |
9532 | 1417 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1418 |
%(MODULE_DIRECTORY)\objbc\%(FILE_NAME).dll: |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1419 |
cd %(MODULE_DIRECTORY) |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1420 |
bmake |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1421 |
cd %(BACK_DIRECTORY) |
9532 | 1422 |
' |
9900 | 1423 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1424 |
"Modified: / 09-02-2007 / 16:22:47 / cg" |
9532 | 1425 |
! |
1426 |
||
10308 | 1427 |
subProjectLine_bc_dot_mak |
9532 | 1428 |
|
1429 |
^'%(LIBRARY_NAME).dll: $(TOP)\..\%(PATH_TO_SUB_PROJECT)\objbc\%(LIBRARY_NAME).dll |
|
1430 |
copy $(TOP)\..\%(PATH_TO_SUB_PROJECT)\objbc\%(LIBRARY_NAME).dll *.* |
|
1431 |
||
1432 |
$(TOP)\..\%(PATH_TO_SUB_PROJECT)\objbc\%(LIBRARY_NAME).dll: |
|
1433 |
cd $(TOP)\..\%(PATH_TO_SUB_PROJECT) |
|
1434 |
bmake |
|
1435 |
-cd $(TOP)\..\%(PATH_TO_MYPROJECT) |
|
1436 |
' |
|
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1437 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1438 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1439 |
undefineExtenionLine_nsi_for:extension |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1440 |
"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
|
1441 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1442 |
^ |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1443 |
' DeleteRegKey HKCR ".',extension,'"' |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1444 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1445 |
"Created: / 15-10-2006 / 12:51:00 / cg" |
9532 | 1446 |
! ! |
1447 |
||
1448 |
!ApplicationDefinition class methodsFor:'mappings'! |
|
1449 |
||
10427 | 1450 |
additionalFilesToInstall_dot_nsi:bindings |
1451 |
^ String streamContents:[:s | |
|
1452 |
self additionalFilesToInstall do:[:pattern | |
|
1453 |
s nextPutLine:((self installFileLine_nsi_for:pattern) expandPlaceholdersWith:bindings) |
|
1454 |
]. |
|
1455 |
]. |
|
1456 |
||
1457 |
"Created: / 01-03-2007 / 19:59:18 / cg" |
|
1458 |
! |
|
1459 |
||
10308 | 1460 |
bc_dot_mak_mappings |
1461 |
|d| |
|
1462 |
||
1463 |
d := super bc_dot_mak_mappings. |
|
1464 |
d |
|
1465 |
at: 'CONSOLE_OR_NOCONSOLE' put:(self isConsoleApplication ifTrue:'CONSOLE' ifFalse:'NOCONSOLE'); |
|
1466 |
at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32); |
|
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
1467 |
at: 'APPLICATION_OR_CONSOLEAPPLICATION' put:(self isConsoleApplication ifTrue:(self applicationNameConsole) ifFalse:(self applicationNameNoConsole)); |
10308 | 1468 |
at: 'APPLICATION' put: (self applicationName); |
10415
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
1469 |
at: 'CONSOLE_APPLICATION' put: (self applicationNameConsole); |
8d6ed7ea4c15
generate rules for both stx and winstx
Claus Gittinger <cg@exept.de>
parents:
10381
diff
changeset
|
1470 |
at: 'NOCONSOLE_APPLICATION' put: (self applicationNameNoConsole); |
10418 | 1471 |
at: 'NOCONSOLE_LOGFILE' put:(self logFilenameNoConsole); |
10308 | 1472 |
at: 'RESFILENAME' put: (self resourceFilename ); |
1473 |
at: 'RCFILENAME' put: (self rcFilename ); |
|
1474 |
at: 'STARTUP_CLASS' put: ( self startupClassName ); |
|
1475 |
at: 'STARTUP_SELECTOR' put: (self startupSelector ); |
|
1476 |
at: 'REQUIRED_LIBS' put: (self generateRequiredLibs_bc_dot_mak); |
|
1477 |
at: 'PREREQUISITES_LIBS' put: (self generatePreRequisiteLines_bc_dot_mak ); |
|
1478 |
at: 'DEPENDENCIES' put: (self generateDependencies_win32); |
|
1479 |
at: 'SUBPROJECTS_LIBS' put: (self generateSubProjectLines_bc_dot_mak ); |
|
10313
b6ce260fe8cf
#additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents:
10308
diff
changeset
|
1480 |
at: 'BUILD_TARGET' put: (self buildTarget ); |
b6ce260fe8cf
#additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents:
10308
diff
changeset
|
1481 |
at: 'ADDITIONAL_TARGETS' put: (self additionalTargets_bc_dot_mak); |
b6ce260fe8cf
#additionalTargets_bc_dot_mak for applications
Stefan Vogel <sv@exept.de>
parents:
10308
diff
changeset
|
1482 |
at: 'ADDITIONAL_RULES' put: (self additionalRules_bc_dot_mak); |
10308 | 1483 |
yourself. |
1484 |
||
1485 |
self needResources ifTrue:[ |
|
1486 |
d |
|
1487 |
at: 'REQUIRED_SUPPORT_DIRS' put: 'RESOURCEFILES'; |
|
1488 |
at: 'RESOURCE_RULES' put:( self replaceMappings: d |
|
1489 |
in: self bc_dot_mak_resource_rules ); |
|
1490 |
at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: d |
|
1491 |
in: self bc_dot_mak_stx_resource_rules); |
|
1492 |
yourself |
|
1493 |
]. |
|
1494 |
^ d |
|
1495 |
||
1496 |
"Modified: / 20-09-2006 / 17:37:57 / cg" |
|
1497 |
! |
|
1498 |
||
9816 | 1499 |
buildDate_dot_h_mappings |
1500 |
|d| |
|
1501 |
||
1502 |
d := Dictionary new. |
|
1503 |
d |
|
9886 | 1504 |
at: 'BUILDDATE' put: (Timestamp now printStringRFC1123Format ). |
9816 | 1505 |
|
1506 |
^ d |
|
1507 |
||
1508 |
"Created: / 30-08-2006 / 19:19:30 / cg" |
|
9886 | 1509 |
"Modified: / 14-09-2006 / 18:58:31 / cg" |
9816 | 1510 |
! |
1511 |
||
10427 | 1512 |
commonFilesToInstall_dot_nsi:bindings |
1513 |
^ String streamContents:[:s | |
|
1514 |
self commonFilesToInstall do:[:pattern | |
|
1515 |
s nextPutLine:((self installFileLine_nsi_for:pattern) expandPlaceholdersWith:bindings) |
|
1516 |
]. |
|
1517 |
]. |
|
1518 |
||
1519 |
"Created: / 01-03-2007 / 20:05:20 / cg" |
|
1520 |
! |
|
1521 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1522 |
fileExtensionDefinitionLines_dot_nsi:bindings |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1523 |
^ String streamContents:[:s | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1524 |
self documentExtensions do:[:ext | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1525 |
s nextPutAll:((self defineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings) |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1526 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1527 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1528 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1529 |
"Created: / 15-10-2006 / 12:59:03 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1530 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1531 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1532 |
fileExtensionUndefinitionLines_dot_nsi:bindings |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1533 |
^ String streamContents:[:s | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1534 |
self documentExtensions do:[:ext | |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1535 |
s nextPutAll:((self undefineExtenionLine_nsi_for:ext) expandPlaceholdersWith:bindings) |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1536 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1537 |
]. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1538 |
|
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1539 |
"Created: / 15-10-2006 / 12:59:18 / cg" |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1540 |
! |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1541 |
|
9961
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1542 |
modules_dot_c_mappings |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1543 |
|d| |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1544 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1545 |
d := Dictionary new. |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1546 |
d |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1547 |
at: 'INIT_LIST' put: (self generateClassLines:(self classLine_modules_dot_c)); |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1548 |
at: 'EXTERN_INIT_NAME_LIST' put: (self generateClassLines:(self 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
|
1549 |
yourself. |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1550 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1551 |
^ d |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1552 |
|
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1553 |
"Created: / 19-09-2006 / 22:42:15 / cg" |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1554 |
! |
c3bd31c4af2f
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9958
diff
changeset
|
1555 |
|
9535 | 1556 |
modules_dot_stx_mappings |
1557 |
|d| |
|
1558 |
||
1559 |
d := Dictionary new. |
|
1560 |
d |
|
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1561 |
at: 'PREREQUISITE_LIBS' put: (self generatePreRequisiteLibs_modules_dot_stx); |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1562 |
at: 'ALLPREREQUISITE_LIBS' put: (self generateAllPreRequisiteLibs_modules_dot_stx); |
9886 | 1563 |
at: 'SUBPROJECT_LIBS' put: (self generateSubProjectLines_modules_dot_stx ). |
9535 | 1564 |
|
1565 |
^ d |
|
9886 | 1566 |
|
1567 |
"Modified: / 14-09-2006 / 18:58:41 / cg" |
|
9535 | 1568 |
! |
1569 |
||
10419 | 1570 |
nsiDeliveredExecutables |
10427 | 1571 |
"by default, an executable named after the application. |
1572 |
Redefine, if thats not the case." |
|
1573 |
||
10419 | 1574 |
^ '"',self applicationName,'.exe','"' |
10427 | 1575 |
|
1576 |
"Modified: / 01-03-2007 / 20:26:50 / cg" |
|
10419 | 1577 |
! |
1578 |
||
9963 | 1579 |
packageName_dot_nsi_mappings |
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1580 |
|d s defLines undefLines| |
9963 | 1581 |
|
1582 |
d := Dictionary new. |
|
1583 |
d |
|
1584 |
at: 'TOP' put: ( self pathToTop_win32 ); |
|
1585 |
||
1586 |
at: 'APPLICATION' put: (self applicationName); |
|
10423 | 1587 |
at: 'APPLICATION_ICON' put: (self applicationIconFileName); |
10419 | 1588 |
at: 'CONSOLE_APPLICATION' put: (self applicationNameConsole); |
1589 |
at: 'NOCONSOLE_APPLICATION' put: (self applicationNameNoConsole); |
|
1590 |
at: 'DELIVERED_EXECUTABLES' put: (self nsiDeliveredExecutables); |
|
9963 | 1591 |
at: 'MODULE' put: ( self module ); |
1592 |
at: 'MODULE_KEY' put: ( self module asUppercaseFirst ); |
|
1593 |
at: 'PRODUCT_NAME' put: (self productName); |
|
10427 | 1594 |
at: 'PRODUCT_FILENAME' put: (self productFilename); |
9963 | 1595 |
at: 'PRODUCT_VERSION' put: (self productVersion); |
1596 |
at: 'PRODUCT_DATE' put: (self productDate); |
|
1597 |
at: 'PRODUCT_PUBLISHER' put: (self productPublisher); |
|
1598 |
at: 'PRODUCT_WEBSITE' put: (self productWebSite); |
|
1599 |
at: 'PRODUCT_INSTALLDIR' put: (self productInstallDir); |
|
1600 |
at: 'FILETYPE' put: ( 'VFT_DLL' ); |
|
1601 |
at: 'FILE_VERSION_COMMASEPARATED' put: (self fileVersionCommaSeparated); |
|
1602 |
at: 'PRODUCT_VERSION_COMMASEPARATED' put: (self productVersionCommaSeparated); |
|
1603 |
||
1604 |
at: 'COMPANY_NAME' put: (self companyName); |
|
1605 |
at: 'FILE_DESCRIPTION' put: (self fileDescription); |
|
1606 |
at: 'FILE_VERSION' put: (self fileVersion); |
|
1607 |
at: 'LEGAL_COPYRIGHT' put: (self legalCopyright ? ''); |
|
1608 |
at: 'INTERNAL_NAME' put: (self internalName). |
|
1609 |
s := self legalCopyright. |
|
1610 |
s notNil ifTrue:[ |
|
9985 | 1611 |
d at: 'LEGAL_COPYRIGHT_LINE' put: ' VALUE "LegalCopyright", "',s,'\0"' |
9963 | 1612 |
]. |
1613 |
s := self iconFileName. |
|
9985 | 1614 |
s isNil ifTrue:[ |
1615 |
d at:'SEMI_IF_NO_ICON_EXISTS' put:';; '. |
|
1616 |
d at:'SEMI_IF_ICON_EXISTS' put:''. |
|
1617 |
] ifFalse:[ |
|
1618 |
d at:'SEMI_IF_NO_ICON_EXISTS' put:''. |
|
1619 |
d at:'SEMI_IF_ICON_EXISTS' put:';; '. |
|
1620 |
d at: #'ICONDEFINITION_LINE' put: 'IDR_MAINFRAME ICON DISCARDABLE "',s,'"' |
|
1621 |
]. |
|
1622 |
self docDirPath_win32 isNil ifTrue:[ |
|
1623 |
d at:'SEMI_IF_NO_DOC_EXISTS' put:';; '. |
|
1624 |
] ifFalse:[ |
|
1625 |
d at:'SEMI_IF_NO_DOC_EXISTS' put:''. |
|
9963 | 1626 |
]. |
1627 |
||
10094
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1628 |
defLines := self fileExtensionDefinitionLines_dot_nsi:d. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1629 |
undefLines := self fileExtensionUndefinitionLines_dot_nsi:d. |
f19c19308711
care for registered file-extensions
Claus Gittinger <cg@exept.de>
parents:
10079
diff
changeset
|
1630 |
|
10427 | 1631 |
d at:'FILE_EXTENSION_DEFINITION_LINES' put:defLines. |
1632 |
d at:'FILE_EXTENSION_UNDEFINITION_LINES' put:undefLines. |
|
1633 |
d at:'ADDITIONAL_FILES_TO_INSTALL' put:(self additionalFilesToInstall_dot_nsi:d). |
|
1634 |
d at:'COMMON_FILES_TO_INSTALL' put:(self commonFilesToInstall_dot_nsi:d). |
|
9963 | 1635 |
^ d |
1636 |
||
1637 |
"Created: / 14-09-2006 / 21:08:44 / cg" |
|
10427 | 1638 |
"Modified: / 01-03-2007 / 20:05:03 / cg" |
9963 | 1639 |
! |
1640 |
||
10308 | 1641 |
preRequisiteLine_bc_dot_mak_mappings: aProjectID |
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1642 |
|module relPath relBackPath| |
9532 | 1643 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1644 |
module := self module. |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1645 |
|
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1646 |
relPath := self msdosPathToPackage:aProjectID from:(self package). |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1647 |
relBackPath := Array new:(relPath asCollectionOfSubstringsSeparatedBy:$\) size withAll:'..'. |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1648 |
relBackPath := relBackPath asStringWith:$\. |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1649 |
relBackPath := relBackPath , '\',module,'\',(self moduleDirectory_win32). |
9567 | 1650 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1651 |
^ Dictionary new |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1652 |
at: 'FILE_NAME' put: (self libraryNameFor: aProjectID ); |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1653 |
at: 'MODULE_DIRECTORY' put: relPath; |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1654 |
at: 'BACK_DIRECTORY' put: relBackPath; |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1655 |
yourself |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1656 |
|
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1657 |
"Modified: / 09-02-2007 / 16:59:21 / cg" |
9532 | 1658 |
! |
1659 |
||
10308 | 1660 |
preRequisiteLine_bc_dot_mak_mappingsForClass:aClass |
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1661 |
|relPath relBackPath| |
9535 | 1662 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1663 |
relPath := (PackageId from:aClass package) directory copy replaceAll:$/ with:$\. |
9567 | 1664 |
|
10381
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1665 |
^ Dictionary new |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1666 |
at: 'FILE_NAME' put: ( aClass classBaseFilename asFilename withoutSuffix baseName ); |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1667 |
at: 'MODULE_DIRECTORY' put:relPath; |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1668 |
yourself |
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1669 |
|
9118d27357a9
make prerequisite dirs as well
Claus Gittinger <cg@exept.de>
parents:
10379
diff
changeset
|
1670 |
"Modified: / 09-02-2007 / 16:28:12 / cg" |
9535 | 1671 |
! |
1672 |
||
10308 | 1673 |
subProjectLine_bc_dot_mak_mappings: aProjectID |
9557 | 1674 |
^ Dictionary new |
9886 | 1675 |
at: 'LIBRARY_NAME' put: (self libraryNameFor: aProjectID ); |
1676 |
at: 'PATH_TO_SUB_PROJECT' put: ( (PackageId from:aProjectID) module,'\',(PackageId from:aProjectID) directory copy replaceAll:$/ with:$\ ); |
|
1677 |
at: 'PATH_TO_MYPROJECT' put: (self msdosPathToPackage: self package from: aProjectID); |
|
9557 | 1678 |
yourself |
9532 | 1679 |
|
9886 | 1680 |
"Modified: / 14-09-2006 / 18:59:26 / cg" |
9532 | 1681 |
! ! |
1682 |
||
1683 |
!ApplicationDefinition class methodsFor:'mappings support'! |
|
1684 |
||
10506
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1685 |
generateAllPreRequisiteLibs_modules_dot_stx |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1686 |
^ String streamContents:[:s | |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1687 |
self allPreRequisites do:[:projectID | |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1688 |
s nextPutLine:(self libraryNameFor:projectID) |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1689 |
]. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1690 |
self isGUIApplication ifTrue:[ |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1691 |
self guiClassFileNames_win32 do:[:eachFilename | |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1692 |
s nextPutLine:(eachFilename asFilename withoutSuffix baseName) |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1693 |
]. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1694 |
]. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1695 |
]. |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1696 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1697 |
" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1698 |
bosch_dapasx_application generatePreRequisiteLibs_modules_dot_stx |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1699 |
" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1700 |
|
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1701 |
"Modified: / 07-09-2006 / 17:22:58 / cg" |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1702 |
! |
c07090762a88
recursively find ALL prerequisites when generating modules.stx-file
Claus Gittinger <cg@exept.de>
parents:
10427
diff
changeset
|
1703 |
|
9535 | 1704 |
generatePreRequisiteLibs_modules_dot_stx |
9578 | 1705 |
^ String streamContents:[:s | |
1706 |
self preRequisites do:[:projectID | |
|
9687 | 1707 |
s nextPutLine:(self libraryNameFor:projectID) |
1708 |
]. |
|
1709 |
self isGUIApplication ifTrue:[ |
|
9833 | 1710 |
self guiClassFileNames_win32 do:[:eachFilename | |
9687 | 1711 |
s nextPutLine:(eachFilename asFilename withoutSuffix baseName) |
9535 | 1712 |
]. |
9578 | 1713 |
]. |
9687 | 1714 |
]. |
9535 | 1715 |
|
1716 |
" |
|
9687 | 1717 |
bosch_dapasx_application generatePreRequisiteLibs_modules_dot_stx |
9535 | 1718 |
" |
9567 | 1719 |
|
9833 | 1720 |
"Modified: / 07-09-2006 / 17:22:58 / cg" |
9535 | 1721 |
! |
1722 |
||
10308 | 1723 |
generatePreRequisiteLines_bc_dot_mak |
9532 | 1724 |
|
1725 |
^ String streamContents:[:s | |
|
10509
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
1726 |
self allPreRequisites do:[:eachPackage | |
9532 | 1727 |
|mappings newObjectLine| |
10308 | 1728 |
mappings := self preRequisiteLine_bc_dot_mak_mappings: eachPackage. |
9532 | 1729 |
newObjectLine := self replaceMappings: mappings |
10308 | 1730 |
in: self preRequisiteLine_bc_dot_mak. |
9532 | 1731 |
s nextPutAll:newObjectLine. |
1732 |
s cr. |
|
9535 | 1733 |
]. |
9833 | 1734 |
self guiClasses_win32 do:[:eachClass | |
9535 | 1735 |
|mappings newObjectLine| |
10308 | 1736 |
mappings := self preRequisiteLine_bc_dot_mak_mappingsForClass: eachClass. |
9535 | 1737 |
newObjectLine := self replaceMappings: mappings |
10308 | 1738 |
in: self preRequisiteLine_bc_dot_mak. |
9535 | 1739 |
s nextPutAll:newObjectLine. |
1740 |
s cr. |
|
1741 |
]. |
|
10509
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
1742 |
] |
9535 | 1743 |
|
9900 | 1744 |
" |
10308 | 1745 |
bosch_dapasx_application generatePreRequisiteLines_bc_dot_mak |
9900 | 1746 |
" |
9532 | 1747 |
|
1748 |
"Created: / 09-08-2006 / 11:24:39 / fm" |
|
9900 | 1749 |
"Modified: / 14-09-2006 / 21:58:47 / cg" |
9532 | 1750 |
! |
1751 |
||
10308 | 1752 |
generateRequiredLibs_bc_dot_mak |
9578 | 1753 |
^ String streamContents:[:s | |
9816 | 1754 |
s nextPutLine:' \'. |
10509
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
1755 |
self allPreRequisites do:[:projectID | |
9816 | 1756 |
s space; nextPutAll:(self libraryNameFor:projectID),'.dll'; nextPutLine:' \'. |
9578 | 1757 |
]. |
9535 | 1758 |
|
9578 | 1759 |
self isGUIApplication ifTrue:[ |
9833 | 1760 |
self guiClassFileNames_win32 do:[:eachFilename | |
9816 | 1761 |
s space; nextPutAll:eachFilename; nextPutLine:' \'. |
9578 | 1762 |
]. |
1763 |
]. |
|
10509
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
1764 |
"/ self subProjects do:[:projectID | |
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
1765 |
"/ s space; nextPutAll:(self libraryNameFor:projectID),'.dll'; nextPutLine:' \'. |
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
1766 |
"/ ]. |
9816 | 1767 |
s cr. |
9532 | 1768 |
]. |
1769 |
||
9535 | 1770 |
" |
10308 | 1771 |
bosch_dapasx_application generateRequiredLibs_bc_dot_mak |
9535 | 1772 |
" |
9567 | 1773 |
|
9833 | 1774 |
"Modified: / 07-09-2006 / 17:22:51 / cg" |
9532 | 1775 |
! |
1776 |
||
10308 | 1777 |
generateSubProjectLines_bc_dot_mak |
1778 |
||
1779 |
^ String streamContents:[:s | |
|
1780 |
self subProjects do:[:projectID | |
|
1781 |
|mappings newObjectLine| |
|
1782 |
||
1783 |
mappings := self subProjectLine_bc_dot_mak_mappings: projectID. |
|
1784 |
newObjectLine := self replaceMappings: mappings |
|
1785 |
in: self subProjectLine_bc_dot_mak. |
|
1786 |
s nextPutAll:newObjectLine. |
|
1787 |
s cr. |
|
1788 |
] |
|
1789 |
] |
|
1790 |
" |
|
1791 |
bosch_dapasx_application generateSubProjectLines_bc_dot_mak |
|
1792 |
||
1793 |
" |
|
1794 |
||
1795 |
"Created: / 09-08-2006 / 11:24:39 / fm" |
|
1796 |
"Modified: / 14-09-2006 / 18:46:09 / cg" |
|
1797 |
! |
|
1798 |
||
9535 | 1799 |
generateSubProjectLines_modules_dot_stx |
1800 |
|string| |
|
1801 |
||
1802 |
string := String streamContents:[:s | |
|
1803 |
self subProjects do:[:projectID | |
|
9687 | 1804 |
s nextPutLine:(self libraryNameFor:projectID) |
9535 | 1805 |
]. |
1806 |
]. |
|
1807 |
||
1808 |
^ string |
|
1809 |
||
1810 |
" |
|
9687 | 1811 |
bosch_dapasx_application generateSubProjectLines_modules_dot_stx |
9535 | 1812 |
" |
9567 | 1813 |
|
1814 |
"Modified: / 17-08-2006 / 17:22:37 / cg" |
|
9532 | 1815 |
! ! |
1816 |
||
9813 | 1817 |
!ApplicationDefinition class methodsFor:'queries'! |
1818 |
||
1819 |
canHaveExtensions |
|
1820 |
"return true, if this class allows extensions from other packages. |
|
1821 |
Private classes, namespaces and projectDefinitions dont allow this" |
|
1822 |
||
1823 |
^ self == ApplicationDefinition |
|
1824 |
||
1825 |
" |
|
1826 |
Smalltalk allClasses select:[:each | each canHaveExtensions not] |
|
1827 |
" |
|
1828 |
||
1829 |
"Created: / 30-08-2006 / 15:29:49 / cg" |
|
1830 |
! ! |
|
1831 |
||
9725 | 1832 |
!ApplicationDefinition class methodsFor:'sanity checks'! |
1833 |
||
1834 |
validateDescription |
|
9958 | 1835 |
super validateDescription. |
1836 |
||
9725 | 1837 |
#( |
1838 |
startupClassName |
|
1839 |
"/ startupSelector |
|
1840 |
) do:[:sel | |
|
1841 |
(self theMetaclass implements:sel) ifFalse:[ |
|
1842 |
Dialog |
|
1843 |
warn:('The %1-method is missing from the description %2!!' |
|
1844 |
bindWith:sel allBold |
|
1845 |
with:self name allBold). |
|
1846 |
AbortSignal raise. |
|
1847 |
]. |
|
1848 |
(Error catch:[ self perform:sel ]) ifTrue:[ |
|
1849 |
Dialog |
|
1850 |
warn:('The %1-method needs to be edited in the description %2!!' |
|
1851 |
bindWith:sel allBold |
|
1852 |
with:self name allBold). |
|
1853 |
AbortSignal raise. |
|
1854 |
]. |
|
1855 |
]. |
|
9958 | 1856 |
|
1857 |
"Modified: / 19-09-2006 / 20:17:38 / cg" |
|
9725 | 1858 |
! ! |
1859 |
||
9587 | 1860 |
!ApplicationDefinition class methodsFor:'testing'! |
1861 |
||
9669 | 1862 |
isApplicationDefinition |
1863 |
^ self ~~ ApplicationDefinition |
|
1864 |
||
1865 |
"Created: / 23-08-2006 / 15:17:38 / cg" |
|
1866 |
! |
|
1867 |
||
9587 | 1868 |
isProjectDefinition |
1869 |
^ self ~~ ApplicationDefinition |
|
1870 |
||
1871 |
"Created: / 17-08-2006 / 14:11:56 / cg" |
|
1872 |
! ! |
|
1873 |
||
9532 | 1874 |
!ApplicationDefinition class methodsFor:'documentation'! |
1875 |
||
1876 |
version |
|
10509
1c17129cf670
oops - bc.mak also needs all prerequisites for its library-rules
Claus Gittinger <cg@exept.de>
parents:
10508
diff
changeset
|
1877 |
^ '$Header: /cvs/stx/stx/libbasic/ApplicationDefinition.st,v 1.76 2007-04-11 10:30:51 cg Exp $' |
9532 | 1878 |
! ! |