author | Stefan Vogel <sv@exept.de> |
Wed, 10 Jan 2007 14:16:23 +0100 | |
changeset 10301 | 538da2da9faf |
parent 10024 | a9a71c271bd9 |
child 10305 | 9ddd9fa56303 |
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') |
|
83 |
#('nt.mak' #'generate_nt_dot_mak') |
|
9576 | 84 |
" |
9604 | 85 |
#('nt.def' #'generate_nt_dot_def') |
9576 | 86 |
" |
9604 | 87 |
#('abbrev.stc' #'generate_abbrev_dot_stc') |
88 |
#('bmake.bat' #'generate_bmake_dot_mak') |
|
9899 | 89 |
) , (Array |
90 |
with: |
|
91 |
(Array |
|
92 |
with:self rcFilename |
|
93 |
with:#'generate_packageName_dot_rc') |
|
94 |
). |
|
9576 | 95 |
|
9853 | 96 |
"Created: / 14-09-2006 / 14:36:14 / cg" |
9899 | 97 |
"Modified: / 14-09-2006 / 21:02:08 / cg" |
9582 | 98 |
! |
99 |
||
9622 | 100 |
generateFile:filename |
101 |
filename = 'libInit.cc' ifTrue:[ |
|
102 |
^ self generate_libInit_dot_cc |
|
103 |
]. |
|
9832 | 104 |
((filename = 'lib.rc') or:[filename = self rcFilename]) ifTrue:[ |
9622 | 105 |
^ self generate_packageName_dot_rc |
106 |
]. |
|
107 |
^ super generateFile:filename |
|
108 |
||
109 |
"Created: / 22-08-2006 / 18:36:24 / cg" |
|
9832 | 110 |
"Modified: / 07-09-2006 / 17:07:46 / cg" |
9622 | 111 |
! |
112 |
||
9582 | 113 |
generate_libInit_dot_cc |
9960
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
114 |
^ self replaceMappings: self libInit_dot_cc_mappings |
9582 | 115 |
in: self libInit_dot_cc |
116 |
||
9960
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
117 |
" |
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
118 |
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
|
119 |
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
|
120 |
" |
9582 | 121 |
|
122 |
"Created: / 08-08-2006 / 12:47:16 / fm" |
|
123 |
"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
|
124 |
"Modified: / 19-09-2006 / 22:41:40 / cg" |
9493 | 125 |
! ! |
126 |
||
9568 | 127 |
!LibraryDefinition class methodsFor:'file templates'! |
9493 | 128 |
|
129 |
bc_dot_def |
|
9576 | 130 |
"the template code for the bc.def file" |
9493 | 131 |
|
132 |
^ |
|
9608 | 133 |
'LIBRARY %(LIBRARY_NAME) |
9493 | 134 |
DESCRIPTION %(DESCRIPTION) |
135 |
CODE PRELOAD MOVEABLE DISCARDABLE |
|
136 |
SEGMENTS |
|
137 |
INITCODE PRELOAD DISCARDABLE |
|
138 |
EXPORTS |
|
9590 | 139 |
__%(LIBRARY_NAME)_Init @1 |
9504 | 140 |
' |
9493 | 141 |
|
142 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
143 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9590 | 144 |
"Modified: / 18-08-2006 / 17:13:45 / cg" |
9493 | 145 |
! |
146 |
||
147 |
extensionLine_libInit_dot_cc |
|
148 |
||
149 |
^'_%(LIBRARY_NAME)_extensions_Init(pass,__pRT__,snd);' |
|
150 |
||
151 |
"Created: / 08-08-2006 / 15:48:56 / fm" |
|
152 |
"Modified: / 08-08-2006 / 19:32:33 / fm" |
|
153 |
! |
|
154 |
||
155 |
libInit_dot_cc |
|
9576 | 156 |
"the template code for the libInit.cc file" |
9493 | 157 |
|
158 |
^ |
|
159 |
'/* |
|
9576 | 160 |
* $','Header','$ |
161 |
* |
|
9493 | 162 |
* DO NOT EDIT |
9576 | 163 |
* automagically generated from the projectDefinition: ',self name,'. |
9493 | 164 |
*/ |
165 |
#define __INDIRECTVMINITCALLS__ |
|
166 |
#include <stc.h> |
|
167 |
#define INIT_TEXT_SECT /* as nothing */ |
|
168 |
#ifdef WIN32 |
|
169 |
# pragma codeseg INITCODE "INITCODE" |
|
170 |
#else /* not WIN32 */ |
|
171 |
# if defined(__GNUC__) && !!defined(NO_SECTION_ATTRIBUTES) |
|
172 |
# if (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2 |
|
173 |
# undef INIT_TEXT_SECT |
|
174 |
# define INIT_TEXT_SECT __attribute__((section(".stxitext"))) |
|
175 |
# endif |
|
176 |
# endif /* not GNUC */ |
|
177 |
#endif /* not WIN32 */ |
|
178 |
#ifdef INIT_TEXT_SECT |
|
179 |
extern void _%(LIBRARY_NAME)_Init() INIT_TEXT_SECT; |
|
180 |
#endif |
|
181 |
void _%(LIBRARY_NAME)_Init(pass, __pRT__, snd) |
|
182 |
OBJ snd; struct __vmData__ *__pRT__; { |
|
183 |
__BEGIN_PACKAGE2__("%(LIBRARY_NAME)", _%(LIBRARY_NAME)_Init, "%(PACKAGE)"); |
|
184 |
%(CLASSES) |
|
185 |
%(EXTENSION) |
|
186 |
__END_PACKAGE__(); |
|
9902
74fab44fab6e
Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents:
9899
diff
changeset
|
187 |
} |
74fab44fab6e
Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents:
9899
diff
changeset
|
188 |
' |
9493 | 189 |
|
190 |
"Created: / 08-08-2006 / 12:40:45 / fm" |
|
191 |
"Modified: / 08-08-2006 / 19:33:01 / fm" |
|
9576 | 192 |
"Modified: / 18-08-2006 / 12:57:02 / cg" |
193 |
! |
|
194 |
||
195 |
lib_dot_rc |
|
196 |
||
197 |
^ |
|
198 |
'/*------------------------------------------------------------------------ |
|
199 |
* $','Header','$ |
|
200 |
* |
|
201 |
* DO NOT EDIT |
|
202 |
* automagically generated from the projectDefinition: ',self name,'. |
|
203 |
*------------------------------------------------------------------------*/ |
|
204 |
||
205 |
// #if (__BORLANDC__ < 0x0550) |
|
206 |
// #include <ver.h> |
|
207 |
// #endif |
|
208 |
||
209 |
VS_VERSION_INFO VERSIONINFO |
|
210 |
FILEVERSION %(FILEVERSION) |
|
211 |
PRODUCTVERSION %(PRODUCTVERSION) |
|
212 |
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE |
|
213 |
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD |
|
214 |
FILEOS VOS_NT_WINDOWS32 |
|
215 |
FILETYPE %(FILETYPE) |
|
216 |
FILESUBTYPE VS_USER_DEFINED |
|
217 |
||
218 |
BEGIN |
|
219 |
BLOCK "StringFileInfo" |
|
220 |
BEGIN |
|
221 |
BLOCK "040904E4" |
|
222 |
BEGIN |
|
223 |
VALUE "CompanyName", %(COMPANYNAME) |
|
224 |
VALUE "FileDescription", "Smalltalk/X Additional Developer Basic Classes Library\0" |
|
225 |
VALUE "FileVersion", "5.2.8.1\0" |
|
226 |
VALUE "InternalName", "libbasic3\0" |
|
227 |
VALUE "LegalCopyright", "Copyright eXept Software AG 1998-2006\0" |
|
228 |
VALUE "ProductName", "Smalltalk/X\0" |
|
229 |
VALUE "ProductVersion", "5.2.8.1\0" |
|
230 |
END |
|
231 |
||
232 |
END |
|
233 |
||
234 |
BLOCK "VarFileInfo" |
|
235 |
BEGIN // Language | Translation |
|
236 |
VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual |
|
237 |
END |
|
238 |
END |
|
239 |
' |
|
240 |
||
241 |
"Created: / 17-08-2006 / 19:37:50 / cg" |
|
242 |
"Modified: / 18-08-2006 / 12:57:09 / cg" |
|
9493 | 243 |
! |
244 |
||
245 |
make_dot_proto |
|
246 |
||
247 |
^ |
|
9576 | 248 |
'# $','Header','$ |
249 |
# |
|
250 |
# DO NOT EDIT |
|
251 |
# automagically generated from the projectDefinition: ',self name,'. |
|
252 |
# |
|
9493 | 253 |
# Warning: once you modify this file, do not rerun |
9576 | 254 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
9493 | 255 |
# |
256 |
# The Makefile as generated by this Make.proto supports the following targets: |
|
257 |
# make - compile all st-files to a classLib |
|
258 |
# make clean - clean all temp files |
|
259 |
# make clobber - clean all |
|
9576 | 260 |
# |
261 |
# This file contains definitions for Unix based platforms. |
|
9851 | 262 |
# It shares common definitions with the win32-make in Make.spec. |
9493 | 263 |
|
264 |
# |
|
265 |
# position (of this package) in directory hierarchy: |
|
266 |
# (must point to ST/X top directory, for tools and includes) |
|
267 |
TOP=%(TOP) |
|
9879 | 268 |
INCLUDE_TOP=$(TOP)/.. |
9493 | 269 |
|
270 |
# subdirectories where targets are to be made: |
|
271 |
SUBDIRS=%(SUBDIRECTORIES) |
|
272 |
||
273 |
||
274 |
# subdirectories where Makefiles are to be made: |
|
275 |
# (only define if different from SUBDIRS) |
|
276 |
# ALLSUBDIRS= |
|
277 |
||
278 |
||
279 |
# if your embedded C code requires any system includes, |
|
280 |
# add the path(es) here:, |
|
281 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
282 |
# LOCALINCLUDES=-Ifoo -Ibar |
|
283 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
284 |
||
285 |
||
286 |
# if you need any additional defines for embedded C code, |
|
287 |
# add them here:, |
|
288 |
# ********** OPTIONAL: MODIFY the next lines *** |
|
289 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
290 |
LOCALDEFINES=%(LOCAL_DEFINES) |
|
291 |
||
9818 | 292 |
LIBNAME=%(LIBRARY_NAME) |
9613 | 293 |
STCLOCALOPT=''-package=$(PACKAGE)'' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
9493 | 294 |
|
295 |
||
296 |
# ********** OPTIONAL: MODIFY the next line *** |
|
297 |
# additional C-libraries that should be pre-linked with the class-objects |
|
9734 | 298 |
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
|
299 |
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_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) |
10301
538da2da9faf
add #additional_link_libraries_nt_dot_mak
Stefan Vogel <sv@exept.de>
parents:
10024
diff
changeset
|
417 |
LOCALLIBS=%(ADDITIONAL_LINK_LIBRARIES) |
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 |
||
9493 | 476 |
nt_dot_def_mappings |
477 |
||
478 |
^Dictionary new |
|
9885 | 479 |
at: 'LIBRARY_NAME' put: (self libraryName); |
480 |
at: 'DESCRIPTION' put: (self description asString storeString); |
|
481 |
at: 'VERSION_NUMBER' put: (self versionNumber); |
|
9493 | 482 |
yourself |
483 |
||
484 |
"Created: / 09-08-2006 / 11:21:21 / fm" |
|
9885 | 485 |
"Modified: / 14-09-2006 / 18:58:07 / cg" |
9493 | 486 |
! |
487 |
||
488 |
nt_dot_mak_mappings |
|
9590 | 489 |
|d resFileName| |
490 |
||
491 |
resFileName := (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.res'. |
|
9493 | 492 |
|
9576 | 493 |
d := super nt_dot_mak_mappings. |
494 |
d |
|
9885 | 495 |
at: 'LIBRARY_NAME' put: ( self libraryName ); |
496 |
at: 'LOCAL_INCLUDES' put: (self generateLocalIncludes_win32); |
|
497 |
at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag); |
|
498 |
at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
|
499 |
at: 'RESFILENAME' put: resFileName; |
|
500 |
at: 'ADDITIONAL_DEFINITIONS' put: (self additionalDefinitions_nt_dot_mak); |
|
501 |
at: 'ADDITIONAL_RULES' put: (self additionalRules_nt_dot_mak); |
|
502 |
at: 'ADDITIONAL_TARGETS' put: (self additionalTargets_nt_dot_mak); |
|
503 |
at: 'DEPENDENCIES' put: (self generateDependencies_win32); |
|
9594 | 504 |
yourself. |
9576 | 505 |
^ d. |
9493 | 506 |
|
507 |
"Created: / 09-08-2006 / 11:44:36 / fm" |
|
508 |
"Modified: / 09-08-2006 / 20:00:01 / fm" |
|
9885 | 509 |
"Modified: / 14-09-2006 / 18:58:15 / cg" |
9493 | 510 |
! ! |
511 |
||
9568 | 512 |
!LibraryDefinition class methodsFor:'mappings support'! |
9493 | 513 |
|
9576 | 514 |
commonSymbolsFlag |
515 |
"some libraries are compiled with COMMONSYMBOLS - |
|
516 |
This saves a lot of space in the generated dll/so files; |
|
517 |
However, it also requires the librun to be rebuilt, whenever one of |
|
518 |
the commonSymbols-libs changes. |
|
519 |
Therefore, NEVER do this for end-user or application libraries; |
|
9632 | 520 |
ONLY do it for a subset of the predefined, eXept-provided standard stx libraries" |
9493 | 521 |
|
9576 | 522 |
( |
523 |
#( |
|
524 |
'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
525 |
'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
526 |
'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
527 |
'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
9596 | 528 |
'stx:libboss' 'stx:libdb' |
9576 | 529 |
) |
530 |
includes:self package) ifTrue:[ |
|
531 |
^ '$(COMMONSYMBOLS)' |
|
532 |
]. |
|
533 |
^ '' |
|
9547 | 534 |
|
9576 | 535 |
"Created: / 18-08-2006 / 13:01:52 / cg" |
9632 | 536 |
"Modified: / 23-08-2006 / 09:48:11 / cg" |
9576 | 537 |
! |
538 |
||
9493 | 539 |
generateExtensionLine_libInit_dot_cc |
9576 | 540 |
|mappings| |
9493 | 541 |
|
9907
8f907d537b9c
hasExtensions is a bad name (conflicts with the other query)
Claus Gittinger <cg@exept.de>
parents:
9902
diff
changeset
|
542 |
^self hasExtensionMethods |
9851 | 543 |
ifFalse:[''] |
544 |
ifTrue:[ |
|
9576 | 545 |
mappings := self extensionLine_libInit_dot_cc_mappings. |
546 |
self replaceMappings: mappings in: self extensionLine_libInit_dot_cc.] |
|
547 |
||
548 |
" |
|
549 |
DapasXProject generateExtensionLine_libInit_dot_cc |
|
550 |
DapasX_Datenbasis generateExtensionLine_libInit_dot_cc |
|
551 |
" |
|
9493 | 552 |
|
553 |
"Created: / 09-08-2006 / 11:23:34 / fm" |
|
9851 | 554 |
"Modified: / 14-09-2006 / 14:19:59 / cg" |
9493 | 555 |
! ! |
556 |
||
9812 | 557 |
!LibraryDefinition class methodsFor:'queries'! |
558 |
||
559 |
canHaveExtensions |
|
560 |
"return true, if this class allows extensions from other packages. |
|
561 |
Private classes, namespaces and projectDefinitions dont allow this" |
|
562 |
||
563 |
^ self == ApplicationDefinition |
|
564 |
||
565 |
" |
|
566 |
Smalltalk allClasses select:[:each | each canHaveExtensions not] |
|
567 |
" |
|
568 |
||
569 |
"Created: / 30-08-2006 / 15:29:53 / cg" |
|
570 |
! ! |
|
571 |
||
9568 | 572 |
!LibraryDefinition class methodsFor:'sanity checks'! |
9493 | 573 |
|
574 |
searchForInconsistencies |
|
575 |
self searchForNeverCompiledSuperclasses. |
|
576 |
||
577 |
" |
|
578 |
self searchForInconsistencies |
|
579 |
DapasX_Datenbasis searchForInconsistencies |
|
580 |
" |
|
581 |
||
582 |
"Created: / 09-08-2006 / 16:30:46 / fm" |
|
583 |
! |
|
584 |
||
585 |
searchForNeverCompiledSuperclasses |
|
9495 | 586 |
self compiled_classesDo:[:includedClass | |
9493 | 587 |
includedClass allSuperclassesDo:[:eachSuperClass | |
588 |
eachSuperClass package == Project noProjectID ifTrue:[ |
|
589 |
self inconsistency:'uncompiled superclass: ' , eachSuperClass name |
|
590 |
]. |
|
591 |
] |
|
592 |
]. |
|
593 |
||
594 |
" |
|
595 |
self searchForNeverCompiledSuperclasses |
|
596 |
DapasX_Datenbasis searchForNeverCompiledSuperclasses |
|
597 |
" |
|
598 |
||
599 |
"Created: / 09-08-2006 / 16:31:54 / fm" |
|
600 |
! ! |
|
601 |
||
9568 | 602 |
!LibraryDefinition class methodsFor:'testing'! |
9558 | 603 |
|
9666 | 604 |
isLibraryDefinition |
605 |
^ self ~~ LibraryDefinition |
|
606 |
||
607 |
" |
|
608 |
stx_libboss isLibraryDefinition |
|
609 |
ProjectDefinition isLibraryDefinition |
|
610 |
LibraryDefinition isLibraryDefinition |
|
611 |
" |
|
612 |
||
613 |
"Created: / 23-08-2006 / 15:17:50 / cg" |
|
614 |
! |
|
615 |
||
9558 | 616 |
isProjectDefinition |
9611 | 617 |
^ self ~~ LibraryDefinition |
9558 | 618 |
|
9612 | 619 |
" |
620 |
stx_libboss isProjectDefinition |
|
621 |
ProjectDefinition isProjectDefinition |
|
622 |
" |
|
623 |
||
9558 | 624 |
"Created: / 17-08-2006 / 14:11:46 / cg" |
9612 | 625 |
"Modified: / 21-08-2006 / 15:50:13 / cg" |
9558 | 626 |
! ! |
627 |
||
9568 | 628 |
!LibraryDefinition class methodsFor:'documentation'! |
9493 | 629 |
|
630 |
version |
|
10301
538da2da9faf
add #additional_link_libraries_nt_dot_mak
Stefan Vogel <sv@exept.de>
parents:
10024
diff
changeset
|
631 |
^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.73 2007-01-10 13:16:23 stefan Exp $' |
9493 | 632 |
! ! |