VirtualBox

Changeset 54030 in vbox for trunk/src/VBox/Installer/darwin


Ignore:
Timestamp:
Jan 29, 2015 5:31:47 PM (10 years ago)
Author:
vboxsync
Message:

Install VBoxDTrace scripts/libs/testcases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/Makefile.kmk

    r53981 r54030  
    3131  VBOX_PATH_DIST_32 = $(VBOX_PATH_DIST)
    3232  VBOX_PATH_DIST_64 = $(PATH_OUT_BASE)/darwin.amd64/$(KBUILD_TYPE)/dist
     33  VBOX_PATH_DIST_OTHER = $(VBOX_PATH_DIST_64)
    3334 else
    3435  VBOX_PATH_DIST_64 = $(VBOX_PATH_DIST)
    3536  VBOX_PATH_DIST_32 = $(PATH_OUT_BASE)/darwin.x86/$(KBUILD_TYPE)/dist
     37  VBOX_PATH_DIST_OTHER = $(VBOX_PATH_DIST_32)
    3638 endif
    3739 VBOX_DI_FN_DEP_BOTH = $(VBOX_PATH_DIST_32)/$1 $(VBOX_PATH_DIST_64)/$2
     
    4850  VBOX_DI_FN_DEP_32  =
    4951 endif
     52 VBOX_PATH_DIST_OTHER = $(error VBOX_PATH_DIST_OTHER used in a non-combined package deal)
    5053endif
    5154
     
    575578                $(VBOX_PATH_DI_SRC)/VirtualBox/org.virtualbox.vboxautostart.plist \
    576579                $(VBOX_PATH_DI_SRC)/VirtualBox/VBoxAutostartDarwin.sh \
     580               $(if-expr defined(VBOX_WITH_DTRACE), \
     581                $(foreach f, $(VBOXINST_DTRACE_LIB_ARCH_FILES) \
     582                        $(call VBOX_DI_FN_DEP_32,VirtualBox.app/Contents/MacOS/dtrace/lib/x86/$f) \
     583                        $(call VBOX_DI_FN_DEP_64,VirtualBox.app/Contents/MacOS/dtrace/lib/amd64/$f)) \
     584                $(foreach f, $(VBOXINST_DTRACE_TESTCASE_ARCH_FILES) \
     585                        $(call VBOX_DI_FN_DEP_32,VirtualBox.app/Contents/MacOS/dtrace/testcase/x86/$f) \
     586                        $(call VBOX_DI_FN_DEP_64,VirtualBox.app/Contents/MacOS/dtrace/testcase/amd64/$f)) \
     587                $(addprefix $(VBOX_PATH_DIST)/VirtualBox.app/Contents/MacOS/dtrace/scripts/,$(VBOXINST_DTRACE_SCRIPTS_FILES)) \
     588                 ,) \
    577589                $(VBOX_DARWIN_INST_DEP_ON_MAKEFILE)
    578590        $(call MSG_TOOL,pkgbuild,,,$@)
     
    743755                        $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(f)$(NLTAB) )
    744756endif
     757ifdef VBOX_WITH_DTRACE
     758        @# DTrace library, testcases and scripts.
     759       $(MKDIR) -p -m 0755 -- \
     760                $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/MacOS/dtrace/lib/$(KBUILD_TARGET_ARCH)/ \
     761                $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/MacOS/dtrace/testcase/$(KBUILD_TARGET_ARCH)/ \
     762                $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/MacOS/dtrace/scripts/
     763        $(foreach file, $(addprefix lib/$(KBUILD_TARGET_ARCH)/,$(VBOXINST_DTRACE_LIB_ARCH_FILES)) \
     764                        $(addprefix testcase/$(KBUILD_TARGET_ARCH)/,$(VBOXINST_DTRACE_TESTCASE_ARCH_FILES)) \
     765                $(addprefix scripts/,$(VBOXINST_DTRACE_SCRIPTS_FILES)) \
     766                ,$(INSTALL) -m 0655 $(VBOX_PATH_DIST)/VirtualBox.app/Contents/MacOS/dtrace/$(file) \
     767                        $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/MacOS/dtrace/$(file)$(NLTAB))
     768 ifdef VBOX_WITH_COMBINED_PACKAGE
     769       $(MKDIR) -p -m 0755 -- \
     770                $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/MacOS/dtrace/lib/$(VBOX_CP_OTHER_ARCH)/ \
     771                $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/MacOS/dtrace/testcase/$(VBOX_CP_OTHER_ARCH)/
     772        $(foreach file, $(addprefix lib/$(VBOX_CP_OTHER_ARCH)/,$(VBOXINST_DTRACE_LIB_ARCH_FILES)) \
     773                        $(addprefix testcase/$(VBOX_CP_OTHER_ARCH)/,$(VBOXINST_DTRACE_TESTCASE_ARCH_FILES)) \
     774                ,$(INSTALL) -m 0655 $(VBOX_PATH_DIST_OTHER)/VirtualBox.app/Contents/MacOS/dtrace/$(file) \
     775                        $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/MacOS/dtrace/$(file)$(NLTAB)) \
     776 endif
     777endif
     778
    745779        @# Signed the binaries and the application bundle.
    746780        @# Note #1 - We cannot sign the application binary here, since we switch to match the kernel bitness.
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