VirtualBox

Changeset 108322 in vbox


Ignore:
Timestamp:
Feb 21, 2025 11:38:25 AM (3 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167668
Message:

libs/xpcom18a4: Replace xpidl with xpidl-new which enables us to drop the dreaded libIDL dependency (library is dead for well over a decade), bugref:10321

Location:
trunk
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r108257 r108322  
    27452745        $(VBOX_PATH_SDK)/bindings/xpcom/include/nsprpub \
    27462746        $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd
    2747  ifneq ($(KBUILD_TARGET),os2)
    2748   # libIDL-config (for xpcom18a4)
    2749   ifeq ($(origin VBOX_LIBIDL_CONFIG),undefined)
    2750    ifeq ($(KBUILD_HOST),solaris)
    2751     VBOX_LIBIDL_CONFIG_FALLBACK = $(lastword $(wildcard $(KBUILD_DEVTOOLS)/solaris.amd64/libIDL/*/bin/libIDL-config-2))
    2752    endif
    2753    export VBOX_LIBIDL_CONFIG := $(firstword $(which libIDL-config-2 libIDL-config) $(VBOX_LIBIDL_CONFIG_FALLBACK) libIDL-config-2-not-found)
    2754   endif
    2755  endif
    27562747endif
    27572748
  • trunk/configure

    r108242 r108322  
    9191WITH_JAVA=1
    9292WITH_VMMRAW=1
    93 WITH_LIBIDL=1
    9493WITH_QT6=1
    9594WITH_SDL=1
     
    768767
    769768#
    770 # Check for libIDL, needed by xpcom
    771 #
    772 check_libidl()
    773 {
    774   test_header libIDL
    775 
    776   if which_wrapper libIDL-config-2 > /dev/null; then
    777     libidl_ver=`libIDL-config-2 --version`
    778     if [ $? -ne 0 ]; then
    779       log_failure "libIDL-config-2 not working"
    780       fail
    781     else
    782       log_success "found version $libidl_ver"
    783       cnf_append "VBOX_LIBIDL_CONFIG" \
    784         "PKG_CONFIG_PATH=`libIDL-config-2 --prefix`/$LIB/pkgconfig `which_wrapper libIDL-config-2`"
    785     fi
    786   elif check_avail "libIDL-config" libIDL-config; then
    787     libidl_ver=`libIDL-config --version`
    788     if [ $? -ne 0 ]; then
    789       log_failure "libIDL-config not working"
    790       fail
    791     else
    792       log_success "found version $libidl_ver"
    793       cnf_append "VBOX_LIBIDL_CONFIG" "`which_wrapper libIDL-config`"
    794     fi
    795   fi
    796 }
    797 
    798 
    799 #
    800769# Check for libdevmapper, needed by the VBoxVolInfo
    801770#
     
    26122581  WITH_DBUS=0
    26132582  WITH_KMODS=0
    2614   WITH_LIBIDL=0
    26152583  WITH_XPCOM=0
    26162584  BUILD_LIBXSLT=1
     
    30002968  [ "$OS" != "darwin"  ] && check_pthread
    30012969  check_libxml2
    3002   [ $WITH_LIBIDL -eq 1 ] && check_libidl
    30032970  check_z
    30042971  check_lzf
  • trunk/src/libs/xpcom18a4/Makefile.kmk

    r108257 r108322  
    313313        xpcom/typelib/xpt/src/xpt_arena.c \
    314314        xpcom/typelib/xpt/src/xpt_struct.c \
    315         xpcom/typelib/xpt/src/xpt_xdr.c
    316 
    317 # We do these ONCE.
    318 libIDL_config_cflags := $(shell $(VBOX_LIBIDL_CONFIG) --cflags)
    319 libIDL_config_libs   := $(shell $(VBOX_LIBIDL_CONFIG) --libs)
    320 xpidl_CFLAGS = \
    321         $(libIDL_config_cflags)
    322 if1of ($(KBUILD_HOST), linux solaris)
    323  xpidl_LDFLAGS = \
    324         $(filter-out -l%,$(libIDL_config_libs))
    325  xpidl_LIBS.$(KBUILD_HOST) += \
    326         $(subst -l,,$(filter -l%,$(libIDL_config_libs)))
    327 else
    328  ifeq ($(KBUILD_HOST),darwin)
    329   # Need to put the SDK /usr/lib before the libIDL path to make it pick the system iconv
    330   xpidl_LDFLAGS = \
    331         -L$(VBOX_PATH_MACOSX_SDK)/usr/lib \
    332         $(libIDL_config_libs)
    333  else
    334   xpidl_LDFLAGS = \
    335         $(libIDL_config_libs)
    336  endif
    337 endif
    338 xpidl_LDFLAGS.linux = \
    339         $(VBOX_LD_as_needed)
     315        xpcom/typelib/xpt/src/xpt_xdr.c \
     316        ../../VBox/Runtime/common/script/scriptlex.cpp
     317
    340318
    341319#
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