define #extraTargets
authorStefan Vogel <sv@exept.de>
Tue, 21 Jul 2009 16:44:46 +0200
changeset 11801 e3f0fc0c29b7
parent 11800 bfd3073ef9d2
child 11802 22f098bff512
define #extraTargets
ApplicationDefinition.st
--- a/ApplicationDefinition.st	Mon Jul 20 19:05:21 2009 +0200
+++ b/ApplicationDefinition.st	Tue Jul 21 16:44:46 2009 +0200
@@ -280,6 +280,16 @@
      ^ 'ALL'
 !
 
+extraTargets
+    "extra targets to be built when creating the exe"
+
+     self needResources ifTrue:[
+        ^ #('RESOURCEFILES')
+     ].
+
+     ^ #()
+!
+
 guiClassFileNames_unix
     ^ self guiClasses_unix 
         collect:[:cls | (cls classBaseFilename asFilename withSuffix:'so') baseName].
@@ -1884,11 +1894,11 @@
         at: 'DEPENDENCIES' put: (self generateDependencies_win32);
         at: 'SUBPROJECTS_LIBS' put: (self generateSubProjectLines_bc_dot_mak ); 
         at: 'BUILD_TARGET' put: (self buildTarget );
+        at: 'REQUIRED_SUPPORT_DIRS' put: (self extraTargets asStringWith:' ');
         yourself.
 
     self needResources ifTrue:[
         d 
-            at: 'REQUIRED_SUPPORT_DIRS' put: 'RESOURCEFILES';
             at: 'RESOURCE_RULES' put:( self replaceMappings: d 
                                             in: self bc_dot_mak_resource_rules );
             at: 'STX_RESOURCE_RULES' put: ( self replaceMappings: d 
@@ -2552,5 +2562,5 @@
 !ApplicationDefinition class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ApplicationDefinition.st,v 1.140 2009-07-07 08:24:40 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ApplicationDefinition.st,v 1.141 2009-07-21 14:44:46 stefan Exp $'
 ! !