#REFACTORING by stefan
authorStefan Vogel <sv@exept.de>
Tue, 04 Apr 2017 10:08:21 +0200
changeset 21685 0f9d82ec04db
parent 21684 790e03e94f84
child 21686 db92b354c4d9
#REFACTORING by stefan class: LibraryDefinition class added: #productName removed: #vc_dot_def #vc_dot_def_mappings fix undefined message sends
LibraryDefinition.st
--- a/LibraryDefinition.st	Tue Apr 04 09:27:22 2017 +0200
+++ b/LibraryDefinition.st	Tue Apr 04 10:08:21 2017 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 2006-2013 by eXept Software AG
               All Rights Reserved
@@ -69,6 +67,16 @@
     "Created: / 14-09-2006 / 10:55:23 / cg"
 !
 
+productName
+    "Returns a product name which will appear in <lib>.rc.
+     Under win32, this is placed into the dll's file-info.
+     This method is usually redefined in a concrete application definition"
+
+    ^ super productName ? self name.
+
+    "Created: / 03-04-2017 / 19:08:44 / stefan"
+!
+
 productType
     "Returns the product type for autopackage"
 
@@ -177,18 +185,6 @@
     ^ d
         at: 'MAKE_PREREQUISITES' put: (self generateRequiredMakePrerequisites_make_dot_proto);
         yourself.
-!
-
-vc_dot_def_mappings
-
-^Dictionary new
-    at: 'LIBRARY_NAME' put: (self libraryName);
-    at: 'DESCRIPTION' put: (self description asString storeString);
-    at: 'VERSION_NUMBER' put: (self versionNumber);
-    yourself
-
-    "Created: / 09-08-2006 / 11:21:21 / fm"
-    "Modified: / 14-09-2006 / 18:58:07 / cg"
 ! !
 
 !LibraryDefinition class methodsFor:'file mappings support'!
@@ -552,38 +548,6 @@
     "Modified: / 24-06-2009 / 21:39:29 / Jan Vrany <vranyj1@fel.cvut.cz>"
     "Modified: / 26-07-2012 / 00:57:29 / cg"
     "Modified: / 03-03-2014 / 12:17:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-!
-
-vc_dot_def
-
-"/^
-"/'LIBRARY        %(LIBRARY_NAME)
-"/DESCRIPTION     %(DESCRIPTION)
-"/VERSION         %(VERSION_NUMBER)
-"/CODE            EXECUTE READ
-"/DATA            READ WRITE
-"/SECTIONS
-"/    INITCODE    READ EXECUTE
-"/    INITDATA    READ WRITE
-"/EXPORTS
-"/    _%(LIBRARY_NAME)_Init               @1
-"/    _%(LIBRARY_NAME)_InitDefinition     @2
-"/IMPORTS'
-
-^
-'LIBRARY        %(LIBRARY_NAME)
-DESCRIPTION     %(DESCRIPTION)
-VERSION         %(VERSION_NUMBER)
-CODE            EXECUTE READ
-DATA            READ WRITE
-SECTIONS
-    INITCODE    READ EXECUTE
-    INITDATA    READ WRITE
-EXPORTS
-    _%(LIBRARY_NAME)_Init               @1
-IMPORTS'
-
-    "Modified: / 08-08-2006 / 19:33:14 / fm"
 ! !