author | Stefan Vogel <sv@exept.de> |
Thu, 11 Jan 2007 19:06:00 +0100 | |
changeset 10305 | 9ddd9fa56303 |
parent 10301 | 538da2da9faf |
child 10318 | bef855ddbb59 |
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 |
" |
9671 | 12 |
"{ Package: 'stx:libbasic' }" |
9493 | 13 |
|
9568 | 14 |
ProjectDefinition subclass:#LibraryDefinition |
9616 | 15 |
instanceVariableNames:'' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Support-Projects' |
|
9493 | 19 |
! |
20 |
||
9568 | 21 |
!LibraryDefinition class methodsFor:'documentation'! |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
22 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
23 |
copyright |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
24 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
26 |
All Rights Reserved |
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 |
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
|
29 |
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
|
30 |
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
|
31 |
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
|
32 |
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
|
33 |
hereby transferred. |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
34 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
35 |
! ! |
9493 | 36 |
|
9999 | 37 |
!LibraryDefinition class methodsFor:'code generation'! |
38 |
||
39 |
forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition |
|
40 |
super forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition. |
|
41 |
||
42 |
"Created: / 10-08-2006 / 16:35:47 / cg" |
|
43 |
"Modified: / 18-08-2006 / 16:22:49 / cg" |
|
44 |
! ! |
|
45 |
||
9568 | 46 |
!LibraryDefinition class methodsFor:'defaults'! |
9533 | 47 |
|
9534 | 48 |
defaultDescription |
49 |
^ 'a classLibrary' |
|
9493 | 50 |
! ! |
51 |
||
9576 | 52 |
!LibraryDefinition class methodsFor:'description - project information'! |
53 |
||
54 |
description |
|
55 |
"Returns a description string which will appear in nt.def / bc.def" |
|
56 |
||
57 |
self module = 'stx' ifTrue:[ |
|
58 |
^ 'Smalltalk/X Class library' |
|
59 |
]. |
|
60 |
||
9586 | 61 |
^ 'Class Library' |
9576 | 62 |
|
63 |
"Created: / 17-08-2006 / 20:52:16 / cg" |
|
9586 | 64 |
"Modified: / 18-08-2006 / 16:15:53 / cg" |
9847 | 65 |
! |
66 |
||
67 |
fileDescription |
|
68 |
"Return a description string which will appear in nt.def / bc.def" |
|
69 |
||
70 |
^self description , ' ClassLibrary' |
|
71 |
||
72 |
"Created: / 14-09-2006 / 10:55:23 / cg" |
|
9576 | 73 |
! ! |
74 |
||
9568 | 75 |
!LibraryDefinition class methodsFor:'file generation'! |
9493 | 76 |
|
9853 | 77 |
basicFileNamesToGenerate |
9534 | 78 |
^ #( |
9604 | 79 |
#('Make.proto' #'generate_make_dot_proto') |
80 |
#('Make.spec' #'generate_make_dot_spec') |
|
81 |
#('libInit.cc' #'generate_libInit_dot_cc') |
|
82 |
#('bc.def' #'generate_bc_dot_def') |
|
10305 | 83 |
#('bc.mak' #'generate_bc_dot_mak') |
9604 | 84 |
#('abbrev.stc' #'generate_abbrev_dot_stc') |
85 |
#('bmake.bat' #'generate_bmake_dot_mak') |
|
9899 | 86 |
) , (Array |
87 |
with: |
|
88 |
(Array |
|
89 |
with:self rcFilename |
|
90 |
with:#'generate_packageName_dot_rc') |
|
91 |
). |
|
9576 | 92 |
|
9853 | 93 |
"Created: / 14-09-2006 / 14:36:14 / cg" |
9899 | 94 |
"Modified: / 14-09-2006 / 21:02:08 / cg" |
9582 | 95 |
! |
96 |
||
9622 | 97 |
generateFile:filename |
98 |
filename = 'libInit.cc' ifTrue:[ |
|
99 |
^ self generate_libInit_dot_cc |
|
100 |
]. |
|
9832 | 101 |
((filename = 'lib.rc') or:[filename = self rcFilename]) ifTrue:[ |
9622 | 102 |
^ self generate_packageName_dot_rc |
103 |
]. |
|
104 |
^ super generateFile:filename |
|
105 |
||
106 |
"Created: / 22-08-2006 / 18:36:24 / cg" |
|
9832 | 107 |
"Modified: / 07-09-2006 / 17:07:46 / cg" |
9622 | 108 |
! |
109 |
||
9582 | 110 |
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
|
111 |
^ self replaceMappings: self libInit_dot_cc_mappings |
9582 | 112 |
in: self libInit_dot_cc |
113 |
||
9960
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
114 |
" |
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
115 |
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
|
116 |
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
|
117 |
" |
9582 | 118 |
|
119 |
"Created: / 08-08-2006 / 12:47:16 / fm" |
|
120 |
"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
|
121 |
"Modified: / 19-09-2006 / 22:41:40 / cg" |
9493 | 122 |
! ! |
123 |
||
9568 | 124 |
!LibraryDefinition class methodsFor:'file templates'! |
9493 | 125 |
|
126 |
bc_dot_def |
|
9576 | 127 |
"the template code for the bc.def file" |
9493 | 128 |
|
129 |
^ |
|
9608 | 130 |
'LIBRARY %(LIBRARY_NAME) |
9493 | 131 |
DESCRIPTION %(DESCRIPTION) |
132 |
CODE PRELOAD MOVEABLE DISCARDABLE |
|
133 |
SEGMENTS |
|
134 |
INITCODE PRELOAD DISCARDABLE |
|
135 |
EXPORTS |
|
9590 | 136 |
__%(LIBRARY_NAME)_Init @1 |
9504 | 137 |
' |
9493 | 138 |
|
139 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
140 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9590 | 141 |
"Modified: / 18-08-2006 / 17:13:45 / cg" |
9493 | 142 |
! |
143 |
||
10305 | 144 |
bc_dot_mak |
145 |
||
146 |
^ |
|
147 |
'# $','Header','$ |
|
148 |
# |
|
149 |
# DO NOT EDIT |
|
150 |
# automagically generated from the projectDefinition: ',self name,'. |
|
151 |
# |
|
152 |
# Warning: once you modify this file, do not rerun |
|
153 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
154 |
# |
|
155 |
# This file contains make rules for the win32 platform (using borland-bcc). |
|
156 |
# It shares common definitions with the unix-make in Make.spec. |
|
157 |
# The nt.mak supports the following targets: |
|
158 |
# bmake - compile all st-files to a classLib (dll) |
|
159 |
# bmake clean - clean all temp files |
|
160 |
# bmake clobber - clean all |
|
161 |
# |
|
162 |
# |
|
163 |
TOP=%(TOP) |
|
164 |
INCLUDE_TOP=$(TOP)\.. |
|
165 |
||
166 |
!!INCLUDE $(TOP)\rules\stdHeader_bc |
|
167 |
||
168 |
!!INCLUDE Make.spec |
|
169 |
||
170 |
LIBNAME=%(LIBRARY_NAME) |
|
171 |
RESFILES=%(RESFILENAME) |
|
172 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
173 |
||
174 |
STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
|
175 |
LOCALLIBS=%(ADDITIONAL_LINK_LIBRARIES) |
|
176 |
||
177 |
%(ADDITIONAL_DEFINITIONS) |
|
178 |
||
179 |
OBJS= $(COMMON_OBJS) $(WIN32_OBJS) |
|
180 |
||
181 |
ALL:: %(ADDITIONAL_TARGETS) $(LIBDIR)\$(LIBNAME).lib $(BINDIR)\$(LIBNAME).dll |
|
182 |
||
183 |
!!INCLUDE $(TOP)\rules\stdRules_bc |
|
184 |
||
185 |
%(ADDITIONAL_RULES) |
|
186 |
||
187 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
188 |
%(DEPENDENCIES) |
|
189 |
# ENDMAKEDEPEND --- do not remove this line |
|
190 |
' |
|
191 |
||
192 |
"Created: / 09-08-2006 / 11:44:20 / fm" |
|
193 |
"Modified: / 09-08-2006 / 19:59:32 / fm" |
|
194 |
"Modified: / 14-09-2006 / 15:48:18 / cg" |
|
195 |
! |
|
196 |
||
9493 | 197 |
extensionLine_libInit_dot_cc |
198 |
||
199 |
^'_%(LIBRARY_NAME)_extensions_Init(pass,__pRT__,snd);' |
|
200 |
||
201 |
"Created: / 08-08-2006 / 15:48:56 / fm" |
|
202 |
"Modified: / 08-08-2006 / 19:32:33 / fm" |
|
203 |
! |
|
204 |
||
205 |
libInit_dot_cc |
|
9576 | 206 |
"the template code for the libInit.cc file" |
9493 | 207 |
|
208 |
^ |
|
209 |
'/* |
|
9576 | 210 |
* $','Header','$ |
211 |
* |
|
9493 | 212 |
* DO NOT EDIT |
9576 | 213 |
* automagically generated from the projectDefinition: ',self name,'. |
9493 | 214 |
*/ |
215 |
#define __INDIRECTVMINITCALLS__ |
|
216 |
#include <stc.h> |
|
217 |
#define INIT_TEXT_SECT /* as nothing */ |
|
218 |
#ifdef WIN32 |
|
219 |
# pragma codeseg INITCODE "INITCODE" |
|
220 |
#else /* not WIN32 */ |
|
221 |
# if defined(__GNUC__) && !!defined(NO_SECTION_ATTRIBUTES) |
|
222 |
# if (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2 |
|
223 |
# undef INIT_TEXT_SECT |
|
224 |
# define INIT_TEXT_SECT __attribute__((section(".stxitext"))) |
|
225 |
# endif |
|
226 |
# endif /* not GNUC */ |
|
227 |
#endif /* not WIN32 */ |
|
228 |
#ifdef INIT_TEXT_SECT |
|
229 |
extern void _%(LIBRARY_NAME)_Init() INIT_TEXT_SECT; |
|
230 |
#endif |
|
231 |
void _%(LIBRARY_NAME)_Init(pass, __pRT__, snd) |
|
232 |
OBJ snd; struct __vmData__ *__pRT__; { |
|
233 |
__BEGIN_PACKAGE2__("%(LIBRARY_NAME)", _%(LIBRARY_NAME)_Init, "%(PACKAGE)"); |
|
234 |
%(CLASSES) |
|
235 |
%(EXTENSION) |
|
236 |
__END_PACKAGE__(); |
|
9902
74fab44fab6e
Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents:
9899
diff
changeset
|
237 |
} |
74fab44fab6e
Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents:
9899
diff
changeset
|
238 |
' |
9493 | 239 |
|
240 |
"Created: / 08-08-2006 / 12:40:45 / fm" |
|
241 |
"Modified: / 08-08-2006 / 19:33:01 / fm" |
|
9576 | 242 |
"Modified: / 18-08-2006 / 12:57:02 / cg" |
243 |
! |
|
244 |
||
245 |
lib_dot_rc |
|
246 |
||
247 |
^ |
|
248 |
'/*------------------------------------------------------------------------ |
|
249 |
* $','Header','$ |
|
250 |
* |
|
251 |
* DO NOT EDIT |
|
252 |
* automagically generated from the projectDefinition: ',self name,'. |
|
253 |
*------------------------------------------------------------------------*/ |
|
254 |
||
255 |
// #if (__BORLANDC__ < 0x0550) |
|
256 |
// #include <ver.h> |
|
257 |
// #endif |
|
258 |
||
259 |
VS_VERSION_INFO VERSIONINFO |
|
260 |
FILEVERSION %(FILEVERSION) |
|
261 |
PRODUCTVERSION %(PRODUCTVERSION) |
|
262 |
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE |
|
263 |
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD |
|
264 |
FILEOS VOS_NT_WINDOWS32 |
|
265 |
FILETYPE %(FILETYPE) |
|
266 |
FILESUBTYPE VS_USER_DEFINED |
|
267 |
||
268 |
BEGIN |
|
269 |
BLOCK "StringFileInfo" |
|
270 |
BEGIN |
|
271 |
BLOCK "040904E4" |
|
272 |
BEGIN |
|
273 |
VALUE "CompanyName", %(COMPANYNAME) |
|
274 |
VALUE "FileDescription", "Smalltalk/X Additional Developer Basic Classes Library\0" |
|
275 |
VALUE "FileVersion", "5.2.8.1\0" |
|
276 |
VALUE "InternalName", "libbasic3\0" |
|
277 |
VALUE "LegalCopyright", "Copyright eXept Software AG 1998-2006\0" |
|
278 |
VALUE "ProductName", "Smalltalk/X\0" |
|
279 |
VALUE "ProductVersion", "5.2.8.1\0" |
|
280 |
END |
|
281 |
||
282 |
END |
|
283 |
||
284 |
BLOCK "VarFileInfo" |
|
285 |
BEGIN // Language | Translation |
|
286 |
VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual |
|
287 |
END |
|
288 |
END |
|
289 |
' |
|
290 |
||
291 |
"Created: / 17-08-2006 / 19:37:50 / cg" |
|
292 |
"Modified: / 18-08-2006 / 12:57:09 / cg" |
|
9493 | 293 |
! |
294 |
||
295 |
make_dot_proto |
|
296 |
||
297 |
^ |
|
9576 | 298 |
'# $','Header','$ |
299 |
# |
|
300 |
# DO NOT EDIT |
|
301 |
# automagically generated from the projectDefinition: ',self name,'. |
|
302 |
# |
|
9493 | 303 |
# Warning: once you modify this file, do not rerun |
9576 | 304 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
9493 | 305 |
# |
306 |
# The Makefile as generated by this Make.proto supports the following targets: |
|
307 |
# make - compile all st-files to a classLib |
|
308 |
# make clean - clean all temp files |
|
309 |
# make clobber - clean all |
|
9576 | 310 |
# |
311 |
# This file contains definitions for Unix based platforms. |
|
9851 | 312 |
# It shares common definitions with the win32-make in Make.spec. |
9493 | 313 |
|
314 |
# |
|
315 |
# position (of this package) in directory hierarchy: |
|
316 |
# (must point to ST/X top directory, for tools and includes) |
|
317 |
TOP=%(TOP) |
|
9879 | 318 |
INCLUDE_TOP=$(TOP)/.. |
9493 | 319 |
|
320 |
# subdirectories where targets are to be made: |
|
321 |
SUBDIRS=%(SUBDIRECTORIES) |
|
322 |
||
323 |
||
324 |
# subdirectories where Makefiles are to be made: |
|
325 |
# (only define if different from SUBDIRS) |
|
326 |
# ALLSUBDIRS= |
|
327 |
||
328 |
||
329 |
# if your embedded C code requires any system includes, |
|
330 |
# add the path(es) here:, |
|
331 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
332 |
# LOCALINCLUDES=-Ifoo -Ibar |
|
333 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
334 |
||
335 |
||
336 |
# if you need any additional defines for embedded C code, |
|
337 |
# add them here:, |
|
338 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
339 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
340 |
LOCALDEFINES=%(LOCAL_DEFINES) |
|
341 |
||
9818 | 342 |
LIBNAME=%(LIBRARY_NAME) |
9613 | 343 |
STCLOCALOPT=''-package=$(PACKAGE)'' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
9493 | 344 |
|
345 |
||
346 |
# ********** OPTIONAL: MODIFY the next line *** |
|
347 |
# additional C-libraries that should be pre-linked with the class-objects |
|
9734 | 348 |
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
|
349 |
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES) |
9493 | 350 |
|
351 |
||
352 |
# ********** OPTIONAL: MODIFY the next line *** |
|
353 |
# additional C targets or libraries should be added below |
|
354 |
LOCAL_EXTRA_TARGETS= |
|
355 |
||
9606 | 356 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
357 |
||
9626 | 358 |
%(ADDITIONAL_DEFINITIONS) |
359 |
||
9493 | 360 |
all:: preMake classLibRule postMake |
361 |
||
9626 | 362 |
pre_objs:: %(ADDITIONAL_TARGETS) |
363 |
||
364 |
%(ADDITIONAL_RULES) |
|
9493 | 365 |
|
366 |
# add more install actions here |
|
367 |
install:: |
|
368 |
||
369 |
# add more install actions for aux-files (resources) here |
|
370 |
installAux:: |
|
371 |
||
372 |
# add more preMake actions here |
|
373 |
preMake:: |
|
374 |
||
375 |
# add more postMake actions here |
|
376 |
postMake:: cleanjunk |
|
377 |
||
378 |
cleanjunk:: |
|
379 |
||
380 |
clean:: |
|
9576 | 381 |
%(TAB)-rm -f *.o *.H |
9493 | 382 |
|
383 |
clobber:: |
|
9576 | 384 |
%(TAB)-rm -f *.so *.dll |
9493 | 385 |
|
386 |
', |
|
387 |
" |
|
388 |
$(INSTALLBASE):: |
|
9576 | 389 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 390 |
|
391 |
$(INSTALLBASE)/packages:: $(INSTALLBASE) |
|
9576 | 392 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 393 |
|
394 |
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages |
|
9576 | 395 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 396 |
|
397 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx:: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 398 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 399 |
|
400 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx/interactiver_editor:: $(INSTALLBASE)/packages/$(MODULE)/dapasx |
|
9576 | 401 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 402 |
|
403 |
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 404 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 405 |
" |
406 |
' |
|
407 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
9851 | 408 |
%(DEPENDENCIES) |
9493 | 409 |
# ENDMAKEDEPEND --- do not remove this line |
410 |
||
411 |
' |
|
412 |
||
413 |
"Created: / 08-08-2006 / 20:45:36 / fm" |
|
414 |
"Modified: / 09-08-2006 / 16:50:23 / fm" |
|
9879 | 415 |
"Modified: / 14-09-2006 / 15:48:02 / cg" |
9493 | 416 |
! |
417 |
||
10305 | 418 |
vc_dot_def |
9493 | 419 |
|
420 |
^ |
|
421 |
'LIBRARY %(LIBRARY_NAME) |
|
422 |
DESCRIPTION %(DESCRIPTION) |
|
423 |
VERSION %(VERSION_NUMBER) |
|
424 |
CODE EXECUTE READ |
|
425 |
DATA READ WRITE |
|
426 |
SECTIONS |
|
427 |
INITCODE READ EXECUTE |
|
428 |
INITDATA READ WRITE |
|
429 |
EXPORTS |
|
430 |
_%(LIBRARY_NAME)_Init @1 |
|
431 |
IMPORTS' |
|
432 |
||
433 |
"Modified: / 08-08-2006 / 19:33:14 / fm" |
|
434 |
! ! |
|
435 |
||
9568 | 436 |
!LibraryDefinition class methodsFor:'mappings'! |
9493 | 437 |
|
438 |
bc_dot_def_mappings |
|
9534 | 439 |
^ (super bc_dot_def_mappings) |
9885 | 440 |
at:'LIBRARY_NAME' put:( self libraryName ); |
9504 | 441 |
yourself |
9493 | 442 |
|
443 |
"Created: / 09-08-2006 / 11:17:59 / fm" |
|
9543 | 444 |
"Modified: / 16-08-2006 / 18:19:25 / User" |
9885 | 445 |
"Modified: / 14-09-2006 / 18:56:11 / cg" |
9493 | 446 |
! |
447 |
||
10305 | 448 |
bc_dot_mak_mappings |
449 |
|d resFileName| |
|
450 |
||
451 |
resFileName := (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.res'. |
|
452 |
||
453 |
d := super bc_dot_mak_mappings. |
|
454 |
d |
|
455 |
at: 'LIBRARY_NAME' put: ( self libraryName ); |
|
456 |
at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32); |
|
457 |
at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag); |
|
458 |
at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
|
459 |
at: 'RESFILENAME' put: resFileName; |
|
460 |
at: 'ADDITIONAL_DEFINITIONS' put: (self additionalDefinitions_bc_dot_mak); |
|
461 |
at: 'ADDITIONAL_RULES' put: (self additionalRules_bc_dot_mak); |
|
462 |
at: 'ADDITIONAL_TARGETS' put: (self additionalTargets_bc_dot_mak); |
|
463 |
at: 'DEPENDENCIES' put: (self generateDependencies_win32); |
|
464 |
yourself. |
|
465 |
^ d. |
|
466 |
||
467 |
"Created: / 09-08-2006 / 11:44:36 / fm" |
|
468 |
"Modified: / 09-08-2006 / 20:00:01 / fm" |
|
469 |
"Modified: / 14-09-2006 / 18:58:15 / cg" |
|
470 |
! |
|
471 |
||
9493 | 472 |
extensionLine_libInit_dot_cc_mappings |
473 |
||
474 |
^Dictionary new |
|
9885 | 475 |
at: 'LIBRARY_NAME' put: ( self st2c:(self package copy asString replaceAny:':/' with:$_) ); |
9493 | 476 |
yourself |
477 |
||
478 |
"Created: / 09-08-2006 / 11:19:59 / fm" |
|
9885 | 479 |
"Modified: / 14-09-2006 / 18:56:26 / cg" |
9493 | 480 |
! |
481 |
||
482 |
libInit_dot_cc_mappings |
|
483 |
||
484 |
^Dictionary new |
|
9885 | 485 |
at: 'LIBRARY_NAME' put: (self libraryName); |
486 |
at: 'PACKAGE' put: (self package); |
|
487 |
at: 'CLASSES' put: (self generateClassLines_libInit_dot_cc); |
|
488 |
at: 'EXTENSION' put: (self generateExtensionLine_libInit_dot_cc); |
|
9493 | 489 |
|
490 |
yourself |
|
491 |
||
492 |
"Created: / 09-08-2006 / 11:20:24 / fm" |
|
9543 | 493 |
"Modified: / 16-08-2006 / 18:19:03 / User" |
9885 | 494 |
"Modified: / 14-09-2006 / 18:56:42 / cg" |
9576 | 495 |
! |
496 |
||
10305 | 497 |
vc_dot_def_mappings |
9493 | 498 |
|
499 |
^Dictionary new |
|
9885 | 500 |
at: 'LIBRARY_NAME' put: (self libraryName); |
501 |
at: 'DESCRIPTION' put: (self description asString storeString); |
|
502 |
at: 'VERSION_NUMBER' put: (self versionNumber); |
|
9493 | 503 |
yourself |
504 |
||
505 |
"Created: / 09-08-2006 / 11:21:21 / fm" |
|
9885 | 506 |
"Modified: / 14-09-2006 / 18:58:07 / cg" |
9493 | 507 |
! ! |
508 |
||
9568 | 509 |
!LibraryDefinition class methodsFor:'mappings support'! |
9493 | 510 |
|
9576 | 511 |
commonSymbolsFlag |
512 |
"some libraries are compiled with COMMONSYMBOLS - |
|
513 |
This saves a lot of space in the generated dll/so files; |
|
514 |
However, it also requires the librun to be rebuilt, whenever one of |
|
515 |
the commonSymbols-libs changes. |
|
516 |
Therefore, NEVER do this for end-user or application libraries; |
|
9632 | 517 |
ONLY do it for a subset of the predefined, eXept-provided standard stx libraries" |
9493 | 518 |
|
9576 | 519 |
( |
520 |
#( |
|
521 |
'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
522 |
'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
523 |
'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
524 |
'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
9596 | 525 |
'stx:libboss' 'stx:libdb' |
9576 | 526 |
) |
527 |
includes:self package) ifTrue:[ |
|
528 |
^ '$(COMMONSYMBOLS)' |
|
529 |
]. |
|
530 |
^ '' |
|
9547 | 531 |
|
9576 | 532 |
"Created: / 18-08-2006 / 13:01:52 / cg" |
9632 | 533 |
"Modified: / 23-08-2006 / 09:48:11 / cg" |
9576 | 534 |
! |
535 |
||
9493 | 536 |
generateExtensionLine_libInit_dot_cc |
9576 | 537 |
|mappings| |
9493 | 538 |
|
9907
8f907d537b9c
hasExtensions is a bad name (conflicts with the other query)
Claus Gittinger <cg@exept.de>
parents:
9902
diff
changeset
|
539 |
^self hasExtensionMethods |
9851 | 540 |
ifFalse:[''] |
541 |
ifTrue:[ |
|
9576 | 542 |
mappings := self extensionLine_libInit_dot_cc_mappings. |
543 |
self replaceMappings: mappings in: self extensionLine_libInit_dot_cc.] |
|
544 |
||
545 |
" |
|
546 |
DapasXProject generateExtensionLine_libInit_dot_cc |
|
547 |
DapasX_Datenbasis generateExtensionLine_libInit_dot_cc |
|
548 |
" |
|
9493 | 549 |
|
550 |
"Created: / 09-08-2006 / 11:23:34 / fm" |
|
9851 | 551 |
"Modified: / 14-09-2006 / 14:19:59 / cg" |
9493 | 552 |
! ! |
553 |
||
9812 | 554 |
!LibraryDefinition class methodsFor:'queries'! |
555 |
||
556 |
canHaveExtensions |
|
557 |
"return true, if this class allows extensions from other packages. |
|
558 |
Private classes, namespaces and projectDefinitions dont allow this" |
|
559 |
||
560 |
^ self == ApplicationDefinition |
|
561 |
||
562 |
" |
|
563 |
Smalltalk allClasses select:[:each | each canHaveExtensions not] |
|
564 |
" |
|
565 |
||
566 |
"Created: / 30-08-2006 / 15:29:53 / cg" |
|
567 |
! ! |
|
568 |
||
9568 | 569 |
!LibraryDefinition class methodsFor:'sanity checks'! |
9493 | 570 |
|
571 |
searchForInconsistencies |
|
572 |
self searchForNeverCompiledSuperclasses. |
|
573 |
||
574 |
" |
|
575 |
self searchForInconsistencies |
|
576 |
DapasX_Datenbasis searchForInconsistencies |
|
577 |
" |
|
578 |
||
579 |
"Created: / 09-08-2006 / 16:30:46 / fm" |
|
580 |
! |
|
581 |
||
582 |
searchForNeverCompiledSuperclasses |
|
9495 | 583 |
self compiled_classesDo:[:includedClass | |
9493 | 584 |
includedClass allSuperclassesDo:[:eachSuperClass | |
585 |
eachSuperClass package == Project noProjectID ifTrue:[ |
|
586 |
self inconsistency:'uncompiled superclass: ' , eachSuperClass name |
|
587 |
]. |
|
588 |
] |
|
589 |
]. |
|
590 |
||
591 |
" |
|
592 |
self searchForNeverCompiledSuperclasses |
|
593 |
DapasX_Datenbasis searchForNeverCompiledSuperclasses |
|
594 |
" |
|
595 |
||
596 |
"Created: / 09-08-2006 / 16:31:54 / fm" |
|
597 |
! ! |
|
598 |
||
9568 | 599 |
!LibraryDefinition class methodsFor:'testing'! |
9558 | 600 |
|
9666 | 601 |
isLibraryDefinition |
602 |
^ self ~~ LibraryDefinition |
|
603 |
||
604 |
" |
|
605 |
stx_libboss isLibraryDefinition |
|
606 |
ProjectDefinition isLibraryDefinition |
|
607 |
LibraryDefinition isLibraryDefinition |
|
608 |
" |
|
609 |
||
610 |
"Created: / 23-08-2006 / 15:17:50 / cg" |
|
611 |
! |
|
612 |
||
9558 | 613 |
isProjectDefinition |
9611 | 614 |
^ self ~~ LibraryDefinition |
9558 | 615 |
|
9612 | 616 |
" |
617 |
stx_libboss isProjectDefinition |
|
618 |
ProjectDefinition isProjectDefinition |
|
619 |
" |
|
620 |
||
9558 | 621 |
"Created: / 17-08-2006 / 14:11:46 / cg" |
9612 | 622 |
"Modified: / 21-08-2006 / 15:50:13 / cg" |
9558 | 623 |
! ! |
624 |
||
9568 | 625 |
!LibraryDefinition class methodsFor:'documentation'! |
9493 | 626 |
|
627 |
version |
|
10305 | 628 |
^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.74 2007-01-11 18:06:00 stefan Exp $' |
9493 | 629 |
! ! |