ProjectBuilder.st
changeset 2918 47d5c20da62d
parent 2916 59c84eca29fd
child 2921 bea9c6bb6a90
equal deleted inserted replaced
2917:086fcfdbd182 2918:47d5c20da62d
    90     "Created: / 21-01-2012 / 14:06:51 / cg"
    90     "Created: / 21-01-2012 / 14:06:51 / cg"
    91 !
    91 !
    92 
    92 
    93 listOfPossibleCompilers
    93 listOfPossibleCompilers
    94     OperatingSystem isMSWINDOWSlike ifTrue:[
    94     OperatingSystem isMSWINDOWSlike ifTrue:[
    95         ^ #('bcc' 'vc' 'tcc' 'lcc' 'gcc'  )
    95         OperatingSystem getLoginName = 'cg' ifTrue:[
       
    96             ^ #('bcc' 'vc' 'lcc' 'tcc' 'mingw'  )
       
    97         ].
       
    98         ^ #('bcc' 'vc' 'lcc'  )
    96     ].
    99     ].
    97     ^ #('gcc')
   100     ^ #('gcc')
    98 
   101 
    99     "Created: / 21-01-2012 / 14:04:15 / cg"
   102     "Created: / 21-01-2012 / 14:04:15 / cg"
   100 ! !
   103 ! !
   520             files := files , #( 
   523             files := files , #( 
   521                         'librun/objvc/librun.dll'   "/ linkage is against vc version!!
   524                         'librun/objvc/librun.dll'   "/ linkage is against vc version!!
   522                         'lib/vc/librun.lib'
   525                         'lib/vc/librun.lib'
   523                     ).
   526                     ).
   524         ].
   527         ].
       
   528         usedCompiler = 'mingw' ifTrue:[
       
   529             files := files , #( 
       
   530                         'librun/objvc/librun.dll'   "/ linkage is against vc version!!
       
   531                         'lib/vc/librun.lib'
       
   532                     ).
       
   533         ].
   525     ] ifFalse:[
   534     ] ifFalse:[
   526         files := #(
   535         files := #(
   527                     'librun/main.c'
   536                     'librun/main.c'
   528                     'librun/librun.so'
   537                     'librun/librun.so'
   529                 )
   538                 )
   552         ] ifFalse:[
   561         ] ifFalse:[
   553             self error:'Missing file: ',relativePath printString mayProceed:true.
   562             self error:'Missing file: ',relativePath printString mayProceed:true.
   554         ].
   563         ].
   555     ].
   564     ].
   556 
   565 
   557     "Modified (comment): / 05-09-2012 / 10:29:28 / cg"
   566     "Modified: / 05-09-2012 / 16:26:25 / cg"
   558 !
   567 !
   559 
   568 
   560 createHeaderFileFor:aClass in:packageTargetDir
   569 createHeaderFileFor:aClass in:packageTargetDir
   561     |instVarList classInstVarList classVarList bindings superclassFilename
   570     |instVarList classInstVarList classVarList bindings superclassFilename
   562      template file newContents oldContents|
   571      template file newContents oldContents|
   779         ^ 'tccmake'. "/ compilerFlag := '-DUSELCC' 
   788         ^ 'tccmake'. "/ compilerFlag := '-DUSELCC' 
   780     ].
   789     ].
   781     usedCompiler = 'gcc' ifTrue:[ 
   790     usedCompiler = 'gcc' ifTrue:[ 
   782         ^ 'make'. 
   791         ^ 'make'. 
   783     ].
   792     ].
   784     usedCompiler = 'gcc' ifTrue:[ 
   793     usedCompiler = 'mingw' ifTrue:[ 
   785         ^ 'make'. 
   794         ^ 'mingwmake'. 
   786     ].
   795     ].
   787     self error:'unknown compiler specified'.
   796     self error:'unknown compiler specified'.
   788 
   797 
   789     "Created: / 03-09-2012 / 19:46:07 / cg"
   798     "Created: / 03-09-2012 / 19:46:07 / cg"
   790 !
   799 !
   849 
   858 
   850     "Created: / 20-08-2012 / 17:01:13 / cg"
   859     "Created: / 20-08-2012 / 17:01:13 / cg"
   851 !
   860 !
   852 
   861 
   853 objDirForUsedCompiler:usedCompiler
   862 objDirForUsedCompiler:usedCompiler
       
   863     usedCompiler = 'gcc' ifTrue:[^ 'obj'].      "/ unix case
       
   864 
   854     usedCompiler = 'bcc' ifTrue:[^ 'objbc'].
   865     usedCompiler = 'bcc' ifTrue:[^ 'objbc'].
   855     usedCompiler = 'vc' ifTrue:[^ 'objvc'].
   866     usedCompiler = 'vc' ifTrue:[^ 'objvc'].
   856     usedCompiler = 'tcc' ifTrue:[^ 'objtcc'].
   867     usedCompiler = 'tcc' ifTrue:[^ 'objtcc'].
   857     usedCompiler = 'lcc' ifTrue:[^ 'objlcc'].
   868     usedCompiler = 'lcc' ifTrue:[^ 'objlcc'].
   858     usedCompiler = 'gcc' ifTrue:[^ 'obj'].
   869     usedCompiler = 'mingw' ifTrue:[^ 'objmingw'].
   859     self halt:'please fill in here'.
   870     self halt:'please fill in here'.
   860     ^ 'objbc'
   871     ^ 'objbc'
   861 
   872 
   862     "Created: / 03-09-2012 / 19:55:34 / cg"
   873     "Created: / 03-09-2012 / 19:55:34 / cg"
   863 !
   874 !