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