author | Claus Gittinger <cg@exept.de> |
Fri, 06 Nov 2009 20:23:09 +0100 | |
changeset 5502 | dd398c0d323a |
parent 5501 | 2989d14afbfb |
child 5670 | 7a9301db9b16 |
permissions | -rw-r--r-- |
5252 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
5282 | 3 |
All Rights Reserved |
5252 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
4582 | 12 |
"{ Package: 'stx:libview' }" |
13 |
||
14 |
LibraryDefinition subclass:#stx_libview |
|
15 |
instanceVariableNames:'' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
4746 | 18 |
category:'* Projects & Packages *' |
4582 | 19 |
! |
20 |
||
5251 | 21 |
!stx_libview class methodsFor:'documentation'! |
22 |
||
5252 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
5282 | 26 |
All Rights Reserved |
5252 | 27 |
|
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
5251 | 37 |
documentation |
38 |
" |
|
5252 | 39 |
Build-Information for creation of the st/x standard library: stx_libview. |
5251 | 40 |
This library contains low level interfaces to the underlying graphic system |
41 |
and representations of windows, colors, bitmaps etc. |
|
42 |
" |
|
43 |
! ! |
|
4582 | 44 |
|
4775 | 45 |
!stx_libview class methodsFor:'description'! |
46 |
||
47 |
excludedFromPreRequisites |
|
48 |
^ #( |
|
5282 | 49 |
#'stx:libcompat' "OrderedDither - referenced by Image>>convertToPalette:renderedBy: " |
50 |
#'stx:libtool' "GenericToolbarIconLibrary - referenced by SimpleView class>>readStyleSheet " |
|
51 |
#'stx:libtool2' "ImageEditor - referenced by Image>>edit " |
|
52 |
#'stx:libui' "ViewSpec - referenced by SimpleView>>specClass " |
|
53 |
#'stx:libview2' "TIFFReader - referenced by Image>>saveOn: " |
|
54 |
#'stx:libwidg' "Button - referenced by ModalBox>>initialize " |
|
55 |
#'stx:libwidg2' "ImageView - referenced by Form>>show " |
|
4775 | 56 |
) |
57 |
! |
|
58 |
||
59 |
preRequisites |
|
60 |
^ #( |
|
5282 | 61 |
#'stx:libbasic' "Object - superclass of MappedPalette " |
62 |
#'stx:libbasic2' "IntegerArray - referenced by XWorkstation>>supportedTargetAtoms " |
|
4775 | 63 |
) |
64 |
! ! |
|
65 |
||
4698 | 66 |
!stx_libview class methodsFor:'description - compilation'! |
67 |
||
5347 | 68 |
additionalBaseAddressDefinition_bc_dot_mak |
69 |
"this is an optional definition, which (if present) may speed up the dll-loading a little |
|
70 |
on win32 systems." |
|
71 |
||
4698 | 72 |
^ ' |
73 |
# see stdHeader_bc for LIBVIEW_BASE |
|
5347 | 74 |
LIB_BASE=$(LIBVIEW_BASE) |
75 |
' |
|
76 |
! |
|
5102 | 77 |
|
5347 | 78 |
additionalDefinitions_bc_dot_mak |
79 |
^ ' |
|
5102 | 80 |
!!ifdef USEBC |
81 |
||
82 |
X11_LIBS=..\libbc\X11OMF.lib ..\libbc\XextOMF.lib |
|
83 |
||
84 |
!!else |
|
85 |
||
86 |
X11_LIBS=..\lib\X11.lib ..\lib\Xext.lib |
|
87 |
||
88 |
!!endif |
|
89 |
' |
|
90 |
! |
|
91 |
||
92 |
additionalRules_bc_dot_mak |
|
93 |
^ '# |
|
94 |
||
95 |
..\libbc\X11OMF.lib: ..\support\win32\borland\X11OMF.lib |
|
5282 | 96 |
copy ..\support\win32\borland\X11OMF.lib ..\libbc |
5102 | 97 |
|
98 |
..\libbc\XextOMF.lib: ..\support\win32\borland\XextOMF.lib |
|
5282 | 99 |
copy ..\support\win32\borland\XextOMF.lib ..\libbc |
5102 | 100 |
|
101 |
..\lib\X11.lib: ..\support\win32\msc\X11.lib |
|
5282 | 102 |
copy ..\support\win32\borland\X11.lib ..\lib |
5102 | 103 |
|
104 |
..\lib\Xext.lib: ..\support\win32\borland\Xext.lib |
|
5282 | 105 |
copy ..\support\win32\borland\Xext.lib ..\lib |
5102 | 106 |
|
4698 | 107 |
' |
108 |
! |
|
109 |
||
110 |
additionalRules_make_dot_proto |
|
111 |
^ '# |
|
112 |
# XWorkstatation and GLXWorkstatation are separate (shared) Objects - compile without sepInitCode |
|
113 |
# and without -Zlibview (to speedup ld.so on SGI, by avoiding conflicts) |
|
114 |
# |
|
115 |
||
116 |
XWorkstation.$(O): XWorkstation.st $(INCLUDE_TOP)/stx/libview/DeviceWorkstation.H $(INCLUDE_TOP)/stx/libview/HostGraphicsDevice.H $(INCLUDE_TOP)/stx/libview/GraphicsDevice.H |
|
5282 | 117 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=XWorkstation \ |
118 |
CC="$(CC)" OPT="$(OPT)" \ |
|
119 |
CLASSLIB_CC="$(CLASSLIB_CC)" \ |
|
120 |
CLASSLIB_OPT="$(CLASSLIB_OPT) -primitiveStackSize=64000" \ |
|
121 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
4698 | 122 |
|
123 |
xw: |
|
5282 | 124 |
$(MAKE) XWorkstation.c \ |
125 |
CC="$(CC)" OPT="$(OPT)" \ |
|
126 |
CLASSLIB_CC="$(CLASSLIB_CC)" \ |
|
127 |
CLASSLIB_OPT="$(CLASSLIB_OPT) -primitiveStackSize: 64000 -V" \ |
|
128 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
4698 | 129 |
|
130 |
XWorkstation.$(SO): XWorkstation.$(O) |
|
5282 | 131 |
$(MAKE) $(SHAREDLIBRULE) LIB=XWorkstation.$(SO) OBJS="XWorkstation.$(O)" LOCAL_SHARED_LIBS="-L$(X_LIB_DIR) $(LIB_X)" |
4698 | 132 |
|
133 |
||
134 |
__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 |
|
5282 | 135 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=GLXWorkstation \ |
136 |
CC="$(CC)" OPT="$(OPT)" \ |
|
137 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" \ |
|
138 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
139 |
mv GLXWorkstation.$(O) __GLXWorkstation.$(O) |
|
4698 | 140 |
|
141 |
GLXWorkstation.$(O): glLib __GLXWorkstation.$(O) |
|
5282 | 142 |
@if [ "$(NO_PRELINK_LIBGL)" = "" ]; \ |
143 |
then\ |
|
144 |
echo $(CLASSLIB_LD) $(LD_REL_FLAG) -o GLXWorkstation.$(O) __GLXWorkstation.$(O) $(LIB_GL); \ |
|
145 |
$(CLASSLIB_LD) $(LD_REL_FLAG) -o GLXWorkstation.$(O) __GLXWorkstation.$(O) $(LIB_GL); \ |
|
146 |
else \ |
|
147 |
echo cp __GLXWorkstation.$(O) GLXWorkstation.$(O); \ |
|
148 |
cp __GLXWorkstation.$(O) GLXWorkstation.$(O); \ |
|
149 |
fi |
|
4698 | 150 |
|
151 |
glLib: |
|
5282 | 152 |
@-if [ -d ../support/VGL ]; then \ |
153 |
(cd ../support/VGL ; $(MAKE) ) ; \ |
|
154 |
fi |
|
4698 | 155 |
|
156 |
DeviceWorkstation.$(O): |
|
5282 | 157 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DeviceWorkstation \ |
158 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
159 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
4698 | 160 |
|
161 |
SimpleView.$(O): |
|
5282 | 162 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=SimpleView \ |
163 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
164 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
4698 | 165 |
|
166 |
Image.$(O): |
|
5282 | 167 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Image \ |
168 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
169 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
4698 | 170 |
|
171 |
#OGLWorkstation.$(O): OGLWorkstation.st |
|
172 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=OGLWorkstation CC=$(CC) OPT="$(OPT)" \ |
|
173 |
# XDEFS="-DOPENGL -I$(MESA_DIR)/include" SEPINITCODE=-sepInitCode ZFLAG= |
|
174 |
# $(CLASSLIB_LD) -r -o ttt.$(O) OGLWorkstation.$(O) \ |
|
175 |
# $(MESA_DIR)/lib/libMesaGL.a \ |
|
176 |
# $(MESA_DIR)/lib/libMesaGLU.a \ |
|
177 |
# $(MESA_DIR)/lib/libMesaaux.a |
|
178 |
# mv ttt.$(O) OGLWorkstation.$(O) |
|
179 |
||
180 |
OGLWorkstation.$(O): GLXWorkstation.st |
|
5282 | 181 |
cp GLXWorkstation.st OGLWorkstation.st |
182 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=OGLWorkstation \ |
|
183 |
CC="$(CC)" OPT="$(OPT)" \ |
|
184 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" \ |
|
185 |
CC_VOGL_FLAGS="$(CC_MESA_INCLUDE) -DOPENGL -DMESA -UVGL -UGLX"\ |
|
186 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
187 |
$(CLASSLIB_LD) -r -o ttt.$(O) OGLWorkstation.$(O) \ |
|
188 |
$(MESA_DIR)/lib/libMesaGL.a \ |
|
189 |
$(MESA_DIR)/lib/libMesaGLU.a \ |
|
190 |
$(MESA_DIR)/lib/libMesaaux.a |
|
191 |
mv ttt.$(O) OGLWorkstation.$(O) |
|
192 |
rm -f OGLWorkstation.st |
|
4698 | 193 |
|
194 |
#ogl: |
|
195 |
# $(MAKE) OGLWorkstation.o XDEFS="-DOPENGL -I$(VOGL_DIR) -DSHAPE" SEPINITCODE=-sepInitCode ZFLAG= |
|
196 |
# mv OGLWorkstation.o ttt.o |
|
197 |
# $(CLASSLIB_LD) -r -o OGLWorkstation.o ttt.o \ |
|
198 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaGL.a \ |
|
199 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaGLU.a \ |
|
200 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaaux.a \ |
|
201 |
# /lib/libc.so.4 |
|
202 |
||
203 |
# |
|
204 |
# on my 320H, do not compile DeviceWorkstation with -O2; |
|
205 |
# compiler is running out of space ... |
|
206 |
# |
|
207 |
#AIX_BIGGIES: |
|
208 |
# $(MAKE) GraphicsContext.$(O) |
|
209 |
# $(MAKE) DeviceGraphicsContext.$(O) |
|
210 |
# $(MAKE) OPT= DeviceWorkstation.$(O) |
|
211 |
# $(MAKE) OPT= XWorkstation.$(O) |
|
212 |
# $(MAKE) OPT= Image.$(O) |
|
213 |
# $(MAKE) OPT= SimpleView.$(O) |
|
214 |
||
215 |
# |
|
216 |
# prelink those - cannot mix non-shared with shared objects (sigh) |
|
217 |
# |
|
218 |
AIX_SHARED_XWORKSTATION: |
|
5282 | 219 |
$(MAKE) GraphicsDevice.$(O) HostGraphicsDevice.$(O) DeviceWorkstation.$(O) |
220 |
$(MAKE) aix_exports LIBNAME=XWorkstation ENTRY=XWorkstation |
|
221 |
@-echo "__XErrorHandler__" >> XWorkstation.exp |
|
222 |
@-echo "__XIOErrorHandler__" >> XWorkstation.exp |
|
223 |
$(MAKE) XWorkstation$(O_EXT) \ |
|
224 |
ENTRY_INIT=XWorkstation \ |
|
225 |
AIX_LOCAL_LIBS="$(LIBX)" |
|
4698 | 226 |
|
227 |
AIX_SHARED_GLXWORKSTATION: |
|
5282 | 228 |
$(MAKE) GraphicsDevice.$(O) HostGraphicsDevice.$(O) DeviceWorkstation.$(O) |
229 |
$(MAKE) aix_exports LIBNAME=XWorkstation ENTRY=XWorkstation |
|
230 |
@-echo "__XErrorHandler__" >> XWorkstation.exp |
|
231 |
@-echo "__XIOErrorHandler__" >> XWorkstation.exp |
|
232 |
$(MAKE) GLXWorkstation$(O_EXT) \ |
|
233 |
ENTRY_INIT=GLXWorkstation \ |
|
234 |
AIX_LOCAL_LIBS="-bI:XWorkstation.exp $(LIB_GL) $(LIBX) -lm" |
|
235 |
rm -f XWorkstation.exp |
|
4698 | 236 |
|
237 |
# |
|
238 |
# in (my) aix system, those cannot be compiled with |
|
239 |
# the optimizer - running out of space ... |
|
240 |
# |
|
241 |
AIX:: GraphicsContext.$(O) DeviceGraphicsContext.$(O) GraphicsMedium.$(O) DisplaySurface.$(O) |
|
5282 | 242 |
$(MAKE) OPT="" SimpleView.$(O) |
243 |
$(MAKE) OPT="" Image.$(O) |
|
244 |
$(MAKE) $(AIX_XWORKSTATION_RULE) $(AIX_GLXWORKSTATION_RULE) |
|
4698 | 245 |
|
246 |
# |
|
247 |
# on HP, big classes blow the C-preprocessor (stops with "too much defining" error) |
|
248 |
# |
|
249 |
#HP:: |
|
250 |
# |
|
251 |
#HPbigFiles: |
|
252 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Color CC=$(CC) OPT="$(OPT)" |
|
253 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DeviceGraphicsContext CC=$(CC) OPT="$(OPT)" |
|
254 |
' |
|
255 |
! |
|
256 |
||
257 |
localDefines_unix |
|
258 |
^ '-I$(XINCLUDE) $(XDEFS) $(CC_3D_FLAGS)' |
|
5492 | 259 |
! |
260 |
||
261 |
stcOptimizationOptions |
|
262 |
^ '+optinline +optinline2' |
|
4698 | 263 |
! ! |
264 |
||
4582 | 265 |
!stx_libview class methodsFor:'description - contents'! |
266 |
||
267 |
classNamesAndAttributes |
|
5501 | 268 |
"lists the classes which are to be included in the project. |
269 |
Each entry in the list may be: a single class-name (symbol), |
|
270 |
or an array-literal consisting of class name and attributes. |
|
271 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
272 |
||
4582 | 273 |
^ #( |
5305 | 274 |
"<className> or (<className> attributes...) in load order" |
275 |
(AlphaMask autoload) |
|
276 |
(BitmapFont autoload) |
|
277 |
Border |
|
278 |
Color |
|
279 |
ColorPalette |
|
280 |
Colormap |
|
281 |
(CompoundFont autoload) |
|
282 |
Controller |
|
283 |
(ControllerWithMenu autoload) |
|
284 |
Cursor |
|
285 |
Depth16Image |
|
286 |
Depth1Image |
|
287 |
Depth24Image |
|
288 |
Depth2Image |
|
289 |
Depth32Image |
|
290 |
Depth4Image |
|
291 |
Depth8Image |
|
292 |
DeviceGraphicsContext |
|
293 |
DeviceHandle |
|
294 |
DeviceWorkstation |
|
295 |
DisplayRootView |
|
296 |
DisplaySurface |
|
297 |
(FixedPalette autoload) |
|
298 |
Font |
|
299 |
FontDescription |
|
300 |
Form |
|
301 |
(GraphicsAttributes autoload) |
|
302 |
GraphicsContext |
|
303 |
GraphicsDevice |
|
304 |
GraphicsMedium |
|
305 |
HostGraphicsDevice |
|
306 |
Image |
|
307 |
ImageMask |
|
308 |
ImageReader |
|
309 |
KeyboardForwarder |
|
310 |
KeyboardMap |
|
311 |
(MDIChildView autoload) |
|
312 |
MappedPalette |
|
313 |
ModalBox |
|
314 |
MonoMappedPalette |
|
315 |
(NeXTWorkstation autoload) |
|
316 |
PopUpView |
|
317 |
ResourcePack |
|
318 |
ShadowView |
|
319 |
SimpleView |
|
320 |
StandardSystemView |
|
321 |
SynchronousWindowSensor |
|
322 |
TopView |
|
323 |
(TranslucentColor autoload) |
|
324 |
View |
|
325 |
ViewStyle |
|
326 |
(WinWorkstation win32) |
|
327 |
Event |
|
328 |
WindowEvent |
|
329 |
WindowGroup |
|
330 |
WindowSensor |
|
331 |
WindowingTransformation |
|
332 |
#'stx_libview' |
|
333 |
Depth48Image |
|
5312 | 334 |
Depth64Image |
5384 | 335 |
AbstractBorder |
336 |
SimpleBorder |
|
5404 | 337 |
BeveledBorder |
338 |
NoBackground |
|
339 |
ImageBackground |
|
340 |
SolidBackground |
|
341 |
AbstractBackground |
|
5435
81a316b3834a
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
5434
diff
changeset
|
342 |
(RoundButtonBorder autoload) |
4582 | 343 |
) |
344 |
! |
|
345 |
||
346 |
extensionMethodNames |
|
347 |
^ #( |
|
348 |
) |
|
349 |
! ! |
|
350 |
||
4583 | 351 |
!stx_libview class methodsFor:'description - files'! |
352 |
||
353 |
protectedFileNames |
|
354 |
"do NOT overwrite the hand-written Make.proto" |
|
355 |
||
4599 | 356 |
^ #( 'Make.proto' ) |
4583 | 357 |
|
358 |
"Created: / 14-09-2006 / 14:39:33 / cg" |
|
4599 | 359 |
"Modified: / 14-09-2006 / 16:15:22 / cg" |
4583 | 360 |
! ! |
361 |
||
4582 | 362 |
!stx_libview class methodsFor:'description - project information'! |
363 |
||
364 |
companyName |
|
365 |
"Return a companyname which will appear in <lib>.rc" |
|
366 |
||
367 |
^ 'eXept Software AG' |
|
368 |
! |
|
369 |
||
370 |
description |
|
371 |
"Return a description string which will appear in nt.def / bc.def" |
|
372 |
||
373 |
^ 'Smalltalk/X Low Level Graphic Interfacing' |
|
374 |
||
375 |
"Modified: / 14-09-2006 / 10:54:54 / cg" |
|
376 |
! |
|
377 |
||
378 |
legalCopyright |
|
379 |
"Return a copyright string which will appear in <lib>.rc" |
|
380 |
||
5155 | 381 |
^ 'Copyright Claus Gittinger 1988-2009\nCopyright eXept Software AG 1998-2009' |
4841 | 382 |
|
383 |
"Modified: / 08-11-2007 / 16:59:07 / cg" |
|
4582 | 384 |
! ! |
385 |
||
386 |
!stx_libview class methodsFor:'documentation'! |
|
387 |
||
388 |
version |
|
5502 | 389 |
^ '$Header: /cvs/stx/stx/libview/stx_libview.st,v 1.43 2009-11-06 19:23:09 cg Exp $' |
5384 | 390 |
! |
391 |
||
392 |
version_CVS |
|
5502 | 393 |
^ '$Header: /cvs/stx/stx/libview/stx_libview.st,v 1.43 2009-11-06 19:23:09 cg Exp $' |
4582 | 394 |
! ! |