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