class: Tools::ProjectBuilder
authorClaus Gittinger <cg@exept.de>
Mon, 11 Mar 2013 20:20:35 +0100
changeset 2971 e10937c35748
parent 2970 6d37e90dab00
child 2972 7db782e25d01
class: Tools::ProjectBuilder comment/format in: #copySupportFilesForLinkage
ProjectBuilder.st
--- a/ProjectBuilder.st	Mon Mar 11 20:07:35 2013 +0100
+++ b/ProjectBuilder.st	Mon Mar 11 20:20:35 2013 +0100
@@ -634,7 +634,22 @@
                 (mySTXTopDirectory / relativePath) copyTo:(buildDirectory / 'stx' / relativePath).    
             ]
         ] ifFalse:[
-            self error:'Missing file: ',relativePath printString mayProceed:true.
+"/ does not really help: objbc/librun.lib does not work with MSVC and vice versa...
+"/            ((relativePath = 'librun/objvc/librun.dll')
+"/            and:[ (mySTXTopDirectory / 'librun/objbc/librun.dll') exists ])ifTrue:[
+"/                stdErr nextPutLine:('Warning: using alternative librun from objbc (Borland version)...'). 
+"/                (buildDirectory / 'stx' / relativePath) directory recursiveMakeDirectory.
+"/                (mySTXTopDirectory / 'librun/objbc/librun.dll') copyTo:(buildDirectory / 'stx' / relativePath).    
+"/            ] ifFalse:[
+"/                ((relativePath = 'librun/objbc/librun.dll')
+"/                and:[ (mySTXTopDirectory / 'librun/objvc/librun.dll') exists ])ifTrue:[
+"/                    stdErr nextPutLine:('Warning: using alternative librun from objvc (MSVC version)...'). 
+"/                    (buildDirectory / 'stx' / relativePath) directory recursiveMakeDirectory.
+"/                    (mySTXTopDirectory / 'librun/objvc/librun.dll') copyTo:(buildDirectory / 'stx' / relativePath).    
+"/                ] ifFalse:[
+                    self error:'Missing file: ',relativePath printString mayProceed:true.
+"/                ]
+"/            ]
         ].
     ].