Changeset 19805

Show
Ignore:
Timestamp:
02/13/07 08:32:23 (2 years ago)
Author:
patrick
Message:

Do not allow the use of Visual Studio .NET 2002 (7.0). It is no longer
supported.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/build_windows.py

    r19800 r19805  
    3737pj = os.path.join 
    3838 
    39 EXIT_STATUS_SUCCESS           = 0 
    40 EXIT_STATUS_NO_MSVS           = 1 
    41 EXIT_STATUS_MISSING_DATA_FILE = 2 
    42 EXIT_STATUS_MSVS_START_ERROR  = 3 
    43 EXIT_STATUS_INVALID_PATH      = 4 
    44 EXIT_STATUS_MISSING_REQ_VALUE = 5 
     39EXIT_STATUS_SUCCESS              = 0 
     40EXIT_STATUS_NO_MSVS              = 1 
     41EXIT_STATUS_MISSING_DATA_FILE    = 2 
     42EXIT_STATUS_MSVS_START_ERROR     = 3 
     43EXIT_STATUS_INVALID_PATH         = 4 
     44EXIT_STATUS_MISSING_REQ_VALUE    = 5 
     45EXIT_STATUS_UNSUPPORTED_COMPILER = 6 
    4546 
    4647gJugglerDir      = os.path.dirname(os.path.abspath(sys.argv[0])) 
     
    115116 
    116117      if cl_major == 13 and cl_minor < 10: 
    117          vs_ver = '.NET 2002' 
     118         printStatus("Visual Studio .NET 2002 is not supported") 
     119         sys.exit(EXIT_STATUS_UNSUPPORTED_COMPILER) 
    118120      elif cl_major == 13 and cl_minor >= 10: 
    119121         vs_ver = '.NET 2003' 
     
    137139      if not reattempt: 
    138140         printStatus("Visual studio not in path, attempting to find...") 
    139          # Common installation directories for Visual Studio 7.x
     141         # Common installation directories for Visual Studio
    140142         vs_dirs = [r'C:\Program Files\Microsoft Visual Studio 8', 
    141                     r'C:\Program Files\Microsoft Visual Studio .NET 2003', 
    142                     r'C:\Program Files\Microsoft Visual Studio .NET', 
     143                    r'C:\Program Files\Microsoft Visual Studio .NET 2003' 
    143144                   ] 
    144145 
     
    176177   (cl_ver_major, cl_ver_minor) = detectVisualStudioVersion() 
    177178 
    178    # For Visual Studio .NET 2002 and 2003 (versions 7.0 and 7.1 respectively), 
    179    # we will use the solution in the vc7 subtree. 
     179   # For Visual Studio .NET 2003 (version 7.1), we will use the solution in 
     180   # the vc7 subtree. 
    180181   if cl_ver_major == 13: 
    181182      vc_dir = 'vc7' 
     
    23712372      elif exitEx.code == EXIT_STATUS_MISSING_REQ_VALUE: 
    23722373         status = 'required value not given' 
     2374      elif exitEx.code == EXIT_STATUS_UNSUPPORTED_COMPILER: 
     2375         status = 'unsupported compiler' 
    23732376      else: 
    23742377         status = 'error encountered'