VirtualBox

Changeset 75976 in vbox


Ignore:
Timestamp:
Dec 5, 2018 3:40:01 PM (6 years ago)
Author:
vboxsync
Message:

vboximg-mount: Use the osxfuse tools supplied on darwin for building and enable building on darwin

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r75970 r75976  
    830830#VBOX_WITH_MORE_NT4_COMPAT_BINARIES = 1
    831831# Set this to enable building of the vboximg-mount FUSE mounting utility.
    832 #VBOX_WITH_VBOXIMGMOUNT = 1
     832if1of ($(KBUILD_TARGET), darwin)
     833 VBOX_WITH_VBOXIMGMOUNT = 1
     834endif
    833835## @}
    834836
  • trunk/src/VBox/ImageMounter/vboximg-mount/Makefile.kmk

    r75970 r75976  
    1919include $(KBUILD_PATH)/subheader.kmk
    2020
     21ifeq ($(KBUILD_TARGET),darwin)
     22 VBOX_PATH_FUSE := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/osxfuse/v*)))
     23 ifneq ($(VBOX_PATH_FUSE),)
     24  LIB_FUSE     := $(VBOX_PATH_FUSE)/lib/libosxfuse.dylib
     25  LIBPATH_FUSE := $(VBOX_PATH_FUSE)/lib
     26  FUSE_INCS    := $(VBOX_PATH_FUSE)/include/osxfuse
     27 else
     28  LIB_FUSE     := /usr/local/lib/libosxfuse.dylib
     29  LIBPATH_FUSE := /usr/local/lib
     30  FUSE_INCS    := /usr/local/include/osxfuse \
     31        /usr/local/include
     32 endif
     33else
     34 LIB_FUSE := fuse
     35 FUSE_INCS := /usr/include
     36endif
     37
    2138#
    2239# vboximg-mount - Disk Image Flatting FUSE Program.
     
    3552vboximg-mount_LIBS = \
    3653        $(LIB_DDU) \
    37         $(LIB_RUNTIME)
     54        $(LIB_RUNTIME) \
     55        $(LIB_FUSE)
    3856
    39 vboximg-mount_INCS.darwin = \
    40     /usr/local/include \
    41     /usr/local/include/osxfuse \
    42 vboximg-mount_CXXFLAGS.darwin = -std=c++11
    43 
    44 vboximg-mount_LIBS.darwin = /usr/local/lib/libosxfuse.dylib
    45 vboximg-mount_LIBS.linux = fuse
    46 vboximg-mount_LIBS.freebsd = fuse
     57vboximg-mount_INCS = $(FUSE_INCS)
     58#vboximg-mount_CXXFLAGS.darwin = -std=c++11
    4759
    4860include $(FILE_KBUILD_SUB_FOOTER)
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