VirtualBox

Changeset 16257 in vbox for trunk/configure


Ignore:
Timestamp:
Jan 27, 2009 10:28:31 AM (16 years ago)
Author:
vboxsync
Message:

configure: allow a different out directory on Linux build hosts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r16202 r16257  
    5050OSE=1
    5151ODIR="`pwd`/"
     52ODIR_OVERRIDE=0
     53OUT_PATH=""
     54OUT_PATH_OVERRIDE=0
    5255SETUP_WINE=
    5356TARGET_MACHINE=""
     
    17261729  --with-qt-dir=DIR        directory for Qt4 headers/libraries [pkgconfig]
    17271730  --with-gsoap-dir=PATH    directory for SOAP compiler (soapcpp2 and wsdl2h)
     1731  --out-path=PATH          the folder to which configuration and build output
     1732                           should go
    17281733
    17291734Build type:
     
    18411846    --odir=*)
    18421847      ODIR="`echo $option | cut -d'=' -f2`/"
     1848      ODIR_OVERRIDE=1
     1849      ;;
     1850    --out-path=*)
     1851      out_path="`echo $option | cut -d'=' -f2`/"
     1852      if [ -d $out_path ]; then
     1853        saved_path="`pwd`"
     1854        cd $out_path
     1855        OUT_PATH="`pwd`/"
     1856        cd $saved_path
     1857        OUT_PATH_OVERRIDE=1
     1858        if [ $ODIR_OVERRIDE -eq 0 ]; then
     1859          # This variable has not *yet* been overridden.  That can still happen.
     1860          ODIR=$OUT_PATH
     1861        fi
     1862      else
     1863        echo "Error: invalid folder \"$out_path\" in option \"$option\""
     1864        exit 1
     1865      fi
    18431866      ;;
    18441867    --setup-wine)
     
    19121935echo "$PATH" | grep -q "$DEVDIR_BIN" || PATH="$PATH:$DEVDIR_BIN"
    19131936export PATH
     1937
     1938# if we will be writing to a different out directory then set this up now
     1939if [ $OUT_PATH_OVERRIDE -eq 1 ]; then
     1940  echo "export AUTOCFG=$OUT_PATH""AutoConfig.kmk" >> $ENV
     1941  echo "export LOCALCFG=$OUT_PATH""LocalConfig.kmk" >> $ENV
     1942  echo "export PATH_OUT_BASE=$OUT_PATH" >> $ENV
     1943fi
    19141944
    19151945# some things are not available in for OSE
     
    20312061echo ""
    20322062if [ "$OS" = "linux" ]; then
     2063    if [ $OUT_PATH_OVERRIDE -eq 1 ]; then
     2064      vbox_out_path=$OUT_PATH
     2065    else
     2066      vbox_out_path=./out/
     2067    fi
    20332068    echo "To compile the kernel module, do:"
    20342069    echo ""
    2035     echo "  cd ./out/$OS.$TARGET_MACHINE/$BUILD_TYPE/bin/src/vboxdrv"
     2070    echo "  cd $vbox_out_path$OS.$TARGET_MACHINE/$BUILD_TYPE/bin/src/vboxdrv"
    20362071    echo "  make"
    20372072    echo ""
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