author | Claus Gittinger <cg@exept.de> |
Thu, 14 Sep 2006 17:06:50 +0200 | |
changeset 9884 | 3c4fe9230405 |
parent 9879 | 6ee07bb4f9e2 |
child 9885 | 2b52de27eef7 |
permissions | -rw-r--r-- |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
1 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
3 |
All Rights Reserved |
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 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
12 |
|
9671 | 13 |
"{ Package: 'stx:libbasic' }" |
9493 | 14 |
|
9568 | 15 |
ProjectDefinition subclass:#LibraryDefinition |
9616 | 16 |
instanceVariableNames:'' |
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'System-Support-Projects' |
|
9493 | 20 |
! |
21 |
||
9568 | 22 |
!LibraryDefinition class methodsFor:'documentation'! |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
23 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
24 |
copyright |
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 (c) 2006 by eXept Software AG |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
27 |
All Rights Reserved |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
28 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
29 |
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
|
30 |
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
|
31 |
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
|
32 |
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
|
33 |
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
|
34 |
hereby transferred. |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
35 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
36 |
! ! |
9493 | 37 |
|
9568 | 38 |
!LibraryDefinition class methodsFor:'defaults'! |
9533 | 39 |
|
9534 | 40 |
defaultDescription |
41 |
^ 'a classLibrary' |
|
9493 | 42 |
! ! |
43 |
||
9576 | 44 |
!LibraryDefinition class methodsFor:'description - project information'! |
45 |
||
46 |
description |
|
47 |
"Returns a description string which will appear in nt.def / bc.def" |
|
48 |
||
49 |
self module = 'stx' ifTrue:[ |
|
50 |
^ 'Smalltalk/X Class library' |
|
51 |
]. |
|
52 |
||
9586 | 53 |
^ 'Class Library' |
9576 | 54 |
|
55 |
"Created: / 17-08-2006 / 20:52:16 / cg" |
|
9586 | 56 |
"Modified: / 18-08-2006 / 16:15:53 / cg" |
9847 | 57 |
! |
58 |
||
59 |
fileDescription |
|
60 |
"Return a description string which will appear in nt.def / bc.def" |
|
61 |
||
62 |
^self description , ' ClassLibrary' |
|
63 |
||
64 |
"Created: / 14-09-2006 / 10:55:23 / cg" |
|
9576 | 65 |
! ! |
66 |
||
9568 | 67 |
!LibraryDefinition class methodsFor:'file generation'! |
9493 | 68 |
|
9853 | 69 |
basicFileNamesToGenerate |
9534 | 70 |
^ #( |
9604 | 71 |
#('Make.proto' #'generate_make_dot_proto') |
72 |
#('Make.spec' #'generate_make_dot_spec') |
|
73 |
#('libInit.cc' #'generate_libInit_dot_cc') |
|
74 |
#('bc.def' #'generate_bc_dot_def') |
|
75 |
#('nt.mak' #'generate_nt_dot_mak') |
|
9576 | 76 |
" |
9604 | 77 |
#('nt.def' #'generate_nt_dot_def') |
9576 | 78 |
" |
9604 | 79 |
#('abbrev.stc' #'generate_abbrev_dot_stc') |
80 |
#('bmake.bat' #'generate_bmake_dot_mak') |
|
9534 | 81 |
) |
9576 | 82 |
|
9853 | 83 |
"Created: / 14-09-2006 / 14:36:14 / cg" |
9582 | 84 |
! |
85 |
||
9622 | 86 |
generateFile:filename |
87 |
filename = 'libInit.cc' ifTrue:[ |
|
88 |
^ self generate_libInit_dot_cc |
|
89 |
]. |
|
9832 | 90 |
((filename = 'lib.rc') or:[filename = self rcFilename]) ifTrue:[ |
9622 | 91 |
^ self generate_packageName_dot_rc |
92 |
]. |
|
93 |
^ super generateFile:filename |
|
94 |
||
95 |
"Created: / 22-08-2006 / 18:36:24 / cg" |
|
9832 | 96 |
"Modified: / 07-09-2006 / 17:07:46 / cg" |
9622 | 97 |
! |
98 |
||
9582 | 99 |
generate_libInit_dot_cc |
100 |
||
101 |
^self replaceMappings: self libInit_dot_cc_mappings |
|
102 |
in: self libInit_dot_cc |
|
103 |
||
104 |
" |
|
105 |
DapasXProject generate_libInit_dot_cc |
|
106 |
DapasX_Datenbasis generate_libInit_dot_cc |
|
107 |
||
108 |
" |
|
109 |
||
110 |
"Created: / 08-08-2006 / 12:47:16 / fm" |
|
111 |
"Modified: / 09-08-2006 / 11:30:52 / fm" |
|
9493 | 112 |
! ! |
113 |
||
9568 | 114 |
!LibraryDefinition class methodsFor:'file templates'! |
9493 | 115 |
|
116 |
bc_dot_def |
|
9576 | 117 |
"the template code for the bc.def file" |
9493 | 118 |
|
119 |
^ |
|
9608 | 120 |
'LIBRARY %(LIBRARY_NAME) |
9493 | 121 |
DESCRIPTION %(DESCRIPTION) |
122 |
CODE PRELOAD MOVEABLE DISCARDABLE |
|
123 |
SEGMENTS |
|
124 |
INITCODE PRELOAD DISCARDABLE |
|
125 |
EXPORTS |
|
9590 | 126 |
__%(LIBRARY_NAME)_Init @1 |
9504 | 127 |
' |
9493 | 128 |
|
129 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
130 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9590 | 131 |
"Modified: / 18-08-2006 / 17:13:45 / cg" |
9493 | 132 |
! |
133 |
||
134 |
classLine_libInit_dot_cc |
|
135 |
||
136 |
^'_%(CLASS)_Init(pass,__pRT__,snd);' |
|
137 |
||
138 |
"Created: / 08-08-2006 / 12:51:44 / fm" |
|
139 |
"Modified: / 08-08-2006 / 15:46:05 / fm" |
|
140 |
! |
|
141 |
||
142 |
extensionLine_libInit_dot_cc |
|
143 |
||
144 |
^'_%(LIBRARY_NAME)_extensions_Init(pass,__pRT__,snd);' |
|
145 |
||
146 |
"Created: / 08-08-2006 / 15:48:56 / fm" |
|
147 |
"Modified: / 08-08-2006 / 19:32:33 / fm" |
|
148 |
! |
|
149 |
||
150 |
libInit_dot_cc |
|
9576 | 151 |
"the template code for the libInit.cc file" |
9493 | 152 |
|
153 |
^ |
|
154 |
'/* |
|
9576 | 155 |
* $','Header','$ |
156 |
* |
|
9493 | 157 |
* DO NOT EDIT |
9576 | 158 |
* automagically generated from the projectDefinition: ',self name,'. |
9493 | 159 |
*/ |
160 |
#define __INDIRECTVMINITCALLS__ |
|
161 |
#include <stc.h> |
|
162 |
#define INIT_TEXT_SECT /* as nothing */ |
|
163 |
#ifdef WIN32 |
|
164 |
# pragma codeseg INITCODE "INITCODE" |
|
165 |
#else /* not WIN32 */ |
|
166 |
# if defined(__GNUC__) && !!defined(NO_SECTION_ATTRIBUTES) |
|
167 |
# if (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2 |
|
168 |
# undef INIT_TEXT_SECT |
|
169 |
# define INIT_TEXT_SECT __attribute__((section(".stxitext"))) |
|
170 |
# endif |
|
171 |
# endif /* not GNUC */ |
|
172 |
#endif /* not WIN32 */ |
|
173 |
#ifdef INIT_TEXT_SECT |
|
174 |
extern void _%(LIBRARY_NAME)_Init() INIT_TEXT_SECT; |
|
175 |
#endif |
|
176 |
void _%(LIBRARY_NAME)_Init(pass, __pRT__, snd) |
|
177 |
OBJ snd; struct __vmData__ *__pRT__; { |
|
178 |
__BEGIN_PACKAGE2__("%(LIBRARY_NAME)", _%(LIBRARY_NAME)_Init, "%(PACKAGE)"); |
|
179 |
%(CLASSES) |
|
180 |
%(EXTENSION) |
|
181 |
__END_PACKAGE__(); |
|
182 |
}' |
|
183 |
||
184 |
"Created: / 08-08-2006 / 12:40:45 / fm" |
|
185 |
"Modified: / 08-08-2006 / 19:33:01 / fm" |
|
9576 | 186 |
"Modified: / 18-08-2006 / 12:57:02 / cg" |
187 |
! |
|
188 |
||
189 |
lib_dot_rc |
|
190 |
||
191 |
^ |
|
192 |
'/*------------------------------------------------------------------------ |
|
193 |
* $','Header','$ |
|
194 |
* |
|
195 |
* DO NOT EDIT |
|
196 |
* automagically generated from the projectDefinition: ',self name,'. |
|
197 |
*------------------------------------------------------------------------*/ |
|
198 |
||
199 |
// #if (__BORLANDC__ < 0x0550) |
|
200 |
// #include <ver.h> |
|
201 |
// #endif |
|
202 |
||
203 |
VS_VERSION_INFO VERSIONINFO |
|
204 |
FILEVERSION %(FILEVERSION) |
|
205 |
PRODUCTVERSION %(PRODUCTVERSION) |
|
206 |
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE |
|
207 |
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD |
|
208 |
FILEOS VOS_NT_WINDOWS32 |
|
209 |
FILETYPE %(FILETYPE) |
|
210 |
FILESUBTYPE VS_USER_DEFINED |
|
211 |
||
212 |
BEGIN |
|
213 |
BLOCK "StringFileInfo" |
|
214 |
BEGIN |
|
215 |
BLOCK "040904E4" |
|
216 |
BEGIN |
|
217 |
VALUE "CompanyName", %(COMPANYNAME) |
|
218 |
VALUE "FileDescription", "Smalltalk/X Additional Developer Basic Classes Library\0" |
|
219 |
VALUE "FileVersion", "5.2.8.1\0" |
|
220 |
VALUE "InternalName", "libbasic3\0" |
|
221 |
VALUE "LegalCopyright", "Copyright eXept Software AG 1998-2006\0" |
|
222 |
VALUE "ProductName", "Smalltalk/X\0" |
|
223 |
VALUE "ProductVersion", "5.2.8.1\0" |
|
224 |
END |
|
225 |
||
226 |
END |
|
227 |
||
228 |
BLOCK "VarFileInfo" |
|
229 |
BEGIN // Language | Translation |
|
230 |
VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual |
|
231 |
END |
|
232 |
END |
|
233 |
' |
|
234 |
||
235 |
"Created: / 17-08-2006 / 19:37:50 / cg" |
|
236 |
"Modified: / 18-08-2006 / 12:57:09 / cg" |
|
9493 | 237 |
! |
238 |
||
239 |
make_dot_proto |
|
240 |
||
241 |
^ |
|
9576 | 242 |
'# $','Header','$ |
243 |
# |
|
244 |
# DO NOT EDIT |
|
245 |
# automagically generated from the projectDefinition: ',self name,'. |
|
246 |
# |
|
9493 | 247 |
# Warning: once you modify this file, do not rerun |
9576 | 248 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
9493 | 249 |
# |
250 |
# The Makefile as generated by this Make.proto supports the following targets: |
|
251 |
# make - compile all st-files to a classLib |
|
252 |
# make clean - clean all temp files |
|
253 |
# make clobber - clean all |
|
9576 | 254 |
# |
255 |
# This file contains definitions for Unix based platforms. |
|
9851 | 256 |
# It shares common definitions with the win32-make in Make.spec. |
9493 | 257 |
|
258 |
# |
|
259 |
# position (of this package) in directory hierarchy: |
|
260 |
# (must point to ST/X top directory, for tools and includes) |
|
261 |
TOP=%(TOP) |
|
9879 | 262 |
INCLUDE_TOP=$(TOP)/.. |
9493 | 263 |
|
264 |
# subdirectories where targets are to be made: |
|
265 |
SUBDIRS=%(SUBDIRECTORIES) |
|
266 |
||
267 |
||
268 |
# subdirectories where Makefiles are to be made: |
|
269 |
# (only define if different from SUBDIRS) |
|
270 |
# ALLSUBDIRS= |
|
271 |
||
272 |
||
273 |
# if your embedded C code requires any system includes, |
|
274 |
# add the path(es) here:, |
|
275 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
276 |
# LOCALINCLUDES=-Ifoo -Ibar |
|
277 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
278 |
||
279 |
||
280 |
# if you need any additional defines for embedded C code, |
|
281 |
# add them here:, |
|
282 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
283 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
284 |
LOCALDEFINES=%(LOCAL_DEFINES) |
|
285 |
||
9818 | 286 |
LIBNAME=%(LIBRARY_NAME) |
9613 | 287 |
STCLOCALOPT=''-package=$(PACKAGE)'' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
9493 | 288 |
|
289 |
||
290 |
# ********** OPTIONAL: MODIFY the next line *** |
|
291 |
# additional C-libraries that should be pre-linked with the class-objects |
|
9734 | 292 |
LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES) |
9493 | 293 |
|
294 |
||
295 |
# ********** OPTIONAL: MODIFY the next line *** |
|
296 |
# additional C targets or libraries should be added below |
|
297 |
LOCAL_EXTRA_TARGETS= |
|
298 |
||
9606 | 299 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
300 |
||
9626 | 301 |
%(ADDITIONAL_DEFINITIONS) |
302 |
||
9493 | 303 |
all:: preMake classLibRule postMake |
304 |
||
9626 | 305 |
pre_objs:: %(ADDITIONAL_TARGETS) |
306 |
||
307 |
%(ADDITIONAL_RULES) |
|
9493 | 308 |
|
309 |
# add more install actions here |
|
310 |
install:: |
|
311 |
||
312 |
# add more install actions for aux-files (resources) here |
|
313 |
installAux:: |
|
314 |
||
315 |
# add more preMake actions here |
|
316 |
preMake:: |
|
317 |
||
318 |
# add more postMake actions here |
|
319 |
postMake:: cleanjunk |
|
320 |
||
321 |
cleanjunk:: |
|
322 |
||
323 |
clean:: |
|
9576 | 324 |
%(TAB)-rm -f *.o *.H |
9493 | 325 |
|
326 |
clobber:: |
|
9576 | 327 |
%(TAB)-rm -f *.so *.dll |
9493 | 328 |
|
329 |
', |
|
330 |
" |
|
331 |
$(INSTALLBASE):: |
|
9576 | 332 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 333 |
|
334 |
$(INSTALLBASE)/packages:: $(INSTALLBASE) |
|
9576 | 335 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 336 |
|
337 |
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages |
|
9576 | 338 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 339 |
|
340 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx:: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 341 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 342 |
|
343 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx/interactiver_editor:: $(INSTALLBASE)/packages/$(MODULE)/dapasx |
|
9576 | 344 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 345 |
|
346 |
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 347 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 348 |
" |
349 |
' |
|
350 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
9851 | 351 |
%(DEPENDENCIES) |
9493 | 352 |
# ENDMAKEDEPEND --- do not remove this line |
353 |
||
354 |
' |
|
355 |
||
356 |
"Created: / 08-08-2006 / 20:45:36 / fm" |
|
357 |
"Modified: / 09-08-2006 / 16:50:23 / fm" |
|
9879 | 358 |
"Modified: / 14-09-2006 / 15:48:02 / cg" |
9493 | 359 |
! |
360 |
||
361 |
nt_dot_def |
|
362 |
||
363 |
^ |
|
364 |
'LIBRARY %(LIBRARY_NAME) |
|
365 |
DESCRIPTION %(DESCRIPTION) |
|
366 |
VERSION %(VERSION_NUMBER) |
|
367 |
CODE EXECUTE READ |
|
368 |
DATA READ WRITE |
|
369 |
SECTIONS |
|
370 |
INITCODE READ EXECUTE |
|
371 |
INITDATA READ WRITE |
|
372 |
EXPORTS |
|
373 |
_%(LIBRARY_NAME)_Init @1 |
|
374 |
IMPORTS' |
|
375 |
||
376 |
"Modified: / 08-08-2006 / 19:33:14 / fm" |
|
377 |
! |
|
378 |
||
379 |
nt_dot_mak |
|
380 |
||
381 |
^ |
|
9576 | 382 |
'# $','Header','$ |
383 |
# |
|
384 |
# DO NOT EDIT |
|
385 |
# automagically generated from the projectDefinition: ',self name,'. |
|
9493 | 386 |
# |
387 |
# Warning: once you modify this file, do not rerun |
|
9576 | 388 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
389 |
# |
|
390 |
# This file contains make rules for the win32 platform (using borland-bcc). |
|
9851 | 391 |
# It shares common definitions with the unix-make in Make.spec. |
392 |
# The nt.mak supports the following targets: |
|
393 |
# bmake - compile all st-files to a classLib (dll) |
|
394 |
# bmake clean - clean all temp files |
|
395 |
# bmake clobber - clean all |
|
396 |
# |
|
9493 | 397 |
# |
398 |
TOP=%(TOP) |
|
9879 | 399 |
INCLUDE_TOP=$(TOP)\.. |
9493 | 400 |
|
401 |
!!INCLUDE $(TOP)\rules\stdHeader_nt |
|
402 |
||
403 |
!!INCLUDE Make.spec |
|
404 |
||
9818 | 405 |
LIBNAME=%(LIBRARY_NAME) |
406 |
RESFILES=%(RESFILENAME) |
|
9493 | 407 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
408 |
||
9631 | 409 |
STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
9493 | 410 |
|
9626 | 411 |
%(ADDITIONAL_DEFINITIONS) |
412 |
||
9606 | 413 |
OBJS= $(COMMON_OBJS) $(WIN32_OBJS) |
414 |
||
9626 | 415 |
ALL:: %(ADDITIONAL_TARGETS) $(LIBDIR)\$(LIBNAME).lib $(BINDIR)\$(LIBNAME).dll |
9493 | 416 |
|
417 |
!!INCLUDE $(TOP)\rules\stdRules_nt |
|
418 |
||
9626 | 419 |
%(ADDITIONAL_RULES) |
420 |
||
9493 | 421 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
9851 | 422 |
%(DEPENDENCIES) |
9493 | 423 |
# ENDMAKEDEPEND --- do not remove this line |
424 |
' |
|
425 |
||
426 |
"Created: / 09-08-2006 / 11:44:20 / fm" |
|
427 |
"Modified: / 09-08-2006 / 19:59:32 / fm" |
|
9879 | 428 |
"Modified: / 14-09-2006 / 15:48:18 / cg" |
9493 | 429 |
! ! |
430 |
||
9568 | 431 |
!LibraryDefinition class methodsFor:'mappings'! |
9493 | 432 |
|
433 |
bc_dot_def_mappings |
|
9534 | 434 |
^ (super bc_dot_def_mappings) |
9504 | 435 |
at:#'LIBRARY_NAME' put:[ self libraryName ]; |
436 |
yourself |
|
9493 | 437 |
|
438 |
"Created: / 09-08-2006 / 11:17:59 / fm" |
|
9543 | 439 |
"Modified: / 16-08-2006 / 18:19:25 / User" |
9590 | 440 |
"Modified: / 18-08-2006 / 17:14:00 / cg" |
9493 | 441 |
! |
442 |
||
443 |
classLine_libInit_dot_cc_mappings: aClassName |
|
444 |
||
445 |
^Dictionary new |
|
9530 | 446 |
at: #'CLASS' put: [self st2c:aClassName]; |
9493 | 447 |
yourself |
448 |
||
449 |
"Created: / 08-08-2006 / 14:04:00 / fm" |
|
450 |
"Modified: / 09-08-2006 / 18:27:07 / fm" |
|
451 |
! |
|
452 |
||
453 |
extensionLine_libInit_dot_cc_mappings |
|
454 |
||
455 |
^Dictionary new |
|
9629 | 456 |
at: #'LIBRARY_NAME' put: [self st2c:(self package copy asString replaceAny:':/' with:$_)]; |
9493 | 457 |
yourself |
458 |
||
459 |
"Created: / 09-08-2006 / 11:19:59 / fm" |
|
9629 | 460 |
"Modified: / 23-08-2006 / 01:23:40 / cg" |
9493 | 461 |
! |
462 |
||
463 |
libInit_dot_cc_mappings |
|
464 |
||
465 |
^Dictionary new |
|
9543 | 466 |
at: #'LIBRARY_NAME' put: [self libraryName]; |
9493 | 467 |
at: #'PACKAGE' put: [self package]; |
468 |
at: #'CLASSES' put: [self generateClassLines_libInit_dot_cc]; |
|
469 |
at: #'EXTENSION' put: [self generateExtensionLine_libInit_dot_cc]; |
|
470 |
||
471 |
yourself |
|
472 |
||
473 |
"Created: / 09-08-2006 / 11:20:24 / fm" |
|
9543 | 474 |
"Modified: / 16-08-2006 / 18:19:03 / User" |
9493 | 475 |
! |
476 |
||
9576 | 477 |
lib_dot_rc_mappings |
9493 | 478 |
|
479 |
^Dictionary new |
|
9576 | 480 |
at: #'FILEVERSION' put: ['5,2,8,1']; |
481 |
at: #'PRODUCTVERSION' put: ['5,2,8,1']; |
|
482 |
at: #'FILETYPE' put: 'VFT_DLL'; |
|
9493 | 483 |
yourself |
484 |
||
9576 | 485 |
"Created: / 17-08-2006 / 19:35:05 / cg" |
486 |
! |
|
487 |
||
488 |
make_dot_proto_mappings |
|
489 |
^ Dictionary new |
|
490 |
at: #'TAB' put: ( Character tab asString ); |
|
9723 | 491 |
at: #'TOP' put: ( self pathToTop_unix ); |
9818 | 492 |
at: #'LIBRARY_NAME' put: ( self libraryName ); |
9851 | 493 |
at: #'SUBDIRECTORIES' put: (self generateSubDirectories); |
494 |
at: #'LOCAL_INCLUDES' put: (self generateLocalIncludes_unix); |
|
9576 | 495 |
at: #'LOCAL_DEFINES' put: ''; |
496 |
at: #'COMMONSYMFLAG' put: (self commonSymbolsFlag); |
|
9594 | 497 |
at: #'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
9626 | 498 |
at: #'ADDITIONAL_DEFINITIONS' put: (self additionalDefinitions_make_dot_proto); |
499 |
at: #'ADDITIONAL_RULES' put: (self additionalRules_make_dot_proto); |
|
500 |
at: #'ADDITIONAL_TARGETS' put: (self additionalTargets_make_dot_proto); |
|
9734 | 501 |
at: #'ADDITIONAL_LINK_LIBRARIES' put: (self additionalLinkLibraries_make_dot_proto); |
9851 | 502 |
at: #'DEPENDENCIES' put: (self generateDependencies_unix); |
9576 | 503 |
yourself |
504 |
||
9493 | 505 |
"Created: / 09-08-2006 / 11:20:45 / fm" |
506 |
"Modified: / 09-08-2006 / 16:44:48 / fm" |
|
9851 | 507 |
"Modified: / 14-09-2006 / 12:33:08 / cg" |
9493 | 508 |
! |
509 |
||
510 |
nt_dot_def_mappings |
|
511 |
||
512 |
^Dictionary new |
|
513 |
at: #'LIBRARY_NAME' put: [self libraryName]; |
|
9679 | 514 |
at: #'DESCRIPTION' put: [self description asString storeString]; |
9493 | 515 |
at: #'VERSION_NUMBER' put: [self versionNumber]; |
516 |
yourself |
|
517 |
||
518 |
"Created: / 09-08-2006 / 11:21:21 / fm" |
|
519 |
! |
|
520 |
||
521 |
nt_dot_mak_mappings |
|
9590 | 522 |
|d resFileName| |
523 |
||
524 |
resFileName := (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.res'. |
|
9493 | 525 |
|
9576 | 526 |
d := super nt_dot_mak_mappings. |
527 |
d |
|
9818 | 528 |
at: #'LIBRARY_NAME' put: ( self libraryName ); |
9851 | 529 |
at: #'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32); |
9576 | 530 |
at: #'COMMONSYMFLAG' put: (self commonSymbolsFlag); |
9594 | 531 |
at: #'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
532 |
at: #'RESFILENAME' put: resFileName; |
|
9626 | 533 |
at: #'ADDITIONAL_DEFINITIONS' put: (self additionalDefinitions_nt_dot_mak); |
534 |
at: #'ADDITIONAL_RULES' put: (self additionalRules_nt_dot_mak); |
|
535 |
at: #'ADDITIONAL_TARGETS' put: (self additionalTargets_nt_dot_mak); |
|
9851 | 536 |
at: #'DEPENDENCIES' put: (self generateDependencies_win32); |
9594 | 537 |
yourself. |
9576 | 538 |
^ d. |
9493 | 539 |
|
540 |
"Created: / 09-08-2006 / 11:44:36 / fm" |
|
541 |
"Modified: / 09-08-2006 / 20:00:01 / fm" |
|
9851 | 542 |
"Modified: / 14-09-2006 / 12:32:45 / cg" |
9493 | 543 |
! |
544 |
||
9530 | 545 |
st2c:aString |
546 |
^ (aString asString |
|
547 |
copyReplaceString:'_' withString:('_',($_ codePoint printStringRadix:8))) |
|
548 |
replaceAny:':' with:$_ |
|
9493 | 549 |
! ! |
550 |
||
9568 | 551 |
!LibraryDefinition class methodsFor:'mappings support'! |
9493 | 552 |
|
9576 | 553 |
commonSymbolsFlag |
554 |
"some libraries are compiled with COMMONSYMBOLS - |
|
555 |
This saves a lot of space in the generated dll/so files; |
|
556 |
However, it also requires the librun to be rebuilt, whenever one of |
|
557 |
the commonSymbols-libs changes. |
|
558 |
Therefore, NEVER do this for end-user or application libraries; |
|
9632 | 559 |
ONLY do it for a subset of the predefined, eXept-provided standard stx libraries" |
9493 | 560 |
|
9576 | 561 |
( |
562 |
#( |
|
563 |
'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
564 |
'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
565 |
'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
566 |
'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
9596 | 567 |
'stx:libboss' 'stx:libdb' |
9576 | 568 |
) |
569 |
includes:self package) ifTrue:[ |
|
570 |
^ '$(COMMONSYMBOLS)' |
|
571 |
]. |
|
572 |
^ '' |
|
9547 | 573 |
|
9576 | 574 |
"Created: / 18-08-2006 / 13:01:52 / cg" |
9632 | 575 |
"Modified: / 23-08-2006 / 09:48:11 / cg" |
9576 | 576 |
! |
577 |
||
578 |
generateClassLines_libInit_dot_cc |
|
579 |
^ String streamContents:[:s | |
|
9851 | 580 |
|classNames classesLoaded classNamesUnloaded classNamesSorted putLineForClassName| |
9582 | 581 |
|
582 |
putLineForClassName := [:className | |
|
583 |
|newClassLine mappings| |
|
9576 | 584 |
|
9582 | 585 |
mappings := self classLine_libInit_dot_cc_mappings: className. |
586 |
newClassLine := self replaceMappings:mappings in:self classLine_libInit_dot_cc. |
|
587 |
s nextPutLine: newClassLine |
|
588 |
]. |
|
589 |
||
9851 | 590 |
classNames := self common_compiled_classNames. |
591 |
classesLoaded := classNames |
|
592 |
collect:[:nm | |cls| cls := Smalltalk classNamed:nm] |
|
593 |
thenSelect:[:cls | cls notNil and:[cls isLoaded] ]. |
|
594 |
classNamesUnloaded := classNames |
|
595 |
select:[:nm | |cls| cls := Smalltalk classNamed:nm. cls isNil or:[cls isLoaded not]]. |
|
9616 | 596 |
|
9851 | 597 |
classNamesSorted := (Class classesSortedByLoadOrder:classesLoaded) collect:[:cls |cls name]. |
598 |
||
599 |
classNamesSorted do:putLineForClassName. |
|
600 |
classNamesUnloaded do:putLineForClassName. |
|
601 |
||
602 |
self namesAndAttributesIn:(self additionalClassNamesAndAttributes) do:[:nm :attr | |
|
9622 | 603 |
(attr isEmptyOrNil or:[(attr includes:#autoload) not]) ifTrue:[ |
604 |
putLineForClassName value:nm. |
|
605 |
]. |
|
606 |
]. |
|
607 |
||
9606 | 608 |
#( |
609 |
('UNIX' #unix) |
|
610 |
('WIN32' #win32) |
|
611 |
('VMS' #vms) |
|
612 |
('BEOS' #beos) |
|
613 |
) pairsDo:[:ifdef :id| |
|
9851 | 614 |
|archClassNames archClassesLoaded| |
9606 | 615 |
|
9851 | 616 |
archClassNames := self compiled_classNamesForArchitecture:id. |
617 |
archClassesLoaded := archClassNames |
|
618 |
collect:[:nm | |cls| cls := Smalltalk classNamed:nm] |
|
619 |
thenSelect:[:cls | cls notNil and:[cls isLoaded] ]. |
|
620 |
||
621 |
archClassesLoaded notEmpty ifTrue:[ |
|
9606 | 622 |
s nextPutLine: '#ifdef ',ifdef. |
9851 | 623 |
(Class classesSortedByLoadOrder:archClassesLoaded) do:[:cls | putLineForClassName value:cls name]. |
9606 | 624 |
s nextPutLine: '#endif /* ',ifdef,' */'. |
625 |
]. |
|
9582 | 626 |
]. |
9493 | 627 |
] |
628 |
||
9576 | 629 |
" |
630 |
bosch_dapasx_datenbasis generateClassLines_libInit_dot_cc |
|
631 |
bosch_dapasx_kernel generateClassLines_libInit_dot_cc |
|
632 |
stx_libbasic3 generateClassLines_libInit_dot_cc |
|
633 |
" |
|
9493 | 634 |
|
635 |
"Created: / 09-08-2006 / 11:21:48 / fm" |
|
9547 | 636 |
"Modified: / 16-08-2006 / 18:52:10 / User" |
9851 | 637 |
"Modified: / 14-09-2006 / 13:11:57 / cg" |
638 |
! |
|
639 |
||
640 |
generateDependencies:whichArchitecture |
|
641 |
^ String streamContents:[:s | |
|
642 |
|classNames classesLoaded classesSorted classNamesSorted putDependencyForClass |
|
9884
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
643 |
archClassNames archClassesLoaded putSingleClassDependencyEntry putDependencyForExtensions| |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
644 |
|
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
645 |
putSingleClassDependencyEntry := |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
646 |
[:cls | |sclsBaseName| |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
647 |
s nextPutAll:' $(INCLUDE_TOP)'. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
648 |
s nextPutAll:(self pathSeparator:whichArchitecture) asString. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
649 |
sclsBaseName := cls classFilename asFilename withoutSuffix baseName. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
650 |
s nextPutAll:(self topRelativePathTo:sclsBaseName inPackage:cls package architecture:whichArchitecture). |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
651 |
s nextPutAll:'.$(H)'. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
652 |
]. |
9851 | 653 |
|
654 |
putDependencyForClass := |
|
655 |
[:cls | |
|
9884
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
656 |
|clsBaseName already| |
9851 | 657 |
|
658 |
clsBaseName := cls classFilename asFilename withoutSuffix baseName. |
|
659 |
s nextPutAll:'$(OUTDIR)'. |
|
660 |
s nextPutAll:clsBaseName. |
|
661 |
s nextPutAll:'.$(O)'. |
|
662 |
||
663 |
s nextPutAll:' '. |
|
664 |
s nextPutAll:clsBaseName. |
|
665 |
s nextPutAll:'.$(H)'. |
|
666 |
||
667 |
s nextPutAll:': '. |
|
668 |
s nextPutAll:clsBaseName. |
|
669 |
s nextPutAll:'.st'. |
|
9884
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
670 |
already := Set new. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
671 |
cls allSuperclassesDo:[:scls | |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
672 |
putSingleClassDependencyEntry value:scls. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
673 |
already add:scls. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
674 |
]. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
675 |
cls privateClassesDo:[:eachPrivateClass | |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
676 |
eachPrivateClass allSuperclassesDo:[:scls | |sclsBaseName| |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
677 |
scls ~~ cls ifTrue:[ |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
678 |
scls isPrivate ifFalse:[ |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
679 |
(already includes:scls) ifFalse:[ |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
680 |
putSingleClassDependencyEntry value:scls. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
681 |
already add:scls. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
682 |
]. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
683 |
]. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
684 |
]. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
685 |
] |
9851 | 686 |
]. |
9884
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
687 |
|
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
688 |
s nextPutAll:' $(STCHDR)'. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
689 |
s cr. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
690 |
]. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
691 |
|
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
692 |
putDependencyForExtensions := |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
693 |
[ |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
694 |
|already| |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
695 |
|
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
696 |
s nextPutAll:'$(OUTDIR)extensions.$(O): extensions.st'. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
697 |
|
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
698 |
already := Set new. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
699 |
self extensionMethodNames pairWiseDo:[:className :selector | |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
700 |
|mthdCls cls| |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
701 |
|
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
702 |
((mthdCls := Smalltalk classNamed:className) notNil and:[mthdCls isLoaded]) ifTrue:[ |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
703 |
cls := mthdCls theNonMetaclass. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
704 |
(already includes:cls) ifFalse:[ |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
705 |
cls allSuperclassesDo:[:scls | |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
706 |
(already includes:scls) ifFalse:[ |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
707 |
putSingleClassDependencyEntry value:scls. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
708 |
already add:scls. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
709 |
]. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
710 |
]. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
711 |
]. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
712 |
]. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
713 |
]. |
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
714 |
|
9851 | 715 |
s nextPutAll:' $(STCHDR)'. |
716 |
s cr. |
|
717 |
]. |
|
718 |
||
719 |
classNames := self common_compiled_classNames. |
|
720 |
classesLoaded := classNames |
|
9884
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
721 |
collect:[:className | |cls| cls := Smalltalk classNamed:className] |
9851 | 722 |
thenSelect:[:cls | cls notNil and:[cls isLoaded] ]. |
723 |
||
724 |
classesSorted := Class classesSortedByLoadOrder:classesLoaded. |
|
725 |
classesSorted do:putDependencyForClass. |
|
726 |
||
9884
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
727 |
self namesAndAttributesIn:(self additionalClassNamesAndAttributes) do:[:className :attr | |
9851 | 728 |
|cls| |
729 |
||
730 |
(attr isEmptyOrNil or:[(attr includes:#autoload) not]) ifTrue:[ |
|
9884
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
731 |
((cls := Smalltalk classNamed:className) notNil and:[cls isLoaded]) ifTrue:[ |
9851 | 732 |
putDependencyForClass value:cls. |
733 |
] |
|
734 |
]. |
|
735 |
]. |
|
736 |
||
737 |
archClassNames := self compiled_classNamesForArchitecture:whichArchitecture. |
|
738 |
archClassesLoaded := archClassNames |
|
9884
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
739 |
collect:[:className | |cls| cls := Smalltalk classNamed:className] |
9851 | 740 |
thenSelect:[:cls | cls notNil and:[cls isLoaded] ]. |
741 |
||
742 |
archClassesLoaded notEmpty ifTrue:[ |
|
743 |
(Class classesSortedByLoadOrder:archClassesLoaded) do:putDependencyForClass. |
|
744 |
]. |
|
9884
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
745 |
|
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
746 |
self hasExtensions ifTrue:putDependencyForExtensions. |
9851 | 747 |
] |
748 |
||
749 |
" |
|
750 |
stx_libbasic3 generateDependencies:#unix |
|
751 |
stx_libbasic3 generateDependencies:#win32 |
|
752 |
" |
|
753 |
||
754 |
"Modified: / 16-08-2006 / 18:52:10 / User" |
|
755 |
"Created: / 14-09-2006 / 12:38:57 / cg" |
|
9884
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
756 |
"Modified: / 14-09-2006 / 17:04:21 / cg" |
9851 | 757 |
! |
758 |
||
759 |
generateDependencies_unix |
|
760 |
^ self generateDependencies:#unix |
|
761 |
||
762 |
" |
|
763 |
stx_libbasic3 generateDependencies:#unix |
|
764 |
stx_libbasic3 generateDependencies:#win32 |
|
765 |
" |
|
766 |
||
767 |
"Modified: / 14-09-2006 / 13:32:34 / cg" |
|
768 |
! |
|
769 |
||
770 |
generateDependencies_win32 |
|
771 |
^ self generateDependencies:#win32 |
|
772 |
||
773 |
"Created: / 14-09-2006 / 12:39:18 / cg" |
|
9493 | 774 |
! |
775 |
||
776 |
generateExtensionLine_libInit_dot_cc |
|
9576 | 777 |
|mappings| |
9493 | 778 |
|
9851 | 779 |
^self hasExtensions |
780 |
ifFalse:[''] |
|
781 |
ifTrue:[ |
|
9576 | 782 |
mappings := self extensionLine_libInit_dot_cc_mappings. |
783 |
self replaceMappings: mappings in: self extensionLine_libInit_dot_cc.] |
|
784 |
||
785 |
" |
|
786 |
DapasXProject generateExtensionLine_libInit_dot_cc |
|
787 |
DapasX_Datenbasis generateExtensionLine_libInit_dot_cc |
|
788 |
" |
|
9493 | 789 |
|
790 |
"Created: / 09-08-2006 / 11:23:34 / fm" |
|
9851 | 791 |
"Modified: / 14-09-2006 / 14:19:59 / cg" |
9493 | 792 |
! |
793 |
||
9723 | 794 |
generateLocalIncludes_unix |
9576 | 795 |
^ String streamContents:[:s | |
9723 | 796 |
s nextPutAll:(self localIncludes_unix). |
797 |
self searchForProjectsWhichProvideHeaderFiles |
|
9879 | 798 |
do:[:includeProject | |
799 |
s nextPutAll:' -I$(INCLUDE_TOP)/',(self topRelativePathToPackage_unix: includeProject) |
|
9723 | 800 |
] |
801 |
] |
|
802 |
||
803 |
" |
|
9832 | 804 |
bosch_dapasx generateLocalIncludes_unix |
9879 | 805 |
bosch_dapasx_datenbasis generateLocalIncludes_unix |
806 |
stx_libbasic generateLocalIncludes_unix |
|
807 |
stx_libview generateLocalIncludes_unix |
|
808 |
stx_libtool2 generateLocalIncludes_unix |
|
809 |
stx_libui generateLocalIncludes_unix |
|
9723 | 810 |
" |
811 |
||
812 |
"Created: / 09-08-2006 / 16:46:49 / fm" |
|
9879 | 813 |
"Modified: / 14-09-2006 / 15:38:16 / cg" |
9723 | 814 |
! |
815 |
||
816 |
generateLocalIncludes_win32 |
|
817 |
^ String streamContents:[:s | |
|
818 |
s nextPutAll:(self localIncludes_win32). |
|
9576 | 819 |
self searchForProjectsWhichProvideHeaderFiles |
9879 | 820 |
do:[:includeProject | |
821 |
s nextPutAll:' -I$(INCLUDE_TOP)\',(self topRelativePathToPackage_win32: includeProject) |
|
9576 | 822 |
] |
9493 | 823 |
] |
824 |
||
9576 | 825 |
" |
9832 | 826 |
bosch_dapasx_application generateLocalIncludes_win32 |
827 |
bosch_dapasx_datenbasis generateLocalIncludes_win32 |
|
9879 | 828 |
stx_libbasic generateLocalIncludes_win32 |
829 |
stx_libview generateLocalIncludes_win32 |
|
830 |
stx_libtool2 generateLocalIncludes_win32 |
|
9576 | 831 |
" |
9493 | 832 |
|
833 |
"Created: / 09-08-2006 / 16:46:49 / fm" |
|
9879 | 834 |
"Modified: / 14-09-2006 / 15:37:35 / cg" |
9493 | 835 |
! |
836 |
||
9576 | 837 |
generateSubDirectories |
838 |
^ String streamContents:[:s | |
|
839 |
self subProjects |
|
840 |
do:[:subProjectName | |
|
841 |
s space; nextPutAll:subProjectName |
|
842 |
] |
|
9493 | 843 |
] |
844 |
||
9576 | 845 |
" |
846 |
DapasXProject generateSubDirectories |
|
847 |
DapasX_Datenbasis generateSubDirectories |
|
848 |
" |
|
9493 | 849 |
|
850 |
"Created: / 09-08-2006 / 11:26:59 / fm" |
|
9576 | 851 |
"Modified: / 18-08-2006 / 11:59:32 / cg" |
9493 | 852 |
! |
853 |
||
9503 | 854 |
generateUnixLocalIncludes |
9576 | 855 |
^ String streamContents:[:s | |
9723 | 856 |
s nextPutAll:(self localIncludes_unix). |
9576 | 857 |
self searchForProjectsWhichProvideHeaderFiles |
858 |
do:[:includeProjectName | |
|
9851 | 859 |
s nextPutAll:' -I',(self pathToPackage_unix: includeProjectName) |
9576 | 860 |
] |
9503 | 861 |
] |
862 |
||
9576 | 863 |
" |
864 |
DapasXProject generateLocalIncludes |
|
865 |
DapasX_Datenbasis generateLocalIncludes |
|
866 |
" |
|
9503 | 867 |
|
868 |
"Created: / 09-08-2006 / 16:46:49 / fm" |
|
9851 | 869 |
"Modified: / 14-09-2006 / 13:22:03 / cg" |
9594 | 870 |
! |
871 |
||
872 |
headerFileOutputArg |
|
9879 | 873 |
"/ "all stx stuff goes to the common include directory. |
874 |
"/ Everything else is left locally" |
|
875 |
"/ |
|
876 |
"/ ( |
|
877 |
"/ #( |
|
878 |
"/ 'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
879 |
"/ 'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
880 |
"/ 'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
881 |
"/ 'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
882 |
"/ 'stx:libboss' 'stx:libdb' |
|
883 |
"/ ) |
|
884 |
"/ includes:self package) ifTrue:[ |
|
885 |
"/ ^ '-H$(INCLUDE)' |
|
886 |
"/ ]. |
|
9594 | 887 |
^ '-H.' |
888 |
||
889 |
"Created: / 18-08-2006 / 13:01:52 / cg" |
|
9879 | 890 |
"Modified: / 14-09-2006 / 15:38:25 / cg" |
9493 | 891 |
! ! |
892 |
||
9812 | 893 |
!LibraryDefinition class methodsFor:'queries'! |
894 |
||
895 |
canHaveExtensions |
|
896 |
"return true, if this class allows extensions from other packages. |
|
897 |
Private classes, namespaces and projectDefinitions dont allow this" |
|
898 |
||
899 |
^ self == ApplicationDefinition |
|
900 |
||
901 |
" |
|
902 |
Smalltalk allClasses select:[:each | each canHaveExtensions not] |
|
903 |
" |
|
904 |
||
905 |
"Created: / 30-08-2006 / 15:29:53 / cg" |
|
906 |
! ! |
|
907 |
||
9568 | 908 |
!LibraryDefinition class methodsFor:'sanity checks'! |
9493 | 909 |
|
910 |
searchForInconsistencies |
|
911 |
self searchForNeverCompiledSuperclasses. |
|
912 |
||
913 |
" |
|
914 |
self searchForInconsistencies |
|
915 |
DapasX_Datenbasis searchForInconsistencies |
|
916 |
" |
|
917 |
||
918 |
"Created: / 09-08-2006 / 16:30:46 / fm" |
|
919 |
! |
|
920 |
||
921 |
searchForNeverCompiledSuperclasses |
|
9495 | 922 |
self compiled_classesDo:[:includedClass | |
9493 | 923 |
includedClass allSuperclassesDo:[:eachSuperClass | |
924 |
eachSuperClass package == Project noProjectID ifTrue:[ |
|
925 |
self inconsistency:'uncompiled superclass: ' , eachSuperClass name |
|
926 |
]. |
|
927 |
] |
|
928 |
]. |
|
929 |
||
930 |
" |
|
931 |
self searchForNeverCompiledSuperclasses |
|
932 |
DapasX_Datenbasis searchForNeverCompiledSuperclasses |
|
933 |
" |
|
934 |
||
935 |
"Created: / 09-08-2006 / 16:31:54 / fm" |
|
936 |
! ! |
|
937 |
||
9568 | 938 |
!LibraryDefinition class methodsFor:'testing'! |
9558 | 939 |
|
9666 | 940 |
isLibraryDefinition |
941 |
^ self ~~ LibraryDefinition |
|
942 |
||
943 |
" |
|
944 |
stx_libboss isLibraryDefinition |
|
945 |
ProjectDefinition isLibraryDefinition |
|
946 |
LibraryDefinition isLibraryDefinition |
|
947 |
" |
|
948 |
||
949 |
"Created: / 23-08-2006 / 15:17:50 / cg" |
|
950 |
! |
|
951 |
||
9558 | 952 |
isProjectDefinition |
9611 | 953 |
^ self ~~ LibraryDefinition |
9558 | 954 |
|
9612 | 955 |
" |
956 |
stx_libboss isProjectDefinition |
|
957 |
ProjectDefinition isProjectDefinition |
|
958 |
" |
|
959 |
||
9558 | 960 |
"Created: / 17-08-2006 / 14:11:46 / cg" |
9612 | 961 |
"Modified: / 21-08-2006 / 15:50:13 / cg" |
9558 | 962 |
! ! |
963 |
||
9568 | 964 |
!LibraryDefinition class methodsFor:'update description'! |
9493 | 965 |
|
9797 | 966 |
forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition |
967 |
super forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition. |
|
9586 | 968 |
|
9514 | 969 |
"Created: / 10-08-2006 / 16:35:47 / cg" |
9586 | 970 |
"Modified: / 18-08-2006 / 16:22:49 / cg" |
9493 | 971 |
! ! |
972 |
||
9568 | 973 |
!LibraryDefinition class methodsFor:'documentation'! |
9493 | 974 |
|
975 |
version |
|
9884
3c4fe9230405
include and dependency generation fixed
Claus Gittinger <cg@exept.de>
parents:
9879
diff
changeset
|
976 |
^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.63 2006-09-14 15:06:50 cg Exp $' |
9493 | 977 |
! ! |