author | sr |
Tue, 27 Jun 2017 13:41:12 +0200 | |
changeset 21927 | f82381b50ee2 |
parent 21685 | 0f9d82ec04db |
child 22388 | a7392e0e7e23 |
permissions | -rw-r--r-- |
21927 | 1 |
"{ Encoding: utf8 }" |
2 |
||
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
3 |
" |
14910 | 4 |
COPYRIGHT (c) 2006-2013 by eXept Software AG |
5 |
All Rights Reserved |
|
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
6 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
7 |
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
|
8 |
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
|
9 |
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
|
10 |
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
|
11 |
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
|
12 |
hereby transferred. |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
13 |
" |
9671 | 14 |
"{ Package: 'stx:libbasic' }" |
9493 | 15 |
|
18502 | 16 |
"{ NameSpace: Smalltalk }" |
17 |
||
9568 | 18 |
ProjectDefinition subclass:#LibraryDefinition |
9616 | 19 |
instanceVariableNames:'' |
20 |
classVariableNames:'' |
|
21 |
poolDictionaries:'' |
|
22 |
category:'System-Support-Projects' |
|
9493 | 23 |
! |
24 |
||
9568 | 25 |
!LibraryDefinition class methodsFor:'documentation'! |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
26 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
27 |
copyright |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
28 |
" |
14910 | 29 |
COPYRIGHT (c) 2006-2013 by eXept Software AG |
30 |
All Rights Reserved |
|
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
31 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
32 |
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
|
33 |
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
|
34 |
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
|
35 |
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
|
36 |
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
|
37 |
hereby transferred. |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
38 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
39 |
! ! |
9493 | 40 |
|
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
|
41 |
!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
|
42 |
|
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
43 |
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
|
44 |
"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
|
45 |
|
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 |
^ '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
|
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 |
|
9576 | 49 |
!LibraryDefinition class methodsFor:'description - project information'! |
50 |
||
51 |
description |
|
52 |
"Returns a description string which will appear in nt.def / bc.def" |
|
53 |
||
54 |
self module = 'stx' ifTrue:[ |
|
12095 | 55 |
^ 'Smalltalk/X Class library' |
9576 | 56 |
]. |
57 |
||
9586 | 58 |
^ 'Class Library' |
9576 | 59 |
|
60 |
"Created: / 17-08-2006 / 20:52:16 / cg" |
|
9586 | 61 |
"Modified: / 18-08-2006 / 16:15:53 / cg" |
9847 | 62 |
! |
63 |
||
64 |
fileDescription |
|
10417 | 65 |
"Return a description string which will appear in nt.def / bc.def and the rc-file" |
9847 | 66 |
|
17242 | 67 |
^ self description , ' (LIB)' |
9847 | 68 |
|
69 |
"Created: / 14-09-2006 / 10:55:23 / cg" |
|
13179 | 70 |
! |
71 |
||
21685 | 72 |
productName |
73 |
"Returns a product name which will appear in <lib>.rc. |
|
74 |
Under win32, this is placed into the dll's file-info. |
|
75 |
This method is usually redefined in a concrete application definition" |
|
76 |
||
77 |
^ super productName ? self name. |
|
78 |
||
79 |
"Created: / 03-04-2017 / 19:08:44 / stefan" |
|
80 |
! |
|
81 |
||
13179 | 82 |
productType |
83 |
"Returns the product type for autopackage" |
|
84 |
||
85 |
^ 'Library' |
|
86 |
||
87 |
"Created: / 21-12-2010 / 09:28:59 / cg" |
|
9576 | 88 |
! ! |
89 |
||
9568 | 90 |
!LibraryDefinition class methodsFor:'file generation'! |
9493 | 91 |
|
9853 | 92 |
basicFileNamesToGenerate |
17242 | 93 |
"answer a dictionary (filename -> generator method) with all the files, |
94 |
that have to be generated for this package" |
|
10865
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
95 |
|
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
96 |
|dict| |
9576 | 97 |
|
10865
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
98 |
dict := super basicFileNamesToGenerate. |
17242 | 99 |
dict 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
|
100 |
^ dict. |
9582 | 101 |
! |
102 |
||
9622 | 103 |
generateFile:filename |
104 |
filename = 'libInit.cc' ifTrue:[ |
|
12095 | 105 |
^ self generate_libInit_dot_cc |
9622 | 106 |
]. |
9832 | 107 |
((filename = 'lib.rc') or:[filename = self rcFilename]) ifTrue:[ |
12095 | 108 |
^ self generate_packageName_dot_rc |
9622 | 109 |
]. |
110 |
^ super generateFile:filename |
|
111 |
||
112 |
"Created: / 22-08-2006 / 18:36:24 / cg" |
|
9832 | 113 |
"Modified: / 07-09-2006 / 17:07:46 / cg" |
9622 | 114 |
! |
115 |
||
9582 | 116 |
generate_libInit_dot_cc |
12095 | 117 |
^ self replaceMappings: self libInit_dot_cc_mappings |
19308 | 118 |
in: self libInit_dot_cc |
9582 | 119 |
|
9960
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
120 |
" |
19308 | 121 |
stx_libbasic2 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
|
122 |
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
|
123 |
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
|
124 |
" |
9582 | 125 |
|
126 |
"Created: / 08-08-2006 / 12:47:16 / fm" |
|
127 |
"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
|
128 |
"Modified: / 19-09-2006 / 22:41:40 / cg" |
9493 | 129 |
! ! |
130 |
||
12365 | 131 |
!LibraryDefinition class methodsFor:'file mappings'! |
132 |
||
133 |
bc_dot_mak_mappings |
|
134 |
|d resFileName| |
|
135 |
||
19997 | 136 |
resFileName := self resourceFilename. "/ (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.$(RES)'. |
12365 | 137 |
|
138 |
d := super bc_dot_mak_mappings. |
|
14946 | 139 |
^ d |
14858 | 140 |
at: 'LIBRARY_NAME' put: ( self libraryName ); |
141 |
at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag); |
|
142 |
at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
|
143 |
at: 'RESFILENAME' put: resFileName; |
|
144 |
at: 'DEPENDENCIES' put: (self generateDependencies_win32); |
|
14946 | 145 |
at: 'MAKE_PREREQUISITES' put: (self generateRequiredMakePrerequisites_bc_dot_mak ? ''); |
14858 | 146 |
yourself. |
12365 | 147 |
|
148 |
"Created: / 09-08-2006 / 11:44:36 / fm" |
|
149 |
"Modified: / 09-08-2006 / 20:00:01 / fm" |
|
150 |
"Modified: / 14-09-2006 / 18:58:15 / cg" |
|
151 |
! |
|
152 |
||
153 |
extensionLine_libInit_dot_cc_mappings |
|
154 |
||
17242 | 155 |
^ Dictionary new |
18502 | 156 |
at: 'LIBRARY_NAME' put: ( self st2c:(ProjectDefinition projectDefinitionClassNameForDefinitionOf:self package) ); |
17242 | 157 |
yourself |
12365 | 158 |
|
159 |
"Created: / 09-08-2006 / 11:19:59 / fm" |
|
160 |
"Modified: / 14-09-2006 / 18:56:26 / cg" |
|
161 |
! |
|
162 |
||
163 |
libInit_dot_cc_mappings |
|
164 |
||
17242 | 165 |
^ Dictionary new |
166 |
at: 'LIBRARY_NAME' put: (self libraryName); |
|
167 |
at: 'PACKAGE' put: (self package); |
|
19308 | 168 |
at: 'EXTERN_DECLARATIONS' put: (self generateExternalDeclarationLines_libInit_dot_cc); |
169 |
at: 'DEFINITION_CLASSES' put: (self generateDefinitionClassLine_libInit_dot_cc); |
|
17242 | 170 |
at: 'CLASSES' put: (self generateClassLines_libInit_dot_cc); |
171 |
at: 'EXTENSION' put: (self generateExtensionLine_libInit_dot_cc); |
|
172 |
yourself |
|
12365 | 173 |
|
19308 | 174 |
" |
175 |
stx_libbasic libInit_dot_cc_mappings |
|
176 |
" |
|
177 |
||
12365 | 178 |
"Created: / 09-08-2006 / 11:20:24 / fm" |
179 |
"Modified: / 16-08-2006 / 18:19:03 / User" |
|
180 |
"Modified: / 14-09-2006 / 18:56:42 / cg" |
|
181 |
! |
|
182 |
||
14946 | 183 |
make_dot_proto_mappings |
184 |
|d| |
|
185 |
||
186 |
d := super make_dot_proto_mappings. |
|
187 |
^ d |
|
188 |
at: 'MAKE_PREREQUISITES' put: (self generateRequiredMakePrerequisites_make_dot_proto); |
|
189 |
yourself. |
|
12365 | 190 |
! ! |
191 |
||
192 |
!LibraryDefinition class methodsFor:'file mappings support'! |
|
193 |
||
194 |
commonSymbolsFlag |
|
195 |
"some libraries are compiled with COMMONSYMBOLS - |
|
196 |
This saves a lot of space in the generated dll/so files; |
|
197 |
However, it also requires the librun to be rebuilt, whenever one of |
|
198 |
the commonSymbols-libs changes. |
|
199 |
Therefore, NEVER do this for end-user or application libraries; |
|
200 |
ONLY do it for a subset of the predefined, eXept-provided standard stx libraries" |
|
201 |
||
202 |
( |
|
203 |
#( |
|
204 |
'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
205 |
'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
206 |
'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
207 |
'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
208 |
'stx:libboss' 'stx:libdb' |
|
209 |
) |
|
210 |
includes:self package) ifTrue:[ |
|
211 |
^ '$(COMMONSYMBOLS)' |
|
212 |
]. |
|
213 |
^ '' |
|
214 |
||
215 |
"Created: / 18-08-2006 / 13:01:52 / cg" |
|
216 |
"Modified: / 23-08-2006 / 09:48:11 / cg" |
|
217 |
! |
|
218 |
||
219 |
generateExtensionLine_libInit_dot_cc |
|
220 |
|mappings| |
|
221 |
||
17242 | 222 |
^ self hasExtensionMethods |
223 |
ifFalse:[''] |
|
224 |
ifTrue:[ |
|
225 |
mappings := self extensionLine_libInit_dot_cc_mappings. |
|
226 |
self replaceMappings: mappings in: self extensionLine_libInit_dot_cc.] |
|
12365 | 227 |
|
228 |
" |
|
229 |
DapasXProject generateExtensionLine_libInit_dot_cc |
|
230 |
DapasX_Datenbasis generateExtensionLine_libInit_dot_cc |
|
231 |
" |
|
232 |
||
233 |
"Created: / 09-08-2006 / 11:23:34 / fm" |
|
234 |
"Modified: / 14-09-2006 / 14:19:59 / cg" |
|
235 |
! ! |
|
236 |
||
9568 | 237 |
!LibraryDefinition class methodsFor:'file templates'! |
9493 | 238 |
|
239 |
bc_dot_def |
|
9576 | 240 |
"the template code for the bc.def file" |
9493 | 241 |
|
12772 | 242 |
"/^ |
243 |
"/'LIBRARY %(LIBRARY_NAME) |
|
244 |
"/DESCRIPTION %(DESCRIPTION) |
|
245 |
"/CODE PRELOAD MOVEABLE DISCARDABLE |
|
246 |
"/SEGMENTS |
|
247 |
"/ INITCODE PRELOAD DISCARDABLE |
|
248 |
"/EXPORTS |
|
249 |
"/ __%(LIBRARY_NAME)_Init @1 |
|
250 |
"/ __%(LIBRARY_NAME)_InitDefinition @2 |
|
251 |
"/' |
|
252 |
||
12095 | 253 |
^ |
9608 | 254 |
'LIBRARY %(LIBRARY_NAME) |
9493 | 255 |
DESCRIPTION %(DESCRIPTION) |
256 |
CODE PRELOAD MOVEABLE DISCARDABLE |
|
257 |
SEGMENTS |
|
258 |
INITCODE PRELOAD DISCARDABLE |
|
259 |
EXPORTS |
|
12770
520a17d353eb
add an extra entry to the libInit.cc code:
Claus Gittinger <cg@exept.de>
parents:
12365
diff
changeset
|
260 |
__%(LIBRARY_NAME)_Init @1 |
9504 | 261 |
' |
9493 | 262 |
|
263 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
264 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9590 | 265 |
"Modified: / 18-08-2006 / 17:13:45 / cg" |
9493 | 266 |
! |
267 |
||
10305 | 268 |
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
|
269 |
"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
|
270 |
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
|
271 |
$% characters have to be duplicated" |
10305 | 272 |
|
273 |
^ |
|
274 |
'# $','Header','$ |
|
275 |
# |
|
12095 | 276 |
# DO NOT EDIT |
14246 | 277 |
# automagically generated from the projectDefinition: ',self name",' at ',Timestamp now printString",'. |
10305 | 278 |
# |
279 |
# Warning: once you modify this file, do not rerun |
|
280 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
281 |
# |
|
13951
f4528d257651
use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents:
13788
diff
changeset
|
282 |
# Notice, that the name bc.mak is historical (from times, when only borland c was supported). |
f4528d257651
use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents:
13788
diff
changeset
|
283 |
# This file contains make rules for the win32 platform using either borland-bcc or visual-c. |
10305 | 284 |
# It shares common definitions with the unix-make in Make.spec. |
13951
f4528d257651
use objdir in librun (objbc or objvc), so both compiler outputs can coexist
Claus Gittinger <cg@exept.de>
parents:
13788
diff
changeset
|
285 |
# The bc.mak supports the following targets: |
10305 | 286 |
# bmake - compile all st-files to a classLib (dll) |
287 |
# bmake clean - clean all temp files |
|
288 |
# bmake clobber - clean all |
|
289 |
# |
|
13729 | 290 |
# Historic Note: |
14433 | 291 |
# this used to contain only rules to make with borland |
13729 | 292 |
# (called via bmake, by "make.exe -f bc.mak") |
13784 | 293 |
# this has changed; it is now also possible to build using microsoft visual c |
13729 | 294 |
# (called via vcmake, by "make.exe -f bc.mak -DUSEVC") |
10305 | 295 |
# |
296 |
TOP=%(TOP) |
|
297 |
INCLUDE_TOP=$(TOP)\.. |
|
298 |
||
11941
56b21fa6c358
base address definition moved into a separate spec
Claus Gittinger <cg@exept.de>
parents:
11687
diff
changeset
|
299 |
%(ADDITIONAL_BASE_ADDRESS_DEFINITION) |
56b21fa6c358
base address definition moved into a separate spec
Claus Gittinger <cg@exept.de>
parents:
11687
diff
changeset
|
300 |
|
10305 | 301 |
!!INCLUDE $(TOP)\rules\stdHeader_bc |
302 |
||
303 |
!!INCLUDE Make.spec |
|
304 |
||
305 |
LIBNAME=%(LIBRARY_NAME) |
|
17039 | 306 |
MODULE_PATH=%(MODULE_PATH) |
10305 | 307 |
RESFILES=%(RESFILENAME) |
10536
d1da7d71bcf5
Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents:
10417
diff
changeset
|
308 |
|
d1da7d71bcf5
Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents:
10417
diff
changeset
|
309 |
%(ADDITIONAL_DEFINITIONS) |
d1da7d71bcf5
Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents:
10417
diff
changeset
|
310 |
|
10305 | 311 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
10980 | 312 |
LOCALDEFINES=%(LOCAL_DEFINES) |
10305 | 313 |
|
314 |
STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
|
315 |
LOCALLIBS=%(ADDITIONAL_LINK_LIBRARIES) |
|
316 |
||
317 |
OBJS= $(COMMON_OBJS) $(WIN32_OBJS) |
|
318 |
||
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
|
319 |
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
|
320 |
|
12152
9d03dd3552a0
changed: classLibRule to include OUTDIR.
Claus Gittinger <cg@exept.de>
parents:
12095
diff
changeset
|
321 |
classLibRule: $(OUTDIR) $(OUTDIR)$(LIBNAME).dll |
10305 | 322 |
|
323 |
!!INCLUDE $(TOP)\rules\stdRules_bc |
|
324 |
||
14879 | 325 |
# build all mandatory prerequisite packages (containing superclasses) for this package |
11155
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
326 |
prereq: |
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
327 |
%(MAKE_PREREQUISITES) |
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
328 |
|
14879 | 329 |
|
10305 | 330 |
%(ADDITIONAL_RULES) |
15949 | 331 |
|
13685
069f722252d9
generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents:
13287
diff
changeset
|
332 |
%(ADDITIONAL_HEADERRULES) |
10305 | 333 |
|
21927 | 334 |
test: $(TOP)\goodies\builder\reports\ |
15949 | 335 |
pushd $(TOP)\goodies\builder\reports & $(MAKE_BAT) |
336 |
$(TOP)\goodies\builder\reports\report-runner.bat -D . -r Builder::TestReport -p $(PACKAGE) |
|
337 |
||
14807 | 338 |
clean:: |
19980 | 339 |
-del *.$(CSUFFIX) |
14807 | 340 |
|
15949 | 341 |
|
10305 | 342 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
343 |
%(DEPENDENCIES) |
|
344 |
# ENDMAKEDEPEND --- do not remove this line |
|
15949 | 345 |
%(ADDITIONAL_RULES_HG)' |
10305 | 346 |
|
347 |
"Created: / 09-08-2006 / 11:44:20 / fm" |
|
348 |
"Modified: / 09-08-2006 / 19:59:32 / fm" |
|
14246 | 349 |
"Modified: / 26-07-2012 / 00:57:20 / cg" |
15949 | 350 |
"Modified: / 28-11-2012 / 10:18:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
10305 | 351 |
! |
352 |
||
9493 | 353 |
extensionLine_libInit_dot_cc |
354 |
||
19308 | 355 |
^ ' _%(LIBRARY_NAME)_extensions_Init(pass,__pRT__,snd);' |
9493 | 356 |
|
357 |
"Created: / 08-08-2006 / 15:48:56 / fm" |
|
358 |
"Modified: / 08-08-2006 / 19:32:33 / fm" |
|
359 |
! |
|
360 |
||
361 |
libInit_dot_cc |
|
9576 | 362 |
"the template code for the libInit.cc file" |
9493 | 363 |
|
12095 | 364 |
^ |
9493 | 365 |
'/* |
9576 | 366 |
* $','Header','$ |
367 |
* |
|
12095 | 368 |
* DO NOT EDIT |
9576 | 369 |
* automagically generated from the projectDefinition: ',self name,'. |
9493 | 370 |
*/ |
371 |
#define __INDIRECTVMINITCALLS__ |
|
10377 | 372 |
#include <stc.h> |
10332
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
373 |
|
9493 | 374 |
#ifdef WIN32 |
375 |
# pragma codeseg INITCODE "INITCODE" |
|
12095 | 376 |
#endif |
10332
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
377 |
|
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
378 |
#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
|
379 |
DLL_EXPORT void _%(LIBRARY_NAME)_Init() INIT_TEXT_SECTION; |
14785 | 380 |
DLL_EXPORT void _%(LIBRARY_NAME)_InitDefinition() INIT_TEXT_SECTION; |
9493 | 381 |
#endif |
10332
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
382 |
|
19308 | 383 |
%(EXTERN_DECLARATIONS) |
384 |
||
385 |
void _%(LIBRARY_NAME)_InitDefinition(int pass, struct __vmData__ *__pRT__, OBJ snd) |
|
386 |
{ |
|
387 |
__BEGIN_PACKAGE2__("%(LIBRARY_NAME)__DFN", _%(LIBRARY_NAME)_InitDefinition, "%(PACKAGE)"); |
|
14785 | 388 |
%(DEFINITION_CLASSES) |
19308 | 389 |
__END_PACKAGE__(); |
14785 | 390 |
} |
12770
520a17d353eb
add an extra entry to the libInit.cc code:
Claus Gittinger <cg@exept.de>
parents:
12365
diff
changeset
|
391 |
|
19308 | 392 |
void _%(LIBRARY_NAME)_Init(int pass, struct __vmData__ *__pRT__, OBJ snd) |
393 |
{ |
|
394 |
__BEGIN_PACKAGE2__("%(LIBRARY_NAME)", _%(LIBRARY_NAME)_Init, "%(PACKAGE)"); |
|
9493 | 395 |
%(CLASSES) |
396 |
%(EXTENSION) |
|
19308 | 397 |
__END_PACKAGE__(); |
9902
74fab44fab6e
Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents:
9899
diff
changeset
|
398 |
} |
74fab44fab6e
Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents:
9899
diff
changeset
|
399 |
' |
9493 | 400 |
|
401 |
"Created: / 08-08-2006 / 12:40:45 / fm" |
|
402 |
"Modified: / 08-08-2006 / 19:33:01 / fm" |
|
9576 | 403 |
"Modified: / 18-08-2006 / 12:57:02 / cg" |
404 |
! |
|
405 |
||
9493 | 406 |
make_dot_proto |
407 |
||
12024 | 408 |
^ |
9576 | 409 |
'# $','Header','$ |
410 |
# |
|
12024 | 411 |
# DO NOT EDIT |
14246 | 412 |
# automagically generated from the projectDefinition: ',self name",' at ',Timestamp now printString",'. |
9576 | 413 |
# |
9493 | 414 |
# Warning: once you modify this file, do not rerun |
9576 | 415 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
9493 | 416 |
# |
417 |
# The Makefile as generated by this Make.proto supports the following targets: |
|
418 |
# make - compile all st-files to a classLib |
|
419 |
# make clean - clean all temp files |
|
420 |
# make clobber - clean all |
|
9576 | 421 |
# |
422 |
# This file contains definitions for Unix based platforms. |
|
9851 | 423 |
# It shares common definitions with the win32-make in Make.spec. |
9493 | 424 |
|
425 |
# |
|
426 |
# position (of this package) in directory hierarchy: |
|
427 |
# (must point to ST/X top directory, for tools and includes) |
|
428 |
TOP=%(TOP) |
|
9879 | 429 |
INCLUDE_TOP=$(TOP)/.. |
9493 | 430 |
|
431 |
# subdirectories where targets are to be made: |
|
432 |
SUBDIRS=%(SUBDIRECTORIES) |
|
433 |
||
434 |
||
435 |
# subdirectories where Makefiles are to be made: |
|
436 |
# (only define if different from SUBDIRS) |
|
437 |
# ALLSUBDIRS= |
|
438 |
||
11155
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
439 |
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS) |
9493 | 440 |
|
12024 | 441 |
# if your embedded C code requires any system includes, |
442 |
# add the path(es) here:, |
|
9493 | 443 |
# ********** OPTIONAL: MODIFY the next lines *** |
444 |
# LOCALINCLUDES=-Ifoo -Ibar |
|
445 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
446 |
||
447 |
||
12024 | 448 |
# if you need any additional defines for embedded C code, |
449 |
# add them here:, |
|
9493 | 450 |
# ********** OPTIONAL: MODIFY the next lines *** |
451 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
452 |
LOCALDEFINES=%(LOCAL_DEFINES) |
|
453 |
||
9818 | 454 |
LIBNAME=%(LIBRARY_NAME) |
9613 | 455 |
STCLOCALOPT=''-package=$(PACKAGE)'' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
9493 | 456 |
|
457 |
||
458 |
# ********** OPTIONAL: MODIFY the next line *** |
|
459 |
# additional C-libraries that should be pre-linked with the class-objects |
|
9734 | 460 |
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
|
461 |
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES) |
9493 | 462 |
|
463 |
||
464 |
# ********** OPTIONAL: MODIFY the next line *** |
|
465 |
# additional C targets or libraries should be added below |
|
466 |
LOCAL_EXTRA_TARGETS= |
|
467 |
||
9606 | 468 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
469 |
||
9626 | 470 |
%(ADDITIONAL_DEFINITIONS) |
471 |
||
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
|
472 |
all:: preMake %(PRIMARY_TARGET) postMake |
9493 | 473 |
|
12024 | 474 |
pre_objs:: %(ADDITIONAL_TARGETS) %(ADDITIONAL_TARGETS_SVN) |
9626 | 475 |
|
476 |
%(ADDITIONAL_RULES) |
|
9493 | 477 |
|
12024 | 478 |
%(ADDITIONAL_RULES_SVN) |
479 |
||
15949 | 480 |
%(ADDITIONAL_RULES_HG) |
481 |
||
13685
069f722252d9
generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents:
13287
diff
changeset
|
482 |
%(ADDITIONAL_HEADERRULES) |
069f722252d9
generate rules for header files of extended classes
Claus Gittinger <cg@exept.de>
parents:
13287
diff
changeset
|
483 |
|
15949 | 484 |
# run default testsuite for this package |
485 |
test: $(TOP)/goodies/builder/reports |
|
16194
92e1f555fb2a
Fixed target test after changing Makefile to Makefile.init
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15949
diff
changeset
|
486 |
$(MAKE) -C $(TOP)/goodies/builder/reports -f Makefile.init |
15949 | 487 |
$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE) |
488 |
||
489 |
||
490 |
||
9493 | 491 |
# add more install actions here |
492 |
install:: |
|
493 |
||
494 |
# add more install actions for aux-files (resources) here |
|
495 |
installAux:: |
|
496 |
||
497 |
# add more preMake actions here |
|
498 |
preMake:: |
|
499 |
||
500 |
# add more postMake actions here |
|
501 |
postMake:: cleanjunk |
|
502 |
||
14879 | 503 |
# build all mandatory prerequisite packages (containing superclasses) for this package |
504 |
prereq: |
|
11155
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
505 |
%(MAKE_PREREQUISITES) |
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
506 |
|
14879 | 507 |
# build all packages containing referenced classes for this package |
17231 | 508 |
# they are not needed to compile the package (but later, to load it) |
14879 | 509 |
references: |
510 |
%(MAKE_REFERENCES) |
|
511 |
||
9493 | 512 |
cleanjunk:: |
13788 | 513 |
%(TAB)-rm -f *.s *.s2 |
9493 | 514 |
|
515 |
clean:: |
|
9576 | 516 |
%(TAB)-rm -f *.o *.H |
9493 | 517 |
|
10805
92df6c9281f9
Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents:
10536
diff
changeset
|
518 |
clobber:: clean |
9576 | 519 |
%(TAB)-rm -f *.so *.dll |
9493 | 520 |
|
521 |
', |
|
522 |
" |
|
523 |
$(INSTALLBASE):: |
|
9576 | 524 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 525 |
|
526 |
$(INSTALLBASE)/packages:: $(INSTALLBASE) |
|
9576 | 527 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 528 |
|
529 |
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages |
|
9576 | 530 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 531 |
|
532 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx:: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 533 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 534 |
|
535 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx/interactiver_editor:: $(INSTALLBASE)/packages/$(MODULE)/dapasx |
|
9576 | 536 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 537 |
|
538 |
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 539 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 540 |
" |
541 |
' |
|
542 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
9851 | 543 |
%(DEPENDENCIES) |
9493 | 544 |
# ENDMAKEDEPEND --- do not remove this line |
545 |
||
546 |
' |
|
547 |
||
548 |
"Created: / 08-08-2006 / 20:45:36 / fm" |
|
549 |
"Modified: / 09-08-2006 / 16:50:23 / fm" |
|
12024 | 550 |
"Modified: / 24-06-2009 / 21:39:29 / Jan Vrany <vranyj1@fel.cvut.cz>" |
14246 | 551 |
"Modified: / 26-07-2012 / 00:57:29 / cg" |
16194
92e1f555fb2a
Fixed target test after changing Makefile to Makefile.init
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15949
diff
changeset
|
552 |
"Modified: / 03-03-2014 / 12:17:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
9493 | 553 |
! ! |
554 |
||
12087 | 555 |
|
11550 | 556 |
!LibraryDefinition class methodsFor:'obsolete'! |
557 |
||
558 |
lib_dot_rc |
|
559 |
<resource: #obsolete> |
|
560 |
||
12095 | 561 |
^ |
11550 | 562 |
'/*------------------------------------------------------------------------ |
12095 | 563 |
* $','Header','$ |
11550 | 564 |
* |
12095 | 565 |
* DO NOT EDIT |
11550 | 566 |
* automagically generated from the projectDefinition: ',self name,'. |
567 |
*------------------------------------------------------------------------*/ |
|
568 |
||
569 |
// #if (__BORLANDC__ < 0x0550) |
|
570 |
// #include <ver.h> |
|
571 |
// #endif |
|
572 |
||
573 |
VS_VERSION_INFO VERSIONINFO |
|
574 |
FILEVERSION %(FILEVERSION) |
|
575 |
PRODUCTVERSION %(PRODUCTVERSION) |
|
13984 | 576 |
#if (__BORLANDC__) |
11550 | 577 |
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE |
578 |
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD |
|
579 |
FILEOS VOS_NT_WINDOWS32 |
|
580 |
FILETYPE %(FILETYPE) |
|
581 |
FILESUBTYPE VS_USER_DEFINED |
|
13984 | 582 |
#endif |
11550 | 583 |
|
584 |
BEGIN |
|
585 |
BLOCK "StringFileInfo" |
|
586 |
BEGIN |
|
587 |
BLOCK "040904E4" |
|
588 |
BEGIN |
|
589 |
VALUE "CompanyName", %(COMPANYNAME) |
|
590 |
VALUE "FileDescription", "Smalltalk/X Additional Developer Basic Classes Library\0" |
|
591 |
VALUE "FileVersion", "5.2.8.1\0" |
|
592 |
VALUE "InternalName", "libbasic3\0" |
|
593 |
VALUE "LegalCopyright", "Copyright eXept Software AG 1998-2006\0" |
|
594 |
VALUE "ProductName", "Smalltalk/X\0" |
|
595 |
VALUE "ProductVersion", "5.2.8.1\0" |
|
596 |
END |
|
597 |
||
598 |
END |
|
599 |
||
600 |
BLOCK "VarFileInfo" |
|
601 |
BEGIN // Language | Translation |
|
602 |
VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual |
|
603 |
END |
|
604 |
END |
|
605 |
' |
|
606 |
||
607 |
"Created: / 17-08-2006 / 19:37:50 / cg" |
|
13984 | 608 |
"Modified: / 24-01-2012 / 18:35:45 / cg" |
11550 | 609 |
! ! |
610 |
||
9812 | 611 |
!LibraryDefinition class methodsFor:'queries'! |
612 |
||
17242 | 613 |
definitionClassOfApplicationBundle |
614 |
"Return the applicationDefinition of the applicationBundle or nil. |
|
615 |
This is the applicationDefinition of the package which gets actually deployed. |
|
616 |
For example, for all stx libraries, this will be stx_projects_smalltalk. |
|
617 |
For expecco, this would be exept_expecco_application. |
|
618 |
The algorithm here follows the parent hierarchy (not the class hierarchy) of the package name. |
|
619 |
Some classes may explicitly redefine this (if the folder structure is not hierarchical). |
|
620 |
This information is currently used for automatic check of language translations. |
|
621 |
||
622 |
Notice: libraries which are used by more than one project, should only return the one |
|
623 |
which is their 'natural' bundle - usually defined by the position in the package hierarchy. |
|
624 |
This is a little experimental - may change." |
|
625 |
||
626 |
|libPackageID parentPackageID parentDefinitionClass| |
|
627 |
||
628 |
libPackageID := self package asPackageId. |
|
629 |
[ |
|
630 |
parentPackageID := libPackageID parentPackage. |
|
631 |
parentPackageID isNil ifTrue:[^ nil]. |
|
632 |
||
633 |
parentDefinitionClass := parentPackageID projectDefinitionClass. |
|
634 |
parentDefinitionClass notNil ifTrue:[ |
|
635 |
^ parentDefinitionClass definitionClassOfApplicationBundle |
|
636 |
]. |
|
637 |
libPackageID := parentPackageID |
|
638 |
] loop. |
|
639 |
||
640 |
" |
|
641 |
exept_expecco definitionClassOfApplicationBundle |
|
642 |
" |
|
643 |
! |
|
644 |
||
19443 | 645 |
isAbstract |
646 |
^ self == LibraryDefinition |
|
647 |
! |
|
648 |
||
12333 | 649 |
projectType |
650 |
^ LibraryType |
|
17242 | 651 |
! |
652 |
||
653 |
supportedLanguages |
|
654 |
"Returns a list of languages that (should be / are) supported by this application or library. |
|
655 |
Currently this is only used by lint, to verify that the corresponding languages are |
|
656 |
present in the resource files." |
|
657 |
||
658 |
|app| |
|
659 |
||
660 |
(app := self definitionClassOfApplicationBundle) notNil ifTrue:[ |
|
661 |
^ app supportedLanguages |
|
662 |
]. |
|
663 |
^ super supportedLanguages. |
|
664 |
||
665 |
" |
|
666 |
exept_expecco definitionClassOfApplicationBundle |
|
19657 | 667 |
stx_libtool definitionClassOfApplicationBundle |
17242 | 668 |
" |
9812 | 669 |
! ! |
670 |
||
9568 | 671 |
!LibraryDefinition class methodsFor:'sanity checks'! |
9493 | 672 |
|
673 |
searchForInconsistencies |
|
674 |
self searchForNeverCompiledSuperclasses. |
|
675 |
||
676 |
" |
|
677 |
self searchForInconsistencies |
|
12095 | 678 |
DapasX_Datenbasis searchForInconsistencies |
9493 | 679 |
" |
680 |
||
681 |
"Created: / 09-08-2006 / 16:30:46 / fm" |
|
682 |
! |
|
683 |
||
684 |
searchForNeverCompiledSuperclasses |
|
12095 | 685 |
self compiled_classesDo:[:includedClass | |
12214
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
686 |
includedClass allSuperclassesDo:[:eachSuperClass | |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
687 |
eachSuperClass package == PackageId noProjectID ifTrue:[ |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
688 |
self inconsistency:'uncompiled superclass: ' , eachSuperClass name |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
689 |
]. |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
690 |
] |
9493 | 691 |
]. |
692 |
||
693 |
" |
|
694 |
self searchForNeverCompiledSuperclasses |
|
12095 | 695 |
DapasX_Datenbasis searchForNeverCompiledSuperclasses |
9493 | 696 |
" |
697 |
||
698 |
"Created: / 09-08-2006 / 16:31:54 / fm" |
|
699 |
! ! |
|
700 |
||
9568 | 701 |
!LibraryDefinition class methodsFor:'testing'! |
9558 | 702 |
|
9666 | 703 |
isLibraryDefinition |
14980 | 704 |
^ self isAbstract not |
9666 | 705 |
|
706 |
" |
|
707 |
stx_libboss isLibraryDefinition |
|
708 |
ProjectDefinition isLibraryDefinition |
|
709 |
LibraryDefinition isLibraryDefinition |
|
710 |
" |
|
711 |
||
712 |
"Created: / 23-08-2006 / 15:17:50 / cg" |
|
9558 | 713 |
! ! |
714 |
||
9568 | 715 |
!LibraryDefinition class methodsFor:'documentation'! |
9493 | 716 |
|
717 |
version |
|
18502 | 718 |
^ '$Header$' |
12087 | 719 |
! |
720 |
||
721 |
version_CVS |
|
18502 | 722 |
^ '$Header$' |
9493 | 723 |
! ! |
14785 | 724 |