ProjectBuilder.st
changeset 2918 47d5c20da62d
parent 2916 59c84eca29fd
child 2921 bea9c6bb6a90
     1.1 --- a/ProjectBuilder.st	Wed Sep 05 11:22:38 2012 +0200
     1.2 +++ b/ProjectBuilder.st	Wed Sep 05 20:22:28 2012 +0200
     1.3 @@ -92,7 +92,10 @@
     1.4  
     1.5  listOfPossibleCompilers
     1.6      OperatingSystem isMSWINDOWSlike ifTrue:[
     1.7 -        ^ #('bcc' 'vc' 'tcc' 'lcc' 'gcc'  )
     1.8 +        OperatingSystem getLoginName = 'cg' ifTrue:[
     1.9 +            ^ #('bcc' 'vc' 'lcc' 'tcc' 'mingw'  )
    1.10 +        ].
    1.11 +        ^ #('bcc' 'vc' 'lcc'  )
    1.12      ].
    1.13      ^ #('gcc')
    1.14  
    1.15 @@ -522,6 +525,12 @@
    1.16                          'lib/vc/librun.lib'
    1.17                      ).
    1.18          ].
    1.19 +        usedCompiler = 'mingw' ifTrue:[
    1.20 +            files := files , #( 
    1.21 +                        'librun/objvc/librun.dll'   "/ linkage is against vc version!!
    1.22 +                        'lib/vc/librun.lib'
    1.23 +                    ).
    1.24 +        ].
    1.25      ] ifFalse:[
    1.26          files := #(
    1.27                      'librun/main.c'
    1.28 @@ -554,7 +563,7 @@
    1.29          ].
    1.30      ].
    1.31  
    1.32 -    "Modified (comment): / 05-09-2012 / 10:29:28 / cg"
    1.33 +    "Modified: / 05-09-2012 / 16:26:25 / cg"
    1.34  !
    1.35  
    1.36  createHeaderFileFor:aClass in:packageTargetDir
    1.37 @@ -781,8 +790,8 @@
    1.38      usedCompiler = 'gcc' ifTrue:[ 
    1.39          ^ 'make'. 
    1.40      ].
    1.41 -    usedCompiler = 'gcc' ifTrue:[ 
    1.42 -        ^ 'make'. 
    1.43 +    usedCompiler = 'mingw' ifTrue:[ 
    1.44 +        ^ 'mingwmake'. 
    1.45      ].
    1.46      self error:'unknown compiler specified'.
    1.47  
    1.48 @@ -851,11 +860,13 @@
    1.49  !
    1.50  
    1.51  objDirForUsedCompiler:usedCompiler
    1.52 +    usedCompiler = 'gcc' ifTrue:[^ 'obj'].      "/ unix case
    1.53 +
    1.54      usedCompiler = 'bcc' ifTrue:[^ 'objbc'].
    1.55      usedCompiler = 'vc' ifTrue:[^ 'objvc'].
    1.56      usedCompiler = 'tcc' ifTrue:[^ 'objtcc'].
    1.57      usedCompiler = 'lcc' ifTrue:[^ 'objlcc'].
    1.58 -    usedCompiler = 'gcc' ifTrue:[^ 'obj'].
    1.59 +    usedCompiler = 'mingw' ifTrue:[^ 'objmingw'].
    1.60      self halt:'please fill in here'.
    1.61      ^ 'objbc'
    1.62