author | Claus Gittinger <cg@exept.de> |
Thu, 21 Sep 2006 17:36:46 +0200 | |
changeset 9999 | 3fa5b37b03cd |
parent 9971 | 57890631d67a |
child 10024 | a9a71c271bd9 |
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 |
|
9999 | 38 |
!LibraryDefinition class methodsFor:'code generation'! |
39 |
||
40 |
forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition |
|
41 |
super forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition. |
|
42 |
||
43 |
"Created: / 10-08-2006 / 16:35:47 / cg" |
|
44 |
"Modified: / 18-08-2006 / 16:22:49 / cg" |
|
45 |
! ! |
|
46 |
||
9568 | 47 |
!LibraryDefinition class methodsFor:'defaults'! |
9533 | 48 |
|
9534 | 49 |
defaultDescription |
50 |
^ 'a classLibrary' |
|
9493 | 51 |
! ! |
52 |
||
9576 | 53 |
!LibraryDefinition class methodsFor:'description - project information'! |
54 |
||
55 |
description |
|
56 |
"Returns a description string which will appear in nt.def / bc.def" |
|
57 |
||
58 |
self module = 'stx' ifTrue:[ |
|
59 |
^ 'Smalltalk/X Class library' |
|
60 |
]. |
|
61 |
||
9586 | 62 |
^ 'Class Library' |
9576 | 63 |
|
64 |
"Created: / 17-08-2006 / 20:52:16 / cg" |
|
9586 | 65 |
"Modified: / 18-08-2006 / 16:15:53 / cg" |
9847 | 66 |
! |
67 |
||
68 |
fileDescription |
|
69 |
"Return a description string which will appear in nt.def / bc.def" |
|
70 |
||
71 |
^self description , ' ClassLibrary' |
|
72 |
||
73 |
"Created: / 14-09-2006 / 10:55:23 / cg" |
|
9576 | 74 |
! ! |
75 |
||
9568 | 76 |
!LibraryDefinition class methodsFor:'file generation'! |
9493 | 77 |
|
9853 | 78 |
basicFileNamesToGenerate |
9534 | 79 |
^ #( |
9604 | 80 |
#('Make.proto' #'generate_make_dot_proto') |
81 |
#('Make.spec' #'generate_make_dot_spec') |
|
82 |
#('libInit.cc' #'generate_libInit_dot_cc') |
|
83 |
#('bc.def' #'generate_bc_dot_def') |
|
84 |
#('nt.mak' #'generate_nt_dot_mak') |
|
9576 | 85 |
" |
9604 | 86 |
#('nt.def' #'generate_nt_dot_def') |
9576 | 87 |
" |
9604 | 88 |
#('abbrev.stc' #'generate_abbrev_dot_stc') |
89 |
#('bmake.bat' #'generate_bmake_dot_mak') |
|
9899 | 90 |
) , (Array |
91 |
with: |
|
92 |
(Array |
|
93 |
with:self rcFilename |
|
94 |
with:#'generate_packageName_dot_rc') |
|
95 |
). |
|
9576 | 96 |
|
9853 | 97 |
"Created: / 14-09-2006 / 14:36:14 / cg" |
9899 | 98 |
"Modified: / 14-09-2006 / 21:02:08 / cg" |
9582 | 99 |
! |
100 |
||
9622 | 101 |
generateFile:filename |
102 |
filename = 'libInit.cc' ifTrue:[ |
|
103 |
^ self generate_libInit_dot_cc |
|
104 |
]. |
|
9832 | 105 |
((filename = 'lib.rc') or:[filename = self rcFilename]) ifTrue:[ |
9622 | 106 |
^ self generate_packageName_dot_rc |
107 |
]. |
|
108 |
^ super generateFile:filename |
|
109 |
||
110 |
"Created: / 22-08-2006 / 18:36:24 / cg" |
|
9832 | 111 |
"Modified: / 07-09-2006 / 17:07:46 / cg" |
9622 | 112 |
! |
113 |
||
9582 | 114 |
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
|
115 |
^ self replaceMappings: self libInit_dot_cc_mappings |
9582 | 116 |
in: self libInit_dot_cc |
117 |
||
9960
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
118 |
" |
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
119 |
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
|
120 |
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
|
121 |
" |
9582 | 122 |
|
123 |
"Created: / 08-08-2006 / 12:47:16 / fm" |
|
124 |
"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
|
125 |
"Modified: / 19-09-2006 / 22:41:40 / cg" |
9493 | 126 |
! ! |
127 |
||
9568 | 128 |
!LibraryDefinition class methodsFor:'file templates'! |
9493 | 129 |
|
130 |
bc_dot_def |
|
9576 | 131 |
"the template code for the bc.def file" |
9493 | 132 |
|
133 |
^ |
|
9608 | 134 |
'LIBRARY %(LIBRARY_NAME) |
9493 | 135 |
DESCRIPTION %(DESCRIPTION) |
136 |
CODE PRELOAD MOVEABLE DISCARDABLE |
|
137 |
SEGMENTS |
|
138 |
INITCODE PRELOAD DISCARDABLE |
|
139 |
EXPORTS |
|
9590 | 140 |
__%(LIBRARY_NAME)_Init @1 |
9504 | 141 |
' |
9493 | 142 |
|
143 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
144 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9590 | 145 |
"Modified: / 18-08-2006 / 17:13:45 / cg" |
9493 | 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) |
9971
57890631d67a
Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents:
9960
diff
changeset
|
300 |
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES) |
9493 | 301 |
|
302 |
||
303 |
# ********** OPTIONAL: MODIFY the next line *** |
|
304 |
# additional C targets or libraries should be added below |
|
305 |
LOCAL_EXTRA_TARGETS= |
|
306 |
||
9606 | 307 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
308 |
||
9626 | 309 |
%(ADDITIONAL_DEFINITIONS) |
310 |
||
9493 | 311 |
all:: preMake classLibRule postMake |
312 |
||
9626 | 313 |
pre_objs:: %(ADDITIONAL_TARGETS) |
314 |
||
315 |
%(ADDITIONAL_RULES) |
|
9493 | 316 |
|
317 |
# add more install actions here |
|
318 |
install:: |
|
319 |
||
320 |
# add more install actions for aux-files (resources) here |
|
321 |
installAux:: |
|
322 |
||
323 |
# add more preMake actions here |
|
324 |
preMake:: |
|
325 |
||
326 |
# add more postMake actions here |
|
327 |
postMake:: cleanjunk |
|
328 |
||
329 |
cleanjunk:: |
|
330 |
||
331 |
clean:: |
|
9576 | 332 |
%(TAB)-rm -f *.o *.H |
9493 | 333 |
|
334 |
clobber:: |
|
9576 | 335 |
%(TAB)-rm -f *.so *.dll |
9493 | 336 |
|
337 |
', |
|
338 |
" |
|
339 |
$(INSTALLBASE):: |
|
9576 | 340 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 341 |
|
342 |
$(INSTALLBASE)/packages:: $(INSTALLBASE) |
|
9576 | 343 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 344 |
|
345 |
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages |
|
9576 | 346 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 347 |
|
348 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx:: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 349 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 350 |
|
351 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx/interactiver_editor:: $(INSTALLBASE)/packages/$(MODULE)/dapasx |
|
9576 | 352 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 353 |
|
354 |
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 355 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 356 |
" |
357 |
' |
|
358 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
9851 | 359 |
%(DEPENDENCIES) |
9493 | 360 |
# ENDMAKEDEPEND --- do not remove this line |
361 |
||
362 |
' |
|
363 |
||
364 |
"Created: / 08-08-2006 / 20:45:36 / fm" |
|
365 |
"Modified: / 09-08-2006 / 16:50:23 / fm" |
|
9879 | 366 |
"Modified: / 14-09-2006 / 15:48:02 / cg" |
9493 | 367 |
! |
368 |
||
369 |
nt_dot_def |
|
370 |
||
371 |
^ |
|
372 |
'LIBRARY %(LIBRARY_NAME) |
|
373 |
DESCRIPTION %(DESCRIPTION) |
|
374 |
VERSION %(VERSION_NUMBER) |
|
375 |
CODE EXECUTE READ |
|
376 |
DATA READ WRITE |
|
377 |
SECTIONS |
|
378 |
INITCODE READ EXECUTE |
|
379 |
INITDATA READ WRITE |
|
380 |
EXPORTS |
|
381 |
_%(LIBRARY_NAME)_Init @1 |
|
382 |
IMPORTS' |
|
383 |
||
384 |
"Modified: / 08-08-2006 / 19:33:14 / fm" |
|
385 |
! |
|
386 |
||
387 |
nt_dot_mak |
|
388 |
||
389 |
^ |
|
9576 | 390 |
'# $','Header','$ |
391 |
# |
|
392 |
# DO NOT EDIT |
|
393 |
# automagically generated from the projectDefinition: ',self name,'. |
|
9493 | 394 |
# |
395 |
# Warning: once you modify this file, do not rerun |
|
9576 | 396 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
397 |
# |
|
398 |
# This file contains make rules for the win32 platform (using borland-bcc). |
|
9851 | 399 |
# It shares common definitions with the unix-make in Make.spec. |
400 |
# The nt.mak supports the following targets: |
|
401 |
# bmake - compile all st-files to a classLib (dll) |
|
402 |
# bmake clean - clean all temp files |
|
403 |
# bmake clobber - clean all |
|
404 |
# |
|
9493 | 405 |
# |
406 |
TOP=%(TOP) |
|
9879 | 407 |
INCLUDE_TOP=$(TOP)\.. |
9493 | 408 |
|
409 |
!!INCLUDE $(TOP)\rules\stdHeader_nt |
|
410 |
||
411 |
!!INCLUDE Make.spec |
|
412 |
||
9818 | 413 |
LIBNAME=%(LIBRARY_NAME) |
414 |
RESFILES=%(RESFILENAME) |
|
9493 | 415 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
416 |
||
9631 | 417 |
STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
9493 | 418 |
|
9626 | 419 |
%(ADDITIONAL_DEFINITIONS) |
420 |
||
9606 | 421 |
OBJS= $(COMMON_OBJS) $(WIN32_OBJS) |
422 |
||
9626 | 423 |
ALL:: %(ADDITIONAL_TARGETS) $(LIBDIR)\$(LIBNAME).lib $(BINDIR)\$(LIBNAME).dll |
9493 | 424 |
|
425 |
!!INCLUDE $(TOP)\rules\stdRules_nt |
|
426 |
||
9626 | 427 |
%(ADDITIONAL_RULES) |
428 |
||
9493 | 429 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
9851 | 430 |
%(DEPENDENCIES) |
9493 | 431 |
# ENDMAKEDEPEND --- do not remove this line |
432 |
' |
|
433 |
||
434 |
"Created: / 09-08-2006 / 11:44:20 / fm" |
|
435 |
"Modified: / 09-08-2006 / 19:59:32 / fm" |
|
9879 | 436 |
"Modified: / 14-09-2006 / 15:48:18 / cg" |
9493 | 437 |
! ! |
438 |
||
9568 | 439 |
!LibraryDefinition class methodsFor:'mappings'! |
9493 | 440 |
|
441 |
bc_dot_def_mappings |
|
9534 | 442 |
^ (super bc_dot_def_mappings) |
9885 | 443 |
at:'LIBRARY_NAME' put:( self libraryName ); |
9504 | 444 |
yourself |
9493 | 445 |
|
446 |
"Created: / 09-08-2006 / 11:17:59 / fm" |
|
9543 | 447 |
"Modified: / 16-08-2006 / 18:19:25 / User" |
9885 | 448 |
"Modified: / 14-09-2006 / 18:56:11 / cg" |
9493 | 449 |
! |
450 |
||
451 |
extensionLine_libInit_dot_cc_mappings |
|
452 |
||
453 |
^Dictionary new |
|
9885 | 454 |
at: 'LIBRARY_NAME' put: ( self st2c:(self package copy asString replaceAny:':/' with:$_) ); |
9493 | 455 |
yourself |
456 |
||
457 |
"Created: / 09-08-2006 / 11:19:59 / fm" |
|
9885 | 458 |
"Modified: / 14-09-2006 / 18:56:26 / cg" |
9493 | 459 |
! |
460 |
||
461 |
libInit_dot_cc_mappings |
|
462 |
||
463 |
^Dictionary new |
|
9885 | 464 |
at: 'LIBRARY_NAME' put: (self libraryName); |
465 |
at: 'PACKAGE' put: (self package); |
|
466 |
at: 'CLASSES' put: (self generateClassLines_libInit_dot_cc); |
|
467 |
at: 'EXTENSION' put: (self generateExtensionLine_libInit_dot_cc); |
|
9493 | 468 |
|
469 |
yourself |
|
470 |
||
471 |
"Created: / 09-08-2006 / 11:20:24 / fm" |
|
9543 | 472 |
"Modified: / 16-08-2006 / 18:19:03 / User" |
9885 | 473 |
"Modified: / 14-09-2006 / 18:56:42 / cg" |
9576 | 474 |
! |
475 |
||
476 |
make_dot_proto_mappings |
|
477 |
^ Dictionary new |
|
9885 | 478 |
at: 'TAB' put: ( Character tab asString ); |
479 |
at: 'TOP' put: ( self pathToTop_unix ); |
|
480 |
at: 'LIBRARY_NAME' put: ( self libraryName ); |
|
481 |
at: 'SUBDIRECTORIES' put: (self generateSubDirectories); |
|
482 |
at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_unix); |
|
483 |
at: 'LOCAL_DEFINES' put: ''; |
|
484 |
at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag); |
|
485 |
at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
|
486 |
at: 'ADDITIONAL_DEFINITIONS' put: (self additionalDefinitions_make_dot_proto); |
|
487 |
at: 'ADDITIONAL_RULES' put: (self additionalRules_make_dot_proto); |
|
488 |
at: 'ADDITIONAL_TARGETS' put: (self additionalTargets_make_dot_proto); |
|
489 |
at: 'ADDITIONAL_LINK_LIBRARIES' put: (self additionalLinkLibraries_make_dot_proto); |
|
9971
57890631d67a
Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents:
9960
diff
changeset
|
490 |
at: 'ADDITIONAL_SHARED_LINK_LIBRARIES' put: (self additionalSharedLinkLibraries_make_dot_proto); |
9885 | 491 |
at: 'DEPENDENCIES' put: (self generateDependencies_unix); |
9576 | 492 |
yourself |
493 |
||
9493 | 494 |
"Created: / 09-08-2006 / 11:20:45 / fm" |
495 |
"Modified: / 09-08-2006 / 16:44:48 / fm" |
|
9885 | 496 |
"Modified: / 14-09-2006 / 18:57:52 / cg" |
9493 | 497 |
! |
498 |
||
499 |
nt_dot_def_mappings |
|
500 |
||
501 |
^Dictionary new |
|
9885 | 502 |
at: 'LIBRARY_NAME' put: (self libraryName); |
503 |
at: 'DESCRIPTION' put: (self description asString storeString); |
|
504 |
at: 'VERSION_NUMBER' put: (self versionNumber); |
|
9493 | 505 |
yourself |
506 |
||
507 |
"Created: / 09-08-2006 / 11:21:21 / fm" |
|
9885 | 508 |
"Modified: / 14-09-2006 / 18:58:07 / cg" |
9493 | 509 |
! |
510 |
||
511 |
nt_dot_mak_mappings |
|
9590 | 512 |
|d resFileName| |
513 |
||
514 |
resFileName := (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.res'. |
|
9493 | 515 |
|
9576 | 516 |
d := super nt_dot_mak_mappings. |
517 |
d |
|
9885 | 518 |
at: 'LIBRARY_NAME' put: ( self libraryName ); |
519 |
at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32); |
|
520 |
at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag); |
|
521 |
at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
|
522 |
at: 'RESFILENAME' put: resFileName; |
|
523 |
at: 'ADDITIONAL_DEFINITIONS' put: (self additionalDefinitions_nt_dot_mak); |
|
524 |
at: 'ADDITIONAL_RULES' put: (self additionalRules_nt_dot_mak); |
|
525 |
at: 'ADDITIONAL_TARGETS' put: (self additionalTargets_nt_dot_mak); |
|
526 |
at: 'DEPENDENCIES' put: (self generateDependencies_win32); |
|
9594 | 527 |
yourself. |
9576 | 528 |
^ d. |
9493 | 529 |
|
530 |
"Created: / 09-08-2006 / 11:44:36 / fm" |
|
531 |
"Modified: / 09-08-2006 / 20:00:01 / fm" |
|
9885 | 532 |
"Modified: / 14-09-2006 / 18:58:15 / cg" |
9493 | 533 |
! ! |
534 |
||
9568 | 535 |
!LibraryDefinition class methodsFor:'mappings support'! |
9493 | 536 |
|
9576 | 537 |
commonSymbolsFlag |
538 |
"some libraries are compiled with COMMONSYMBOLS - |
|
539 |
This saves a lot of space in the generated dll/so files; |
|
540 |
However, it also requires the librun to be rebuilt, whenever one of |
|
541 |
the commonSymbols-libs changes. |
|
542 |
Therefore, NEVER do this for end-user or application libraries; |
|
9632 | 543 |
ONLY do it for a subset of the predefined, eXept-provided standard stx libraries" |
9493 | 544 |
|
9576 | 545 |
( |
546 |
#( |
|
547 |
'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
548 |
'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
549 |
'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
550 |
'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
9596 | 551 |
'stx:libboss' 'stx:libdb' |
9576 | 552 |
) |
553 |
includes:self package) ifTrue:[ |
|
554 |
^ '$(COMMONSYMBOLS)' |
|
555 |
]. |
|
556 |
^ '' |
|
9547 | 557 |
|
9576 | 558 |
"Created: / 18-08-2006 / 13:01:52 / cg" |
9632 | 559 |
"Modified: / 23-08-2006 / 09:48:11 / cg" |
9576 | 560 |
! |
561 |
||
9493 | 562 |
generateExtensionLine_libInit_dot_cc |
9576 | 563 |
|mappings| |
9493 | 564 |
|
9907
8f907d537b9c
hasExtensions is a bad name (conflicts with the other query)
Claus Gittinger <cg@exept.de>
parents:
9902
diff
changeset
|
565 |
^self hasExtensionMethods |
9851 | 566 |
ifFalse:[''] |
567 |
ifTrue:[ |
|
9576 | 568 |
mappings := self extensionLine_libInit_dot_cc_mappings. |
569 |
self replaceMappings: mappings in: self extensionLine_libInit_dot_cc.] |
|
570 |
||
571 |
" |
|
572 |
DapasXProject generateExtensionLine_libInit_dot_cc |
|
573 |
DapasX_Datenbasis generateExtensionLine_libInit_dot_cc |
|
574 |
" |
|
9493 | 575 |
|
576 |
"Created: / 09-08-2006 / 11:23:34 / fm" |
|
9851 | 577 |
"Modified: / 14-09-2006 / 14:19:59 / cg" |
9493 | 578 |
! |
579 |
||
9576 | 580 |
generateSubDirectories |
581 |
^ String streamContents:[:s | |
|
582 |
self subProjects |
|
9885 | 583 |
do:[:projectID | |
584 |
s space; nextPutAll:projectID |
|
9576 | 585 |
] |
9493 | 586 |
] |
587 |
||
9576 | 588 |
" |
589 |
DapasXProject generateSubDirectories |
|
590 |
DapasX_Datenbasis generateSubDirectories |
|
591 |
" |
|
9493 | 592 |
|
593 |
"Created: / 09-08-2006 / 11:26:59 / fm" |
|
9885 | 594 |
"Modified: / 14-09-2006 / 18:46:18 / cg" |
9493 | 595 |
! |
596 |
||
9594 | 597 |
headerFileOutputArg |
9879 | 598 |
"/ "all stx stuff goes to the common include directory. |
599 |
"/ Everything else is left locally" |
|
600 |
"/ |
|
601 |
"/ ( |
|
602 |
"/ #( |
|
603 |
"/ 'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
604 |
"/ 'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
605 |
"/ 'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
606 |
"/ 'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
607 |
"/ 'stx:libboss' 'stx:libdb' |
|
608 |
"/ ) |
|
609 |
"/ includes:self package) ifTrue:[ |
|
610 |
"/ ^ '-H$(INCLUDE)' |
|
611 |
"/ ]. |
|
9594 | 612 |
^ '-H.' |
613 |
||
614 |
"Created: / 18-08-2006 / 13:01:52 / cg" |
|
9879 | 615 |
"Modified: / 14-09-2006 / 15:38:25 / cg" |
9493 | 616 |
! ! |
617 |
||
9812 | 618 |
!LibraryDefinition class methodsFor:'queries'! |
619 |
||
620 |
canHaveExtensions |
|
621 |
"return true, if this class allows extensions from other packages. |
|
622 |
Private classes, namespaces and projectDefinitions dont allow this" |
|
623 |
||
624 |
^ self == ApplicationDefinition |
|
625 |
||
626 |
" |
|
627 |
Smalltalk allClasses select:[:each | each canHaveExtensions not] |
|
628 |
" |
|
629 |
||
630 |
"Created: / 30-08-2006 / 15:29:53 / cg" |
|
631 |
! ! |
|
632 |
||
9568 | 633 |
!LibraryDefinition class methodsFor:'sanity checks'! |
9493 | 634 |
|
635 |
searchForInconsistencies |
|
636 |
self searchForNeverCompiledSuperclasses. |
|
637 |
||
638 |
" |
|
639 |
self searchForInconsistencies |
|
640 |
DapasX_Datenbasis searchForInconsistencies |
|
641 |
" |
|
642 |
||
643 |
"Created: / 09-08-2006 / 16:30:46 / fm" |
|
644 |
! |
|
645 |
||
646 |
searchForNeverCompiledSuperclasses |
|
9495 | 647 |
self compiled_classesDo:[:includedClass | |
9493 | 648 |
includedClass allSuperclassesDo:[:eachSuperClass | |
649 |
eachSuperClass package == Project noProjectID ifTrue:[ |
|
650 |
self inconsistency:'uncompiled superclass: ' , eachSuperClass name |
|
651 |
]. |
|
652 |
] |
|
653 |
]. |
|
654 |
||
655 |
" |
|
656 |
self searchForNeverCompiledSuperclasses |
|
657 |
DapasX_Datenbasis searchForNeverCompiledSuperclasses |
|
658 |
" |
|
659 |
||
660 |
"Created: / 09-08-2006 / 16:31:54 / fm" |
|
661 |
! ! |
|
662 |
||
9568 | 663 |
!LibraryDefinition class methodsFor:'testing'! |
9558 | 664 |
|
9666 | 665 |
isLibraryDefinition |
666 |
^ self ~~ LibraryDefinition |
|
667 |
||
668 |
" |
|
669 |
stx_libboss isLibraryDefinition |
|
670 |
ProjectDefinition isLibraryDefinition |
|
671 |
LibraryDefinition isLibraryDefinition |
|
672 |
" |
|
673 |
||
674 |
"Created: / 23-08-2006 / 15:17:50 / cg" |
|
675 |
! |
|
676 |
||
9558 | 677 |
isProjectDefinition |
9611 | 678 |
^ self ~~ LibraryDefinition |
9558 | 679 |
|
9612 | 680 |
" |
681 |
stx_libboss isProjectDefinition |
|
682 |
ProjectDefinition isProjectDefinition |
|
683 |
" |
|
684 |
||
9558 | 685 |
"Created: / 17-08-2006 / 14:11:46 / cg" |
9612 | 686 |
"Modified: / 21-08-2006 / 15:50:13 / cg" |
9558 | 687 |
! ! |
688 |
||
9568 | 689 |
!LibraryDefinition class methodsFor:'documentation'! |
9493 | 690 |
|
691 |
version |
|
9999 | 692 |
^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.71 2006-09-21 15:36:46 cg Exp $' |
9493 | 693 |
! ! |