author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 15 Aug 2017 13:46:01 +0100 | |
branch | jv |
changeset 8079 | 1bd22a3d8b03 |
parent 8074 | 863abc9d17bb |
child 8179 | ced410b68993 |
permissions | -rw-r--r-- |
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
1 |
"{ Encoding: utf8 }" |
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
2 |
|
5252 | 3 |
" |
7684 | 4 |
COPYRIGHT (c) Claus Gittinger / 2006 by eXept Software AG |
5 |
All Rights Reserved |
|
5252 | 6 |
|
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
4582 | 14 |
"{ Package: 'stx:libview' }" |
15 |
||
6739 | 16 |
"{ NameSpace: Smalltalk }" |
17 |
||
4582 | 18 |
LibraryDefinition subclass:#stx_libview |
19 |
instanceVariableNames:'' |
|
20 |
classVariableNames:'' |
|
21 |
poolDictionaries:'' |
|
4746 | 22 |
category:'* Projects & Packages *' |
4582 | 23 |
! |
24 |
||
5251 | 25 |
!stx_libview class methodsFor:'documentation'! |
26 |
||
5252 | 27 |
copyright |
28 |
" |
|
7684 | 29 |
COPYRIGHT (c) Claus Gittinger / 2006 by eXept Software AG |
30 |
All Rights Reserved |
|
5252 | 31 |
|
32 |
This software is furnished under a license and may be used |
|
33 |
only in accordance with the terms of that license and with the |
|
34 |
inclusion of the above copyright notice. This software may not |
|
35 |
be provided or otherwise made available to, or used by, any |
|
36 |
other person. No title to or ownership of the software is |
|
37 |
hereby transferred. |
|
38 |
" |
|
39 |
! |
|
40 |
||
5251 | 41 |
documentation |
42 |
" |
|
6756
c956283d57e8
comment/format in: #documentation
Claus Gittinger <cg@exept.de>
parents:
6739
diff
changeset
|
43 |
Package Documentation |
c956283d57e8
comment/format in: #documentation
Claus Gittinger <cg@exept.de>
parents:
6739
diff
changeset
|
44 |
|
5251 | 45 |
This library contains low level interfaces to the underlying graphic system |
6783 | 46 |
and representations of windows, fonts, colors, bitmaps etc. |
47 |
||
48 |
It does not contain medium level widget classes or applications/tools, |
|
49 |
but instead provides a device- and operating system independent layer on top of which |
|
50 |
GUI frameworks can be built. |
|
6784 | 51 |
|
52 |
It currently supports X11 and Windows-API. |
|
53 |
Native OSX support may be an option if there is sufficient demand for it |
|
54 |
(i.e. someone is willing to pay for its development). |
|
5251 | 55 |
" |
56 |
! ! |
|
4582 | 57 |
|
6523
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
58 |
!stx_libview class methodsFor:'accessing - hg - settings'! |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
59 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
60 |
hgEnsureCopyrightMethod |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
61 |
"If true, then #copyright method is automatically compiled in each class |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
62 |
(but iff project definition defines it) |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
63 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
64 |
Default is true (compile such method) but if the repository is mirror of CVS and |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
65 |
you want to merge back to CVS at some point, you may want to not compile them |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
66 |
to keep changes against CVS minimal" |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
67 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
68 |
^false |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
69 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
70 |
"Created: / 09-10-2013 / 15:39:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
71 |
! |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
72 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
73 |
hgEnsureVersion_HGMethod |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
74 |
"If true, then #version_HG method is automatically compiled in each class. |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
75 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
76 |
Default is true (compile such method) but if the repository is mirror of CVS and |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
77 |
you want to merge back to CVS at some point, you may want to not compile them |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
78 |
to keep changes against CVS minimal. |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
79 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
80 |
If false, version_HG is compiled only in classes that has been modified |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
81 |
and commited. |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
82 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
83 |
Note that Mercurial can live without them |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
84 |
just fine" |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
85 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
86 |
^false |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
87 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
88 |
"Created: / 09-10-2013 / 15:39:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
89 |
! |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
90 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
91 |
hgRemoveContainesForDeletedClasses |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
92 |
"If true, then containers for removed classes are __AUTOMATICALLY__ removed from the |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
93 |
repositoru. If false, obsolete containes are kept. |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
94 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
95 |
Default is true (remove obsolete containers) but if the repository is mirror of CVS and |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
96 |
you want to merge back to CVS at some point, you may want to return false to avoid deletions |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
97 |
of obsolete files. Usefull when branching off an old CVS repo with loads of mess." |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
98 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
99 |
^false |
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
100 |
|
b6dc0f5f499a
Created branch delegated_gc_jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6465
diff
changeset
|
101 |
"Created: / 09-10-2013 / 15:39:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5251 | 102 |
! ! |
4582 | 103 |
|
4775 | 104 |
!stx_libview class methodsFor:'description'! |
105 |
||
106 |
excludedFromPreRequisites |
|
107 |
^ #( |
|
7813 | 108 |
#'stx:libcompat' "OrderedDither - referenced by Image>>convertToPalette:renderedBy: " |
109 |
#'stx:libtool' "GenericToolbarIconLibrary - referenced by SimpleView class>>readStyleSheet " |
|
110 |
#'stx:libtool2' "ImageEditor - referenced by Image>>edit " |
|
111 |
#'stx:libui' "ViewSpec - referenced by SimpleView>>specClass " |
|
112 |
#'stx:libview2' "TIFFReader - referenced by Image>>saveOn: " |
|
113 |
#'stx:libwidg' "Button - referenced by ModalBox>>initialize " |
|
114 |
#'stx:libwidg2' "ImageView - referenced by Form>>show " |
|
115 |
#'stx:goodies/communication' "HTTPInterface - referenced by ImageReader class>>fromURL:" |
|
4775 | 116 |
) |
7813 | 117 |
|
118 |
"Modified: / 31-01-2017 / 13:35:51 / stefan" |
|
4775 | 119 |
! |
120 |
||
6022
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
121 |
mandatoryPreRequisites |
7813 | 122 |
"list packages which are mandatory as a prerequisite. |
123 |
This are packages containing superclasses of my classes and classes which |
|
124 |
are extended by myself. |
|
125 |
They are mandatory, because we need these packages as a prerequisite for loading and compiling. |
|
126 |
This method is generated automatically, |
|
127 |
by searching along the inheritance chain of all of my classes. |
|
128 |
Please take a look at the #referencedPreRequisites method as well." |
|
6022
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
129 |
|
4775 | 130 |
^ #( |
7813 | 131 |
#'stx:libbasic' "AllocationFailure - superclass of GraphicsDevice::GraphicResourceAllocationFailure" |
6022
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
132 |
) |
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
133 |
! |
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
134 |
|
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
135 |
referencedPreRequisites |
7813 | 136 |
"list packages which are a prerequisite, because they contain |
137 |
classes which are referenced by my classes. |
|
138 |
These packages are NOT needed as a prerequisite for compiling or loading, |
|
139 |
however, a class from it may be referenced during execution and having it |
|
140 |
unloaded then may lead to a runtime doesNotUnderstand error, unless the caller |
|
141 |
includes explicit checks for the package being present. |
|
142 |
This method is generated automatically, |
|
143 |
by searching all classes (and their packages) which are referenced by my classes. |
|
144 |
Please also take a look at the #mandatoryPreRequisites method" |
|
145 |
||
146 |
^ #( |
|
147 |
#'stx:libbasic2' "UUID - referenced by DisplayRootView>>uuid" |
|
148 |
) |
|
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
149 |
|
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
150 |
"Modified: / 31-01-2017 / 13:35:33 / stefan" |
7813 | 151 |
! |
152 |
||
153 |
subProjects |
|
154 |
"list packages which are known as subprojects. |
|
155 |
The generated makefile will enter those and make there as well. |
|
156 |
However: they are not forced to be loaded when a package is loaded; |
|
157 |
for those, redefine #referencedPrerequisites or #mandatoryPreRequisites." |
|
6022
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
158 |
|
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
159 |
^ #( |
4775 | 160 |
) |
161 |
! ! |
|
162 |
||
4698 | 163 |
!stx_libview class methodsFor:'description - compilation'! |
164 |
||
5347 | 165 |
additionalBaseAddressDefinition_bc_dot_mak |
166 |
"this is an optional definition, which (if present) may speed up the dll-loading a little |
|
167 |
on win32 systems." |
|
168 |
||
4698 | 169 |
^ ' |
170 |
# see stdHeader_bc for LIBVIEW_BASE |
|
5347 | 171 |
LIB_BASE=$(LIBVIEW_BASE) |
172 |
' |
|
173 |
! |
|
5102 | 174 |
|
5347 | 175 |
additionalDefinitions_bc_dot_mak |
176 |
^ ' |
|
5102 | 177 |
!!ifdef USEBC |
178 |
X11_LIBS=..\libbc\X11OMF.lib ..\libbc\XextOMF.lib |
|
179 |
!!else |
|
5813 | 180 |
!! ifdef USEVC |
5825 | 181 |
# X11_LIBS=..\libvc\X11.lib ..\libvc\Xext.lib |
5819 | 182 |
!! else |
183 |
!! endif |
|
5102 | 184 |
!!endif |
185 |
' |
|
5813 | 186 |
|
5825 | 187 |
"Modified: / 27-09-2011 / 18:25:27 / cg" |
5102 | 188 |
! |
189 |
||
6444 | 190 |
additionalDefinitions_make_dot_proto |
191 |
^ ' |
|
6450 | 192 |
LOCAL_SHARED_LIBS=-L$(X_LIB_DIR) $(LIB_XEXT) $(LIB_XINERAMA) $(LIB_XFT) $(LIB_X) $(LIBRUN_LINK_LIB) |
6444 | 193 |
' |
194 |
! |
|
195 |
||
5102 | 196 |
additionalRules_bc_dot_mak |
197 |
^ '# |
|
198 |
||
199 |
..\libbc\X11OMF.lib: ..\support\win32\borland\X11OMF.lib |
|
5813 | 200 |
copy ..\support\win32\borland\X11OMF.lib ..\libbc |
5102 | 201 |
|
202 |
..\libbc\XextOMF.lib: ..\support\win32\borland\XextOMF.lib |
|
5813 | 203 |
copy ..\support\win32\borland\XextOMF.lib ..\libbc |
5102 | 204 |
|
5813 | 205 |
..\libvc\X11.lib: ..\support\win32\msc\X11.lib |
206 |
copy ..\support\win32\msc\X11.lib ..\libvc |
|
5102 | 207 |
|
5813 | 208 |
..\libvc\Xext.lib: ..\support\win32\msc\Xext.lib |
209 |
copy ..\support\win32\msc\Xext.lib ..\libvc |
|
5102 | 210 |
|
4698 | 211 |
' |
5813 | 212 |
|
213 |
"Modified: / 27-09-2011 / 18:10:19 / cg" |
|
4698 | 214 |
! |
215 |
||
216 |
additionalRules_make_dot_proto |
|
5789 | 217 |
^ ' |
5796 | 218 |
postMake:: $(LIBVIEW_EXTRA_TARGETS) |
219 |
||
5789 | 220 |
clean:: |
221 |
@-mv $(OUTDIR)XWorkstation.o $(OUTDIR)XWorkstation.o.sav |
|
222 |
@-mv $(OUTDIR)GLXWorkstation.o $(OUTDIR)GLXWorkstation.o.sav |
|
223 |
@-rm -f [A-Z]*.o *.s *.s2 *.c *.H |
|
224 |
@-mv $(OUTDIR)XWorkstation.o.sav $(OUTDIR)XWorkstation.o |
|
225 |
@-mv $(OUTDIR)GLXWorkstation.o.sav $(OUTDIR)GLXWorkstation.o |
|
226 |
@-touch $(OUTDIR)XWorkstation.st $(OUTDIR)GLXWorkstation.st |
|
227 |
||
228 |
# |
|
4698 | 229 |
# XWorkstatation and GLXWorkstatation are separate (shared) Objects - compile without sepInitCode |
230 |
# and without -Zlibview (to speedup ld.so on SGI, by avoiding conflicts) |
|
231 |
# |
|
232 |
||
233 |
XWorkstation.$(O): XWorkstation.st $(INCLUDE_TOP)/stx/libview/DeviceWorkstation.H $(INCLUDE_TOP)/stx/libview/HostGraphicsDevice.H $(INCLUDE_TOP)/stx/libview/GraphicsDevice.H |
|
5789 | 234 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=XWorkstation \ |
235 |
CC="$(CC)" OPT="$(OPT)" \ |
|
236 |
CLASSLIB_CC="$(CLASSLIB_CC)" \ |
|
237 |
CLASSLIB_OPT="$(CLASSLIB_OPT) -primitiveStackSize=64000" \ |
|
238 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
4698 | 239 |
|
240 |
xw: |
|
5789 | 241 |
$(MAKE) XWorkstation.c \ |
242 |
CC="$(CC)" OPT="$(OPT)" \ |
|
243 |
CLASSLIB_CC="$(CLASSLIB_CC)" \ |
|
244 |
CLASSLIB_OPT="$(CLASSLIB_OPT) -primitiveStackSize: 64000 -V" \ |
|
245 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
4698 | 246 |
|
247 |
XWorkstation.$(SO): XWorkstation.$(O) |
|
6017 | 248 |
$(MAKE) $(SHAREDLIBRULE) \ |
249 |
LIB=XWorkstation.$(SO) \ |
|
250 |
OBJS="XWorkstation.$(O)" \ |
|
6419 | 251 |
LOCAL_SHARED_LIBS="-L$(X_LIB_DIR) $(LIB_XEXT) $(LIB_XINERAMA) $(LIB_XFT) $(LIB_X) $(LIBRUN_LINK_LIB) " |
252 |
||
253 |
# LOCAL_SHARED_LIBS="-L$(TOP)/librun -lrun -L$(X_LIB_DIR) $(LIB_XEXT) $(LIB_XINERAMA) $(LIB_X) " |
|
6017 | 254 |
|
4698 | 255 |
|
256 |
||
6869
71ae7193bb1c
Build files: fixed dependency for GLXWorkstation
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6867
diff
changeset
|
257 |
__GLXWorkstation.$(O): GLXWorkstation.st $(INCLUDE_TOP)/stx/libview/XWorkstation.$(O) $(INCLUDE_TOP)/stx/libview/DeviceWorkstation.H $(INCLUDE_TOP)/stx/libview/HostGraphicsDevice.H $(INCLUDE_TOP)/stx/libview/GraphicsDevice.H $(INCLUDE)/stc.h |
5789 | 258 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=GLXWorkstation \ |
259 |
CC="$(CC)" OPT="$(OPT)" \ |
|
260 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" \ |
|
261 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
262 |
mv GLXWorkstation.$(O) __GLXWorkstation.$(O) |
|
4698 | 263 |
|
264 |
GLXWorkstation.$(O): glLib __GLXWorkstation.$(O) |
|
5789 | 265 |
@if [ "$(NO_PRELINK_LIBGL)" = "" ]; \ |
266 |
then\ |
|
267 |
echo $(CLASSLIB_LD) $(LD_REL_FLAG) -o GLXWorkstation.$(O) __GLXWorkstation.$(O) $(LIB_GL); \ |
|
268 |
$(CLASSLIB_LD) $(LD_REL_FLAG) -o GLXWorkstation.$(O) __GLXWorkstation.$(O) $(LIB_GL); \ |
|
269 |
else \ |
|
270 |
echo cp __GLXWorkstation.$(O) GLXWorkstation.$(O); \ |
|
271 |
cp __GLXWorkstation.$(O) GLXWorkstation.$(O); \ |
|
272 |
fi |
|
4698 | 273 |
|
274 |
glLib: |
|
5789 | 275 |
@-if [ -d ../support/VGL ]; then \ |
276 |
(cd ../support/VGL ; $(MAKE) ) ; \ |
|
277 |
fi |
|
4698 | 278 |
|
279 |
DeviceWorkstation.$(O): |
|
5789 | 280 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DeviceWorkstation \ |
281 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
282 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
4698 | 283 |
|
284 |
SimpleView.$(O): |
|
5789 | 285 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=SimpleView \ |
286 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
287 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
4698 | 288 |
|
289 |
Image.$(O): |
|
5789 | 290 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Image \ |
291 |
CC="$(CC)" OPT="$(OPT)" SEPINITCODE="$(SEPINITCODE)" \ |
|
292 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" |
|
4698 | 293 |
|
294 |
#OGLWorkstation.$(O): OGLWorkstation.st |
|
295 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=OGLWorkstation CC=$(CC) OPT="$(OPT)" \ |
|
296 |
# XDEFS="-DOPENGL -I$(MESA_DIR)/include" SEPINITCODE=-sepInitCode ZFLAG= |
|
297 |
# $(CLASSLIB_LD) -r -o ttt.$(O) OGLWorkstation.$(O) \ |
|
298 |
# $(MESA_DIR)/lib/libMesaGL.a \ |
|
299 |
# $(MESA_DIR)/lib/libMesaGLU.a \ |
|
300 |
# $(MESA_DIR)/lib/libMesaaux.a |
|
301 |
# mv ttt.$(O) OGLWorkstation.$(O) |
|
302 |
||
303 |
OGLWorkstation.$(O): GLXWorkstation.st |
|
5789 | 304 |
cp GLXWorkstation.st OGLWorkstation.st |
305 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=OGLWorkstation \ |
|
306 |
CC="$(CC)" OPT="$(OPT)" \ |
|
307 |
CLASSLIB_CC="$(CLASSLIB_CC)" CLASSLIB_OPT="$(CLASSLIB_OPT)" \ |
|
308 |
CC_VOGL_FLAGS="$(CC_MESA_INCLUDE) -DOPENGL -DMESA -UVGL -UGLX"\ |
|
309 |
SEPINITCODE=-sepInitCode ZFLAG= |
|
310 |
$(CLASSLIB_LD) -r -o ttt.$(O) OGLWorkstation.$(O) \ |
|
311 |
$(MESA_DIR)/lib/libMesaGL.a \ |
|
312 |
$(MESA_DIR)/lib/libMesaGLU.a \ |
|
313 |
$(MESA_DIR)/lib/libMesaaux.a |
|
314 |
mv ttt.$(O) OGLWorkstation.$(O) |
|
315 |
rm -f OGLWorkstation.st |
|
4698 | 316 |
|
317 |
#ogl: |
|
318 |
# $(MAKE) OGLWorkstation.o XDEFS="-DOPENGL -I$(VOGL_DIR) -DSHAPE" SEPINITCODE=-sepInitCode ZFLAG= |
|
319 |
# mv OGLWorkstation.o ttt.o |
|
320 |
# $(CLASSLIB_LD) -r -o OGLWorkstation.o ttt.o \ |
|
321 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaGL.a \ |
|
322 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaGLU.a \ |
|
323 |
# $(TOP)/support/MESA/Mesa1.2.5/lib/libMesaaux.a \ |
|
324 |
# /lib/libc.so.4 |
|
325 |
||
326 |
# |
|
327 |
# on my 320H, do not compile DeviceWorkstation with -O2; |
|
328 |
# compiler is running out of space ... |
|
329 |
# |
|
330 |
#AIX_BIGGIES: |
|
331 |
# $(MAKE) GraphicsContext.$(O) |
|
332 |
# $(MAKE) DeviceGraphicsContext.$(O) |
|
333 |
# $(MAKE) OPT= DeviceWorkstation.$(O) |
|
334 |
# $(MAKE) OPT= XWorkstation.$(O) |
|
335 |
# $(MAKE) OPT= Image.$(O) |
|
336 |
# $(MAKE) OPT= SimpleView.$(O) |
|
337 |
||
338 |
# |
|
339 |
# prelink those - cannot mix non-shared with shared objects (sigh) |
|
340 |
# |
|
341 |
AIX_SHARED_XWORKSTATION: |
|
5789 | 342 |
$(MAKE) GraphicsDevice.$(O) HostGraphicsDevice.$(O) DeviceWorkstation.$(O) |
343 |
$(MAKE) aix_exports LIBNAME=XWorkstation ENTRY=XWorkstation |
|
344 |
@-echo "__XErrorHandler__" >> XWorkstation.exp |
|
345 |
@-echo "__XIOErrorHandler__" >> XWorkstation.exp |
|
346 |
$(MAKE) XWorkstation$(O_EXT) \ |
|
347 |
ENTRY_INIT=XWorkstation \ |
|
348 |
AIX_LOCAL_LIBS="$(LIBX)" |
|
4698 | 349 |
|
350 |
AIX_SHARED_GLXWORKSTATION: |
|
5789 | 351 |
$(MAKE) GraphicsDevice.$(O) HostGraphicsDevice.$(O) DeviceWorkstation.$(O) |
352 |
$(MAKE) aix_exports LIBNAME=XWorkstation ENTRY=XWorkstation |
|
353 |
@-echo "__XErrorHandler__" >> XWorkstation.exp |
|
354 |
@-echo "__XIOErrorHandler__" >> XWorkstation.exp |
|
355 |
$(MAKE) GLXWorkstation$(O_EXT) \ |
|
356 |
ENTRY_INIT=GLXWorkstation \ |
|
357 |
AIX_LOCAL_LIBS="-bI:XWorkstation.exp $(LIB_GL) $(LIBX) -lm" |
|
358 |
rm -f XWorkstation.exp |
|
4698 | 359 |
|
360 |
# |
|
361 |
# in (my) aix system, those cannot be compiled with |
|
362 |
# the optimizer - running out of space ... |
|
363 |
# |
|
364 |
AIX:: GraphicsContext.$(O) DeviceGraphicsContext.$(O) GraphicsMedium.$(O) DisplaySurface.$(O) |
|
5789 | 365 |
$(MAKE) OPT="" SimpleView.$(O) |
366 |
$(MAKE) OPT="" Image.$(O) |
|
367 |
$(MAKE) $(AIX_XWORKSTATION_RULE) $(AIX_GLXWORKSTATION_RULE) |
|
4698 | 368 |
|
369 |
# |
|
370 |
# on HP, big classes blow the C-preprocessor (stops with "too much defining" error) |
|
371 |
# |
|
372 |
#HP:: |
|
373 |
# |
|
374 |
#HPbigFiles: |
|
375 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Color CC=$(CC) OPT="$(OPT)" |
|
376 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=DeviceGraphicsContext CC=$(CC) OPT="$(OPT)" |
|
377 |
' |
|
378 |
||
5796 | 379 |
"Modified: / 14-09-2011 / 13:50:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
5789 | 380 |
! |
381 |
||
4698 | 382 |
localDefines_unix |
6413 | 383 |
^ '$(XINCLUDE) $(XDEFS) $(CC_3D_FLAGS)' |
5492 | 384 |
! |
385 |
||
6889 | 386 |
localIncludes |
387 |
^ '$(OPTIONAL_SUPPORT_XLIB_INCLUDE)' |
|
388 |
! |
|
389 |
||
5492 | 390 |
stcOptimizationOptions |
391 |
^ '+optinline +optinline2' |
|
6600 | 392 |
! |
393 |
||
394 |
stcWarningOptions |
|
395 |
^ '-warnNonStandard -warnUnused' |
|
4698 | 396 |
! ! |
397 |
||
4582 | 398 |
!stx_libview class methodsFor:'description - contents'! |
399 |
||
400 |
classNamesAndAttributes |
|
5501 | 401 |
"lists the classes which are to be included in the project. |
402 |
Each entry in the list may be: a single class-name (symbol), |
|
403 |
or an array-literal consisting of class name and attributes. |
|
404 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
405 |
||
4582 | 406 |
^ #( |
5305 | 407 |
"<className> or (<className> attributes...) in load order" |
6562 | 408 |
AbstractBackground |
409 |
AbstractBorder |
|
410 |
Color |
|
411 |
Colormap |
|
412 |
Controller |
|
413 |
Cursor |
|
414 |
DeviceHandle |
|
6706
33bbb2e9ddbc
DisplayTransform moved from libview2
Claus Gittinger <cg@exept.de>
parents:
6682
diff
changeset
|
415 |
DisplayTransform |
6562 | 416 |
Event |
7150
000f5ae96151
X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
7138
diff
changeset
|
417 |
(FcConstants unix) |
6562 | 418 |
FontDescription |
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
419 |
(GraphicsAttributes autoload) |
6562 | 420 |
GraphicsContext |
421 |
GraphicsDevice |
|
7813 | 422 |
GraphicsMedium |
6562 | 423 |
Image |
424 |
ImageReader |
|
425 |
KeyboardForwarder |
|
426 |
KeyboardMap |
|
427 |
ResourcePack |
|
428 |
WindowGroup |
|
429 |
WindowSensor |
|
430 |
#'stx_libview' |
|
431 |
BeveledBorder |
|
5861 | 432 |
BitmapFont |
5305 | 433 |
Border |
434 |
ColorPalette |
|
5861 | 435 |
CompoundFont |
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
436 |
(ControllerWithMenu autoload) |
5305 | 437 |
Depth16Image |
438 |
Depth1Image |
|
439 |
Depth24Image |
|
440 |
Depth2Image |
|
441 |
Depth32Image |
|
6562 | 442 |
Depth48Image |
5305 | 443 |
Depth4Image |
6562 | 444 |
Depth64Image |
5305 | 445 |
Depth8Image |
446 |
DeviceGraphicsContext |
|
7813 | 447 |
DisplaySurface |
7150
000f5ae96151
X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
7138
diff
changeset
|
448 |
(FcPattern unix) |
5305 | 449 |
Font |
7813 | 450 |
Form |
6562 | 451 |
GradientBackground |
5305 | 452 |
HostGraphicsDevice |
6562 | 453 |
ImageBackground |
7049
cfa0472d4660
some more support classes are compiled instead of autoloaded
Claus Gittinger <cg@exept.de>
parents:
7042
diff
changeset
|
454 |
MacButtonBorder |
6562 | 455 |
NoBackground |
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
456 |
(RoundButtonBorder autoload) |
6706
33bbb2e9ddbc
DisplayTransform moved from libview2
Claus Gittinger <cg@exept.de>
parents:
6682
diff
changeset
|
457 |
ScaleTransform |
6562 | 458 |
SimpleBorder |
459 |
SolidBackground |
|
460 |
SynchronousWindowSensor |
|
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
461 |
(TranslucentColor autoload) |
6562 | 462 |
ViewStyle |
463 |
WindowEvent |
|
6563 | 464 |
(XftFontDescription unix) |
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
465 |
(AlphaMask autoload) |
6562 | 466 |
DeviceWorkstation |
7813 | 467 |
DisplayRootView |
7198 | 468 |
FixedPalette |
5305 | 469 |
ImageMask |
7049
cfa0472d4660
some more support classes are compiled instead of autoloaded
Claus Gittinger <cg@exept.de>
parents:
7042
diff
changeset
|
470 |
MacFlatButtonBorder |
5305 | 471 |
MappedPalette |
7010 | 472 |
RoundedBorder |
7813 | 473 |
SimpleView |
6562 | 474 |
WidgetEvent |
6706
33bbb2e9ddbc
DisplayTransform moved from libview2
Claus Gittinger <cg@exept.de>
parents:
6682
diff
changeset
|
475 |
WindowingTransformation |
6726
9f16fe1701f5
XGraphicsContext made public to allow subclassing and extending
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6616
diff
changeset
|
476 |
XGraphicsContext |
7198 | 477 |
FixedPaletteWithAlpha |
5305 | 478 |
MonoMappedPalette |
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
479 |
(NeXTWorkstation autoload) |
6562 | 480 |
ShadowView |
481 |
View |
|
6563 | 482 |
(XEmbedContainerView unix) |
7136 | 483 |
(XWorkstation unix) |
6563 | 484 |
(GLXWorkstation unix) |
6562 | 485 |
TopView |
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
486 |
(MDIChildView autoload) |
5305 | 487 |
PopUpView |
488 |
StandardSystemView |
|
6562 | 489 |
ModalBox |
6739 | 490 |
(ControllerWithMenu autoload) |
7813 | 491 |
(GraphicsAttributes autoload) |
6739 | 492 |
(NeXTWorkstation autoload) |
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
493 |
(WinWorkstation win32) |
6022
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
494 |
) |
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
495 |
|
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
496 |
"Modified (format): / 31-01-2017 / 13:35:18 / stefan" |
4582 | 497 |
! |
498 |
||
499 |
extensionMethodNames |
|
8079
1bd22a3d8b03
Backed out changeset 863abc9d17bb
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
8074
diff
changeset
|
500 |
"list class/selector pairs of extensions. |
7813 | 501 |
Entries are 2-element array literals, consisting of class-name and selector. |
502 |
A correponding method with real names must be present in my concrete subclasses |
|
503 |
if it has extensions." |
|
6022
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
504 |
|
4582 | 505 |
^ #( |
7154
f2d585b5f20e
X11/FontConfig: Conditionally compile FontConfig support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
7150
diff
changeset
|
506 |
'ConfigurableFeatures class' hasFontConfig |
7813 | 507 |
Object isColormap |
7154
f2d585b5f20e
X11/FontConfig: Conditionally compile FontConfig support
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
7150
diff
changeset
|
508 |
'ConfigurableFeatures class' hasXFT |
4582 | 509 |
) |
510 |
! ! |
|
511 |
||
512 |
!stx_libview class methodsFor:'description - project information'! |
|
513 |
||
514 |
companyName |
|
515 |
"Return a companyname which will appear in <lib>.rc" |
|
516 |
||
7683 | 517 |
^ 'Claus Gittinger / eXept Software AG' |
518 |
||
519 |
"Modified: / 18-11-2016 / 11:47:54 / cg" |
|
4582 | 520 |
! |
521 |
||
522 |
description |
|
523 |
"Return a description string which will appear in nt.def / bc.def" |
|
524 |
||
525 |
^ 'Smalltalk/X Low Level Graphic Interfacing' |
|
526 |
||
527 |
"Modified: / 14-09-2006 / 10:54:54 / cg" |
|
528 |
! |
|
529 |
||
530 |
legalCopyright |
|
531 |
"Return a copyright string which will appear in <lib>.rc" |
|
532 |
||
7685 | 533 |
^ 'Copyright Claus Gittinger 1988\nCopyright eXept Software AG 2012' |
4841 | 534 |
|
7685 | 535 |
"Modified: / 18-11-2016 / 12:19:05 / cg" |
6022
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
536 |
! |
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
537 |
|
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
538 |
productName |
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
539 |
"Return a product name which will appear in <lib>.rc" |
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
540 |
|
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
541 |
^ 'Smalltalk/X' |
4582 | 542 |
! ! |
543 |
||
544 |
!stx_libview class methodsFor:'documentation'! |
|
545 |
||
5819 | 546 |
version |
6879 | 547 |
^ '$Header$' |
5819 | 548 |
! |
549 |
||
5384 | 550 |
version_CVS |
6879 | 551 |
^ '$Header$' |
6883 | 552 |
|
7150
000f5ae96151
X11/FontConfig: FontConfig related code extracted from XftFontDescription to separate classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
7138
diff
changeset
|
553 |
! |
6883 | 554 |
|
555 |
version_HG |
|
556 |
^ '$Changeset: <not expanded> $' |
|
557 |
||
4582 | 558 |
! ! |
6022
6d21e8a9929a
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
6017
diff
changeset
|
559 |