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