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