VirtualBox

Changeset 9568 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 10, 2008 12:46:22 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: Some updates to the build environment on the mac.

File:
1 edited

Legend:

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

    r9525 r9568  
    7575
    7676ifeq ($(KBUILD_TARGET),darwin)
    77  VBOX_INCS_QT4       = $(foreach mod, $(VBOX_MODULE_QT4), $(join $(join /Library/Frameworks/, $(mod)), .framework/Headers))
     77 # This is temporary until the tools server is updated:
     78 VBOX_PATH_QT4_LIB = /Library/Frameworks
     79 # This is necessary because we didn't include the Qt header in framework
     80 # notation (e.g.: <QtCore/QObject>)).
     81 VBOX_INCS_QT4       = $(foreach mod, $(VBOX_MODULE_QT4), $(join $(join $(VBOX_PATH_QT4_LIB)/, $(mod)), .framework/Headers))
    7882 VBOX_LIBS_QT4       =
    7983else
     
    137141endif
    138142
    139 # The Qt DLLs (move to the root Makefile.kmk, and remove bin from INSTALLS below).
    140 bin_SOURCES += $(VBOX_QT4_RUNTIME)
    141 bin_INST = $(INST_BIN)
    142 bin_MODE = 644
     143ifeq ($(KBUILD_TARGET),darwin)
     144 # Create the targets of the form
     145 # @executable_path/../Qt???.framework/Versions/4/Qt???
     146 QT_LIB_INSTALL=$(foreach mod, $(VBOX_MODULE_QT4), $(join $(join $(PATH_BIN)/../lib/, $(mod)), .framework/Versions/4/$(mod)))
     147 # Todo: Only installing the libraries isn't sufficient. For user provided
     148 # frameworks (usual installed in /Library/Frameworks) we must run
     149 # install_name_tool on the VirtualBox4 app and *all* used libraries. This has
     150 # to be done recursively for the library part.
     151 $(QT_LIB_INSTALL): \
     152        $(PATH_BIN)/../lib/%: $(VBOX_PATH_QT4_LIB)/%
     153        $(call MSG_INST_FILE,$<,$@)
     154        $(QUIET)$(MKDIR) -p $(@D)
     155        $(QUIET)$(INSTALL) -m 0644 $< $(@D)
     156 OTHERS = $(QT_LIB_INSTALL)
     157else
     158 # The Qt DLLs (move to the root Makefile.kmk, and remove bin from INSTALLS below).
     159 bin_SOURCES += $(VBOX_QT4_RUNTIME)
     160 bin_INST = $(INST_BIN)
     161 bin_MODE = 644
     162endif
    143163
    144164# Template copy from the qt3 stuff. Appended a "4" on the
     
    225245    $(VBOX_XCURSOR_LIBS)
    226246 else ifeq ($(KBUILD_TARGET),darwin)
    227   TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += $(foreach mod, $(VBOX_MODULE_QT4), -framework $(mod)) \
     247  # We have to add the framework path to both the linker and the compiler also.
     248  # Note that the -F flag is apple gcc only.
     249  TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += -F$(VBOX_PATH_QT4_LIB) $(foreach mod, $(VBOX_MODULE_QT4), -framework $(mod)) \
    228250        -framework Carbon -framework QuickTime -bind_at_load
     251  TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS += -F$(VBOX_PATH_QT4_LIB)
    229252  TEMPLATE_VBOXQT4GUIEXE_LIBS +=
    230253  TEMPLATE_VBOXQT4GUIEXE_LIBPATH +=
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