VirtualBox
Show
Ignore:
Timestamp:
10/26/07 02:38:41 (1 year ago)
Author:
vboxsync
Message:

try locate midl.exe (Visual C++ PSDK problem).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/configure.vbs

    r4746 r5506  
    3636Set g_objFileSys = WScript.CreateObject("Scripting.FileSystemObject") 
    3737 
    38 dim g_strPathkBuild, g_strPathkBuildBin, g_strPathDev, g_strPathVCC, g_strPathPSDK, g_strSubOutput 
     38dim g_strPathkBuild, g_strPathkBuildBin, g_strPathDev, g_strPathVCC, g_strPathPSDK, g_strPathDDK, g_strSubOutput 
    3939g_strPathkBuild = "" 
    4040g_strPathDev = "" 
    4141g_strPathVCC = "" 
    4242g_strPathPSDK = "" 
     43g_strPathDDK = "" 
    4344 
    4445dim g_blnDisableCOM, g_strDisableCOM 
     
    444445   CfgPrint "# Build configuration generated by " & GetCommandline() 
    445446   CfgPrint "#" 
    446    if g_blnInternalMode = False then  
     447   if g_blnInternalMode = False then 
    447448      CfgPrint "VBOX_OSE := 1" 
    448449   end if 
     
    10471048 
    10481049   PrintResult "Windows 2003 DDK", strPathDDK 
     1050   g_strPathDDK = strPathDDK 
    10491051end sub 
    10501052 
     
    10601062   end if 
    10611063end function 
     1064 
     1065 
     1066'' 
     1067' Finds midl.exe 
     1068sub CheckForMidl() 
     1069   dim strMidl 
     1070   PrintHdr "Midl.exe" 
     1071 
     1072   ' Skip if no COM/ATL. 
     1073   if g_blnDisableCOM then 
     1074      PrintResult "Xerces", "Skipped (" & g_strDisableCOM & ")" 
     1075      exit sub 
     1076   end if 
     1077 
     1078   if LogFileExists(g_strPathPSDK, "bin/Midl.exe") then 
     1079      strMidl = g_strPathPSDK & "/bin/Midl.exe" 
     1080   elseif LogFileExists(g_strPathVCC, "Common7/Tools/Bin/Midl.exe") then 
     1081      strMidl = g_strPathVCC & "/Common7/Tools/Bin/Midl.exe" 
     1082   elseif LogFileExists(g_strPathDDK, "bin/x86/Midl.exe") then 
     1083      strMidl = g_strPathDDK & "/bin/x86/Midl.exe" 
     1084   elseif LogFileExists(g_strPathDDK, "bin/Midl.exe") then 
     1085      strMidl = g_strPathDDK & "/bin/Midl.exe" 
     1086   elseif LogFileExists(g_strPathDev, "win.x86/bin/Midl.exe") then 
     1087      strMidl = g_strPathDev & "/win.x86/bin/Midl.exe" 
     1088   else 
     1089      MsgWarning "Midl.exe not found!" 
     1090      exit sub 
     1091   end if 
     1092 
     1093   CfgPrint "MAIN_IDL = " & strMidl 
     1094   PrintResult "Midl.exe", strMidl 
     1095end sub 
    10621096 
    10631097 
     
    11481182   ' The specified path. 
    11491183   if (strPathMingW = "") And (strOptMingW <> "") then 
    1150       if CheckForMingWSub(strOptMingW, strOptW32API) then  
     1184      if CheckForMingWSub(strOptMingW, strOptW32API) then 
    11511185         strPathMingW = strOptMingW 
    11521186         strPathW32API = strOptW32API 
     
    11581192      str = g_strPathDev & "/win.x86/mingw32/v3.3.3" 
    11591193      str2 = g_strPathDev & "/win.x86/w32api/v2.5" 
    1160       if CheckForMingWSub(str, str2) then  
     1194      if CheckForMingWSub(str, str2) then 
    11611195         strPathMingW = str 
    11621196         strPathW32API = str2 
     
    13851419   ' Ignore failure if we're in 'internal' mode. 
    13861420   if (strPathXerces = "") and g_blnInternalMode then 
    1387       PrintResult "Xerces", "ignored (internal mode)"  
     1421      PrintResult "Xerces", "ignored (internal mode)" 
    13881422      exit sub 
    13891423   end if 
     
    14181452    And LogFileExists(strPathXerces, "include/xercesc/validators/datatype/DatatypeValidator.hpp") _ 
    14191453      then 
    1420       ' The version is encoded in the dll/lib name, so try first  
     1454      ' The version is encoded in the dll/lib name, so try first 
    14211455      ' to find the dll and then a matching lib. 
    14221456      str = LogFindFile(strPathXerces, "bin/xerces-c_*.dll") 
     
    14791513   ' Ignore failure if we're in 'internal' mode. 
    14801514   if (strPathXalan = "") and g_blnInternalMode then 
    1481       PrintResult "Xalan", "ignored (internal mode)"  
     1515      PrintResult "Xalan", "ignored (internal mode)" 
    14821516      exit sub 
    14831517   end if 
     
    15141548    And LogFileExists(strPathXalan, "include/xalanc/XalanDOM/XalanText.hpp") _ 
    15151549      then 
    1516       ' The version is encoded in the dll/lib name, so try first  
     1550      ' The version is encoded in the dll/lib name, so try first 
    15171551      ' to find the dll and then a matching lib. 
    15181552      str = LogFindFile(strPathXalan, "bin/Xalan-C_*.dll") 
     
    17431777   CheckForPlatformSDK strOptSDK 
    17441778   CheckForWin2k3DDK strOptDDK 
     1779   CheckForMidl 
    17451780   CheckForDirectXSDK strOptDXSDK 
    17461781   CheckForMingW strOptMingw, strOptW32API 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy