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