VirtualBox

Changeset 59970 in vbox


Ignore:
Timestamp:
Mar 9, 2016 3:51:42 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Qt5 migration (part 105): Preparing GUI via Qt5 installer for Mac host.

File:
1 edited

Legend:

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

    r59472 r59970  
    3636endif
    3737VBOX_PATH_DIST_OTHER = $(error VBOX_PATH_DIST_OTHER used in a non-combined package deal)
     38
     39ifeq ($(VBOX_WITH_QTGUI_V5),)
     40 VBOX_QT_VERSION_MAJOR = 4
     41 PATH_SDK_QT = $(PATH_SDK_QT4)
     42else # VBOX_WITH_QTGUI_V5
     43 VBOX_QT_VERSION_MAJOR = 5
     44 PATH_SDK_QT = $(PATH_SDK_QT5)
     45endif # VBOX_WITH_QTGUI_V5
    3846
    3947# Unset this to speed up things during makefile hacking.
     
    339347
    340348VBOX_DI_VBAPP_DYLIBS = \
    341         $(foreach qtmod, $(VBOX_QT_MOD_NAMES), Frameworks/$(qtmod).framework/Versions/4/$(qtmod)) \
     349        $(foreach qtmod, $(VBOX_QT_MOD_NAMES), Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod)) \
    342350        MacOS/VBoxDD.dylib \
    343351        MacOS/VBoxDD2.dylib \
     
    509517        MacOS/VBoxEFI64.fd
    510518endif
     519ifeq ($(VBOX_WITH_QTGUI_V5),)
     520 VBOX_DI_VBAPP_MISC_FILES += \
     521        Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/Resources/qt_menu.nib/classes.nib \
     522        Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/Resources/qt_menu.nib/info.nib \
     523        Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/Resources/qt_menu.nib/keyedobjects.nib
     524else # VBOX_WITH_QTGUI_V5
     525 VBOX_DI_VBAPP_MISC_FILES += \
     526        PlugIns/platforms/libqcocoa$(SUFF_DLL) \
     527        PlugIns/platforms/libqminimal$(SUFF_DLL) \
     528        PlugIns/platforms/libqoffscreen$(SUFF_DLL)
     529endif # VBOX_WITH_QTGUI_V5
    511530VBOX_DI_VBAPP_MISC_FILES += \
    512         Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib \
    513         Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib \
    514         Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib \
    515         $(foreach qtmod, $(VBOX_QT_MOD_NAMES), Frameworks/$(qtmod).framework/Versions/4/Resources/Info.plist)
     531        $(foreach qtmod, $(VBOX_QT_MOD_NAMES), Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/Resources/Info.plist)
    516532
    517533VBOX_DI_VBAPP_SYMLINKS = \
     
    519535        Resources/vmstarter.app/Contents/MacOS=>../../../MacOS/ \
    520536        $(foreach qtmod, $(VBOX_QT_MOD_NAMES) \
    521         ,Frameworks/$(qtmod).framework/Versions/Current=>4 )
     537        ,Frameworks/$(qtmod).framework/Versions/Current=>$(VBOX_QT_VERSION_MAJOR) )
    522538ifndef VBOX_NOT_OSX_105
    523539VBOX_DI_VBAPP_SYMLINKS += $(foreach qtmod, $(VBOX_QT_MOD_NAMES) \
    524         ,Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod) \
    525          Frameworks/$(qtmod).framework/Resources=>Versions/4/Resources/ )
     540        ,Frameworks/$(qtmod).framework/$(qtmod)=>Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod) \
     541         Frameworks/$(qtmod).framework/Resources=>Versions/$(VBOX_QT_VERSION_MAJOR)/Resources/ )
    526542endif
    527543
     
    679695        @# We cannot use @executable_path together with setuid binaries, dyld gets upset about it. So, fix Qt libs and users.
    680696        $(foreach qtmod, $(VBOX_QT_MOD_NAMES) \
    681                 ,install_name_tool -id /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod).framework/Versions/4/$(qtmod) \
    682                         $(VBOX_PATH_VBOX_APP_TMP)/Contents/Frameworks/$(qtmod).framework/Versions/4/$(qtmod)$(NLTAB) )
     697                ,install_name_tool -id /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod) \
     698                        $(VBOX_PATH_VBOX_APP_TMP)/Contents/Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod)$(NLTAB) )
    683699        $(foreach f, \
    684700                $(VBOX_DI_VBAPP_DYLIBS) \
     
    687703                ,install_name_tool \
    688704                        $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \
    689                                 -change           @executable_path/../Frameworks/$(qtmod).framework/Versions/4/$(qtmod) \
    690                                 /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod).framework/Versions/4/$(qtmod) \
    691                                 -change               $(VBOX_PATH_QT)/Frameworks/$(qtmod).framework/Versions/4/$(qtmod) \
    692                                 /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod).framework/Versions/4/$(qtmod) \
    693                                 -change                          $(PATH_SDK_QT4)/$(qtmod).framework/Versions/4/$(qtmod) \
    694                                 /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod).framework/Versions/4/$(qtmod) \
    695                                 -change                                          $(qtmod).framework/Versions/4/$(qtmod) \
    696                                 /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod).framework/Versions/4/$(qtmod) \
     705                                -change           @executable_path/../Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod) \
     706                                /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod) \
     707                                -change               $(VBOX_PATH_QT)/Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod) \
     708                                /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod) \
     709                                -change                           $(PATH_SDK_QT)/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod) \
     710                                /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod) \
     711                                -change                                          $(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod) \
     712                                /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod) \
    697713                                ) \
    698714                        $(VBOX_PATH_VBOX_APP_TMP)/Contents/$(f)$(NLTAB) )
    699715endif
     716ifneq ($(VBOX_WITH_QTGUI_V5),)
     717        $(QUIET)$(APPEND) $(VBOX_PATH_VBOX_APP_TMP)/Contents/Resources/qt.conf "[Paths]"
     718        $(QUIET)$(APPEND) $(VBOX_PATH_VBOX_APP_TMP)/Contents/Resources/qt.conf "Prefix =" /Applications/VirtualBox.app/Contents
     719        $(QUIET)$(APPEND) $(VBOX_PATH_VBOX_APP_TMP)/Contents/Resources/VirtualBoxVM.app/Contents/Resources/qt.conf "[Paths]"
     720        $(QUIET)$(APPEND) $(VBOX_PATH_VBOX_APP_TMP)/Contents/Resources/VirtualBoxVM.app/Contents/Resources/qt.conf "Prefix =" /Applications/VirtualBox.app/Contents
     721endif # VBOX_WITH_QTGUI_V5
    700722ifdef VBOX_WITH_DTRACE
    701723        @# DTrace library, testcases and scripts.
     
    714736ifdef VBOX_SIGNING_MODE
    715737        $(foreach qtmod, $(VBOX_QT_MOD_NAMES) \
    716                 ,$(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/Frameworks/$(qtmod).framework/Versions/4/$(qtmod),org.virtualbox.app.frameworks.$(qtmod)) )
     738                ,$(NLTAB)$(call VBOX_SIGN_MACHO_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/$(qtmod),org.virtualbox.app.frameworks.$(qtmod)) )
    717739        $(foreach qtmod, $(VBOX_QT_MOD_NAMES) \
    718                 ,$(NLTAB)$(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/Frameworks/$(qtmod).framework/Versions/4,org.virtualbox.app.frameworks.$(qtmod)) )
     740                ,$(NLTAB)$(call VBOX_SIGN_BUNDLE_FN,$(VBOX_PATH_VBOX_APP_TMP)/Contents/Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR),org.virtualbox.app.frameworks.$(qtmod)) )
    719741        $(foreach dylib, \
    720742                $(VBOX_DI_VBAPP_DYLIBS) \
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