author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 18 Mar 2013 22:12:08 +0000 | |
branch | jv |
changeset 18033 | c90d8fdd805d |
parent 18028 | e39da2aa21bc |
parent 14883 | 0580920c8388 |
child 18037 | 4cf874da38c9 |
permissions | -rw-r--r-- |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
1 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
12095 | 3 |
All Rights Reserved |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
4 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
5 |
This software is furnished under a license and may be used |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
6 |
only in accordance with the terms of that license and with the |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
7 |
inclusion of the above copyright notice. This software may not |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
8 |
be provided or otherwise made available to, or used by, any |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
9 |
other person. No title to or ownership of the software is |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
10 |
hereby transferred. |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
11 |
" |
9671 | 12 |
"{ Package: 'stx:libbasic' }" |
9493 | 13 |
|
9568 | 14 |
ProjectDefinition subclass:#LibraryDefinition |
9616 | 15 |
instanceVariableNames:'' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Support-Projects' |
|
9493 | 19 |
! |
20 |
||
9568 | 21 |
!LibraryDefinition class methodsFor:'documentation'! |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
22 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
23 |
copyright |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
24 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG |
12095 | 26 |
All Rights Reserved |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
27 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
28 |
This software is furnished under a license and may be used |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
29 |
only in accordance with the terms of that license and with the |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
30 |
inclusion of the above copyright notice. This software may not |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
31 |
be provided or otherwise made available to, or used by, any |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
32 |
other person. No title to or ownership of the software is |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
33 |
hereby transferred. |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
34 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
35 |
! ! |
9493 | 36 |
|
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
37 |
|
9999 | 38 |
!LibraryDefinition class methodsFor:'code generation'! |
39 |
||
18033
c90d8fdd805d
Merged 1216c6885589 and eaddf47af679 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
40 |
! |
9999 | 41 |
|
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
42 |
|
11577
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
43 |
!LibraryDefinition class methodsFor:'description - compilation'! |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
44 |
|
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
45 |
primaryTarget |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
46 |
"the primary make target in Make.proto/bc.mak" |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
47 |
|
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
48 |
^ 'classLibRule' |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
49 |
! ! |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
50 |
|
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
51 |
|
9576 | 52 |
!LibraryDefinition class methodsFor:'description - project information'! |
53 |
||
54 |
description |
|
55 |
"Returns a description string which will appear in nt.def / bc.def" |
|
56 |
||
57 |
self module = 'stx' ifTrue:[ |
|
12095 | 58 |
^ 'Smalltalk/X Class library' |
9576 | 59 |
]. |
60 |
||
9586 | 61 |
^ 'Class Library' |
9576 | 62 |
|
63 |
"Created: / 17-08-2006 / 20:52:16 / cg" |
|
9586 | 64 |
"Modified: / 18-08-2006 / 16:15:53 / cg" |
9847 | 65 |
! |
66 |
||
67 |
fileDescription |
|
10417 | 68 |
"Return a description string which will appear in nt.def / bc.def and the rc-file" |
9847 | 69 |
|
11550 | 70 |
^self description , ' (LIB)' |
9847 | 71 |
|
72 |
"Created: / 14-09-2006 / 10:55:23 / cg" |
|
13179 | 73 |
! |
74 |
||
75 |
productType |
|
76 |
"Returns the product type for autopackage" |
|
77 |
||
78 |
^ 'Library' |
|
79 |
||
80 |
"Created: / 21-12-2010 / 09:28:59 / cg" |
|
9576 | 81 |
! ! |
82 |
||
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
83 |
|
9568 | 84 |
!LibraryDefinition class methodsFor:'file generation'! |
9493 | 85 |
|
9853 | 86 |
basicFileNamesToGenerate |
10865
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
87 |
"answer a dictionary (filename -> generator method) with all the files, that have to be generated for this |
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
88 |
package" |
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
89 |
|
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
90 |
|dict| |
9576 | 91 |
|
10865
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
92 |
dict := super basicFileNamesToGenerate. |
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
93 |
|
12095 | 94 |
dict |
95 |
at:'libInit.cc' put:#'generate_libInit_dot_cc'. |
|
10865
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
96 |
|
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
97 |
^ dict. |
9582 | 98 |
! |
99 |
||
9622 | 100 |
generateFile:filename |
101 |
filename = 'libInit.cc' ifTrue:[ |
|
12095 | 102 |
^ self generate_libInit_dot_cc |
9622 | 103 |
]. |
9832 | 104 |
((filename = 'lib.rc') or:[filename = self rcFilename]) ifTrue:[ |
12095 | 105 |
^ self generate_packageName_dot_rc |
9622 | 106 |
]. |
107 |
^ super generateFile:filename |
|
108 |
||
109 |
"Created: / 22-08-2006 / 18:36:24 / cg" |
|
9832 | 110 |
"Modified: / 07-09-2006 / 17:07:46 / cg" |
9622 | 111 |
! |
112 |
||
9582 | 113 |
generate_libInit_dot_cc |
12095 | 114 |
^ self replaceMappings: self libInit_dot_cc_mappings |
115 |
in: self libInit_dot_cc |
|
9582 | 116 |
|
9960
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
117 |
" |
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
118 |
bosch_dapasx_datenbasis generate_libInit_dot_cc |
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
119 |
bosch_dapasx_application generate_libInit_dot_cc |
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
120 |
" |
9582 | 121 |
|
122 |
"Created: / 08-08-2006 / 12:47:16 / fm" |
|
123 |
"Modified: / 09-08-2006 / 11:30:52 / fm" |
|
9960
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
124 |
"Modified: / 19-09-2006 / 22:41:40 / cg" |
9493 | 125 |
! ! |
126 |
||
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
127 |
|
12365 | 128 |
!LibraryDefinition class methodsFor:'file mappings'! |
129 |
||
130 |
bc_dot_mak_mappings |
|
131 |
|d resFileName| |
|
132 |
||
14858 | 133 |
resFileName := (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.$(RES)'. |
12365 | 134 |
|
135 |
d := super bc_dot_mak_mappings. |
|
136 |
d |
|
14858 | 137 |
at: 'LIBRARY_NAME' put: ( self libraryName ); |
138 |
at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag); |
|
139 |
at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
|
140 |
at: 'RESFILENAME' put: resFileName; |
|
141 |
at: 'DEPENDENCIES' put: (self generateDependencies_win32); |
|
142 |
yourself. |
|
12365 | 143 |
^ d. |
144 |
||
145 |
"Created: / 09-08-2006 / 11:44:36 / fm" |
|
146 |
"Modified: / 09-08-2006 / 20:00:01 / fm" |
|
147 |
"Modified: / 14-09-2006 / 18:58:15 / cg" |
|
148 |
! |
|
149 |
||
150 |
extensionLine_libInit_dot_cc_mappings |
|
151 |
||
152 |
^Dictionary new |
|
153 |
at: 'LIBRARY_NAME' put: ( self st2c:(self package copy asString replaceAny:':/' with:$_) ); |
|
154 |
yourself |
|
155 |
||
156 |
"Created: / 09-08-2006 / 11:19:59 / fm" |
|
157 |
"Modified: / 14-09-2006 / 18:56:26 / cg" |
|
158 |
! |
|
159 |
||
160 |
libInit_dot_cc_mappings |
|
161 |
||
162 |
^Dictionary new |
|
163 |
at: 'LIBRARY_NAME' put: (self libraryName); |
|
164 |
at: 'PACKAGE' put: (self package); |
|
12770
520a17d353eb
add an extra entry to the libInit.cc code:
Claus Gittinger <cg@exept.de>
parents:
12365
diff
changeset
|
165 |
at: 'DEFINITION_CLASSES' put: (self generate_definitionClassLine_libInit_dot_cc); |
12365 | 166 |
at: 'CLASSES' put: (self generateClassLines_libInit_dot_cc); |
167 |
at: 'EXTENSION' put: (self generateExtensionLine_libInit_dot_cc); |
|
168 |
||
169 |
yourself |
|
170 |
||
171 |
"Created: / 09-08-2006 / 11:20:24 / fm" |
|
172 |
"Modified: / 16-08-2006 / 18:19:03 / User" |
|
173 |
"Modified: / 14-09-2006 / 18:56:42 / cg" |
|
174 |
! |
|
175 |
||
176 |
vc_dot_def_mappings |
|
177 |
||
178 |
^Dictionary new |
|
179 |
at: 'LIBRARY_NAME' put: (self libraryName); |
|
180 |
at: 'DESCRIPTION' put: (self description asString storeString); |
|
181 |
at: 'VERSION_NUMBER' put: (self versionNumber); |
|
182 |
yourself |
|
183 |
||
184 |
"Created: / 09-08-2006 / 11:21:21 / fm" |
|
185 |
"Modified: / 14-09-2006 / 18:58:07 / cg" |
|
186 |
! ! |
|
187 |
||
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
188 |
|
12365 | 189 |
!LibraryDefinition class methodsFor:'file mappings support'! |
190 |
||
191 |
commonSymbolsFlag |
|
192 |
"some libraries are compiled with COMMONSYMBOLS - |
|
193 |
This saves a lot of space in the generated dll/so files; |
|
194 |
However, it also requires the librun to be rebuilt, whenever one of |
|
195 |
the commonSymbols-libs changes. |
|
196 |
Therefore, NEVER do this for end-user or application libraries; |
|
197 |
ONLY do it for a subset of the predefined, eXept-provided standard stx libraries" |
|
198 |
||
199 |
( |
|
200 |
#( |
|
201 |
'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
202 |
'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
203 |
'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
204 |
'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
205 |
'stx:libboss' 'stx:libdb' |
|
206 |
) |
|
207 |
includes:self package) ifTrue:[ |
|
208 |
^ '$(COMMONSYMBOLS)' |
|
209 |
]. |
|
210 |
^ '' |
|
211 |
||
212 |
"Created: / 18-08-2006 / 13:01:52 / cg" |
|
213 |
"Modified: / 23-08-2006 / 09:48:11 / cg" |
|
214 |
! |
|
215 |
||
216 |
generateExtensionLine_libInit_dot_cc |
|
217 |
|mappings| |
|
218 |
||
219 |
^self hasExtensionMethods |
|
220 |
ifFalse:[''] |
|
221 |
ifTrue:[ |
|
222 |
mappings := self extensionLine_libInit_dot_cc_mappings. |
|
223 |
self replaceMappings: mappings in: self extensionLine_libInit_dot_cc.] |
|
224 |
||
225 |
" |
|
226 |
DapasXProject generateExtensionLine_libInit_dot_cc |
|
227 |
DapasX_Datenbasis generateExtensionLine_libInit_dot_cc |
|
228 |
" |
|
229 |
||
230 |
"Created: / 09-08-2006 / 11:23:34 / fm" |
|
231 |
"Modified: / 14-09-2006 / 14:19:59 / cg" |
|
232 |
! ! |
|
233 |
||
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
234 |
|
9568 | 235 |
!LibraryDefinition class methodsFor:'file templates'! |
9493 | 236 |
|
237 |
bc_dot_def |
|
9576 | 238 |
"the template code for the bc.def file" |
9493 | 239 |
|
12772 | 240 |
"/^ |
241 |
"/'LIBRARY %(LIBRARY_NAME) |
|
242 |
"/DESCRIPTION %(DESCRIPTION) |
|
243 |
"/CODE PRELOAD MOVEABLE DISCARDABLE |
|
244 |
"/SEGMENTS |
|
245 |
"/ INITCODE PRELOAD DISCARDABLE |
|
246 |
"/EXPORTS |
|
247 |
"/ __%(LIBRARY_NAME)_Init @1 |
|
248 |
"/ __%(LIBRARY_NAME)_InitDefinition @2 |
|
249 |
"/' |
|
250 |
||
12095 | 251 |
^ |
9608 | 252 |
'LIBRARY %(LIBRARY_NAME) |
9493 | 253 |
DESCRIPTION %(DESCRIPTION) |
254 |
CODE PRELOAD MOVEABLE DISCARDABLE |
|
255 |
SEGMENTS |
|
256 |
INITCODE PRELOAD DISCARDABLE |
|
257 |
EXPORTS |
|
12770
520a17d353eb
add an extra entry to the libInit.cc code:
Claus Gittinger <cg@exept.de>
parents:
12365
diff
changeset
|
258 |
__%(LIBRARY_NAME)_Init @1 |
9504 | 259 |
' |
9493 | 260 |
|
261 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
262 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9590 | 263 |
"Modified: / 18-08-2006 / 17:13:45 / cg" |
9493 | 264 |
! |
265 |
||
10305 | 266 |
bc_dot_mak |
10318
bef855ddbb59
bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents:
10305
diff
changeset
|
267 |
"answer a template for the bc.mak makefile. |
bef855ddbb59
bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents:
10305
diff
changeset
|
268 |
Any variable definition %(Variable) will be later replaced by the mapping. |
bef855ddbb59
bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents:
10305
diff
changeset
|
269 |
$% characters have to be duplicated" |
10305 | 270 |
|
271 |
^ |
|
272 |
'# $','Header','$ |
|
273 |
# |
|
12095 | 274 |
# DO NOT EDIT |
14246 | 275 |
# automagically generated from the projectDefinition: ',self name",' at ',Timestamp now printString",'. |
10305 | 276 |
# |
277 |
# Warning: once you modify this file, do not rerun |
|
278 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
279 |
# |
|
13951
f4528d257651
use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents:
13788
diff
changeset
|
280 |
# Notice, that the name bc.mak is historical (from times, when only borland c was supported). |
f4528d257651
use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents:
13788
diff
changeset
|
281 |
# This file contains make rules for the win32 platform using either borland-bcc or visual-c. |
10305 | 282 |
# It shares common definitions with the unix-make in Make.spec. |
13951
f4528d257651
use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents:
13788
diff
changeset
|
283 |
# The bc.mak supports the following targets: |
10305 | 284 |
# bmake - compile all st-files to a classLib (dll) |
285 |
# bmake clean - clean all temp files |
|
286 |
# bmake clobber - clean all |
|
287 |
# |
|
13729 | 288 |
# Historic Note: |
14433 | 289 |
# this used to contain only rules to make with borland |
13729 | 290 |
# (called via bmake, by "make.exe -f bc.mak") |
13784 | 291 |
# this has changed; it is now also possible to build using microsoft visual c |
13729 | 292 |
# (called via vcmake, by "make.exe -f bc.mak -DUSEVC") |
10305 | 293 |
# |
294 |
TOP=%(TOP) |
|
295 |
INCLUDE_TOP=$(TOP)\.. |
|
296 |
||
11941
56b21fa6c358
base address definition moved into a separate spec
Claus Gittinger <cg@exept.de>
parents:
11687
diff
changeset
|
297 |
%(ADDITIONAL_BASE_ADDRESS_DEFINITION) |
56b21fa6c358
base address definition moved into a separate spec
Claus Gittinger <cg@exept.de>
parents:
11687
diff
changeset
|
298 |
|
10305 | 299 |
!!INCLUDE $(TOP)\rules\stdHeader_bc |
300 |
||
301 |
!!INCLUDE Make.spec |
|
302 |
||
303 |
LIBNAME=%(LIBRARY_NAME) |
|
304 |
RESFILES=%(RESFILENAME) |
|
10536
d1da7d71bcf5
Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents:
10417
diff
changeset
|
305 |
|
d1da7d71bcf5
Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents:
10417
diff
changeset
|
306 |
%(ADDITIONAL_DEFINITIONS) |
d1da7d71bcf5
Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents:
10417
diff
changeset
|
307 |
|
10305 | 308 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
10980 | 309 |
LOCALDEFINES=%(LOCAL_DEFINES) |
10305 | 310 |
|
311 |
STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
|
312 |
LOCALLIBS=%(ADDITIONAL_LINK_LIBRARIES) |
|
313 |
||
314 |
OBJS= $(COMMON_OBJS) $(WIN32_OBJS) |
|
315 |
||
11577
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
316 |
ALL:: %(ADDITIONAL_TARGETS) %(PRIMARY_TARGET) |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
317 |
|
12152
9d03dd3552a0
changed: classLibRule to include OUTDIR.
Claus Gittinger <cg@exept.de>
parents:
12095
diff
changeset
|
318 |
classLibRule: $(OUTDIR) $(OUTDIR)$(LIBNAME).dll |
10305 | 319 |
|
320 |
!!INCLUDE $(TOP)\rules\stdRules_bc |
|
321 |
||
14879 | 322 |
# build all mandatory prerequisite packages (containing superclasses) for this package |
11155
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
323 |
prereq: |
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
324 |
%(MAKE_PREREQUISITES) |
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
325 |
|
14879 | 326 |
# build all packages containing referenced classes for this package |
327 |
# they are nor needed to compile the package |
|
328 |
references: |
|
329 |
%(MAKE_REFERENCES) |
|
330 |
||
10305 | 331 |
%(ADDITIONAL_RULES) |
17992
797f12be31a0
Added makefile rules for Mercurial
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17988
diff
changeset
|
332 |
|
13685
069f722252d9
generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents:
13287
diff
changeset
|
333 |
%(ADDITIONAL_HEADERRULES) |
10305 | 334 |
|
17988 | 335 |
test: $(TOP)\goodies\builder\reports\NUL |
336 |
pushd $(TOP)\goodies\builder\reports & $(MAKE_BAT) |
|
17999
d4d35e074406
Added Mercurial support to Windows build files
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17992
diff
changeset
|
337 |
$(TOP)\goodies\builder\reports\report-runner.bat -D . -r Builder::TestReport -p $(PACKAGE) |
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
338 |
|
14807 | 339 |
clean:: |
340 |
del *.$(CSUFFIX) |
|
341 |
||
17988 | 342 |
|
10305 | 343 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
344 |
%(DEPENDENCIES) |
|
345 |
# ENDMAKEDEPEND --- do not remove this line |
|
17999
d4d35e074406
Added Mercurial support to Windows build files
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17992
diff
changeset
|
346 |
%(ADDITIONAL_RULES_HG)' |
10305 | 347 |
|
348 |
"Created: / 09-08-2006 / 11:44:20 / fm" |
|
349 |
"Modified: / 09-08-2006 / 19:59:32 / fm" |
|
14246 | 350 |
"Modified: / 26-07-2012 / 00:57:20 / cg" |
17992
797f12be31a0
Added makefile rules for Mercurial
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17988
diff
changeset
|
351 |
"Modified: / 28-11-2012 / 10:18:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10305 | 352 |
! |
353 |
||
9493 | 354 |
extensionLine_libInit_dot_cc |
355 |
||
356 |
^'_%(LIBRARY_NAME)_extensions_Init(pass,__pRT__,snd);' |
|
357 |
||
358 |
"Created: / 08-08-2006 / 15:48:56 / fm" |
|
359 |
"Modified: / 08-08-2006 / 19:32:33 / fm" |
|
360 |
! |
|
361 |
||
362 |
libInit_dot_cc |
|
9576 | 363 |
"the template code for the libInit.cc file" |
9493 | 364 |
|
12095 | 365 |
^ |
9493 | 366 |
'/* |
9576 | 367 |
* $','Header','$ |
368 |
* |
|
12095 | 369 |
* DO NOT EDIT |
9576 | 370 |
* automagically generated from the projectDefinition: ',self name,'. |
9493 | 371 |
*/ |
372 |
#define __INDIRECTVMINITCALLS__ |
|
10377 | 373 |
#include <stc.h> |
10332
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
374 |
|
9493 | 375 |
#ifdef WIN32 |
376 |
# pragma codeseg INITCODE "INITCODE" |
|
12095 | 377 |
#endif |
10332
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
378 |
|
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
379 |
#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT) |
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
380 |
DLL_EXPORT void _%(LIBRARY_NAME)_Init() INIT_TEXT_SECTION; |
14785 | 381 |
DLL_EXPORT void _%(LIBRARY_NAME)_InitDefinition() INIT_TEXT_SECTION; |
9493 | 382 |
#endif |
10332
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
383 |
|
14785 | 384 |
void _%(LIBRARY_NAME)_InitDefinition(pass, __pRT__, snd) |
385 |
OBJ snd; struct __vmData__ *__pRT__; { |
|
386 |
__BEGIN_PACKAGE2__("%(LIBRARY_NAME)__DFN", _%(LIBRARY_NAME)_InitDefinition, "%(PACKAGE)"); |
|
387 |
%(DEFINITION_CLASSES) |
|
388 |
__END_PACKAGE__(); |
|
389 |
} |
|
12770
520a17d353eb
add an extra entry to the libInit.cc code:
Claus Gittinger <cg@exept.de>
parents:
12365
diff
changeset
|
390 |
|
9493 | 391 |
void _%(LIBRARY_NAME)_Init(pass, __pRT__, snd) |
392 |
OBJ snd; struct __vmData__ *__pRT__; { |
|
393 |
__BEGIN_PACKAGE2__("%(LIBRARY_NAME)", _%(LIBRARY_NAME)_Init, "%(PACKAGE)"); |
|
394 |
%(CLASSES) |
|
395 |
%(EXTENSION) |
|
396 |
__END_PACKAGE__(); |
|
9902
74fab44fab6e
Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents:
9899
diff
changeset
|
397 |
} |
74fab44fab6e
Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents:
9899
diff
changeset
|
398 |
' |
9493 | 399 |
|
400 |
"Created: / 08-08-2006 / 12:40:45 / fm" |
|
401 |
"Modified: / 08-08-2006 / 19:33:01 / fm" |
|
9576 | 402 |
"Modified: / 18-08-2006 / 12:57:02 / cg" |
403 |
! |
|
404 |
||
9493 | 405 |
make_dot_proto |
406 |
||
12024 | 407 |
^ |
9576 | 408 |
'# $','Header','$ |
409 |
# |
|
12024 | 410 |
# DO NOT EDIT |
14246 | 411 |
# automagically generated from the projectDefinition: ',self name",' at ',Timestamp now printString",'. |
9576 | 412 |
# |
9493 | 413 |
# Warning: once you modify this file, do not rerun |
9576 | 414 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
9493 | 415 |
# |
416 |
# The Makefile as generated by this Make.proto supports the following targets: |
|
417 |
# make - compile all st-files to a classLib |
|
418 |
# make clean - clean all temp files |
|
419 |
# make clobber - clean all |
|
9576 | 420 |
# |
421 |
# This file contains definitions for Unix based platforms. |
|
9851 | 422 |
# It shares common definitions with the win32-make in Make.spec. |
9493 | 423 |
|
424 |
# |
|
425 |
# position (of this package) in directory hierarchy: |
|
426 |
# (must point to ST/X top directory, for tools and includes) |
|
427 |
TOP=%(TOP) |
|
9879 | 428 |
INCLUDE_TOP=$(TOP)/.. |
9493 | 429 |
|
430 |
# subdirectories where targets are to be made: |
|
431 |
SUBDIRS=%(SUBDIRECTORIES) |
|
432 |
||
433 |
||
434 |
# subdirectories where Makefiles are to be made: |
|
435 |
# (only define if different from SUBDIRS) |
|
436 |
# ALLSUBDIRS= |
|
437 |
||
11155
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
438 |
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS) |
9493 | 439 |
|
12024 | 440 |
# if your embedded C code requires any system includes, |
441 |
# add the path(es) here:, |
|
9493 | 442 |
# ********** OPTIONAL: MODIFY the next lines *** |
443 |
# LOCALINCLUDES=-Ifoo -Ibar |
|
444 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
445 |
||
446 |
||
12024 | 447 |
# if you need any additional defines for embedded C code, |
448 |
# add them here:, |
|
9493 | 449 |
# ********** OPTIONAL: MODIFY the next lines *** |
450 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
451 |
LOCALDEFINES=%(LOCAL_DEFINES) |
|
452 |
||
9818 | 453 |
LIBNAME=%(LIBRARY_NAME) |
9613 | 454 |
STCLOCALOPT=''-package=$(PACKAGE)'' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
9493 | 455 |
|
456 |
||
457 |
# ********** OPTIONAL: MODIFY the next line *** |
|
458 |
# additional C-libraries that should be pre-linked with the class-objects |
|
9734 | 459 |
LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES) |
9971
57890631d67a
Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents:
9960
diff
changeset
|
460 |
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES) |
9493 | 461 |
|
462 |
||
463 |
# ********** OPTIONAL: MODIFY the next line *** |
|
464 |
# additional C targets or libraries should be added below |
|
465 |
LOCAL_EXTRA_TARGETS= |
|
466 |
||
9606 | 467 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
468 |
||
9626 | 469 |
%(ADDITIONAL_DEFINITIONS) |
470 |
||
11577
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
471 |
all:: preMake %(PRIMARY_TARGET) postMake |
9493 | 472 |
|
12024 | 473 |
pre_objs:: %(ADDITIONAL_TARGETS) %(ADDITIONAL_TARGETS_SVN) |
9626 | 474 |
|
475 |
%(ADDITIONAL_RULES) |
|
9493 | 476 |
|
12024 | 477 |
%(ADDITIONAL_RULES_SVN) |
478 |
||
17992
797f12be31a0
Added makefile rules for Mercurial
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17988
diff
changeset
|
479 |
%(ADDITIONAL_RULES_HG) |
797f12be31a0
Added makefile rules for Mercurial
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17988
diff
changeset
|
480 |
|
13685
069f722252d9
generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents:
13287
diff
changeset
|
481 |
%(ADDITIONAL_HEADERRULES) |
069f722252d9
generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents:
13287
diff
changeset
|
482 |
|
17988 | 483 |
# run default testsuite for this package |
484 |
test: $(TOP)/goodies/builder/reports |
|
485 |
$(MAKE) -C $(TOP)/goodies/builder/reports |
|
486 |
$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE) |
|
487 |
||
488 |
||
489 |
||
9493 | 490 |
# add more install actions here |
491 |
install:: |
|
492 |
||
493 |
# add more install actions for aux-files (resources) here |
|
494 |
installAux:: |
|
495 |
||
496 |
# add more preMake actions here |
|
497 |
preMake:: |
|
498 |
||
499 |
# add more postMake actions here |
|
500 |
postMake:: cleanjunk |
|
501 |
||
14879 | 502 |
# build all mandatory prerequisite packages (containing superclasses) for this package |
503 |
prereq: |
|
11155
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
504 |
%(MAKE_PREREQUISITES) |
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
505 |
|
14879 | 506 |
# build all packages containing referenced classes for this package |
507 |
# they are nor needed to compile the package |
|
508 |
references: |
|
509 |
%(MAKE_REFERENCES) |
|
510 |
||
9493 | 511 |
cleanjunk:: |
13788 | 512 |
%(TAB)-rm -f *.s *.s2 |
9493 | 513 |
|
514 |
clean:: |
|
9576 | 515 |
%(TAB)-rm -f *.o *.H |
9493 | 516 |
|
10805
92df6c9281f9
Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents:
10536
diff
changeset
|
517 |
clobber:: clean |
9576 | 518 |
%(TAB)-rm -f *.so *.dll |
9493 | 519 |
|
520 |
', |
|
521 |
" |
|
522 |
$(INSTALLBASE):: |
|
9576 | 523 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 524 |
|
525 |
$(INSTALLBASE)/packages:: $(INSTALLBASE) |
|
9576 | 526 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 527 |
|
528 |
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages |
|
9576 | 529 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 530 |
|
531 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx:: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 532 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 533 |
|
534 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx/interactiver_editor:: $(INSTALLBASE)/packages/$(MODULE)/dapasx |
|
9576 | 535 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 536 |
|
537 |
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 538 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 539 |
" |
540 |
' |
|
541 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
9851 | 542 |
%(DEPENDENCIES) |
9493 | 543 |
# ENDMAKEDEPEND --- do not remove this line |
544 |
||
545 |
' |
|
546 |
||
547 |
"Created: / 08-08-2006 / 20:45:36 / fm" |
|
548 |
"Modified: / 09-08-2006 / 16:50:23 / fm" |
|
12024 | 549 |
"Modified: / 24-06-2009 / 21:39:29 / Jan Vrany <vranyj1@fel.cvut.cz>" |
14246 | 550 |
"Modified: / 26-07-2012 / 00:57:29 / cg" |
17992
797f12be31a0
Added makefile rules for Mercurial
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17988
diff
changeset
|
551 |
"Modified: / 28-11-2012 / 10:19:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9493 | 552 |
! |
553 |
||
10305 | 554 |
vc_dot_def |
9493 | 555 |
|
12772 | 556 |
"/^ |
557 |
"/'LIBRARY %(LIBRARY_NAME) |
|
558 |
"/DESCRIPTION %(DESCRIPTION) |
|
559 |
"/VERSION %(VERSION_NUMBER) |
|
560 |
"/CODE EXECUTE READ |
|
561 |
"/DATA READ WRITE |
|
562 |
"/SECTIONS |
|
563 |
"/ INITCODE READ EXECUTE |
|
564 |
"/ INITDATA READ WRITE |
|
565 |
"/EXPORTS |
|
566 |
"/ _%(LIBRARY_NAME)_Init @1 |
|
567 |
"/ _%(LIBRARY_NAME)_InitDefinition @2 |
|
568 |
"/IMPORTS' |
|
569 |
||
9493 | 570 |
^ |
571 |
'LIBRARY %(LIBRARY_NAME) |
|
572 |
DESCRIPTION %(DESCRIPTION) |
|
573 |
VERSION %(VERSION_NUMBER) |
|
12095 | 574 |
CODE EXECUTE READ |
9493 | 575 |
DATA READ WRITE |
576 |
SECTIONS |
|
12095 | 577 |
INITCODE READ EXECUTE |
9493 | 578 |
INITDATA READ WRITE |
12095 | 579 |
EXPORTS |
12770
520a17d353eb
add an extra entry to the libInit.cc code:
Claus Gittinger <cg@exept.de>
parents:
12365
diff
changeset
|
580 |
_%(LIBRARY_NAME)_Init @1 |
9493 | 581 |
IMPORTS' |
582 |
||
583 |
"Modified: / 08-08-2006 / 19:33:14 / fm" |
|
584 |
! ! |
|
585 |
||
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
586 |
|
12087 | 587 |
!LibraryDefinition class methodsFor:'misc ui support'! |
588 |
||
589 |
iconInBrowserSymbol |
|
590 |
<resource: #programImage> |
|
591 |
||
592 |
self theNonMetaclass isLibraryDefinition ifTrue:[^ #libraryDefinitionClassIcon ]. |
|
593 |
^ super iconInBrowserSymbol |
|
594 |
||
595 |
"/ (c == LibraryDefinition) ifTrue:[ |
|
596 |
"/ aClass ~~ LibraryDefinition ifTrue:[ |
|
597 |
"/ ^ self packageIconSmall |
|
598 |
"/ ]. |
|
599 |
"/ ]. |
|
600 |
! ! |
|
601 |
||
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
602 |
|
11550 | 603 |
!LibraryDefinition class methodsFor:'obsolete'! |
604 |
||
605 |
lib_dot_rc |
|
606 |
<resource: #obsolete> |
|
607 |
||
12095 | 608 |
^ |
11550 | 609 |
'/*------------------------------------------------------------------------ |
12095 | 610 |
* $','Header','$ |
11550 | 611 |
* |
12095 | 612 |
* DO NOT EDIT |
11550 | 613 |
* automagically generated from the projectDefinition: ',self name,'. |
614 |
*------------------------------------------------------------------------*/ |
|
615 |
||
616 |
// #if (__BORLANDC__ < 0x0550) |
|
617 |
// #include <ver.h> |
|
618 |
// #endif |
|
619 |
||
620 |
VS_VERSION_INFO VERSIONINFO |
|
621 |
FILEVERSION %(FILEVERSION) |
|
622 |
PRODUCTVERSION %(PRODUCTVERSION) |
|
13984 | 623 |
#if (__BORLANDC__) |
11550 | 624 |
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE |
625 |
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD |
|
626 |
FILEOS VOS_NT_WINDOWS32 |
|
627 |
FILETYPE %(FILETYPE) |
|
628 |
FILESUBTYPE VS_USER_DEFINED |
|
13984 | 629 |
#endif |
11550 | 630 |
|
631 |
BEGIN |
|
632 |
BLOCK "StringFileInfo" |
|
633 |
BEGIN |
|
634 |
BLOCK "040904E4" |
|
635 |
BEGIN |
|
636 |
VALUE "CompanyName", %(COMPANYNAME) |
|
637 |
VALUE "FileDescription", "Smalltalk/X Additional Developer Basic Classes Library\0" |
|
638 |
VALUE "FileVersion", "5.2.8.1\0" |
|
639 |
VALUE "InternalName", "libbasic3\0" |
|
640 |
VALUE "LegalCopyright", "Copyright eXept Software AG 1998-2006\0" |
|
641 |
VALUE "ProductName", "Smalltalk/X\0" |
|
642 |
VALUE "ProductVersion", "5.2.8.1\0" |
|
643 |
END |
|
644 |
||
645 |
END |
|
646 |
||
647 |
BLOCK "VarFileInfo" |
|
648 |
BEGIN // Language | Translation |
|
649 |
VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual |
|
650 |
END |
|
651 |
END |
|
652 |
' |
|
653 |
||
654 |
"Created: / 17-08-2006 / 19:37:50 / cg" |
|
13984 | 655 |
"Modified: / 24-01-2012 / 18:35:45 / cg" |
11550 | 656 |
! ! |
657 |
||
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
658 |
|
9812 | 659 |
!LibraryDefinition class methodsFor:'queries'! |
660 |
||
661 |
canHaveExtensions |
|
662 |
"return true, if this class allows extensions from other packages. |
|
12333 | 663 |
Private classes, namespaces and projectDefinitions don't allow this" |
9812 | 664 |
|
12333 | 665 |
^ self == LibraryDefinition |
9812 | 666 |
|
667 |
" |
|
668 |
Smalltalk allClasses select:[:each | each canHaveExtensions not] |
|
669 |
" |
|
670 |
||
671 |
"Created: / 30-08-2006 / 15:29:53 / cg" |
|
12333 | 672 |
! |
673 |
||
674 |
projectType |
|
675 |
^ LibraryType |
|
9812 | 676 |
! ! |
677 |
||
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
678 |
|
9568 | 679 |
!LibraryDefinition class methodsFor:'sanity checks'! |
9493 | 680 |
|
681 |
searchForInconsistencies |
|
682 |
self searchForNeverCompiledSuperclasses. |
|
683 |
||
684 |
" |
|
685 |
self searchForInconsistencies |
|
12095 | 686 |
DapasX_Datenbasis searchForInconsistencies |
9493 | 687 |
" |
688 |
||
689 |
"Created: / 09-08-2006 / 16:30:46 / fm" |
|
690 |
! |
|
691 |
||
692 |
searchForNeverCompiledSuperclasses |
|
12095 | 693 |
self compiled_classesDo:[:includedClass | |
12214
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
694 |
includedClass allSuperclassesDo:[:eachSuperClass | |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
695 |
eachSuperClass package == PackageId noProjectID ifTrue:[ |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
696 |
self inconsistency:'uncompiled superclass: ' , eachSuperClass name |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
697 |
]. |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
698 |
] |
9493 | 699 |
]. |
700 |
||
701 |
" |
|
702 |
self searchForNeverCompiledSuperclasses |
|
12095 | 703 |
DapasX_Datenbasis searchForNeverCompiledSuperclasses |
9493 | 704 |
" |
705 |
||
706 |
"Created: / 09-08-2006 / 16:31:54 / fm" |
|
707 |
! ! |
|
708 |
||
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
709 |
|
9568 | 710 |
!LibraryDefinition class methodsFor:'testing'! |
9558 | 711 |
|
12310
3a8e985b4625
added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents:
12214
diff
changeset
|
712 |
isAbstract |
3a8e985b4625
added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents:
12214
diff
changeset
|
713 |
^ self == LibraryDefinition |
3a8e985b4625
added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents:
12214
diff
changeset
|
714 |
! |
3a8e985b4625
added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents:
12214
diff
changeset
|
715 |
|
9666 | 716 |
isLibraryDefinition |
717 |
^ self ~~ LibraryDefinition |
|
718 |
||
719 |
" |
|
720 |
stx_libboss isLibraryDefinition |
|
721 |
ProjectDefinition isLibraryDefinition |
|
722 |
LibraryDefinition isLibraryDefinition |
|
723 |
" |
|
724 |
||
725 |
"Created: / 23-08-2006 / 15:17:50 / cg" |
|
726 |
! |
|
727 |
||
9558 | 728 |
isProjectDefinition |
13287 | 729 |
^ self ~~ LibraryDefinition "/ skip myself - I am abstract |
9558 | 730 |
|
9612 | 731 |
" |
732 |
stx_libboss isProjectDefinition |
|
733 |
ProjectDefinition isProjectDefinition |
|
734 |
" |
|
735 |
||
9558 | 736 |
"Created: / 17-08-2006 / 14:11:46 / cg" |
13287 | 737 |
"Modified: / 08-02-2011 / 10:03:42 / cg" |
9558 | 738 |
! ! |
739 |
||
18027
3621469cc5e8
Merged fa8a879502cb and b010cb2aa396 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
740 |
|
9568 | 741 |
!LibraryDefinition class methodsFor:'documentation'! |
9493 | 742 |
|
743 |
version |
|
14883 | 744 |
^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.115 2013-03-15 13:40:33 stefan Exp $' |
12087 | 745 |
! |
746 |
||
747 |
version_CVS |
|
14883 | 748 |
^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.115 2013-03-15 13:40:33 stefan Exp $' |
9493 | 749 |
! ! |
14785 | 750 |