Ignore:
Timestamp:
Nov 24, 2007 2:19:07 AM (12 years ago)
Author:
kmartin
Message:

icorporate a mingw build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBbuildConfig.py

    r786 r787  
    292292  # Source is now available, so now it is time to run config
    293293  #---------------------------------------------------------------------
    294   if configuration['buildMethod']=='unixConfig' :
     294  if configuration['buildMethod']=='unixConfig' or configuration['buildMethod']=='mingw':
    295295    skipOptions=''
    296296
     
    322322    configOptions+=configuration['configOptions']['invariant']
    323323    configOptions+=skipOptions
    324     configCmd = os.path.join(projectCheckOutDir,"configure "+configOptions)
     324   
     325
     326    #start kipp change
     327    #
     328    if configuration['buildMethod']=='mingw' :
     329      configCmd = os.path.join(projectCheckOutDir,"configure ")
     330      #what a pain replace("\\", "/") does not work
     331      # we must split and then join, ugh
     332      pathParts = configCmd.split("\\")
     333      sep = '/'
     334      configCmd = sep.join(pathParts)
     335      configCmd = "sh -c " + "'" + configCmd + configOptions +  "'"
     336    else:
     337      configCmd = os.path.join(projectCheckOutDir,"configure "+configOptions)
     338    #
     339    #end kipp change
    325340
    326341    # If config was previously run, then no need to run again.
     
    355370    NBlogMessages.writeMessage( '  make' )
    356371    commandHistory+=[ 'make' ]
    357     result=NBosCommand.run('make')
     372   
     373    #
     374    # start kipp
     375    if configuration['buildMethod']=='mingw' :
     376      result=NBosCommand.run('sh -c make')
     377    else:
     378      result=NBosCommand.run('make')
     379     
     380    # end kipp
     381    #
    358382    writeResults(result,'make')
    359383
Note: See TracChangeset for help on using the changeset viewer.