Changeset 42313 in vbox
- Timestamp:
- Jul 22, 2012 4:27:45 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 79379
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.vbs
r42296 r42313 1382 1382 PrintResult "Midl.exe", strMidl 1383 1383 end sub 1384 1385 1386 ''1387 ' Checks for a recent DirectX SDK.1388 sub CheckForDirectXSDK(strOptDXSDK)1389 dim strPathDXSDK, str, arrSubKeys, arrSubKeys2, strKey, strKey21390 PrintHdr "Direct X SDK"1391 1392 '1393 ' Find the DX SDK.1394 '1395 strPathDXSDK = ""1396 ' The specified path.1397 if (strPathDXSDK = "") And (strOptDXSDK <> "") then1398 if CheckForDirectXSDKSub(strOptDXSDK) then strPathDXSDK = strOptDXSDK1399 end if1400 1401 ' The tools location (first).1402 if (strPathDXSDK = "") And (g_blnInternalFirst = True) then1403 str = g_strPathDev & "/win.x86/dxsdk/200610"1404 if CheckForDirectXSDKSub(str) then strPathDXSDK = str1405 end if1406 1407 ' Check the installer registry (sucks a bit).1408 arrSubKeys = RegEnumSubKeys("HKLM", "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData")1409 for Each strSubKey In arrSubKeys1410 strKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\" & strSubKey & "\Products"1411 arrSubKeys2 = RegEnumSubKeys("HKLM", strKey)1412 for Each strSubKey2 In arrSubKeys21413 strKey2 = "HKLM\" & strKey & "\" & strSubKey2 & "\InstallProperties"1414 str = RegGetString(strKey2 & "\DisplayName")1415 if InStr(1, str, "Microsoft DirectX SDK") > 0 then1416 str = RegGetString(strKey2 & "\InstallLocation")1417 if (str <> "") And (strPathDXSDK = "") then1418 if CheckForDirectXSDKSub(str) then1419 strPathDXSDK = str1420 Exit For1421 end if1422 end if1423 end if1424 Next1425 Next1426 1427 ' The tools location (post).1428 if (strPathDXSDK = "") And (g_blnInternalFirst = False) then1429 str = g_strPathDev & "/win.x86/dxsdk/200610"1430 if CheckForDirectXSDKSub(str) then strPathDXSDK = str1431 end if1432 1433 ' Give up.1434 if strPathDXSDK = "" then1435 MsgError "Cannot find a suitable Direct X SDK. Check configure.log and the build requirements."1436 exit sub1437 end if1438 1439 '1440 ' Emit the config.1441 '1442 strPathDXSDK = UnixSlashes(PathAbs(strPathDXSDK))1443 CfgPrint "PATH_SDK_DXSDK := " & strPathDXSDK1444 CfgPrint "PATH_SDK_DXSDKX86 := $(PATH_SDK_DXSDK)"1445 CfgPrint "PATH_SDK_DXSDKAMD64 := $(PATH_SDK_DXSDK)"1446 1447 PrintResult "Direct X SDK", strPathDXSDK1448 end sub1449 1450 '' Quick check if the DXSDK is in the specified directory or not.1451 function CheckForDirectXSDKSub(strPathDXSDK)1452 CheckForDirectXSDKSub = False1453 LogPrint "trying: strPathDXSDK=" & strPathDXSDK1454 if LogFileExists(strPathDXSDK, "Lib/x86/dxguid.lib") _1455 then1456 '' @todo figure out a way we can verify the version/build!1457 CheckForDirectXSDKSub = True1458 end if1459 end function1460 1384 1461 1385 … … 2157 2081 strOptDDK = strPath 2158 2082 case "--with-dxsdk" 2159 strOptDXSDK = strPath2083 MsgWarning "Ignornig --with-dxsdk (the DirectX SDK is no longer required)." 2160 2084 case "--with-kbuild" 2161 2085 strOptkBuild = strPath … … 2244 2168 CheckForPlatformSDK strOptSDK 2245 2169 CheckForMidl 2246 CheckForDirectXSDK strOptDXSDK2247 2170 CheckForMingW strOptMingw, strOptW32API 2248 2171 CfgPrint "VBOX_WITH_OPEN_WATCOM := " '' @todo look for openwatcom 1.9+
Note:
See TracChangeset
for help on using the changeset viewer.