VirtualBox

Changeset 55347 in vbox


Ignore:
Timestamp:
Apr 21, 2015 9:35:17 AM (10 years ago)
Author:
vboxsync
Message:

configure: introduced --only-additions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r51968 r55347  
    7272OUT_PATH_OVERRIDE=0
    7373SETUP_WINE=
     74ONLY_ADDITIONS=0
    7475TARGET_MACHINE=""
    7576TARGET_CPU=""
     
    22972298[ "$OS"   != "darwin" ] && echo "  --setup-wine             setup a Wine directory and register the hhc hack"
    22982299cat << EOF
     2300  --only-additions         only build the Guest Additions
    22992301
    23002302Paths:
     
    25642566      [ "$OS" != "darwin" ] && SETUP_WINE=1
    25652567      ;;
     2568    --only-additions)
     2569      ONLY_ADDITIONS=1
     2570      ;;
    25662571    *)
    25672572      echo
     
    26572662
    26582663# extpack
    2659 if [ $OSE -eq 0 ]; then
     2664if [ $ONLY_ADDITIONS -eq 1 ]; then
     2665  cnf_append "VBOX_WITH_EXTPACK_PUEL_BUILD" ""
     2666elif [ $OSE -eq 0 ]; then
    26602667  if [ $WITH_EXTPACK -eq 1 ]; then
    26612668    BUILD_LIBSSL=1
     
    26932700# the tools
    26942701check_gcc
    2695 check_open_watcom
    2696 [ "$OS" != "darwin"  ] && check_iasl
    2697 # don't check for yasm for the time beeing as 0.40 and 0.50 both have known bugs
    2698 # [ "$OS" != "darwin" ] && check_yasm
    2699 [ "$OS" != "darwin"  ] && check_xsltproc
    2700 [ "$OS" != "darwin"  ] && check_mkisofs
     2702if [ $ONLY_ADDITIONS -eq 0 ]; then
     2703  check_open_watcom
     2704  [ "$OS" != "darwin"  ] && check_iasl
     2705  # don't check for yasm for the time beeing as 0.40 and 0.50 both have known bugs
     2706  # [ "$OS" != "darwin" ] && check_yasm
     2707  [ "$OS" != "darwin"  ] && check_xsltproc
     2708  [ "$OS" != "darwin"  ] && check_mkisofs
     2709fi
    27012710
    27022711# the libraries
    2703 [ "$OS" != "darwin"  ] && check_pthread
    2704 check_libxml2
    2705 [ $WITH_LIBIDL -eq 1 ] && check_libidl
    2706 check_ssl
    2707 check_curl
    2708 [ $WITH_LIBVPX -eq 1 ] && check_vpx
    2709 [ "$OS" != "darwin"  ] && check_z
    2710 [ "$OS" != "darwin"  ] && check_png
    2711 [ $OSE -eq 0 -a "$OS" = "linux" ] && check_pam
    2712 [ $WITH_SDL -eq 1 ]    && check_sdl
    2713 [ $WITH_SDL_TTF -eq 1 -a $OSE -eq 0 ] && check_sdl_ttf
    2714 [ $WITH_X11    -eq 1 ] && check_x
    2715 # TODO check for xcomposite-dev (X11/extensions/Xcomposite.h, additions only)
    2716 # TODO check for libxdamange-dev (X11/extensions/Xdamage.h, additions only)
    2717 [ $WITH_X11    -eq 1 ] && check_xcursor
    2718 [ $WITH_X11    -eq 1 ] && check_xinerama
    2719 [ $WITH_X11    -eq 1 ] && check_xrandr
    2720 [ $WITH_OPENGL -eq 1 ] && check_opengl
    2721 [ $WITH_QT4    -eq 1 ] && check_qt4
    2722 [ $WITH_PYTHON -eq 1 ] && check_python
    2723 [ $WITH_JAVA   -eq 1 ] && check_java
    2724 
    2725 # PulseAudio
    2726 if [ "$OS" = "linux" -o "$OS" = "freebsd" ]; then
    2727   if [ $WITH_PULSE -eq 1 ]; then
    2728     check_pulse
    2729   elif [ $WITH_PULSE -eq 0 ]; then
    2730     cnf_append "VBOX_WITH_PULSE" ""
    2731   fi
     2712if [ $ONLY_ADDITIONS -eq 0 ]; then
     2713  [ "$OS" != "darwin"  ] && check_pthread
     2714  check_libxml2
     2715  [ $WITH_LIBIDL -eq 1 ] && check_libidl
     2716  check_ssl
     2717  check_curl
     2718  [ $WITH_LIBVPX -eq 1 ] && check_vpx
     2719 [ "$OS" != "darwin"  ] && check_z
     2720  [ "$OS" != "darwin"  ] && check_png
     2721  [ $OSE -eq 0 -a "$OS" = "linux" ] && check_pam
     2722  [ $WITH_SDL -eq 1 ]    && check_sdl
     2723  [ $WITH_SDL_TTF -eq 1 -a $OSE -eq 0 ] && check_sdl_ttf
     2724  [ $WITH_X11    -eq 1 ] && check_x
     2725  # TODO check for xcomposite-dev (X11/extensions/Xcomposite.h, additions only)
     2726  # TODO check for libxdamange-dev (X11/extensions/Xdamage.h, additions only)
     2727  [ $WITH_X11    -eq 1 ] && check_xcursor
     2728  [ $WITH_X11    -eq 1 ] && check_xinerama
     2729  [ $WITH_X11    -eq 1 ] && check_xrandr
     2730  [ $WITH_OPENGL -eq 1 ] && check_opengl
     2731  [ $WITH_QT4    -eq 1 ] && check_qt4
     2732  [ $WITH_PYTHON -eq 1 ] && check_python
     2733  [ $WITH_JAVA   -eq 1 ] && check_java
     2734
     2735  # PulseAudio
     2736  if [ "$OS" = "linux" -o "$OS" = "freebsd" ]; then
     2737    if [ $WITH_PULSE -eq 1 ]; then
     2738      check_pulse
     2739    elif [ $WITH_PULSE -eq 0 ]; then
     2740      cnf_append "VBOX_WITH_PULSE" ""
     2741    fi
     2742 fi
    27322743fi
    27332744
     
    27442755    cnf_append "VBOX_WITH_ADDITION_DRIVERS" ""
    27452756  fi
    2746   if [ $WITH_ALSA -eq 1 ]; then
    2747     check_alsa
    2748   else
    2749     cnf_append "VBOX_WITH_ALSA" ""
    2750   fi
    2751   if [ $WITH_DBUS -eq 0 ]; then
    2752     cnf_append "VBOX_WITH_DBUS" ""
    2753   fi
    2754   if [ $WITH_DEVMAPPER -eq 1 ]; then
    2755     check_libdevmapper
    2756   else
    2757     cnf_append "VBOX_WITH_DEVMAPPER" ""
    2758   fi
    2759   check_libcap
     2757  if [ $ONLY_ADDITIONS -eq 0 ]; then
     2758    if [ $WITH_ALSA -eq 1 ]; then
     2759      check_alsa
     2760    else
     2761      cnf_append "VBOX_WITH_ALSA" ""
     2762    fi
     2763    if [ $WITH_DBUS -eq 0 ]; then
     2764      cnf_append "VBOX_WITH_DBUS" ""
     2765    fi
     2766    if [ $WITH_DEVMAPPER -eq 1 ]; then
     2767      check_libdevmapper
     2768    else
     2769      cnf_append "VBOX_WITH_DEVMAPPER" ""
     2770    fi
     2771    check_libcap
     2772  fi
    27602773  check_compiler_h
    2761   [ "$BUILD_MACHINE" = "amd64" -a $WITH_VMMRAW -eq 1 ] && check_32bit
     2774  [ $ONLY_ADDITIONS -eq 0 -a "$BUILD_MACHINE" = "amd64" -a $WITH_VMMRAW -eq 1 ] && check_32bit
    27622775  # tools/common/makeself*
    27632776  [ $OSE -ge 1 ] && check_makeself
     
    27662779[ -n "$SETUP_WINE" ] && setup_wine
    27672780
    2768 if [ $WITH_GSOAP -eq 1 ]; then
     2781if [ $ONLY_ADDITIONS -eq 0 -a $WITH_GSOAP -eq 1 ]; then
    27692782  check_gsoap
    27702783else
     
    27752788
    27762789# UDPTUNNEL
    2777 if [ $WITH_UDPTUNNEL -eq 0 ]; then
     2790if [ $ONLY_ADDITIONS -eq 0 -a $WITH_UDPTUNNEL -eq 0 ]; then
    27782791  cnf_append "VBOX_WITH_UDPTUNNEL" ""
    27792792fi
    27802793
    27812794# VDE
    2782 if [ "$OS" = "linux" -o "$OS" = "freebsd" ]; then
     2795if [ $ONLY_ADDITIONS -eq 0 -a "$OS" = "linux" -o "$OS" = "freebsd" ]; then
    27832796  if [ $WITH_VDE -eq 1 ]; then
    27842797    cnf_append "VBOX_WITH_VDE" "1"
     
    27872800
    27882801# DOCS
    2789 if [ $WITH_DOCS -eq 0 ]; then
     2802if [ $ONLY_ADDITIONS -eq 1 -o $WITH_DOCS -eq 0 ]; then
    27902803  cnf_append "VBOX_WITH_DOCS" ""
    27912804  cnf_append "VBOX_WITH_DOCS_PACKING" ""
     
    27932806
    27942807# VNC server support
    2795 if [ $OSE -ge 1 ]; then
     2808if [ $ONLY_ADDITIONS -eq 0 -a $OSE -ge 1 ]; then
    27962809  if [ $WITH_VNC = 1 ]; then
    27972810    check_vncserver
     
    27992812    cnf_append "VBOX_WITH_EXTPACK_VNC" ""
    28002813  fi
     2814fi
     2815
     2816if [ $ONLY_ADDITIONS -eq 1 ]; then
     2817  cnf_append "VBOX_ONLY_ADDITIONS" "1"
    28012818fi
    28022819
     
    28212838    echo ""
    28222839fi
    2823 if [ $WITH_HARDENING -gt 0 ]; then
     2840if [ $ONLY_ADDITIONS -eq 1 ]; then
     2841    echo ""
     2842    echo "  Tree configured to build only the Guest Additions"
     2843    echo ""
     2844elif [ $WITH_HARDENING -gt 0 ]; then
    28242845    echo ""
    28252846    echo "  +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++ WARNING +++"
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