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