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