author | Merge Script |
Mon, 08 Jun 2015 06:58:54 +0200 | |
branch | jv |
changeset 18461 | bc3d3101c493 |
parent 17230 | c61f862aae61 |
child 19979 | 23da22784b77 |
permissions | -rw-r--r-- |
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) |
|
17040
6d4341530f00
class: FolderForProjectsDefinition
Claus Gittinger <cg@exept.de>
parents:
16681
diff
changeset
|
101 |
MODULE_PATH=%(MODULE_PATH) |
16681 | 102 |
INCLUDE_TOP=$(TOP)\.. |
103 |
||
104 |
!!INCLUDE $(TOP)\rules\stdHeader_bc |
|
105 |
||
106 |
!!INCLUDE Make.spec |
|
107 |
||
108 |
%(ADDITIONAL_DEFINITIONS) |
|
109 |
||
110 |
OBJS= |
|
111 |
||
112 |
ALL:: %(ADDITIONAL_TARGETS) |
|
113 |
||
114 |
!!INCLUDE $(TOP)\rules\stdRules_bc |
|
115 |
||
116 |
# build all mandatory prerequisite packages (containing superclasses) for this package |
|
117 |
prereq: |
|
118 |
%(MAKE_PREREQUISITES) |
|
119 |
||
120 |
||
121 |
%(ADDITIONAL_RULES) |
|
122 |
||
123 |
%(ADDITIONAL_HEADERRULES) |
|
124 |
||
125 |
test: $(TOP)\goodies\builder\reports\NUL |
|
126 |
pushd $(TOP)\goodies\builder\reports & $(MAKE_BAT) |
|
127 |
$(TOP)\goodies\builder\reports\report-runner.bat -D . -r Builder::TestReport -p $(PACKAGE) |
|
128 |
||
129 |
clean:: |
|
130 |
del *.$(CSUFFIX) |
|
131 |
||
132 |
%(ADDITIONAL_RULES_HG)' |
|
133 |
! |
|
134 |
||
135 |
make_dot_proto |
|
136 |
||
137 |
^ |
|
138 |
'# $','Header','$ |
|
139 |
# |
|
140 |
# DO NOT EDIT |
|
141 |
# automagically generated from the projectDefinition: ',self name",' at ',Timestamp now printString",'. |
|
142 |
# |
|
143 |
# Warning: once you modify this file, do not rerun |
|
144 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
145 |
# |
|
146 |
# The Makefile as generated by this Make.proto supports the following targets: |
|
147 |
# make - compile all st-files to a classLib |
|
148 |
# make clean - clean all temp files |
|
149 |
# make clobber - clean all |
|
150 |
# |
|
151 |
# This file contains definitions for Unix based platforms. |
|
152 |
# It shares common definitions with the win32-make in Make.spec. |
|
153 |
||
154 |
# |
|
155 |
# position (of this package) in directory hierarchy: |
|
156 |
# (must point to ST/X top directory, for tools and includes) |
|
157 |
TOP=%(TOP) |
|
158 |
INCLUDE_TOP=$(TOP)/.. |
|
159 |
||
160 |
# subdirectories where targets are to be made: |
|
161 |
SUBDIRS=%(SUBDIRECTORIES) |
|
162 |
||
163 |
||
164 |
# subdirectories where Makefiles are to be made: |
|
165 |
# (only define if different from SUBDIRS) |
|
166 |
# ALLSUBDIRS= |
|
167 |
||
168 |
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS) |
|
169 |
||
170 |
# ********** OPTIONAL: MODIFY the next line *** |
|
171 |
# additional C targets or libraries should be added below |
|
172 |
LOCAL_EXTRA_TARGETS= |
|
173 |
||
174 |
OBJS= |
|
175 |
||
176 |
%(ADDITIONAL_DEFINITIONS) |
|
177 |
||
178 |
all:: preMake %(PRIMARY_TARGET) postMake |
|
179 |
||
180 |
pre_objs:: %(ADDITIONAL_TARGETS) %(ADDITIONAL_TARGETS_SVN) |
|
181 |
||
182 |
%(ADDITIONAL_RULES) |
|
183 |
||
184 |
%(ADDITIONAL_RULES_SVN) |
|
185 |
||
186 |
%(ADDITIONAL_RULES_HG) |
|
187 |
||
188 |
%(ADDITIONAL_HEADERRULES) |
|
189 |
||
190 |
# run default testsuite for this package |
|
191 |
test: $(TOP)/goodies/builder/reports |
|
192 |
$(MAKE) -C $(TOP)/goodies/builder/reports -f Makefile.init |
|
193 |
$(TOP)/goodies/builder/reports/report-runner.sh -D . -r Builder::TestReport -p $(PACKAGE) |
|
194 |
||
195 |
||
196 |
||
197 |
# add more install actions here |
|
198 |
install:: |
|
199 |
||
200 |
# add more install actions for aux-files (resources) here |
|
201 |
installAux:: |
|
202 |
||
203 |
# add more preMake actions here |
|
204 |
preMake:: |
|
205 |
||
206 |
# add more postMake actions here |
|
207 |
postMake:: cleanjunk |
|
208 |
||
209 |
# build all mandatory prerequisite packages (containing superclasses) for this package |
|
210 |
prereq: |
|
211 |
%(MAKE_PREREQUISITES) |
|
212 |
||
213 |
# build all packages containing referenced classes for this package |
|
17230 | 214 |
# they are not needed to compile the package (but later, to load it) |
16681 | 215 |
references: |
216 |
%(MAKE_REFERENCES) |
|
217 |
||
218 |
cleanjunk:: |
|
219 |
%(TAB)-rm -f *.s *.s2 |
|
220 |
||
221 |
clean:: |
|
222 |
%(TAB)-rm -f *.o *.H |
|
223 |
||
224 |
clobber:: clean |
|
225 |
%(TAB)-rm -f *.so *.dll |
|
226 |
||
227 |
', |
|
228 |
" |
|
229 |
$(INSTALLBASE):: |
|
230 |
%(TAB)@test -d $@ || mkdir $@ |
|
231 |
||
232 |
$(INSTALLBASE)/packages:: $(INSTALLBASE) |
|
233 |
%(TAB)@test -d $@ || mkdir $@ |
|
234 |
||
235 |
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages |
|
236 |
%(TAB)@test -d $@ || mkdir $@ |
|
237 |
||
238 |
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE) |
|
239 |
%(TAB)@test -d $@ || mkdir $@ |
|
240 |
" |
|
241 |
' |
|
242 |
' |
|
243 |
! |
|
244 |
||
245 |
make_dot_spec |
|
246 |
||
247 |
^ |
|
248 |
'# $','Header','$ |
|
249 |
# |
|
250 |
# DO NOT EDIT |
|
251 |
# automagically generated from the projectDefinition: ',self name,"' at ',Timestamp now printString,"'. |
|
252 |
# |
|
253 |
# Warning: once you modify this file, do not rerun |
|
254 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
255 |
# |
|
256 |
# This file contains specifications which are common to all platforms. |
|
257 |
# |
|
258 |
||
259 |
# Do NOT CHANGE THESE DEFINITIONS |
|
260 |
# (otherwise, ST/X will have a hard time to find out the packages location from its packageID, |
|
261 |
# to find the source code of a class and to find the library for a package) |
|
262 |
MODULE=%(MODULE) |
|
263 |
MODULE_DIR=%(MODULE_DIRECTORY) |
|
264 |
PACKAGE=$(MODULE):$(MODULE_DIR) |
|
265 |
' |
|
266 |
! ! |
|
267 |
||
268 |
!FolderForProjectsDefinition class methodsFor:'queries'! |
|
269 |
||
270 |
isAbstract |
|
271 |
^ self == FolderForProjectsDefinition |
|
272 |
! |
|
273 |
||
274 |
isFolderForProjectsDefinition |
|
275 |
^ self isAbstract not |
|
276 |
! |
|
277 |
||
278 |
projectType |
|
279 |
^ FolderForSubApplicationsType |
|
280 |
! ! |
|
281 |
||
282 |
!FolderForProjectsDefinition class methodsFor:'documentation'! |
|
283 |
||
284 |
version |
|
17230 | 285 |
^ '$Header: /cvs/stx/stx/libbasic/FolderForProjectsDefinition.st,v 1.3 2014-12-19 14:24:05 cg Exp $' |
16681 | 286 |
! |
287 |
||
288 |
version_CVS |
|
17230 | 289 |
^ '$Header: /cvs/stx/stx/libbasic/FolderForProjectsDefinition.st,v 1.3 2014-12-19 14:24:05 cg Exp $' |
16681 | 290 |
! ! |
291 |