author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 13 Jan 2010 13:06:53 +0000 | |
changeset 181 | 7840b5c0de68 |
parent 179 | 81b698696ae2 |
child 183 | fb4333c69b2c |
permissions | -rw-r--r-- |
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
"{ Package: 'stx:goodies/xmlsuite/xmlreaderimpl' }" |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
2 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
3 |
LibraryDefinition subclass:#stx_goodies_xmlsuite_xmlreaderimpl |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
4 |
instanceVariableNames:'' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
5 |
classVariableNames:'' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
6 |
poolDictionaries:'' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
7 |
category:'* Projects & Packages *' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
8 |
! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
9 |
|
122 | 10 |
|
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
11 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description'! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
12 |
|
76 | 13 |
postLoadAction |
179 | 14 |
" |
81
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
15 |
| packageDir expatXMLReaderLib | |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
16 |
packageDir := Smalltalk getPackageDirectoryForPackage: self package. |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
17 |
|
84
938f18ef8d6e
Loading of precompiled binary classes reworked, now it should no longer cause segfault on image restart
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
18 |
expatXMLReaderLib := ((packageDir construct: 'precompiled') construct: Smalltalk versionString) construct: |
81
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
19 |
('XMLv2__ExpatXMLReader' , |
84
938f18ef8d6e
Loading of precompiled binary classes reworked, now it should no longer cause segfault on image restart
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
20 |
ObjectFileLoader sharedLibraryExtension). |
81
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
21 |
expatXMLReaderLib exists ifFalse: |
84
938f18ef8d6e
Loading of precompiled binary classes reworked, now it should no longer cause segfault on image restart
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
22 |
[expatXMLReaderLib := ((packageDir construct: 'precompiled') construct: 'common') construct: |
81
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
23 |
('XMLv2__ExpatXMLReader' , |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
24 |
ObjectFileLoader sharedLibraryExtension)]. |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
25 |
expatXMLReaderLib exists ifTrue: |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
26 |
[Transcript showCR:'Loading precompiled ExpatXMLReader class from: ' , expatXMLReaderLib nameString. |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
27 |
ObjectFileLoader loadObjectFile: expatXMLReaderLib nameString]. |
179 | 28 |
" |
29 |
||
81
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
30 |
" |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
31 |
self postLoadAction |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
32 |
" |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
33 |
|
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
34 |
"Modified: / 25-03-2009 / 13:46:27 / Martin Plicka <plickm1@fel.cvut.cz>" |
76 | 35 |
|
36 |
! |
|
16
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
37 |
|
122 | 38 |
preLoadAction |
179 | 39 |
" |
122 | 40 |
ObjectFileLoader searchedLibraries: |
41 |
(ObjectFileLoader searchedLibraries asOrderedCollection |
|
42 |
add: '/usr/lib/libexpat.so'; |
|
43 |
yourself) asArray |
|
179 | 44 |
" |
122 | 45 |
! |
46 |
||
16
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
47 |
preRequisites |
173 | 48 |
"list all required packages. |
49 |
This list can be maintained manually or (better) generated and |
|
50 |
updated by scanning the superclass hierarchies and looking for |
|
51 |
global variable accesses. (the browser has a menu function for that) |
|
52 |
Howevery, often too much is found, and you may want to explicitely |
|
53 |
exclude individual packages in the #excludedFromPrerequisites method." |
|
54 |
||
16
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
55 |
^ #( |
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
56 |
#'stx:goodies/xml/vw' "XML::XMLParser - superclass of XMLv2::VWXMLReader::XMLParser " |
76 | 57 |
#'stx:goodies/xmlsuite/core' "XMLv2::XMLReader - superclass of XMLv2::ExpatXMLReader " |
16
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
58 |
#'stx:libbasic' "Object - superclass of XMLv2::VWXMLReader " |
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
59 |
#'stx:libcomp' "ObjectFileLoader - referenced by stx_goodies_xmlsuite_xmlreaderimpl class>>preLoadAction " |
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
60 |
) |
173 | 61 |
! ! |
76 | 62 |
|
173 | 63 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - compilation'! |
64 |
||
178 | 65 |
additionalLinkLibraries_bc_dot_mak |
66 |
"allows for additional static libraries to be added to the bc.mak file. |
|
67 |
Subclasses may redefine this" |
|
68 |
||
69 |
"backward compatibilty with old projects" |
|
70 |
||
179 | 71 |
^'"support/expat-2.0.1/bcb5/release/libexpats_mtd.lib"' |
178 | 72 |
|
73 |
"Created: / 09-01-2010 / 14:01:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
74 |
! |
|
75 |
||
173 | 76 |
additionalLinkLibraries_make_dot_proto |
77 |
"allows for additional static libraries to be added to the make.proto file." |
|
78 |
||
79 |
^ 'support/expat-2.0.1/build/lib/libexpat.a' |
|
80 |
||
81 |
"Created: / 22-08-2006 / 23:53:33 / cg" |
|
82 |
! |
|
83 |
||
178 | 84 |
additionalRules_bc_dot_mak |
85 |
"obsolete - kept for compatibility with old project files" |
|
86 |
||
87 |
^ ' |
|
88 |
support/expat-2.0.1/bcb5/release/libexpats_mtd.lib: |
|
89 |
cd support/expat-2.0.1/bcb5 |
|
90 |
$(MAKE) |
|
91 |
cd ..\..\.. |
|
92 |
' |
|
93 |
||
94 |
"Created: / 09-01-2010 / 14:03:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
95 |
! |
|
96 |
||
173 | 97 |
additionalRules_make_dot_proto |
98 |
"allows for additional rules to be added to the make.proto file." |
|
99 |
||
100 |
^ ' |
|
101 |
support/expat-2.0.1/build/lib/libexpat.a: |
|
102 |
mkdir support/expat-2.0.1/build && cd support/expat-2.0.1/build && CFLAGS=-m32 ../configure --prefix=$$PWD |
|
103 |
$(MAKE) -C support/expat-2.0.1/build |
|
104 |
$(MAKE) -C support/expat-2.0.1/build install |
|
105 |
' |
|
106 |
||
107 |
"Created: / 22-08-2006 / 23:59:16 / cg" |
|
108 |
! |
|
109 |
||
178 | 110 |
additionalTargets_bc_dot_mak |
111 |
"obsolete - kept for compatibility with old project files" |
|
112 |
||
113 |
^ 'support/expat-2.0.1/bcb5/release/libexpats_mtd.lib' |
|
114 |
||
115 |
"Created: / 09-01-2010 / 14:02:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
116 |
! |
|
117 |
||
173 | 118 |
additionalTargets_make_dot_proto |
119 |
"allows for additional targets to be added to the make.proto file." |
|
120 |
||
121 |
^ 'support/expat-2.0.1/build/lib/libexpat.a' |
|
122 |
||
123 |
"Created: / 22-08-2006 / 23:53:33 / cg" |
|
178 | 124 |
! |
125 |
||
126 |
localIncludes |
|
127 |
"allow for the specification of additional include directories" |
|
128 |
||
129 |
^ '-Isupport/expat-2.0.1/lib' |
|
130 |
||
131 |
"Created: / 09-01-2010 / 14:03:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
132 |
! ! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
133 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
134 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - contents'! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
135 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
136 |
classNamesAndAttributes |
173 | 137 |
"lists the classes which are to be included in the project. |
138 |
Each entry in the list may be: a single class-name (symbol), |
|
139 |
or an array-literal consisting of class name and attributes. |
|
140 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
141 |
||
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
142 |
^ #( |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
143 |
"<className> or (<className> attributes...) in load order" |
178 | 144 |
#'XMLv2::ExpatXMLReader' |
122 | 145 |
(#'XMLv2::XercesCXMLReader' autoload) |
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
146 |
#'XMLv2::VWSAXBuilder' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
147 |
#'XMLv2::VWXMLReader' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
148 |
#'stx_goodies_xmlsuite_xmlreaderimpl' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
149 |
) |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
150 |
! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
151 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
152 |
extensionMethodNames |
173 | 153 |
"lists the extension methods which are to be included in the project. |
154 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
155 |
||
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
156 |
^ #( |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
157 |
) |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
158 |
! ! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
159 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
160 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - project information'! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
161 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
162 |
companyName |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
163 |
"Return a companyname which will appear in <lib>.rc" |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
164 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
165 |
^ 'eXept Software AG' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
166 |
! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
167 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
168 |
description |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
169 |
"Return a description string which will appear in vc.def / bc.def" |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
170 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
171 |
^ 'Smalltalk/X Class library' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
172 |
! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
173 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
174 |
legalCopyright |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
175 |
"Return a copyright string which will appear in <lib>.rc" |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
176 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
177 |
^ 'Copyright Claus Gittinger 1988-2008\nCopyright eXept Software AG 1998-2008' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
178 |
! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
179 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
180 |
productName |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
181 |
"Return a product name which will appear in <lib>.rc" |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
182 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
183 |
^ 'Smalltalk/X' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
184 |
! ! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
185 |
|
122 | 186 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - svn'! |
187 |
||
188 |
svnRevisionNr |
|
189 |
"Return a SVN revision number of myself. |
|
190 |
This number is updated after a commit" |
|
191 |
||
181 | 192 |
^ "$SVN-Revision:"'181M'"$" |
122 | 193 |
! ! |
194 |
||
195 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'documentation'! |
|
196 |
||
197 |
version |
|
198 |
^'$Id$' |
|
173 | 199 |
! |
200 |
||
201 |
version_SVN |
|
202 |
^ '$Id$' |
|
122 | 203 |
! ! |