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