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