VirtualBox

Changeset 10593 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 14, 2008 12:11:13 PM (16 years ago)
Author:
vboxsync
Message:

Hopefully fixed the missing installation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk

    r10590 r10593  
    115115else
    116116
     117ifndef USE_KBUILD_QT_UNIT_PART_2
    117118 VBOX_INCS_QT4       = \
    118119        $(addprefix $(VBOX_PATH_QT4_INCLUDE)/, $(VBOX_MODULE_QT4) Qt) \
    119120        $(VBOX_PATH_QT4_INCLUDE)
     121endif
     122 VBOX_INCS_QT4       = $(VBOX_PATH_QT4_INCLUDE) ## @todo add this to the qt4 unit.
    120123 ifeq ($(KBUILD_TARGET),win)
    121124  ifeq ($(KBUILD_TARGET_ARCH),amd64)
     
    132135 ifeq ($(KBUILD_TARGET),win)
    133136  VBOX_LIBS_QT4      = $(patsubst %, VBox%4, $(VBOX_MODULE_QT4))
    134   VBOX_QT4_RUNTIME   = $(patsubst %, $(VBOX_PATH_QT4_LIB)/VBox%4.dll, $(VBOX_MODULE_QT4))
    135137 else ifdef VBOX_WITH_QT4_SUN
    136138  # Qt4 compiled by Sun with altered library names
    137139  VBOX_LIBS_QT4      = $(patsubst %, VBox%, $(VBOX_MODULE_QT4))
    138   VBOX_QT4_RUNTIME   = $(patsubst %, $(VBOX_PATH_QT4_LIB)/libVBox%.so.4, $(VBOX_MODULE_QT4))
    139140  # Export the ld library path
    140141  export LD_LIBRARY_PATH := $(VBOX_PATH_QT4_LIB):$(LD_LIBRARY_PATH)
    141142 else
    142143  VBOX_LIBS_QT4      = $(VBOX_MODULE_QT4)
    143   VBOX_QT4_RUNTIME   =
    144144 endif
    145145
     
    178178endif
    179179
    180 # All the following should be done in some root Makefile and removed from this
    181 # one.
    182 ifeq ($(KBUILD_TARGET),darwin)
    183  # The following is necessary on Non OSE only. On the OSE version the Qt
    184  # frameworks provided by Trolltech have to be installed on the target system
    185  # in the system wide Frameworks directory (/Library/Frameworks).
    186  ifndef VBOX_OSE
    187   # Create the targets of the form
    188   # @executable_path/../Frameworks/Qt???.framework/Versions/4/Qt???
    189   QT_LIB_INSTALL = $(foreach mod, $(VBOX_MODULE_QT4), $(join $(join $(PATH_BIN)/../Frameworks/, $(mod)), .framework/Versions/4/$(mod)))
    190   # The target for the libs. This is a special target cause is creates the
    191   # necessary directory structure. @Bird: is there something for this in
    192   # kBuild already? Todo: What about uninstall?
    193   ## @todo bird: a qt4-framework install target with a source list like this:
    194   # QtCore.framework/Versions/4/QtCore=>QtCore.framework/Versions/4/QtCore \
    195   # QtGui.framework/Versions/4/QtGui=>QtGui.framework/Versions/4/QtGui
    196   $(QT_LIB_INSTALL): $(PATH_BIN)/../Frameworks/%: $(VBOX_PATH_QT4_FRAMEWORKS)/%
    197         $(call MSG_INST_FILE,$<,$@)
    198         $(QUIET)$(MKDIR) -p $(@D)
    199         $(QUIET)$(INSTALL) -m 0644 $< $(@D)
    200   # Add the lib targets to the OTHER dependencies.
    201   OTHERS = $(QT_LIB_INSTALL)
    202  endif
    203 else
    204  # The Qt DLLs
    205  ## @todo move to the root Makefile.kmk, and remove qt4-bin from INSTALLS below.
    206  qt4-bin_SOURCES += $(VBOX_QT4_RUNTIME)
    207  qt4-bin_INST = $(INST_BIN)
     180ifdef VBOX_WITH_QT4_SUN
     181#
     182# Install our Qt DLLs / Shared Objects / Frameworks.
     183#
     184## @todo move to the root Makefile.kmk, and remove qt4-bin from INSTALLS below.
     185 INSTALLS += qt4-bin
    208186 qt4-bin_MODE = 644
    209 endif
     187 ifeq ($(KBUILD_TARGET),darwin)
     188  qt4-bin_INST = $(INST_VIRTUALBOX)Contents/Frameworks/
     189  qt4-bin_SOURCES = \
     190        $(VBOX_PATH_QT4)/Frameworks/QtCore.framework/Versions/4/QtCore=>QtCore.framework/Versions/4/QtCore \
     191        $(VBOX_PATH_QT4)/Frameworks/QtGui.framework/Versions/4/QtGui=>QtGui.framework/Versions/4/QtGui
     192 else ifeq ($(KBUILD_TARGET),win)
     193  qt4-bin_INST = $(INST_BIN)
     194  qt4-bin_SOURCES = \
     195        $(VBOX_PATH_QT4_LIB)/VBoxQtCore4.dll \
     196        $(VBOX_PATH_QT4_LIB)/VBoxQtGui4.dll
     197 else
     198  qt4-bin_INST = $(INST_BIN)
     199  qt4-bin_SOURCES = \
     200        $(VBOX_PATH_QT4_LIB)/VBoxQtCore.so.4 \
     201        $(VBOX_PATH_QT4_LIB)/VBoxQtGui.so.4
     202 endif
     203endif # VBOX_WITH_QT4_SUN
     204
    210205
    211206# Template copy from the qt3 stuff. Appended a "4" on the
     
    388383 CLEAN += $(PATH_BIN)/vboxkeyboard.tar.gz
    389384endif
    390 INSTALLS += VirtualBox4.nls qt4-bin
     385INSTALLS += VirtualBox4.nls
    391386
    392387
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