author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 28 Feb 2013 23:20:11 +0100 | |
changeset 6017 | 0425d27d997d |
parent 5939 | 171fd09dc570 |
child 6022 | 6d21e8a9929a |
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 |
" |
|
5939 | 39 |
Build- and package 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 |
X11_LIBS=..\libbc\X11OMF.lib ..\libbc\XextOMF.lib |
|
82 |
!!else |
|
5813 | 83 |
!! ifdef USEVC |
5825 | 84 |
# X11_LIBS=..\libvc\X11.lib ..\libvc\Xext.lib |
5819 | 85 |
!! else |
86 |
!! endif |
|
5102 | 87 |
!!endif |
88 |
' |
|
5813 | 89 |
|
5825 | 90 |
"Modified: / 27-09-2011 / 18:25:27 / cg" |
5102 | 91 |
! |
92 |
||
93 |
additionalRules_bc_dot_mak |
|
94 |
^ '# |
|
95 |
||
96 |
..\libbc\X11OMF.lib: ..\support\win32\borland\X11OMF.lib |
|
5813 | 97 |
copy ..\support\win32\borland\X11OMF.lib ..\libbc |
5102 | 98 |
|
99 |
..\libbc\XextOMF.lib: ..\support\win32\borland\XextOMF.lib |
|
5813 | 100 |
copy ..\support\win32\borland\XextOMF.lib ..\libbc |
5102 | 101 |
|
5813 | 102 |
..\libvc\X11.lib: ..\support\win32\msc\X11.lib |
103 |
copy ..\support\win32\msc\X11.lib ..\libvc |
|
5102 | 104 |
|
5813 | 105 |
..\libvc\Xext.lib: ..\support\win32\msc\Xext.lib |
106 |
copy ..\support\win32\msc\Xext.lib ..\libvc |
|
5102 | 107 |
|
4698 | 108 |
' |
5813 | 109 |
|
110 |
"Modified: / 27-09-2011 / 18:10:19 / cg" |
|
4698 | 111 |
! |
112 |
||
113 |
additionalRules_make_dot_proto |
|
5789 | 114 |
^ ' |
5796 | 115 |
postMake:: $(LIBVIEW_EXTRA_TARGETS) |
116 |
||
5789 | 117 |
clean:: |
118 |
@-mv $(OUTDIR)XWorkstation.o $(OUTDIR)XWorkstation.o.sav |
|
119 |
@-mv $(OUTDIR)GLXWorkstation.o $(OUTDIR)GLXWorkstation.o.sav |
|
120 |
@-rm -f [A-Z]*.o *.s *.s2 *.c *.H |
|
121 |
@-mv $(OUTDIR)XWorkstation.o.sav $(OUTDIR)XWorkstation.o |
|
122 |
@-mv $(OUTDIR)GLXWorkstation.o.sav $(OUTDIR)GLXWorkstation.o |
|
123 |
@-touch $(OUTDIR)XWorkstation.st $(OUTDIR)GLXWorkstation.st |
|
124 |
||
125 |
# |
|
4698 | 126 |
# XWorkstatation and GLXWorkstatation are separate (shared) Objects - compile without sepInitCode |
127 |
# and without -Zlibview (to speedup ld.so on SGI, by avoiding conflicts) |
|
128 |
# |
|
129 |
||
130 |
XWorkstation.$(O): XWorkstation.st $(INCLUDE_TOP)/stx/libview/DeviceWorkstation.H $(INCLUDE_TOP)/stx/libview/HostGraphicsDevice.H $(INCLUDE_TOP)/stx/libview/GraphicsDevice.H |
|
5789 | 131 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=XWorkstation \ |
132 |
CC="$(CC)" OPT="$(OPT)" \ |
|
133 |
CLASSLIB_CC="$(CLASSLIB_CC)" \ |
|
134 |
CLASSLIB_OPT="$(CLASSLIB_OPT) -primitiveStackSize=64000" \ |
|
135 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
4698 | 136 |
|
137 |
xw: |
|
5789 | 138 |
$(MAKE) XWorkstation.c \ |
139 |
CC="$(CC)" OPT="$(OPT)" \ |
|
140 |
CLASSLIB_CC="$(CLASSLIB_CC)" \ |
|
141 |
CLASSLIB_OPT="$(CLASSLIB_OPT) -primitiveStackSize: 64000 -V" \ |
|
142 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
4698 | 143 |
|
144 |
XWorkstation.$(SO): XWorkstation.$(O) |
|
6017 | 145 |
$(MAKE) $(SHAREDLIBRULE) \ |
146 |
LIB=XWorkstation.$(SO) \ |
|
147 |
OBJS="XWorkstation.$(O)" \ |
|
148 |
LOCAL_SHARED_LIBS="-L$(TOP)/librun -lrun -L$(X_LIB_DIR) $(LIB_XEXT) $(LIB_XINERAMA) $(LIB_X) " |
|
149 |
||
4698 | 150 |
|
151 |
||
152 |
__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 |
|
5789 | 153 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=GLXWorkstation \ |
154 |
CC="$(CC)" OPT="$(OPT)" \ |
|
155 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" \ |
|
156 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
157 |
mv GLXWorkstation.$(O) __GLXWorkstation.$(O) |
|
4698 | 158 |
|
159 |
GLXWorkstation.$(O): glLib __GLXWorkstation.$(O) |
|
5789 | 160 |
@if [ "$(NO_PRELINK_LIBGL)" = "" ]; \ |
161 |
then\ |
|
162 |
echo $(CLASSLIB_LD) $(LD_REL_FLAG) -o GLXWorkstation.$(O) __GLXWorkstation.$(O) $(LIB_GL); \ |
|
163 |
$(CLASSLIB_LD) $(LD_REL_FLAG) -o GLXWorkstation.$(O) __GLXWorkstation.$(O) $(LIB_GL); \ |
|
164 |
else \ |
|
165 |
echo cp __GLXWorkstation.$(O) GLXWorkstation.$(O); \ |
|
166 |
cp __GLXWorkstation.$(O) GLXWorkstation.$(O); \ |
|
167 |
fi |
|
4698 | 168 |
|
169 |
glLib: |
|
5789 | 170 |
@-if [ -d ../support/VGL ]; then \ |
171 |
(cd ../support/VGL ; $(MAKE) ) ; \ |
|
172 |
fi |
|
4698 | 173 |
|
174 |
DeviceWorkstation.$(O): |
|
5789 | 175 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DeviceWorkstation \ |
176 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
177 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
4698 | 178 |
|
179 |
SimpleView.$(O): |
|
5789 | 180 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=SimpleView \ |
181 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
182 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
4698 | 183 |
|
184 |
Image.$(O): |
|
5789 | 185 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Image \ |
186 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
187 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
4698 | 188 |
|
189 |
#OGLWorkstation.$(O): OGLWorkstation.st |
|
190 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=OGLWorkstation CC=$(CC) OPT="$(OPT)" \ |
|
191 |
# XDEFS="-DOPENGL -I$(MESA_DIR)/include" SEPINITCODE=-sepInitCode ZFLAG= |
|
192 |
# $(CLASSLIB_LD) -r -o ttt.$(O) OGLWorkstation.$(O) \ |
|
193 |
# $(MESA_DIR)/lib/libMesaGL.a \ |
|
194 |
# $(MESA_DIR)/lib/libMesaGLU.a \ |
|
195 |
# $(MESA_DIR)/lib/libMesaaux.a |
|
196 |
# mv ttt.$(O) OGLWorkstation.$(O) |
|
197 |
||
198 |
OGLWorkstation.$(O): GLXWorkstation.st |
|
5789 | 199 |
cp GLXWorkstation.st OGLWorkstation.st |
200 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=OGLWorkstation \ |
|
201 |
CC="$(CC)" OPT="$(OPT)" \ |
|
202 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" \ |
|
203 |
CC_VOGL_FLAGS="$(CC_MESA_INCLUDE) -DOPENGL -DMESA -UVGL -UGLX"\ |
|
204 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
205 |
$(CLASSLIB_LD) -r -o ttt.$(O) OGLWorkstation.$(O) \ |
|
206 |
$(MESA_DIR)/lib/libMesaGL.a \ |
|
207 |
$(MESA_DIR)/lib/libMesaGLU.a \ |
|
208 |
$(MESA_DIR)/lib/libMesaaux.a |
|
209 |
mv ttt.$(O) OGLWorkstation.$(O) |
|
210 |
rm -f OGLWorkstation.st |
|
4698 | 211 |
|
212 |
#ogl: |
|
213 |
# $(MAKE) OGLWorkstation.o XDEFS="-DOPENGL -I$(VOGL_DIR) -DSHAPE" SEPINITCODE=-sepInitCode ZFLAG= |
|
214 |
# mv OGLWorkstation.o ttt.o |
|
215 |
# $(CLASSLIB_LD) -r -o OGLWorkstation.o ttt.o \ |
|
216 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaGL.a \ |
|
217 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaGLU.a \ |
|
218 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaaux.a \ |
|
219 |
# /lib/libc.so.4 |
|
220 |
||
221 |
# |
|
222 |
# on my 320H, do not compile DeviceWorkstation with -O2; |
|
223 |
# compiler is running out of space ... |
|
224 |
# |
|
225 |
#AIX_BIGGIES: |
|
226 |
# $(MAKE) GraphicsContext.$(O) |
|
227 |
# $(MAKE) DeviceGraphicsContext.$(O) |
|
228 |
# $(MAKE) OPT= DeviceWorkstation.$(O) |
|
229 |
# $(MAKE) OPT= XWorkstation.$(O) |
|
230 |
# $(MAKE) OPT= Image.$(O) |
|
231 |
# $(MAKE) OPT= SimpleView.$(O) |
|
232 |
||
233 |
# |
|
234 |
# prelink those - cannot mix non-shared with shared objects (sigh) |
|
235 |
# |
|
236 |
AIX_SHARED_XWORKSTATION: |
|
5789 | 237 |
$(MAKE) GraphicsDevice.$(O) HostGraphicsDevice.$(O) DeviceWorkstation.$(O) |
238 |
$(MAKE) aix_exports LIBNAME=XWorkstation ENTRY=XWorkstation |
|
239 |
@-echo "__XErrorHandler__" >> XWorkstation.exp |
|
240 |
@-echo "__XIOErrorHandler__" >> XWorkstation.exp |
|
241 |
$(MAKE) XWorkstation$(O_EXT) \ |
|
242 |
ENTRY_INIT=XWorkstation \ |
|
243 |
AIX_LOCAL_LIBS="$(LIBX)" |
|
4698 | 244 |
|
245 |
AIX_SHARED_GLXWORKSTATION: |
|
5789 | 246 |
$(MAKE) GraphicsDevice.$(O) HostGraphicsDevice.$(O) DeviceWorkstation.$(O) |
247 |
$(MAKE) aix_exports LIBNAME=XWorkstation ENTRY=XWorkstation |
|
248 |
@-echo "__XErrorHandler__" >> XWorkstation.exp |
|
249 |
@-echo "__XIOErrorHandler__" >> XWorkstation.exp |
|
250 |
$(MAKE) GLXWorkstation$(O_EXT) \ |
|
251 |
ENTRY_INIT=GLXWorkstation \ |
|
252 |
AIX_LOCAL_LIBS="-bI:XWorkstation.exp $(LIB_GL) $(LIBX) -lm" |
|
253 |
rm -f XWorkstation.exp |
|
4698 | 254 |
|
255 |
# |
|
256 |
# in (my) aix system, those cannot be compiled with |
|
257 |
# the optimizer - running out of space ... |
|
258 |
# |
|
259 |
AIX:: GraphicsContext.$(O) DeviceGraphicsContext.$(O) GraphicsMedium.$(O) DisplaySurface.$(O) |
|
5789 | 260 |
$(MAKE) OPT="" SimpleView.$(O) |
261 |
$(MAKE) OPT="" Image.$(O) |
|
262 |
$(MAKE) $(AIX_XWORKSTATION_RULE) $(AIX_GLXWORKSTATION_RULE) |
|
4698 | 263 |
|
264 |
# |
|
265 |
# on HP, big classes blow the C-preprocessor (stops with "too much defining" error) |
|
266 |
# |
|
267 |
#HP:: |
|
268 |
# |
|
269 |
#HPbigFiles: |
|
270 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Color CC=$(CC) OPT="$(OPT)" |
|
271 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DeviceGraphicsContext CC=$(CC) OPT="$(OPT)" |
|
272 |
' |
|
273 |
||
5796 | 274 |
"Modified: / 14-09-2011 / 13:50:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5789 | 275 |
! |
276 |
||
4698 | 277 |
localDefines_unix |
278 |
^ '-I$(XINCLUDE) $(XDEFS) $(CC_3D_FLAGS)' |
|
5492 | 279 |
! |
280 |
||
281 |
stcOptimizationOptions |
|
282 |
^ '+optinline +optinline2' |
|
4698 | 283 |
! ! |
284 |
||
4582 | 285 |
!stx_libview class methodsFor:'description - contents'! |
286 |
||
287 |
classNamesAndAttributes |
|
5501 | 288 |
"lists the classes which are to be included in the project. |
289 |
Each entry in the list may be: a single class-name (symbol), |
|
290 |
or an array-literal consisting of class name and attributes. |
|
291 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
292 |
||
4582 | 293 |
^ #( |
5305 | 294 |
"<className> or (<className> attributes...) in load order" |
295 |
(AlphaMask autoload) |
|
5861 | 296 |
BitmapFont |
5305 | 297 |
Border |
298 |
Color |
|
299 |
ColorPalette |
|
300 |
Colormap |
|
5861 | 301 |
CompoundFont |
5305 | 302 |
Controller |
303 |
(ControllerWithMenu autoload) |
|
304 |
Cursor |
|
305 |
Depth16Image |
|
306 |
Depth1Image |
|
307 |
Depth24Image |
|
308 |
Depth2Image |
|
309 |
Depth32Image |
|
310 |
Depth4Image |
|
311 |
Depth8Image |
|
312 |
DeviceGraphicsContext |
|
313 |
DeviceHandle |
|
314 |
DeviceWorkstation |
|
315 |
DisplayRootView |
|
316 |
DisplaySurface |
|
317 |
(FixedPalette autoload) |
|
318 |
Font |
|
319 |
FontDescription |
|
320 |
Form |
|
321 |
(GraphicsAttributes autoload) |
|
322 |
GraphicsContext |
|
323 |
GraphicsDevice |
|
324 |
GraphicsMedium |
|
325 |
HostGraphicsDevice |
|
326 |
Image |
|
327 |
ImageMask |
|
328 |
ImageReader |
|
329 |
KeyboardForwarder |
|
330 |
KeyboardMap |
|
331 |
(MDIChildView autoload) |
|
332 |
MappedPalette |
|
333 |
ModalBox |
|
334 |
MonoMappedPalette |
|
335 |
(NeXTWorkstation autoload) |
|
336 |
PopUpView |
|
337 |
ResourcePack |
|
338 |
ShadowView |
|
339 |
SimpleView |
|
340 |
StandardSystemView |
|
341 |
SynchronousWindowSensor |
|
342 |
TopView |
|
343 |
(TranslucentColor autoload) |
|
344 |
View |
|
345 |
ViewStyle |
|
346 |
(WinWorkstation win32) |
|
347 |
Event |
|
348 |
WindowEvent |
|
349 |
WindowGroup |
|
350 |
WindowSensor |
|
351 |
WindowingTransformation |
|
352 |
#'stx_libview' |
|
353 |
Depth48Image |
|
5312 | 354 |
Depth64Image |
5384 | 355 |
AbstractBorder |
356 |
SimpleBorder |
|
5404 | 357 |
BeveledBorder |
358 |
NoBackground |
|
359 |
ImageBackground |
|
360 |
SolidBackground |
|
361 |
AbstractBackground |
|
5435
81a316b3834a
changed: #classNamesAndAttributes
Claus Gittinger <cg@exept.de>
parents:
5434
diff
changeset
|
362 |
(RoundButtonBorder autoload) |
5702 | 363 |
GradientBackground |
5760 | 364 |
WidgetEvent |
5769 | 365 |
(XEmbedContainerView unix) |
366 |
). |
|
367 |
||
368 |
"Modified: / 30-06-2011 / 10:25:39 / cg" |
|
4582 | 369 |
! |
370 |
||
371 |
extensionMethodNames |
|
372 |
^ #( |
|
373 |
) |
|
374 |
! ! |
|
375 |
||
376 |
!stx_libview class methodsFor:'description - project information'! |
|
377 |
||
378 |
companyName |
|
379 |
"Return a companyname which will appear in <lib>.rc" |
|
380 |
||
381 |
^ 'eXept Software AG' |
|
382 |
! |
|
383 |
||
384 |
description |
|
385 |
"Return a description string which will appear in nt.def / bc.def" |
|
386 |
||
387 |
^ 'Smalltalk/X Low Level Graphic Interfacing' |
|
388 |
||
389 |
"Modified: / 14-09-2006 / 10:54:54 / cg" |
|
390 |
! |
|
391 |
||
392 |
legalCopyright |
|
393 |
"Return a copyright string which will appear in <lib>.rc" |
|
394 |
||
5921 | 395 |
^ 'Copyright Claus Gittinger 1988-2012\nCopyright eXept Software AG 1998-2012' |
4841 | 396 |
|
5921 | 397 |
"Modified: / 18-07-2012 / 19:12:02 / cg" |
4582 | 398 |
! ! |
399 |
||
400 |
!stx_libview class methodsFor:'documentation'! |
|
401 |
||
5819 | 402 |
version |
6017 | 403 |
^ '$Header: /cvs/stx/stx/libview/stx_libview.st,v 1.61 2013-02-28 22:20:11 vrany Exp $' |
5819 | 404 |
! |
405 |
||
5384 | 406 |
version_CVS |
6017 | 407 |
^ '$Header: /cvs/stx/stx/libview/stx_libview.st,v 1.61 2013-02-28 22:20:11 vrany Exp $' |
4582 | 408 |
! ! |