Use dictionary to hold filename->generatorMethpd mapping
authorStefan Vogel <sv@exept.de>
Tue, 05 Feb 2008 11:26:21 +0100
changeset 10865 59a7977261af
parent 10864 512cd79cee0e
child 10866 49e2ad93cb32
Use dictionary to hold filename->generatorMethpd mapping .nsi files are generated only for applications
LibraryDefinition.st
--- a/LibraryDefinition.st	Tue Feb 05 11:26:11 2008 +0100
+++ b/LibraryDefinition.st	Tue Feb 05 11:26:21 2008 +0100
@@ -69,22 +69,17 @@
 !LibraryDefinition class methodsFor:'file generation'!
 
 basicFileNamesToGenerate
-    ^ #( 
-          #('Make.proto'        #'generate_make_dot_proto')
-          #('Make.spec'         #'generate_make_dot_spec')
-          #('libInit.cc'        #'generate_libInit_dot_cc')
-          #('bc.mak'            #'generate_bc_dot_mak')
-          #('abbrev.stc'        #'generate_abbrev_dot_stc') 
-          #('bmake.bat'         #'generate_bmake_dot_mak') 
-     ) , (Array
-            with:
-                (Array 
-                    with:self rcFilename
-                    with:#'generate_packageName_dot_rc')
-         ).
+    "answer a dictionary (filename -> generator method) with all the files, that have to be generated for this
+     package"
+
+    |dict|
 
-    "Created: / 14-09-2006 / 14:36:14 / cg"
-    "Modified: / 14-09-2006 / 21:02:08 / cg"
+    dict := super basicFileNamesToGenerate.
+
+    dict 
+        at:'libInit.cc'         put:#'generate_libInit_dot_cc'.
+
+    ^ dict.
 !
 
 generateFile:filename
@@ -607,5 +602,5 @@
 !LibraryDefinition class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.81 2007-12-05 12:23:33 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.82 2008-02-05 10:26:21 stefan Exp $'
 ! !