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