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