author | Patrik Svestka <patrik.svestka@gmail.com> |
Mon, 05 Jul 2021 12:43:35 +0200 | |
branch | jv |
changeset 1630 | 7de40ef06ef6 |
parent 1608 | efa48d08c563 |
permissions | -rw-r--r-- |
740 | 1 |
" |
1478 | 2 |
COPYRIGHT (c) Claus Gittinger / 2006 by eXept Software AG |
1608
efa48d08c563
Change application name to `stx`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1558
diff
changeset
|
3 |
2016-now by Jan Vrany <jan.vrany@fit.cvut.cz> |
740 | 4 |
All Rights Reserved |
5 |
||
6 |
This software is furnished under a license and may be used |
|
7 |
only in accordance with the terms of that license and with the |
|
8 |
inclusion of the above copyright notice. This software may not |
|
9 |
be provided or otherwise made available to, or used by, any |
|
10 |
other person. No title to or ownership of the software is |
|
11 |
hereby transferred. |
|
12 |
" |
|
13 |
"{ Package: 'stx:projects/smalltalk' }" |
|
14 |
||
1376
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
15 |
"{ NameSpace: Smalltalk }" |
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
16 |
|
740 | 17 |
ApplicationDefinition subclass:#stx_projects_smalltalk |
1221 | 18 |
instanceVariableNames:'' |
19 |
classVariableNames:'' |
|
20 |
poolDictionaries:'' |
|
21 |
category:'* Projects & Packages *' |
|
740 | 22 |
! |
23 |
||
24 |
!stx_projects_smalltalk class methodsFor:'documentation'! |
|
25 |
||
26 |
copyright |
|
27 |
" |
|
1478 | 28 |
COPYRIGHT (c) Claus Gittinger / 2006 by eXept Software AG |
1441
0e59638c5ce7
Updated copyright notice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1376
diff
changeset
|
29 |
2016-now by Jan Vrany <jan.vrany@fit.cvut.cz> |
740 | 30 |
All Rights Reserved |
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 |
||
41 |
documentation |
|
42 |
" |
|
1376
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
43 |
Build- and package information for creation of the ST/X executable itself (with GUI). |
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
44 |
ST/X itself (i.e. the stx executable) is simply a standAlone application which includes |
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
45 |
all the common widgets and development tool libraries as prerequisites. |
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
46 |
So when started, these classes are already present. |
740 | 47 |
|
48 |
[Author:] |
|
49 |
Claus Gittinger |
|
50 |
||
51 |
[startWith:] |
|
1376
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
52 |
Start the ST/X application from the command line: |
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
53 |
|
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
54 |
stx regular start; read snapshot image file if present |
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
55 |
stx -I regular start; ignore any snapshot image (i.e. cold start) |
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
56 |
stx -I --quick quick start; ignore snapshot and do not scan for autoloaded classes. |
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
57 |
|
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
58 |
Actually, startup is in 'Smalltalk >> start', so take a look at that method, for what is going on. |
740 | 59 |
" |
60 |
! ! |
|
61 |
||
62 |
!stx_projects_smalltalk class methodsFor:'description'! |
|
63 |
||
842 | 64 |
applicationIconFileName |
65 |
^ 'stx_32x32' |
|
66 |
! |
|
67 |
||
996 | 68 |
applicationName |
1608
efa48d08c563
Change application name to `stx`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1558
diff
changeset
|
69 |
^ 'stx' |
996 | 70 |
|
1608
efa48d08c563
Change application name to `stx`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1558
diff
changeset
|
71 |
" |
efa48d08c563
Change application name to `stx`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1558
diff
changeset
|
72 |
stx_projects_smalltalk applicationName |
efa48d08c563
Change application name to `stx`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1558
diff
changeset
|
73 |
stx_projects_smalltalk applicationNameConsole |
efa48d08c563
Change application name to `stx`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1558
diff
changeset
|
74 |
stx_projects_smalltalk applicationNameNoConsole |
efa48d08c563
Change application name to `stx`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1558
diff
changeset
|
75 |
" |
748 | 76 |
|
1608
efa48d08c563
Change application name to `stx`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1558
diff
changeset
|
77 |
"Modified: / 19-07-2019 / 10:59:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
807 | 78 |
! |
79 |
||
748 | 80 |
buildTarget |
807 | 81 |
"redefined, so by default, the executable file is only built - not an installer. |
82 |
For the installer to be built, we must explicitly type 'bmake setup'" |
|
748 | 83 |
|
84 |
^ 'exe' |
|
85 |
! |
|
86 |
||
996 | 87 |
documentExtensions |
1049 | 88 |
^ #() |
89 |
"/ ^ #('st') |
|
996 | 90 |
! |
91 |
||
748 | 92 |
isConsoleApplication |
807 | 93 |
^ true "actually, we do both the console and the non-console app (see additionalTargets_bc_dot_mak)" |
748 | 94 |
! |
95 |
||
740 | 96 |
isGUIApplication |
1072 | 97 |
^ true "actually, we do both the console and the non-console app (see additionalTargets_bc_dot_mak)" |
740 | 98 |
! |
99 |
||
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
100 |
mandatoryPreRequisites |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
101 |
"list packages which are mandatory as a prerequisite. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
102 |
This are packages containing superclasses of my classes and classes which |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
103 |
are extended by myself. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
104 |
They are mandatory, because we need these packages as a prerequisite for loading and compiling. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
105 |
This method is generated automatically, |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
106 |
by searching along the inheritance chain of all of my classes." |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
107 |
|
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
108 |
^ #( |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
109 |
#'stx:libbasic' "ApplicationDefinition - superclass of stx_projects_smalltalk" |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
110 |
) |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
111 |
! |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
112 |
|
740 | 113 |
preRequisites |
114 |
^ #( |
|
807 | 115 |
#'stx:libbasic' |
740 | 116 |
#'stx:libbasic2' |
117 |
#'stx:libbasic3' |
|
118 |
#'stx:libcomp' |
|
119 |
#'stx:libhtml' |
|
120 |
#'stx:libtool' |
|
121 |
#'stx:libtool2' |
|
122 |
#'stx:libui' |
|
123 |
#'stx:libview' |
|
124 |
#'stx:libview2' |
|
125 |
#'stx:libwidg' |
|
126 |
#'stx:libwidg2' |
|
127 |
#'stx:libwidg3' |
|
748 | 128 |
#'stx:goodies/refactoryBrowser/helpers' |
129 |
#'stx:goodies/refactoryBrowser/parser' |
|
130 |
#'stx:goodies/refactoryBrowser/refactoring' |
|
131 |
#'stx:goodies/refactoryBrowser/changes' |
|
1148 | 132 |
#'stx:goodies/refactoryBrowser/browser' |
1101 | 133 |
#'stx:goodies/refactoryBrowser/lint' |
748 | 134 |
#'stx:libboss' |
1212 | 135 |
#'stx:libjavascript' |
1233 | 136 |
"/ #'stx:goodies/petitparser' |
137 |
"/ #'stx:libjava' |
|
138 |
"/ #'stx:libsvn' |
|
740 | 139 |
) |
1148 | 140 |
|
1233 | 141 |
"Modified: / 13-01-2012 / 13:03:52 / cg" |
740 | 142 |
! |
143 |
||
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
144 |
referencedPreRequisites |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
145 |
"list packages which are a prerequisite, because they contain |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
146 |
classes which are referenced by my classes. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
147 |
We do not need these packages as a prerequisite for compiling or loading, |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
148 |
however, a class from it may be referenced during execution and having it |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
149 |
unloaded then may lead to a runtime doesNotUnderstand error, unless the caller |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
150 |
includes explicit checks for the package being present. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
151 |
This method is generated automatically, |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
152 |
by searching all classes (and their packages) which are referenced by my classes." |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
153 |
|
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
154 |
^ #( |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
155 |
) |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
156 |
! |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
157 |
|
971 | 158 |
splashFileName |
159 |
^ 'stx_splash' |
|
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
160 |
! |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
161 |
|
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
162 |
subProjects |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
163 |
"list packages which are known as subprojects. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
164 |
This method is generated automatically; however, when generating automatically, |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
165 |
packages are only added - never removed, unless listed in #excludedFromSubProjects." |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
166 |
|
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
167 |
^ #( |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
168 |
) |
740 | 169 |
! ! |
170 |
||
762 | 171 |
!stx_projects_smalltalk class methodsFor:'description - building'! |
172 |
||
893 | 173 |
additionalFilesToInstall |
901 | 174 |
"becomes part of the nsi list of files to install" |
175 |
||
893 | 176 |
^ #( |
1035 | 177 |
'"*.wsp"' |
1021 | 178 |
'/x CVS "${STX_ROOT}\stx\projects\smalltalk\patches"' |
179 |
'/r /x CVS "${STX_ROOT}\stx\include"' |
|
1028 | 180 |
'/x CVS "${STX_ROOT}\stx\libview\styles\*"' |
181 |
'SetOutPath "$INSTDIR\bin\doc"' |
|
1021 | 182 |
'/r /x CVS "${STX_ROOT}\stx\doc\online"' |
1035 | 183 |
'SetOutPath "$INSTDIR\bin\source"' |
1028 | 184 |
'/r /x CVS /x "not*" "${STX_ROOT}\stx\*.st"' |
893 | 185 |
) |
186 |
||
187 |
"Created: / 01-03-2007 / 20:03:15 / cg" |
|
188 |
! |
|
189 |
||
807 | 190 |
iconFileName |
191 |
^ 'stx_32x32.ico' |
|
762 | 192 |
! ! |
193 |
||
740 | 194 |
!stx_projects_smalltalk class methodsFor:'description - contents'! |
195 |
||
196 |
classNamesAndAttributes |
|
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
197 |
"lists the classes which are to be included in the project. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
198 |
Each entry in the list may be: a single class-name (symbol), |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
199 |
or an array-literal consisting of class name and attributes. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
200 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
201 |
|
740 | 202 |
^ #( |
203 |
"<className> or (<className> attributes...) in load order" |
|
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
204 |
SmalltalkStartup |
740 | 205 |
#'stx_projects_smalltalk' |
206 |
) |
|
207 |
! |
|
208 |
||
209 |
extensionMethodNames |
|
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
210 |
"lists the extension methods which are to be included in the project. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
211 |
Entries are 2-element array literals, consisting of class-name and selector. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
212 |
A correponding method with real names must be present in my concrete subclasses |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
213 |
if it has extensions." |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
214 |
|
740 | 215 |
^ #( |
216 |
) |
|
902 | 217 |
! |
218 |
||
219 |
protectedFileNames |
|
1122
715da7750a21
changed: #protectedFileNames
Claus Gittinger <cg@exept.de>
parents:
1101
diff
changeset
|
220 |
"names of files which should NOT be generated (because they are hand-maintained)" |
902 | 221 |
"do NOT overwrite the hand-written Make.proto for now" |
222 |
||
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
223 |
^ #( 'Make.proto' 'modules.stx' ) |
1122
715da7750a21
changed: #protectedFileNames
Claus Gittinger <cg@exept.de>
parents:
1101
diff
changeset
|
224 |
|
715da7750a21
changed: #protectedFileNames
Claus Gittinger <cg@exept.de>
parents:
1101
diff
changeset
|
225 |
"Modified: / 21-12-2010 / 11:37:05 / cg" |
740 | 226 |
! ! |
227 |
||
228 |
!stx_projects_smalltalk class methodsFor:'description - project information'! |
|
229 |
||
230 |
companyName |
|
231 |
"Return a companyname which will appear in <lib>.rc" |
|
232 |
||
1477 | 233 |
^ 'Claus Gittinger / eXept Software AG' |
234 |
||
235 |
"Modified: / 18-11-2016 / 11:47:40 / cg" |
|
740 | 236 |
! |
237 |
||
238 |
description |
|
239 |
"Return a description string which will appear in nt.def / bc.def" |
|
240 |
||
795 | 241 |
^ 'Smalltalk/X IDE' |
242 |
||
243 |
"Modified: / 10-02-2007 / 18:36:19 / cg" |
|
740 | 244 |
! |
245 |
||
246 |
legalCopyright |
|
247 |
"Return a copyright string which will appear in <lib>.rc" |
|
248 |
||
1479 | 249 |
^ 'Copyright Claus Gittinger 1988\nCopyright eXept Software AG 1998-2012' |
795 | 250 |
|
1479 | 251 |
"Modified: / 18-11-2016 / 12:19:34 / cg" |
740 | 252 |
! |
253 |
||
886 | 254 |
productFilename |
255 |
^ 'SmalltalkX' |
|
256 |
||
257 |
"Modified: / 01-03-2007 / 19:34:15 / cg" |
|
740 | 258 |
! ! |
259 |
||
260 |
!stx_projects_smalltalk class methodsFor:'description - startup'! |
|
261 |
||
262 |
startupClassName |
|
263 |
^ #Smalltalk |
|
264 |
! |
|
265 |
||
266 |
startupSelector |
|
267 |
^ #start |
|
268 |
! ! |
|
269 |
||
270 |
!stx_projects_smalltalk class methodsFor:'documentation'! |
|
271 |
||
272 |
version |
|
273 |
^ '$Header$' |
|
1072 | 274 |
! |
275 |
||
276 |
version_CVS |
|
277 |
^ '$Header$' |
|
1441
0e59638c5ce7
Updated copyright notice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1376
diff
changeset
|
278 |
! |
0e59638c5ce7
Updated copyright notice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1376
diff
changeset
|
279 |
|
0e59638c5ce7
Updated copyright notice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1376
diff
changeset
|
280 |
version_HG |
0e59638c5ce7
Updated copyright notice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1376
diff
changeset
|
281 |
^ '$Changeset: <not expanded> $' |
740 | 282 |
! ! |
1376
d37a3939d86d
class: stx_projects_smalltalk
Claus Gittinger <cg@exept.de>
parents:
1273
diff
changeset
|
283 |