author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 30 Jun 2016 17:14:29 +0100 | |
branch | jv |
changeset 1447 | 0b149293564f |
parent 1442 | 14aa87cd5d2d |
child 1481 | 4a4686007f8f |
permissions | -rw-r--r-- |
740 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
1441
0e59638c5ce7
Updated copyright notice
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1376
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 |
" |
|
28 |
COPYRIGHT (c) 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 |
69 |
"History: we want the helper files to be named: smalltalk*.*" |
|
70 |
||
71 |
^ 'smalltalk' |
|
72 |
! |
|
73 |
||
807 | 74 |
applicationNameConsole |
996 | 75 |
^ 'stx.com' |
748 | 76 |
! |
77 |
||
807 | 78 |
applicationNameNoConsole |
996 | 79 |
^ 'stx.exe' |
807 | 80 |
! |
81 |
||
748 | 82 |
buildTarget |
807 | 83 |
"redefined, so by default, the executable file is only built - not an installer. |
84 |
For the installer to be built, we must explicitly type 'bmake setup'" |
|
748 | 85 |
|
86 |
^ 'exe' |
|
87 |
! |
|
88 |
||
996 | 89 |
documentExtensions |
1049 | 90 |
^ #() |
91 |
"/ ^ #('st') |
|
996 | 92 |
! |
93 |
||
748 | 94 |
isConsoleApplication |
807 | 95 |
^ true "actually, we do both the console and the non-console app (see additionalTargets_bc_dot_mak)" |
748 | 96 |
! |
97 |
||
740 | 98 |
isGUIApplication |
1072 | 99 |
^ true "actually, we do both the console and the non-console app (see additionalTargets_bc_dot_mak)" |
740 | 100 |
! |
101 |
||
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
102 |
mandatoryPreRequisites |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
103 |
"list packages which are mandatory as a prerequisite. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
104 |
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
|
105 |
are extended by myself. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
106 |
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
|
107 |
This method is generated automatically, |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
108 |
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
|
109 |
|
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 |
#'stx:libbasic' "ApplicationDefinition - superclass of stx_projects_smalltalk" |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
112 |
) |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
113 |
! |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
114 |
|
740 | 115 |
preRequisites |
116 |
^ #( |
|
807 | 117 |
#'stx:libbasic' |
740 | 118 |
#'stx:libbasic2' |
119 |
#'stx:libbasic3' |
|
120 |
#'stx:libcomp' |
|
121 |
#'stx:libhtml' |
|
122 |
#'stx:libtool' |
|
123 |
#'stx:libtool2' |
|
124 |
#'stx:libui' |
|
125 |
#'stx:libview' |
|
126 |
#'stx:libview2' |
|
127 |
#'stx:libwidg' |
|
128 |
#'stx:libwidg2' |
|
129 |
#'stx:libwidg3' |
|
748 | 130 |
#'stx:goodies/refactoryBrowser/helpers' |
131 |
#'stx:goodies/refactoryBrowser/parser' |
|
132 |
#'stx:goodies/refactoryBrowser/refactoring' |
|
133 |
#'stx:goodies/refactoryBrowser/changes' |
|
1148 | 134 |
#'stx:goodies/refactoryBrowser/browser' |
1101 | 135 |
#'stx:goodies/refactoryBrowser/lint' |
748 | 136 |
#'stx:libboss' |
1212 | 137 |
#'stx:libjavascript' |
1233 | 138 |
"/ #'stx:goodies/petitparser' |
139 |
"/ #'stx:libjava' |
|
140 |
"/ #'stx:libsvn' |
|
740 | 141 |
) |
1148 | 142 |
|
1233 | 143 |
"Modified: / 13-01-2012 / 13:03:52 / cg" |
740 | 144 |
! |
145 |
||
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
146 |
referencedPreRequisites |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
147 |
"list packages which are a prerequisite, because they contain |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
148 |
classes which are referenced by my classes. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
149 |
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
|
150 |
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
|
151 |
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
|
152 |
includes explicit checks for the package being present. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
153 |
This method is generated automatically, |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
154 |
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
|
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 |
) |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
158 |
! |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
159 |
|
971 | 160 |
splashFileName |
161 |
^ 'stx_splash' |
|
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
162 |
! |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
163 |
|
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
164 |
subProjects |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
165 |
"list packages which are known as subprojects. |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
166 |
This method is generated automatically; however, when generating automatically, |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
167 |
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
|
168 |
|
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
169 |
^ #( |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
170 |
) |
740 | 171 |
! ! |
172 |
||
762 | 173 |
!stx_projects_smalltalk class methodsFor:'description - building'! |
174 |
||
893 | 175 |
additionalFilesToInstall |
901 | 176 |
"becomes part of the nsi list of files to install" |
177 |
||
893 | 178 |
^ #( |
1035 | 179 |
'"*.wsp"' |
1021 | 180 |
'/x CVS "${STX_ROOT}\stx\projects\smalltalk\patches"' |
181 |
'/r /x CVS "${STX_ROOT}\stx\include"' |
|
1028 | 182 |
'/x CVS "${STX_ROOT}\stx\libview\styles\*"' |
183 |
'SetOutPath "$INSTDIR\bin\doc"' |
|
1021 | 184 |
'/r /x CVS "${STX_ROOT}\stx\doc\online"' |
1035 | 185 |
'SetOutPath "$INSTDIR\bin\source"' |
1028 | 186 |
'/r /x CVS /x "not*" "${STX_ROOT}\stx\*.st"' |
893 | 187 |
) |
188 |
||
189 |
"Created: / 01-03-2007 / 20:03:15 / cg" |
|
190 |
! |
|
191 |
||
807 | 192 |
iconFileName |
193 |
^ 'stx_32x32.ico' |
|
762 | 194 |
! ! |
195 |
||
740 | 196 |
!stx_projects_smalltalk class methodsFor:'description - contents'! |
197 |
||
198 |
classNamesAndAttributes |
|
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
199 |
"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
|
200 |
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
|
201 |
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
|
202 |
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
|
203 |
|
740 | 204 |
^ #( |
205 |
"<className> or (<className> attributes...) in load order" |
|
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
206 |
SmalltalkStartup |
740 | 207 |
#'stx_projects_smalltalk' |
208 |
) |
|
209 |
! |
|
210 |
||
211 |
extensionMethodNames |
|
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
212 |
"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
|
213 |
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
|
214 |
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
|
215 |
if it has extensions." |
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
216 |
|
740 | 217 |
^ #( |
218 |
) |
|
902 | 219 |
! |
220 |
||
221 |
protectedFileNames |
|
1122
715da7750a21
changed: #protectedFileNames
Claus Gittinger <cg@exept.de>
parents:
1101
diff
changeset
|
222 |
"names of files which should NOT be generated (because they are hand-maintained)" |
902 | 223 |
"do NOT overwrite the hand-written Make.proto for now" |
224 |
||
1442
14aa87cd5d2d
Added SmalltalkStartup class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1441
diff
changeset
|
225 |
^ #( 'Make.proto' 'modules.stx' ) |
1122
715da7750a21
changed: #protectedFileNames
Claus Gittinger <cg@exept.de>
parents:
1101
diff
changeset
|
226 |
|
715da7750a21
changed: #protectedFileNames
Claus Gittinger <cg@exept.de>
parents:
1101
diff
changeset
|
227 |
"Modified: / 21-12-2010 / 11:37:05 / cg" |
740 | 228 |
! ! |
229 |
||
230 |
!stx_projects_smalltalk class methodsFor:'description - project information'! |
|
231 |
||
232 |
companyName |
|
233 |
"Return a companyname which will appear in <lib>.rc" |
|
234 |
||
235 |
^ 'eXept Software AG' |
|
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 |
||
1249 | 249 |
^ 'Copyright Claus Gittinger 1988-2012\nCopyright eXept Software AG 1998-2012' |
795 | 250 |
|
1249 | 251 |
"Modified: / 18-07-2012 / 19:12:22 / 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 |