VirtualBox

Changeset 6081 in vbox for trunk


Ignore:
Timestamp:
Dec 15, 2007 4:50:59 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
26774
Message:

Added --internal-last option for simplifying testing of the script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.vbs

    r6079 r6081  
    5050dim g_blnInternalMode
    5151g_blnInternalMode = False
     52
     53' Whether to try the internal stuff first or last.
     54dim g_blnInternalFirst
     55g_blnInternalFirst = True
    5256
    5357
     
    790794   end if
    791795
    792    if strPathVC = "" Then
     796   if (strPathVC = "") And (g_blnInternalFirst = True) Then
    793797      strPathVC = g_strPathDev & "/win.x86/vcc/v8"
    794798      if CheckForVisualCPPSub(strPathVC, "", blnOptVCExpressEdition) = False then
     
    896900            strPathVC = str
    897901            strPathVCCommon = str2
     902         end if
     903      end if
     904   end if
     905
     906   if (strPathVC = "") And (g_blnInternalFirst = False) Then
     907      strPathVC = g_strPathDev & "/win.x86/vcc/v8"
     908      if CheckForVisualCPPSub(strPathVC, "", blnOptVCExpressEdition) = False then
     909         strPathVC = g_strPathDev & "/win.x86/vcc/v7"
     910         if CheckForVisualCPPSub(strPathVC, "", blnOptVCExpressEdition) = False then
     911            strPathVC = ""
    898912         end if
    899913      end if
     
    10041018   end if
    10051019
    1006    ' The tools location.
    1007    if strPathPSDK = "" then
     1020   ' The tools location (first).
     1021   if (strPathPSDK = "") And (g_blnInternalFirst = True) then
    10081022      str = g_strPathDev & "/win.x86/sdk/200604"
    10091023      if CheckForPlatformSDKSub(str) then strPathPSDK = str
    10101024   end if
    10111025
    1012    if strPathPSDK = "" then
     1026   if (strPathPSDK = "") And (g_blnInternalFirst = True) then
    10131027      str = g_strPathDev & "/win.x86/sdk/200504"
    10141028      if CheckForPlatformSDKSub(str) then strPathPSDK = str
    10151029   end if
    10161030
    1017    if strPathPSDK = "" then
     1031   if (strPathPSDK = "") And (g_blnInternalFirst = True) then
    10181032      str = g_strPathDev & "/win.x86/sdk/200209"
    10191033      if CheckForPlatformSDKSub(str) then strPathPSDK = str
     
    10671081      end if
    10681082   Next
     1083
     1084   ' The tools location (post).
     1085   if (strPathPSDK = "") And (g_blnInternalFirst = False) then
     1086      str = g_strPathDev & "/win.x86/sdk/200604"
     1087      if CheckForPlatformSDKSub(str) then strPathPSDK = str
     1088   end if
     1089
     1090   if (strPathPSDK = "") And (g_blnInternalFirst = False) then
     1091      str = g_strPathDev & "/win.x86/sdk/200504"
     1092      if CheckForPlatformSDKSub(str) then strPathPSDK = str
     1093   end if
     1094
     1095   if (strPathPSDK = "") And (g_blnInternalFirst = False) then
     1096      str = g_strPathDev & "/win.x86/sdk/200209"
     1097      if CheckForPlatformSDKSub(str) then strPathPSDK = str
     1098   end if
    10691099
    10701100   ' Give up.
     
    11161146   end if
    11171147
    1118    ' The tools location.
    1119    if strPathDDK = "" then
     1148   ' The tools location (first).
     1149   if (strPathDDK = "") And (g_blnInternalFirst = True) then
    11201150      str = g_strPathDev & "/win.x86/ddkwin2k3/200503"
    11211151      if CheckForWin2k3DDKSub(str, False) then strPathDDK = str
    11221152   end if
    11231153
    1124    if strPathDDK = "" then
     1154   if (strPathDDK = "") And (g_blnInternalFirst = True) then
    11251155      str = g_strPathDev & "/win.x86/ddkwin2k3/2004"
    11261156      if CheckForWin2k3DDKSub(str, False) then strPathDDK = str
     
    11701200   Next
    11711201
     1202   ' The tools location (post).
     1203   if (strPathDDK = "") And (g_blnInternalFirst = False) then
     1204      str = g_strPathDev & "/win.x86/ddkwin2k3/200503"
     1205      if CheckForWin2k3DDKSub(str, False) then strPathDDK = str
     1206   end if
     1207
     1208   if (strPathDDK = "") And (g_blnInternalFirst = False) then
     1209      str = g_strPathDev & "/win.x86/ddkwin2k3/2004"
     1210      if CheckForWin2k3DDKSub(str, False) then strPathDDK = str
     1211   end if
     1212
     1213   ' Give up.
    11721214   if strPathDDK = "" then
    11731215      MsgError "Cannot find a suitable Windows 2003 DDK. Check configure.log and the build requirements."
     
    12491291   end if
    12501292
    1251    ' The tools location.
    1252    if strPathDXSDK = "" then
     1293   ' The tools location (first).
     1294   if (strPathDXSDK = "") And (g_blnInternalFirst = True) then
    12531295      str = g_strPathDev & "/win.x86/dxsdk/200610"
    12541296      if CheckForDirectXSDKSub(str) then strPathDXSDK = str
     
    12751317   Next
    12761318
     1319   ' The tools location (post).
     1320   if (strPathDXSDK = "") And (g_blnInternalFirst = False) then
     1321      str = g_strPathDev & "/win.x86/dxsdk/200610"
     1322      if CheckForDirectXSDKSub(str) then strPathDXSDK = str
     1323   end if
     1324
     1325   ' Give up.
    12771326   if strPathDXSDK = "" then
    12781327      MsgError "Cannot find a suitable Direct X SDK. Check configure.log and the build requirements."
     
    13261375   end if
    13271376
    1328    ' The tools location.
    1329    if strPathMingW = "" then
     1377   ' The tools location (first).
     1378   if (strPathMingW = "") And (g_blnInternalFirst = True) then
    13301379      str = g_strPathDev & "/win.x86/mingw32/v3.3.3"
    13311380      str2 = g_strPathDev & "/win.x86/w32api/v2.5"
     
    13501399         str = PathParent(PathStripFilename(str))
    13511400         if CheckForMingWSub(str, str) then strPathMingW = str
     1401      end if
     1402   end if
     1403
     1404   ' The tools location (post).
     1405   if (strPathMingW = "") And (g_blnInternalFirst = False) then
     1406      str = g_strPathDev & "/win.x86/mingw32/v3.3.3"
     1407      str2 = g_strPathDev & "/win.x86/w32api/v2.5"
     1408      if CheckForMingWSub(str, str2) then
     1409         strPathMingW = str
     1410         strPathW32API = str2
    13521411      end if
    13531412   end if
     
    14521511   end if
    14531512
    1454    ' The tools location.
    1455    if strPathlibSDL = "" Then
     1513   ' The tools location (first).
     1514   if (strPathlibSDL = "") And (g_blnInternalFirst = True) Then
    14561515      str = g_strPathDev & "/win.x86/libsdl/v1.2.11"
    14571516      if CheckForlibSDLSub(str) then strPathlibSDL = str
    14581517   end if
    14591518
    1460    if strPathlibSDL = "" Then
     1519   if (strPathlibSDL = "") And (g_blnInternalFirst = True) Then
    14611520      str = g_strPathDev & "/win.x86/libsdl/v1.2.7-InnoTek"
    14621521      if CheckForlibSDLSub(str) then strPathlibSDL = str
     
    14731532   if (strPathlibSDL = "") And (str <> "") Then
    14741533      str = PathParent(PathStripFilename(str))
     1534      if CheckForlibSDLSub(str) then strPathlibSDL = str
     1535   end if
     1536
     1537   ' The tools location (post).
     1538   if (strPathlibSDL = "") And (g_blnInternalFirst = False) Then
     1539      str = g_strPathDev & "/win.x86/libsdl/v1.2.11"
     1540      if CheckForlibSDLSub(str) then strPathlibSDL = str
     1541   end if
     1542
     1543   if (strPathlibSDL = "") And (g_blnInternalFirst = False) Then
     1544      str = g_strPathDev & "/win.x86/libsdl/v1.2.7-InnoTek"
    14751545      if CheckForlibSDLSub(str) then strPathlibSDL = str
    14761546   end if
     
    17771847   Print "  -h, --help"
    17781848   Print "  --internal"
     1849   Print "  --internal-last"
    17791850   Print ""
    17801851   Print "Components:"
     
    18761947         case "--internal"
    18771948            g_blnInternalMode = True
     1949         case "--internal-last"
     1950            g_blnInternalFirst = False
    18781951         case "-h", "--help", "-?"
    18791952            usage
Note: See TracChangeset for help on using the changeset viewer.

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