VirtualBox

Changeset 31967 in vbox for trunk


Ignore:
Timestamp:
Aug 25, 2010 6:12:00 PM (14 years ago)
Author:
vboxsync
Message:

Installer-OSX: use current Qt version in the installer

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r31911 r31967  
    34293429 endif
    34303430
     3431 ifdef VBOX_WITH_QT4_SUN
     3432  VBOX_QT4_INFIX=VBox
     3433 endif
     3434
    34313435 #
    34323436 # Handmade configuration of qt4 - very annoying, this needs to
     
    34813485 TEMPLATE_VBOXQT4GUIEXE_LRCTOOL = QT4
    34823486 TEMPLATE_VBOXQT4GUIEXE_SDKS = QT4
    3483  ifdef VBOX_WITH_QT4_SUN
    3484   TEMPLATE_VBOXQT4GUIEXE_QT_INFIX = VBox
    3485  endif
     3487 TEMPLATE_VBOXQT4GUIEXE_QT_INFIX = $(VBOX_QT4_INFIX)
    34863488 TEMPLATE_VBOXQT4GUIEXE_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS)
    34873489 TEMPLATE_VBOXQT4GUIEXE_RCDEFS = $(TEMPLATE_VBOXR3EXE_RCDEFS)
  • trunk/Makefile.kmk

    r31889 r31967  
    183183
    184184
    185 ifdef VBOX_WITH_QT4_SUN
    186185#
    187186# Install our Qt DLLs / Shared Objects / Frameworks.
    188187# Note: The installer fixes the darwin .dylibs when hardening is enabled.
    189188#
     189ifeq ($(KBUILD_TARGET),darwin)
    190190 INSTALLS += qt4-bin
    191191 qt4-bin_MODE = 755
    192  ifeq ($(KBUILD_TARGET),darwin)
    193   qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
    194   qt4-bin_SOURCES = $(foreach qtmod, QtCore QtGui QtNetwork $(if $(VBOX_GUI_USE_QGL), QtOpenGL,) \
    195         ,$(VBOX_PATH_QT4)/Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox=>Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox)
    196   ifdef VBOX_WITH_COCOA_QT
    197    qt4-bin_SOURCES += \
    198         $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/classes.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/classes.nib \
    199         $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/info.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/info.nib \
    200         $(VBOX_PATH_QT4)/Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib=>Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
    201   endif
     192 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/
     193 qt4-bin_SOURCES = $(foreach qtmod, QtCore QtGui QtNetwork $(if $(VBOX_GUI_USE_QGL), QtOpenGL,) \
     194        ,$(PATH_SDK_QT4_LIB)/$(qtmod)$(VBOX_QT4_INFIX).framework/Versions/4/$(qtmod)$(VBOX_QT4_INFIX)=>Frameworks/$(qtmod)$(VBOX_QT4_INFIX).framework/Versions/4/$(qtmod)$(VBOX_QT4_INFIX))
     195 ifdef VBOX_WITH_COCOA_QT
     196  qt4-bin_SOURCES += \
     197        $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib \
     198        $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib \
     199        $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib=>Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
     200 endif
     201 ifneq ($(wildcard $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib),)
    202202  qt4-bin_SOURCES += \
    203203        $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib
    204   qt4-bin_SYMLINKS = $(foreach qtmod, QtCore QtGui QtNetwork $(if $(VBOX_GUI_USE_QGL), QtOpenGL,) \
    205                 ,Frameworks/$(qtmod)VBox.framework/$(qtmod)VBox=>Versions/4/$(qtmod)VBox)
    206   ifdef VBOX_WITH_COCOA_QT
    207    qt4-bin_SYMLINKS += \
    208         Frameworks/QtGuiVBox.framework/Resources=>Versions/4/Resources/
     204 endif
     205 qt4-bin_SYMLINKS = $(foreach qtmod, QtCore QtGui QtNetwork $(if $(VBOX_GUI_USE_QGL), QtOpenGL,) \
     206                ,Frameworks/$(qtmod)$(VBOX_QT4_INFIX).framework/$(qtmod)$(VBOX_QT4_INFIX)=>Versions/4/$(qtmod)$(VBOX_QT4_INFIX))
     207 ifdef VBOX_WITH_COCOA_QT
     208  qt4-bin_SYMLINKS += \
     209        Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Resources=>Versions/4/Resources/
     210 endif
     211else
     212 ifdef VBOX_WITH_QT4_SUN
     213  ifeq ($(KBUILD_TARGET),win)
     214   INSTALLS += qt4-bin
     215   qt4-bin_MODE = 755
     216   qt4-bin_INST = $(INST_BIN)
     217   qt4-bin_SOURCES = \
     218        $(VBOX_PATH_QT4_LIB)/QtCoreVBox4.dll \
     219        $(VBOX_PATH_QT4_LIB)/QtGuiVBox4.dll \
     220        $(VBOX_PATH_QT4_LIB)/QtNetworkVBox4.dll \
     221        $(if $(VBOX_GUI_USE_QGL), $(VBOX_PATH_QT4_LIB)/QtOpenGLVBox4.dll,) \
     222        $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4.dll=>accessible/qtaccessiblewidgets4.dll
     223  else
     224   INSTALLS += qt4-bin
     225   qt4-bin_MODE = 755
     226   qt4-bin_INST = $(INST_BIN)
     227   qt4-bin_SOURCES = \
     228        $(VBOX_PATH_QT4_LIB)/libQtCoreVBox.so.4 \
     229        $(VBOX_PATH_QT4_LIB)/libQtGuiVBox.so.4 \
     230        $(VBOX_PATH_QT4_LIB)/libQtNetworkVBox.so.4 \
     231        $(if $(VBOX_GUI_USE_QGL), $(VBOX_PATH_QT4_LIB)/libQtOpenGLVBox.so.4,) \
     232        $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
    209233  endif
    210  else ifeq ($(KBUILD_TARGET),win)
    211   qt4-bin_INST = $(INST_BIN)
    212   qt4-bin_SOURCES = \
    213         $(VBOX_PATH_QT4_LIB)/QtCoreVBox4.dll \
    214         $(VBOX_PATH_QT4_LIB)/QtGuiVBox4.dll \
    215         $(VBOX_PATH_QT4_LIB)/QtNetworkVBox4.dll \
    216         $(if $(VBOX_GUI_USE_QGL), $(VBOX_PATH_QT4_LIB)/QtOpenGLVBox4.dll,) \
    217         $(VBOX_PATH_QT4)/plugins/accessible/qtaccessiblewidgets4.dll=>accessible/qtaccessiblewidgets4.dll
    218  else
    219   qt4-bin_INST = $(INST_BIN)
    220   qt4-bin_SOURCES = \
    221         $(VBOX_PATH_QT4_LIB)/libQtCoreVBox.so.4 \
    222         $(VBOX_PATH_QT4_LIB)/libQtGuiVBox.so.4 \
    223         $(VBOX_PATH_QT4_LIB)/libQtNetworkVBox.so.4 \
    224         $(if $(VBOX_GUI_USE_QGL), $(VBOX_PATH_QT4_LIB)/libQtOpenGLVBox.so.4,) \
    225         $(VBOX_PATH_QT4)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL)
    226  endif
    227 endif # VBOX_WITH_QT4_SUN
     234 endif # VBOX_WITH_QT4_SUN
     235endif
    228236
    229237
  • trunk/src/VBox/Installer/darwin/Makefile.kmk

    r31940 r31967  
    554554
    555555VBOX_DI_VBAPP_DYLIBS = \
    556         $(foreach qtmod, $(VBOX_DI_VBAPP_QTMODS), Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox) \
     556        $(foreach qtmod, $(VBOX_DI_VBAPP_QTMODS), Frameworks/$(qtmod)$(VBOX_QT4_INFIX).framework/Versions/4/$(qtmod)$(VBOX_QT4_INFIX)) \
    557557        MacOS/VBoxDD.dylib \
    558558        MacOS/VBoxDD2.dylib \
     
    680680ifdef VBOX_WITH_COCOA_QT
    681681VBOX_DI_VBAPP_MISC_FILES += \
    682         Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/classes.nib \
    683         Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/info.nib \
    684         Frameworks/QtGuiVBox.framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
     682        Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib \
     683        Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib \
     684        Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib
    685685endif
    686686
     
    688688        Resources/VirtualBoxVM.app/Contents/MacOS=>../../../MacOS/ \
    689689        Resources/VirtualBoxVM.app/Contents/Resources=>../../../Resources/ \
    690         $(foreach qtmod, $(VBOX_DI_VBAPP_QTMODS), Frameworks/$(qtmod)VBox.framework/$(qtmod)VBox=>Versions/4/$(qtmod)VBox)
     690        $(foreach qtmod, $(VBOX_DI_VBAPP_QTMODS), Frameworks/$(qtmod)$(VBOX_QT4_INFIX).framework/$(qtmod)$(VBOX_QT4_INFIX)=>Versions/4/$(qtmod)$(VBOX_QT4_INFIX))
    691691ifdef VBOX_WITH_COCOA_QT
    692692VBOX_DI_VBAPP_SYMLINKS += \
    693         Frameworks/QtGuiVBox.framework/Resources=>Versions/4/Resources/
     693        Frameworks/QtGui$(VBOX_QT4_INFIX).framework/Resources=>Versions/4/Resources/
    694694endif
    695695
     
    741741                $(if-expr defined(VBOX_WITH_PYTHON), $(addprefix $(VBOX_PATH_DIST)/, $(VBOX_DI_VBAPP_PYTHON_FILES)),) \
    742742                $(if-expr defined(VBOX_WITH_JXPCOM), $(addprefix $(VBOX_PATH_DIST)/, sdk/bindings/xpcom/java/vboxjxpcom.jar),) \
    743                 $(if $(VBOX_WITH_WEBSERVICES),$(VBOX_PATH_DI_SRC)/VirtualBox/org.virtualbox.vboxwebsrv.plist,) \
     743        $(if $(VBOX_WITH_WEBSERVICES),$(VBOX_PATH_DI_SRC)/VirtualBox/org.virtualbox.vboxwebsrv.plist,) \
    744744                $(VBOX_DARWIN_INST_DEP_ON_MAKEFILE)
    745745        $(call MSG_TOOL,PackageMaker,,,$@)
     
    891891        @# We cannot use @executable_path together with setuid binaries, dyld gets upset about it. So, fix Qt libs and users.
    892892        $(foreach qtmod, $(VBOX_DI_VBAPP_QTMODS) \
    893                 ,install_name_tool -id /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox \
    894                         $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox$(NLTAB) )
     893                ,install_name_tool -id /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod)$(VBOX_QT4_INFIX).framework/Versions/4/$(qtmod)$(VBOX_QT4_INFIX) \
     894                        $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/Frameworks/$(qtmod)$(VBOX_QT4_INFIX).framework/Versions/4/$(qtmod)$(VBOX_QT4_INFIX)$(NLTAB) )
    895895        $(foreach f, \
    896896                $(VBOX_DI_VBAPP_DYLIBS) \
     
    905905                ,install_name_tool \
    906906                        $(foreach qtmod, $(VBOX_DI_VBAPP_QTMODS), \
    907                                 -change           @executable_path/../Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox \
    908                                 /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox \
    909                                 -change                                          $(qtmod)VBox.framework/Versions/4/$(qtmod)VBox \
    910                                 /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod)VBox.framework/Versions/4/$(qtmod)VBox \
     907                                -change           @executable_path/../Frameworks/$(qtmod)$(VBOX_QT4_INFIX).framework/Versions/4/$(qtmod)$(VBOX_QT4_INFIX) \
     908                                /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod)$(VBOX_QT4_INFIX).framework/Versions/4/$(qtmod)$(VBOX_QT4_INFIX) \
     909                                -change                                          $(qtmod)$(VBOX_QT4_INFIX).framework/Versions/4/$(qtmod)$(VBOX_QT4_INFIX) \
     910                                /Applications/VirtualBox.app/Contents/Frameworks/$(qtmod)$(VBOX_QT4_INFIX).framework/Versions/4/$(qtmod)$(VBOX_QT4_INFIX) \
    911911                                ) \
    912912                        $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.root/Applications/VirtualBox.app/Contents/$(f)$(NLTAB) )
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