VirtualBox

Changeset 5041 in vbox


Ignore:
Timestamp:
Sep 26, 2007 9:32:15 AM (17 years ago)
Author:
vboxsync
Message:

configure: added --setup-wine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r4913 r5041  
    2727#
    2828OSE=1
     29ODIR="`pwd`/"
     30SETUP_WINE=
    2931TARGET_MACHINE=""
    3032TARGET_CPU=""
     
    11511153}
    11521154
     1155#
     1156# Setup wine
     1157#
     1158setup_wine()
     1159{
     1160  test_header "wine support"
     1161  export WINEPREFIX="${ODIR}wine.$BUILD_MACHINE"
     1162  echo "export WINEPREFIX==\"${ODIR}wine.$BUILD_MACHINE\"" >> $ENV
     1163  rm -rf $WINEPREFIX
     1164  mkdir -p $WINEPREFIX
     1165  touch $WINEPREFIX/.no_prelaunch_window_flag
     1166  if ! wineprefixcreate -q; then
     1167    echo "  wineprefixcreate failed"
     1168    fail
     1169  fi
     1170  tmp=.tmp.wine.reg
     1171  rm -f $tmp
     1172  echo 'REGEDIT4' > $tmp
     1173  echo '' >> $tmp
     1174  echo '[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment]' >> $tmp
     1175  echo "\"PATH\"=\"c:\\\\\\\\windows\\\\\\\\system32;c:\\\\\\\\windows;z:$DEVDIR/win.x86/vcc/v8/bin/Microsoft.VC80.CRT;z:$DEVDIR/win.x86/HTML_Help_Workshop/v1.3\"" >> $tmp
     1176  echo '' >> $tmp
     1177  echo '[HKEY_CURRENT_USER\Software\Wine\AppDefaults\hhc.exe\DllOverrides]' >> $tmp
     1178  echo '"itss"="native"' >> $tmp
     1179  echo '' >> $tmp
     1180  echo '[HKEY_CURRENT_USER\Software\Wine\AppDefaults\hhw.exe\DllOverrides]' >> $tmp
     1181  echo '"itss"="native"' >> $tmp
     1182  echo '' >> $tmp
     1183  if ! wine regedit $tmp; then
     1184    rm -f $tmp
     1185    echo "  failed to load registry changes (path)."
     1186    fail
     1187  fi
     1188  rm -f $tmp
     1189}
     1190
    11531191
    11541192#
     
    11661204  --disable-sdl-ttf        disable SDL_ttf detection
    11671205  --build-xalan            build xalan & xerces from shipped sources
     1206  --setup-wine             setup a Wine directory and register the hhc hack
    11681207
    11691208Paths:
     
    12731312      ODIR="`echo $option | cut -d'=' -f2`/"
    12741313      ;;
     1314    --setup-wine)
     1315      SETUP_WINE=1
     1316      ;;
    12751317    *)
    12761318      echo
     
    13961438  [ "$BUILD_MACHINE" = "amd64" ] && check_32bit
    13971439fi
     1440
     1441[ -n "$SETUP_WINE" ] && setup_wine
    13981442
    13991443# success!
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