16681
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2014 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
"{ Package: 'stx:libbasic' }"
|
|
13 |
|
|
14 |
ProjectDefinition subclass:#FolderForProjectsDefinition
|
|
15 |
instanceVariableNames:''
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'System-Support-Projects'
|
|
19 |
!
|
|
20 |
|
|
21 |
!FolderForProjectsDefinition class methodsFor:'documentation'!
|
|
22 |
|
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 2014 by eXept Software AG
|
|
26 |
All Rights Reserved
|
|
27 |
|
|
28 |
This software is furnished under a license and may be used
|
|
29 |
only in accordance with the terms of that license and with the
|
|
30 |
inclusion of the above copyright notice. This software may not
|
|
31 |
be provided or otherwise made available to, or used by, any
|
|
32 |
other person. No title to or ownership of the software is
|
|
33 |
hereby transferred.
|
|
34 |
"
|
|
35 |
! !
|
|
36 |
|
|
37 |
!FolderForProjectsDefinition class methodsFor:'code generation'!
|
|
38 |
|
|
39 |
forEachContentsMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition
|
|
40 |
"generate code for each contents-specifying method
|
|
41 |
(classesAndAttributes, extensionMethodNames, etc.),
|
|
42 |
and evaluate aTwoArgBlock on it, passing in the code and the method's category.
|
|
43 |
If ignoreOldDefinition is true, new code is generated (class/method scan);
|
|
44 |
otherwise, new items are added to the existing lists"
|
|
45 |
|
|
46 |
"/ JV: No, subProjects **should not** be automatically generated.
|
|
47 |
"/ Remember, they are not required to be loaded!! So, generate
|
|
48 |
"/ subProjects only if there's no such method yet.
|
|
49 |
(self class methodDictionary includesKey: #subProjects) ifFalse:[
|
|
50 |
aTwoArgBlock
|
|
51 |
value: self subProjects_code
|
|
52 |
value: 'description'.
|
|
53 |
].
|
|
54 |
!
|
|
55 |
|
|
56 |
forEachDescriptionMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition
|
|
57 |
"generate code for each descriptin-specifying method"
|
|
58 |
|
|
59 |
"/ intentionally left blank
|
|
60 |
! !
|
|
61 |
|
|
62 |
!FolderForProjectsDefinition class methodsFor:'description - project information'!
|
|
63 |
|
|
64 |
productType
|
|
65 |
"Returns the product type for autopackage"
|
|
66 |
|
|
67 |
^ 'Folder'
|
|
68 |
! !
|
|
69 |
|
|
70 |
!FolderForProjectsDefinition class methodsFor:'file templates'!
|
|
71 |
|
|
72 |
bc_dot_mak
|
|
73 |
"answer a template for the bc.mak makefile.
|
|
74 |
Any variable definition %(Variable) will be later replaced by the mapping.
|
|
75 |
$% characters have to be duplicated"
|
|
76 |
|
|
77 |
^
|
|
78 |
'# $','Header','$
|
|
79 |
#
|
|
80 |
# DO NOT EDIT
|
|
81 |
# automagically generated from the projectDefinition: ',self name",' at ',Timestamp now printString",'.
|
|
82 |
#
|
|
83 |
# Warning: once you modify this file, do not rerun
|
|
84 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
|
|
85 |
#
|
|
86 |
# Notice, that the name bc.mak is historical (from times, when only borland c was supported).
|
|
87 |
# This file contains make rules for the win32 platform using either borland-bcc or visual-c.
|
|
88 |
# It shares common definitions with the unix-make in Make.spec.
|
|
89 |
# The bc.mak supports the following targets:
|
|
90 |
# bmake - compile all st-files to a classLib (dll)
|
|
91 |
# bmake clean - clean all temp files
|
|
92 |
# bmake clobber - clean all
|
|
93 |
#
|
|
94 |
# Historic Note:
|
|
95 |
# this used to contain only rules to make with borland
|
|
96 |
# (called via bmake, by "make.exe -f bc.mak")
|
|
97 |
# this has changed; it is now also possible to build using microsoft visual c
|
|
98 |
# (called via vcmake, by "make.exe -f bc.mak -DUSEVC")
|
|
99 |
#
|
|
100 |
TOP=%(TOP)
|
|
101 |
INCLUDE_TOP=$(TOP)\..
|
|
102 |
|
|
103 |
!!INCLUDE $(TOP)\rules\stdHeader_bc
|
|
104 |
|
|
105 |
!!INCLUDE Make.spec
|
|
106 |
|
|
107 |
%(ADDITIONAL_DEFINITIONS)
|
|
108 |
|
|
109 |
OBJS=
|
|
110 |
|
|
111 |
ALL:: %(ADDITIONAL_TARGETS)
|
|
112 |
|
|
113 |
!!INCLUDE $(TOP)\rules\stdRules_bc
|
|
114 |
|
|
115 |
# build all mandatory prerequisite packages (containing superclasses) for this package
|
|
116 |
prereq:
|
|
117 |
%(MAKE_PREREQUISITES)
|
|
118 |
|
|
119 |
|
|
120 |
%(ADDITIONAL_RULES)
|
|
121 |
|
|
122 |
%(ADDITIONAL_HEADERRULES)
|
|
123 |
|
|
124 |
test: $(TOP)\goodies\builder\reports\NUL
|
|
125 |
pushd $(TOP)\goodies\builder\reports & $(MAKE_BAT)
|
|
126 |
$(TOP)\goodies\builder\reports\report-runner.bat -D . -r Builder::TestReport -p $(PACKAGE)
|
|
127 |
|
|
128 |
clean::
|
|
129 |
del *.$(CSUFFIX)
|
|
130 |
|
|
131 |
%(ADDITIONAL_RULES_HG)'
|
|
132 |
!
|
|
133 |
|
|
134 |
make_dot_proto
|
|
135 |
|
|
136 |
^
|
|
137 |
'# $','Header','$
|
|
138 |
#
|
|
139 |
# DO NOT EDIT
|
|
140 |
# automagically generated from the projectDefinition: ',self name",' at ',Timestamp now printString",'.
|
|
141 |
#
|
|
142 |
# Warning: once you modify this file, do not rerun
|
|
143 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
|
|
144 |
#
|
|
145 |
# The Makefile as generated by this Make.proto supports the following targets:
|
|
146 |
# make - compile all st-files to a classLib
|
|
147 |
# make clean - clean all temp files
|
|
148 |
# make clobber - clean all
|
|
149 |
#
|
|
150 |
# This file contains definitions for Unix based platforms.
|
|
151 |
# It shares common definitions with the win32-make in Make.spec.
|
|
152 |
|
|
153 |
#
|
|
154 |
# position (of this package) in directory hierarchy:
|
|
155 |
# (must point to ST/X top directory, for tools and includes)
|
|
156 |
TOP=%(TOP)
|
|
157 |
INCLUDE_TOP=$(TOP)/..
|
|
158 |
|
|
159 |
# subdirectories where targets are to be made:
|
|
160 |
SUBDIRS=%(SUBDIRECTORIES)
|
|
161 |
|
|
162 |
|
|
163 |
# subdirectories where Makefiles are to be made:
|
|
164 |
# (only define if different from SUBDIRS)
|
|
165 |
# ALLSUBDIRS=
|
|
166 |
|
|
167 |
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS)
|
|
168 |
|
|
169 |
# ********** OPTIONAL: MODIFY the next line ***
|
|
170 |
# additional C targets or libraries should be added below
|
|
171 |
LOCAL_EXTRA_TARGETS=
|
|
172 |
|
|
173 |
OBJS=
|
|
174 |
|
|
175 |
%(ADDITIONAL_DEFINITIONS)
|
|
176 |
|
|
177 |
all:: preMake %(PRIMARY_TARGET) postMake
|
|
178 |
|
|
179 |
pre_objs:: %(ADDITIONAL_TARGETS) %(ADDITIONAL_TARGETS_SVN)
|
|
180 |
|
|
181 |
%(ADDITIONAL_RULES)
|
|
182 |
|
|
183 |
%(ADDITIONAL_RULES_SVN)
|
|
184 |
|
|
185 |
%(ADDITIONAL_RULES_HG)
|
|
186 |
|
|
187 |
%(ADDITIONAL_HEADERRULES)
|
|
188 |
|
|
189 |
# run default testsuite for this package
|
|
190 |
test: $(TOP)/goodies/builder/reports
|
|
191 |
$(MAKE) -C $(TOP)/goodies/builder/reports -f Makefile.init
|
|
192 |
$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE)
|
|
193 |
|
|
194 |
|
|
195 |
|
|
196 |
# add more install actions here
|
|
197 |
install::
|
|
198 |
|
|
199 |
# add more install actions for aux-files (resources) here
|
|
200 |
installAux::
|
|
201 |
|
|
202 |
# add more preMake actions here
|
|
203 |
preMake::
|
|
204 |
|
|
205 |
# add more postMake actions here
|
|
206 |
postMake:: cleanjunk
|
|
207 |
|
|
208 |
# build all mandatory prerequisite packages (containing superclasses) for this package
|
|
209 |
prereq:
|
|
210 |
%(MAKE_PREREQUISITES)
|
|
211 |
|
|
212 |
# build all packages containing referenced classes for this package
|
|
213 |
# they are nor needed to compile the package
|
|
214 |
references:
|
|
215 |
%(MAKE_REFERENCES)
|
|
216 |
|
|
217 |
cleanjunk::
|
|
218 |
%(TAB)-rm -f *.s *.s2
|
|
219 |
|
|
220 |
clean::
|
|
221 |
%(TAB)-rm -f *.o *.H
|
|
222 |
|
|
223 |
clobber:: clean
|
|
224 |
%(TAB)-rm -f *.so *.dll
|
|
225 |
|
|
226 |
',
|
|
227 |
"
|
|
228 |
$(INSTALLBASE)::
|
|
229 |
%(TAB)@test -d $@ || mkdir $@
|
|
230 |
|
|
231 |
$(INSTALLBASE)/packages:: $(INSTALLBASE)
|
|
232 |
%(TAB)@test -d $@ || mkdir $@
|
|
233 |
|
|
234 |
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages
|
|
235 |
%(TAB)@test -d $@ || mkdir $@
|
|
236 |
|
|
237 |
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE)
|
|
238 |
%(TAB)@test -d $@ || mkdir $@
|
|
239 |
"
|
|
240 |
'
|
|
241 |
'
|
|
242 |
!
|
|
243 |
|
|
244 |
make_dot_spec
|
|
245 |
|
|
246 |
^
|
|
247 |
'# $','Header','$
|
|
248 |
#
|
|
249 |
# DO NOT EDIT
|
|
250 |
# automagically generated from the projectDefinition: ',self name,"' at ',Timestamp now printString,"'.
|
|
251 |
#
|
|
252 |
# Warning: once you modify this file, do not rerun
|
|
253 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
|
|
254 |
#
|
|
255 |
# This file contains specifications which are common to all platforms.
|
|
256 |
#
|
|
257 |
|
|
258 |
# Do NOT CHANGE THESE DEFINITIONS
|
|
259 |
# (otherwise, ST/X will have a hard time to find out the packages location from its packageID,
|
|
260 |
# to find the source code of a class and to find the library for a package)
|
|
261 |
MODULE=%(MODULE)
|
|
262 |
MODULE_DIR=%(MODULE_DIRECTORY)
|
|
263 |
PACKAGE=$(MODULE):$(MODULE_DIR)
|
|
264 |
'
|
|
265 |
! !
|
|
266 |
|
|
267 |
!FolderForProjectsDefinition class methodsFor:'queries'!
|
|
268 |
|
|
269 |
isAbstract
|
|
270 |
^ self == FolderForProjectsDefinition
|
|
271 |
!
|
|
272 |
|
|
273 |
isFolderForProjectsDefinition
|
|
274 |
^ self isAbstract not
|
|
275 |
!
|
|
276 |
|
|
277 |
projectType
|
|
278 |
^ FolderForSubApplicationsType
|
|
279 |
! !
|
|
280 |
|
|
281 |
!FolderForProjectsDefinition class methodsFor:'documentation'!
|
|
282 |
|
|
283 |
version
|
|
284 |
^ '$Header: /cvs/stx/stx/libbasic/FolderForProjectsDefinition.st,v 1.1 2014-07-03 18:31:49 cg Exp $'
|
|
285 |
!
|
|
286 |
|
|
287 |
version_CVS
|
|
288 |
^ '$Header: /cvs/stx/stx/libbasic/FolderForProjectsDefinition.st,v 1.1 2014-07-03 18:31:49 cg Exp $'
|
|
289 |
! !
|
|
290 |
|