author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sun, 10 Jan 2010 13:30:21 +0000 | |
changeset 178 | 2ad34ca7768a |
parent 177 | 3362fc45bbfd |
child 179 | 81b698696ae2 |
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 |
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]. |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
28 |
|
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
29 |
" |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
30 |
self postLoadAction |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
31 |
" |
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 |
"Modified: / 25-03-2009 / 13:46:27 / Martin Plicka <plickm1@fel.cvut.cz>" |
76 | 34 |
|
35 |
! |
|
16
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
36 |
|
122 | 37 |
preLoadAction |
38 |
ObjectFileLoader searchedLibraries: |
|
39 |
(ObjectFileLoader searchedLibraries asOrderedCollection |
|
40 |
add: '/usr/lib/libexpat.so'; |
|
41 |
yourself) asArray |
|
42 |
||
43 |
! |
|
44 |
||
16
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
45 |
preRequisites |
173 | 46 |
"list all required packages. |
47 |
This list can be maintained manually or (better) generated and |
|
48 |
updated by scanning the superclass hierarchies and looking for |
|
49 |
global variable accesses. (the browser has a menu function for that) |
|
50 |
Howevery, often too much is found, and you may want to explicitely |
|
51 |
exclude individual packages in the #excludedFromPrerequisites method." |
|
52 |
||
16
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
53 |
^ #( |
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
54 |
#'stx:goodies/xml/vw' "XML::XMLParser - superclass of XMLv2::VWXMLReader::XMLParser " |
76 | 55 |
#'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
|
56 |
#'stx:libbasic' "Object - superclass of XMLv2::VWXMLReader " |
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
57 |
#'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
|
58 |
) |
173 | 59 |
! ! |
76 | 60 |
|
173 | 61 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - compilation'! |
62 |
||
178 | 63 |
additionalLinkLibraries_bc_dot_mak |
64 |
"allows for additional static libraries to be added to the bc.mak file. |
|
65 |
Subclasses may redefine this" |
|
66 |
||
67 |
"backward compatibilty with old projects" |
|
68 |
||
69 |
^'support/expat-2.0.1/bcb5/release/libexpats_mtd.lib' |
|
70 |
||
71 |
"Created: / 09-01-2010 / 14:01:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
72 |
! |
|
73 |
||
173 | 74 |
additionalLinkLibraries_make_dot_proto |
75 |
"allows for additional static libraries to be added to the make.proto file." |
|
76 |
||
77 |
^ 'support/expat-2.0.1/build/lib/libexpat.a' |
|
78 |
||
79 |
"Created: / 22-08-2006 / 23:53:33 / cg" |
|
80 |
! |
|
81 |
||
178 | 82 |
additionalRules_bc_dot_mak |
83 |
"obsolete - kept for compatibility with old project files" |
|
84 |
||
85 |
^ ' |
|
86 |
support/expat-2.0.1/bcb5/release/libexpats_mtd.lib: |
|
87 |
cd support/expat-2.0.1/bcb5 |
|
88 |
$(MAKE) |
|
89 |
cd ..\..\.. |
|
90 |
' |
|
91 |
||
92 |
"Created: / 09-01-2010 / 14:03:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
93 |
! |
|
94 |
||
173 | 95 |
additionalRules_make_dot_proto |
96 |
"allows for additional rules to be added to the make.proto file." |
|
97 |
||
98 |
^ ' |
|
99 |
support/expat-2.0.1/build/lib/libexpat.a: |
|
100 |
mkdir support/expat-2.0.1/build && cd support/expat-2.0.1/build && CFLAGS=-m32 ../configure --prefix=$$PWD |
|
101 |
$(MAKE) -C support/expat-2.0.1/build |
|
102 |
$(MAKE) -C support/expat-2.0.1/build install |
|
103 |
' |
|
104 |
||
105 |
"Created: / 22-08-2006 / 23:59:16 / cg" |
|
106 |
! |
|
107 |
||
178 | 108 |
additionalTargets_bc_dot_mak |
109 |
"obsolete - kept for compatibility with old project files" |
|
110 |
||
111 |
^ 'support/expat-2.0.1/bcb5/release/libexpats_mtd.lib' |
|
112 |
||
113 |
"Created: / 09-01-2010 / 14:02:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
114 |
! |
|
115 |
||
173 | 116 |
additionalTargets_make_dot_proto |
117 |
"allows for additional targets to be added to the make.proto file." |
|
118 |
||
119 |
^ 'support/expat-2.0.1/build/lib/libexpat.a' |
|
120 |
||
121 |
"Created: / 22-08-2006 / 23:53:33 / cg" |
|
178 | 122 |
! |
123 |
||
124 |
localIncludes |
|
125 |
"allow for the specification of additional include directories" |
|
126 |
||
127 |
^ '-Isupport/expat-2.0.1/lib' |
|
128 |
||
129 |
"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
|
130 |
! ! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
131 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
132 |
!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
|
133 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
134 |
classNamesAndAttributes |
173 | 135 |
"lists the classes which are to be included in the project. |
136 |
Each entry in the list may be: a single class-name (symbol), |
|
137 |
or an array-literal consisting of class name and attributes. |
|
138 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
139 |
||
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
140 |
^ #( |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
141 |
"<className> or (<className> attributes...) in load order" |
178 | 142 |
#'XMLv2::ExpatXMLReader' |
122 | 143 |
(#'XMLv2::XercesCXMLReader' autoload) |
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
144 |
#'XMLv2::VWSAXBuilder' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
145 |
#'XMLv2::VWXMLReader' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
146 |
#'stx_goodies_xmlsuite_xmlreaderimpl' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
147 |
) |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
148 |
! |
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 |
extensionMethodNames |
173 | 151 |
"lists the extension methods which are to be included in the project. |
152 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
153 |
||
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
154 |
^ #( |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
155 |
) |
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 |
!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
|
159 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
160 |
companyName |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
161 |
"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
|
162 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
163 |
^ 'eXept Software AG' |
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 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
166 |
description |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
167 |
"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
|
168 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
169 |
^ 'Smalltalk/X Class library' |
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 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
172 |
legalCopyright |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
173 |
"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
|
174 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
175 |
^ '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
|
176 |
! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
177 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
178 |
productName |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
179 |
"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
|
180 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
181 |
^ 'Smalltalk/X' |
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 |
|
122 | 184 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - svn'! |
185 |
||
186 |
svnRevisionNr |
|
187 |
"Return a SVN revision number of myself. |
|
188 |
This number is updated after a commit" |
|
189 |
||
177
3362fc45bbfd
stc compilation of ExpatXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
173
diff
changeset
|
190 |
^ "$SVN-Revision:"'174M'"$" |
122 | 191 |
! ! |
192 |
||
193 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'documentation'! |
|
194 |
||
195 |
version |
|
196 |
^'$Id$' |
|
173 | 197 |
! |
198 |
||
199 |
version_SVN |
|
200 |
^ '$Id$' |
|
122 | 201 |
! ! |