author | Stefan Vogel <sv@exept.de> |
Thu, 19 Feb 2009 12:34:47 +0100 | |
changeset 5199 | a45e3c7da5a5 |
parent 5195 | 923119e3ec9a |
child 5251 | 6b223fe54a68 |
permissions | -rw-r--r-- |
4582 | 1 |
"{ Package: 'stx:libview' }" |
2 |
||
3 |
LibraryDefinition subclass:#stx_libview |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
4746 | 7 |
category:'* Projects & Packages *' |
4582 | 8 |
! |
9 |
||
10 |
||
4775 | 11 |
!stx_libview class methodsFor:'description'! |
12 |
||
13 |
excludedFromPreRequisites |
|
14 |
^ #( |
|
15 |
#'stx:libcompat' "OrderedDither - referenced by Image>>convertToPalette:renderedBy: " |
|
16 |
#'stx:libtool' "GenericToolbarIconLibrary - referenced by SimpleView class>>readStyleSheet " |
|
17 |
#'stx:libtool2' "ImageEditor - referenced by Image>>edit " |
|
18 |
#'stx:libui' "ViewSpec - referenced by SimpleView>>specClass " |
|
19 |
#'stx:libview2' "TIFFReader - referenced by Image>>saveOn: " |
|
20 |
#'stx:libwidg' "Button - referenced by ModalBox>>initialize " |
|
21 |
#'stx:libwidg2' "ImageView - referenced by Form>>show " |
|
22 |
) |
|
23 |
! |
|
24 |
||
25 |
preRequisites |
|
26 |
^ #( |
|
27 |
#'stx:libbasic' "Object - superclass of MappedPalette " |
|
28 |
#'stx:libbasic2' "IntegerArray - referenced by XWorkstation>>supportedTargetAtoms " |
|
29 |
) |
|
30 |
! ! |
|
31 |
||
4698 | 32 |
!stx_libview class methodsFor:'description - compilation'! |
33 |
||
34 |
additionalDefinitions_bc_dot_mak |
|
35 |
^ ' |
|
36 |
# see stdHeader_bc for LIBVIEW_BASE |
|
37 |
LIB_BASE_LD_ARG=-b:$(LIBVIEW_BASE) |
|
5102 | 38 |
|
39 |
!!ifdef USEBC |
|
40 |
||
41 |
X11_LIBS=..\libbc\X11OMF.lib ..\libbc\XextOMF.lib |
|
42 |
||
43 |
!!else |
|
44 |
||
45 |
X11_LIBS=..\lib\X11.lib ..\lib\Xext.lib |
|
46 |
||
47 |
!!endif |
|
48 |
' |
|
49 |
! |
|
50 |
||
51 |
additionalRules_bc_dot_mak |
|
52 |
^ '# |
|
53 |
||
54 |
..\libbc\X11OMF.lib: ..\support\win32\borland\X11OMF.lib |
|
55 |
copy ..\support\win32\borland\X11OMF.lib ..\libbc |
|
56 |
||
57 |
..\libbc\XextOMF.lib: ..\support\win32\borland\XextOMF.lib |
|
58 |
copy ..\support\win32\borland\XextOMF.lib ..\libbc |
|
59 |
||
60 |
..\lib\X11.lib: ..\support\win32\msc\X11.lib |
|
61 |
copy ..\support\win32\borland\X11.lib ..\lib |
|
62 |
||
63 |
..\lib\Xext.lib: ..\support\win32\borland\Xext.lib |
|
64 |
copy ..\support\win32\borland\Xext.lib ..\lib |
|
65 |
||
4698 | 66 |
' |
67 |
! |
|
68 |
||
69 |
additionalRules_make_dot_proto |
|
70 |
^ '# |
|
71 |
# XWorkstatation and GLXWorkstatation are separate (shared) Objects - compile without sepInitCode |
|
72 |
# and without -Zlibview (to speedup ld.so on SGI, by avoiding conflicts) |
|
73 |
# |
|
74 |
||
75 |
XWorkstation.$(O): XWorkstation.st $(INCLUDE_TOP)/stx/libview/DeviceWorkstation.H $(INCLUDE_TOP)/stx/libview/HostGraphicsDevice.H $(INCLUDE_TOP)/stx/libview/GraphicsDevice.H |
|
76 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=XWorkstation \ |
|
77 |
CC="$(CC)" OPT="$(OPT)" \ |
|
78 |
CLASSLIB_CC="$(CLASSLIB_CC)" \ |
|
79 |
CLASSLIB_OPT="$(CLASSLIB_OPT) -primitiveStackSize=64000" \ |
|
80 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
81 |
||
82 |
xw: |
|
83 |
$(MAKE) XWorkstation.c \ |
|
84 |
CC="$(CC)" OPT="$(OPT)" \ |
|
85 |
CLASSLIB_CC="$(CLASSLIB_CC)" \ |
|
86 |
CLASSLIB_OPT="$(CLASSLIB_OPT) -primitiveStackSize: 64000 -V" \ |
|
87 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
88 |
||
89 |
XWorkstation.$(SO): XWorkstation.$(O) |
|
5195
923119e3ec9a
Do not need libXt (XToolkit) for compiling XWorkstation
Stefan Vogel <sv@exept.de>
parents:
5183
diff
changeset
|
90 |
$(MAKE) $(SHAREDLIBRULE) LIB=XWorkstation.$(SO) OBJS="XWorkstation.$(O)" LOCAL_SHARED_LIBS="-L$(X_LIB_DIR) $(LIB_X)" |
4698 | 91 |
|
92 |
||
93 |
__GLXWorkstation.$(O): GLXWorkstation.st $(INCLUDE_TOP)/stx/libview/XWorkstation.H $(INCLUDE_TOP)/stx/libview/DeviceWorkstation.H $(INCLUDE_TOP)/stx/libview/HostGraphicsDevice.H $(INCLUDE_TOP)/stx/libview/GraphicsDevice.H $(INCLUDE)/stc.h |
|
94 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=GLXWorkstation \ |
|
95 |
CC="$(CC)" OPT="$(OPT)" \ |
|
96 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" \ |
|
97 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
98 |
mv GLXWorkstation.$(O) __GLXWorkstation.$(O) |
|
99 |
||
100 |
GLXWorkstation.$(O): glLib __GLXWorkstation.$(O) |
|
101 |
@if [ "$(NO_PRELINK_LIBGL)" = "" ]; \ |
|
102 |
then\ |
|
103 |
echo $(CLASSLIB_LD) $(LD_REL_FLAG) -o GLXWorkstation.$(O) __GLXWorkstation.$(O) $(LIB_GL); \ |
|
104 |
$(CLASSLIB_LD) $(LD_REL_FLAG) -o GLXWorkstation.$(O) __GLXWorkstation.$(O) $(LIB_GL); \ |
|
105 |
else \ |
|
106 |
echo cp __GLXWorkstation.$(O) GLXWorkstation.$(O); \ |
|
107 |
cp __GLXWorkstation.$(O) GLXWorkstation.$(O); \ |
|
108 |
fi |
|
109 |
||
110 |
glLib: |
|
111 |
@-if [ -d ../support/VGL ]; then \ |
|
112 |
(cd ../support/VGL ; $(MAKE) ) ; \ |
|
113 |
fi |
|
114 |
||
115 |
DeviceWorkstation.$(O): |
|
116 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DeviceWorkstation \ |
|
117 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
118 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
119 |
||
120 |
SimpleView.$(O): |
|
121 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=SimpleView \ |
|
122 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
123 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
124 |
||
125 |
Image.$(O): |
|
126 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Image \ |
|
127 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
128 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
129 |
||
130 |
#OGLWorkstation.$(O): OGLWorkstation.st |
|
131 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=OGLWorkstation CC=$(CC) OPT="$(OPT)" \ |
|
132 |
# XDEFS="-DOPENGL -I$(MESA_DIR)/include" SEPINITCODE=-sepInitCode ZFLAG= |
|
133 |
# $(CLASSLIB_LD) -r -o ttt.$(O) OGLWorkstation.$(O) \ |
|
134 |
# $(MESA_DIR)/lib/libMesaGL.a \ |
|
135 |
# $(MESA_DIR)/lib/libMesaGLU.a \ |
|
136 |
# $(MESA_DIR)/lib/libMesaaux.a |
|
137 |
# mv ttt.$(O) OGLWorkstation.$(O) |
|
138 |
||
139 |
OGLWorkstation.$(O): GLXWorkstation.st |
|
140 |
cp GLXWorkstation.st OGLWorkstation.st |
|
141 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=OGLWorkstation \ |
|
142 |
CC="$(CC)" OPT="$(OPT)" \ |
|
143 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" \ |
|
144 |
CC_VOGL_FLAGS="$(CC_MESA_INCLUDE) -DOPENGL -DMESA -UVGL -UGLX"\ |
|
145 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
146 |
$(CLASSLIB_LD) -r -o ttt.$(O) OGLWorkstation.$(O) \ |
|
147 |
$(MESA_DIR)/lib/libMesaGL.a \ |
|
148 |
$(MESA_DIR)/lib/libMesaGLU.a \ |
|
149 |
$(MESA_DIR)/lib/libMesaaux.a |
|
150 |
mv ttt.$(O) OGLWorkstation.$(O) |
|
151 |
rm -f OGLWorkstation.st |
|
152 |
||
153 |
#ogl: |
|
154 |
# $(MAKE) OGLWorkstation.o XDEFS="-DOPENGL -I$(VOGL_DIR) -DSHAPE" SEPINITCODE=-sepInitCode ZFLAG= |
|
155 |
# mv OGLWorkstation.o ttt.o |
|
156 |
# $(CLASSLIB_LD) -r -o OGLWorkstation.o ttt.o \ |
|
157 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaGL.a \ |
|
158 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaGLU.a \ |
|
159 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaaux.a \ |
|
160 |
# /lib/libc.so.4 |
|
161 |
||
162 |
# |
|
163 |
# on my 320H, do not compile DeviceWorkstation with -O2; |
|
164 |
# compiler is running out of space ... |
|
165 |
# |
|
166 |
#AIX_BIGGIES: |
|
167 |
# $(MAKE) GraphicsContext.$(O) |
|
168 |
# $(MAKE) DeviceGraphicsContext.$(O) |
|
169 |
# $(MAKE) OPT= DeviceWorkstation.$(O) |
|
170 |
# $(MAKE) OPT= XWorkstation.$(O) |
|
171 |
# $(MAKE) OPT= Image.$(O) |
|
172 |
# $(MAKE) OPT= SimpleView.$(O) |
|
173 |
||
174 |
# |
|
175 |
# prelink those - cannot mix non-shared with shared objects (sigh) |
|
176 |
# |
|
177 |
AIX_SHARED_XWORKSTATION: |
|
178 |
$(MAKE) GraphicsDevice.$(O) HostGraphicsDevice.$(O) DeviceWorkstation.$(O) |
|
179 |
$(MAKE) aix_exports LIBNAME=XWorkstation ENTRY=XWorkstation |
|
180 |
@-echo "__XErrorHandler__" >> XWorkstation.exp |
|
181 |
@-echo "__XIOErrorHandler__" >> XWorkstation.exp |
|
182 |
$(MAKE) XWorkstation$(O_EXT) \ |
|
183 |
ENTRY_INIT=XWorkstation \ |
|
184 |
AIX_LOCAL_LIBS="$(LIBX)" |
|
185 |
||
186 |
AIX_SHARED_GLXWORKSTATION: |
|
187 |
$(MAKE) GraphicsDevice.$(O) HostGraphicsDevice.$(O) DeviceWorkstation.$(O) |
|
188 |
$(MAKE) aix_exports LIBNAME=XWorkstation ENTRY=XWorkstation |
|
189 |
@-echo "__XErrorHandler__" >> XWorkstation.exp |
|
190 |
@-echo "__XIOErrorHandler__" >> XWorkstation.exp |
|
191 |
$(MAKE) GLXWorkstation$(O_EXT) \ |
|
192 |
ENTRY_INIT=GLXWorkstation \ |
|
193 |
AIX_LOCAL_LIBS="-bI:XWorkstation.exp $(LIB_GL) $(LIBX) -lm" |
|
194 |
rm -f XWorkstation.exp |
|
195 |
||
196 |
# |
|
197 |
# in (my) aix system, those cannot be compiled with |
|
198 |
# the optimizer - running out of space ... |
|
199 |
# |
|
200 |
AIX:: GraphicsContext.$(O) DeviceGraphicsContext.$(O) GraphicsMedium.$(O) DisplaySurface.$(O) |
|
201 |
$(MAKE) OPT="" SimpleView.$(O) |
|
202 |
$(MAKE) OPT="" Image.$(O) |
|
203 |
$(MAKE) $(AIX_XWORKSTATION_RULE) $(AIX_GLXWORKSTATION_RULE) |
|
204 |
||
205 |
# |
|
206 |
# on HP, big classes blow the C-preprocessor (stops with "too much defining" error) |
|
207 |
# |
|
208 |
#HP:: |
|
209 |
# |
|
210 |
#HPbigFiles: |
|
211 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Color CC=$(CC) OPT="$(OPT)" |
|
212 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DeviceGraphicsContext CC=$(CC) OPT="$(OPT)" |
|
213 |
' |
|
214 |
! |
|
215 |
||
216 |
localDefines_unix |
|
217 |
^ '-I$(XINCLUDE) $(XDEFS) $(CC_3D_FLAGS)' |
|
218 |
! ! |
|
219 |
||
4582 | 220 |
!stx_libview class methodsFor:'description - contents'! |
221 |
||
222 |
classNamesAndAttributes |
|
223 |
^ #( |
|
4775 | 224 |
"<className> or (<className> attributes...) in load order" |
225 |
(AlphaMask autoload) |
|
226 |
(BitmapFont autoload) |
|
4924 | 227 |
Border |
4775 | 228 |
Color |
229 |
ColorPalette |
|
230 |
Colormap |
|
231 |
(CompoundFont autoload) |
|
232 |
Controller |
|
233 |
(ControllerWithMenu autoload) |
|
234 |
Cursor |
|
235 |
Depth16Image |
|
236 |
Depth1Image |
|
237 |
Depth24Image |
|
238 |
Depth2Image |
|
239 |
Depth32Image |
|
240 |
Depth4Image |
|
241 |
Depth8Image |
|
242 |
DeviceGraphicsContext |
|
243 |
DeviceHandle |
|
244 |
DeviceWorkstation |
|
245 |
DisplayRootView |
|
246 |
DisplaySurface |
|
247 |
(FixedPalette autoload) |
|
248 |
Font |
|
249 |
FontDescription |
|
250 |
Form |
|
251 |
(GraphicsAttributes autoload) |
|
252 |
GraphicsContext |
|
253 |
GraphicsDevice |
|
254 |
GraphicsMedium |
|
255 |
HostGraphicsDevice |
|
256 |
Image |
|
257 |
ImageMask |
|
258 |
ImageReader |
|
259 |
KeyboardForwarder |
|
260 |
KeyboardMap |
|
261 |
(MDIChildView autoload) |
|
262 |
MappedPalette |
|
263 |
ModalBox |
|
264 |
MonoMappedPalette |
|
265 |
(NeXTWorkstation autoload) |
|
266 |
PopUpView |
|
267 |
ResourcePack |
|
268 |
ShadowView |
|
269 |
SimpleView |
|
270 |
StandardSystemView |
|
271 |
SynchronousWindowSensor |
|
272 |
TopView |
|
273 |
(TranslucentColor autoload) |
|
274 |
View |
|
275 |
ViewStyle |
|
276 |
(WinWorkstation win32) |
|
277 |
WindowEvent |
|
278 |
WindowGroup |
|
279 |
WindowSensor |
|
280 |
WindowingTransformation |
|
281 |
#'stx_libview' |
|
4582 | 282 |
) |
283 |
! |
|
284 |
||
285 |
extensionMethodNames |
|
286 |
^ #( |
|
287 |
) |
|
288 |
! ! |
|
289 |
||
4583 | 290 |
!stx_libview class methodsFor:'description - files'! |
291 |
||
292 |
protectedFileNames |
|
293 |
"do NOT overwrite the hand-written Make.proto" |
|
294 |
||
4599 | 295 |
^ #( 'Make.proto' ) |
4583 | 296 |
|
297 |
"Created: / 14-09-2006 / 14:39:33 / cg" |
|
4599 | 298 |
"Modified: / 14-09-2006 / 16:15:22 / cg" |
4583 | 299 |
! ! |
300 |
||
4582 | 301 |
!stx_libview class methodsFor:'description - project information'! |
302 |
||
303 |
companyName |
|
304 |
"Return a companyname which will appear in <lib>.rc" |
|
305 |
||
306 |
^ 'eXept Software AG' |
|
307 |
! |
|
308 |
||
309 |
description |
|
310 |
"Return a description string which will appear in nt.def / bc.def" |
|
311 |
||
312 |
^ 'Smalltalk/X Low Level Graphic Interfacing' |
|
313 |
||
314 |
"Modified: / 14-09-2006 / 10:54:54 / cg" |
|
315 |
! |
|
316 |
||
317 |
legalCopyright |
|
318 |
"Return a copyright string which will appear in <lib>.rc" |
|
319 |
||
5155 | 320 |
^ 'Copyright Claus Gittinger 1988-2009\nCopyright eXept Software AG 1998-2009' |
4841 | 321 |
|
322 |
"Modified: / 08-11-2007 / 16:59:07 / cg" |
|
4582 | 323 |
! ! |
324 |
||
325 |
!stx_libview class methodsFor:'documentation'! |
|
326 |
||
327 |
version |
|
5199 | 328 |
^ '$Header: /cvs/stx/stx/libview/stx_libview.st,v 1.30 2009-02-19 11:34:47 stefan Exp $' |
4582 | 329 |
! ! |