VirtualBox

Changeset 42313 in vbox


Ignore:
Timestamp:
Jul 22, 2012 4:27:45 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79379
Message:

configure.vbs: Direct X is no longer required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.vbs

    r42296 r42313  
    13821382   PrintResult "Midl.exe", strMidl
    13831383end sub
    1384 
    1385 
    1386 ''
    1387 ' Checks for a recent DirectX SDK.
    1388 sub CheckForDirectXSDK(strOptDXSDK)
    1389    dim strPathDXSDK, str, arrSubKeys, arrSubKeys2, strKey, strKey2
    1390    PrintHdr "Direct X SDK"
    1391 
    1392    '
    1393    ' Find the DX SDK.
    1394    '
    1395    strPathDXSDK = ""
    1396    ' The specified path.
    1397    if (strPathDXSDK = "") And (strOptDXSDK <> "") then
    1398       if CheckForDirectXSDKSub(strOptDXSDK) then strPathDXSDK = strOptDXSDK
    1399    end if
    1400 
    1401    ' The tools location (first).
    1402    if (strPathDXSDK = "") And (g_blnInternalFirst = True) then
    1403       str = g_strPathDev & "/win.x86/dxsdk/200610"
    1404       if CheckForDirectXSDKSub(str) then strPathDXSDK = str
    1405    end if
    1406 
    1407    ' Check the installer registry (sucks a bit).
    1408    arrSubKeys = RegEnumSubKeys("HKLM", "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData")
    1409    for Each strSubKey In arrSubKeys
    1410       strKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\" & strSubKey & "\Products"
    1411       arrSubKeys2 = RegEnumSubKeys("HKLM", strKey)
    1412       for Each strSubKey2 In arrSubKeys2
    1413          strKey2 = "HKLM\" & strKey & "\" & strSubKey2 & "\InstallProperties"
    1414          str = RegGetString(strKey2 & "\DisplayName")
    1415          if InStr(1, str, "Microsoft DirectX SDK") > 0 then
    1416             str = RegGetString(strKey2 & "\InstallLocation")
    1417             if (str <> "") And (strPathDXSDK = "") then
    1418                if CheckForDirectXSDKSub(str) then
    1419                   strPathDXSDK = str
    1420                   Exit For
    1421                end if
    1422             end if
    1423          end if
    1424       Next
    1425    Next
    1426 
    1427    ' The tools location (post).
    1428    if (strPathDXSDK = "") And (g_blnInternalFirst = False) then
    1429       str = g_strPathDev & "/win.x86/dxsdk/200610"
    1430       if CheckForDirectXSDKSub(str) then strPathDXSDK = str
    1431    end if
    1432 
    1433    ' Give up.
    1434    if strPathDXSDK = "" then
    1435       MsgError "Cannot find a suitable Direct X SDK. Check configure.log and the build requirements."
    1436       exit sub
    1437    end if
    1438 
    1439    '
    1440    ' Emit the config.
    1441    '
    1442    strPathDXSDK = UnixSlashes(PathAbs(strPathDXSDK))
    1443    CfgPrint "PATH_SDK_DXSDK        := " & strPathDXSDK
    1444    CfgPrint "PATH_SDK_DXSDKX86     := $(PATH_SDK_DXSDK)"
    1445    CfgPrint "PATH_SDK_DXSDKAMD64   := $(PATH_SDK_DXSDK)"
    1446 
    1447    PrintResult "Direct X SDK", strPathDXSDK
    1448 end sub
    1449 
    1450 '' Quick check if the DXSDK is in the specified directory or not.
    1451 function CheckForDirectXSDKSub(strPathDXSDK)
    1452    CheckForDirectXSDKSub = False
    1453    LogPrint "trying: strPathDXSDK=" & strPathDXSDK
    1454    if LogFileExists(strPathDXSDK, "Lib/x86/dxguid.lib") _
    1455       then
    1456       '' @todo figure out a way we can verify the version/build!
    1457       CheckForDirectXSDKSub = True
    1458    end if
    1459 end function
    14601384
    14611385
     
    21572081            strOptDDK = strPath
    21582082         case "--with-dxsdk"
    2159             strOptDXSDK = strPath
     2083            MsgWarning "Ignornig --with-dxsdk (the DirectX SDK is no longer required)."
    21602084         case "--with-kbuild"
    21612085            strOptkBuild = strPath
     
    22442168   CheckForPlatformSDK strOptSDK
    22452169   CheckForMidl
    2246    CheckForDirectXSDK strOptDXSDK
    22472170   CheckForMingW strOptMingw, strOptW32API
    22482171   CfgPrint "VBOX_WITH_OPEN_WATCOM := " '' @todo look for openwatcom 1.9+
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette