VirtualBox

Changeset 9604 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 11, 2008 12:17:54 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: More updates to the build system on the mac.

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
3 edited

Legend:

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

    r9568 r9604  
    6060 endif
    6161endif
    62 VBOX_PATH_QT4          ?= /usr
    63 VBOX_PATH_QT4_BIN      ?= $(VBOX_PATH_QT4)/bin
    64 VBOX_PATH_QT4_INCLUDE  ?= $(VBOX_PATH_QT4)/include
    65 VBOX_PATH_QT4_LIB      ?= $(VBOX_PATH_QT4)/lib
    66 VBOX_PATH_QT4_LIB64    ?= $(VBOX_PATH_QT4)/lib64
    67 VBOX_PATH_QT4_SHARE    ?= $(VBOX_PATH_QT4)
     62VBOX_PATH_QT4            ?= /usr
     63VBOX_PATH_QT4_BIN        ?= $(VBOX_PATH_QT4)/bin
     64VBOX_PATH_QT4_INCLUDE    ?= $(VBOX_PATH_QT4)/include
     65VBOX_PATH_QT4_LIB        ?= $(VBOX_PATH_QT4)/lib
     66VBOX_PATH_QT4_LIB64      ?= $(VBOX_PATH_QT4)/lib64
     67VBOX_PATH_QT4_FRAMEWORKS ?= $(VBOX_PATH_QT4)/Frameworks
     68VBOX_PATH_QT4_SHARE      ?= $(VBOX_PATH_QT4)
    6869
    6970VBOX_MODULE_QT4     = QtCore QtGui QtNetwork
     
    7677ifeq ($(KBUILD_TARGET),darwin)
    7778 # This is temporary until the tools server is updated:
    78  VBOX_PATH_QT4_LIB = /Library/Frameworks
     79 VBOX_PATH_QT4_FRAMEWORKS = /Library/Frameworks
    7980 # This is necessary because we didn't include the Qt header in framework
    8081 # notation (e.g.: <QtCore/QObject>)).
    81  VBOX_INCS_QT4       = $(foreach mod, $(VBOX_MODULE_QT4), $(join $(join $(VBOX_PATH_QT4_LIB)/, $(mod)), .framework/Headers))
    82  VBOX_LIBS_QT4       =
     82 VBOX_INCS_QT4 = $(patsubst %, $(VBOX_PATH_QT4_FRAMEWORKS)/%.framework/Headers, $(VBOX_MODULE_QT4))
     83 # No libs cause we are using frameworks
     84 VBOX_PATH_QT4_LIB =
     85 VBOX_LIBS_QT4     =
    8386else
    8487
     
    141144endif
    142145
     146# All the following should be done in some root Makefile and removed from this
     147# one.
    143148ifeq ($(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)/%
     149 # The following is necessary on Non OSE only. On the OSE version the Qt
     150 # frameworks provided by Trolltech have to be installed on the target system
     151 # in the system wide Frameworks directory (/Library/Frameworks).
     152 ifndef VBOX_OSE
     153  # Create the targets of the form
     154  # @executable_path/../Frameworks/Qt???.framework/Versions/4/Qt???
     155  QT_LIB_INSTALL=$(foreach mod, $(VBOX_MODULE_QT4), $(join $(join $(PATH_BIN)/../Frameworks/, $(mod)), .framework/Versions/4/$(mod)))
     156  # The target for the libs. This is a special target cause is creates the
     157  # necessary directory structure. @Bird: is there something for this in
     158  # kBuild already? Todo: What about uninstall?
     159  $(QT_LIB_INSTALL): $(PATH_BIN)/../Frameworks/%: $(VBOX_PATH_QT4_FRAMEWORKS)/%
    153160        $(call MSG_INST_FILE,$<,$@)
    154161        $(QUIET)$(MKDIR) -p $(@D)
    155162        $(QUIET)$(INSTALL) -m 0644 $< $(@D)
    156  OTHERS = $(QT_LIB_INSTALL)
     163  # Add the lib targets to the OTHER dependencies.
     164  OTHERS = $(QT_LIB_INSTALL)
     165 endif
    157166else
    158167 # The Qt DLLs (move to the root Makefile.kmk, and remove bin from INSTALLS below).
     
    247256  # We have to add the framework path to both the linker and the compiler also.
    248257  # 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)) \
     258  TEMPLATE_VBOXQT4GUIEXE_LDFLAGS += -F$(VBOX_PATH_QT4_FRAMEWORKS) $(addprefix -framework , $(VBOX_MODULE_QT4)) \
    250259        -framework Carbon -framework QuickTime -bind_at_load
    251   TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS += -F$(VBOX_PATH_QT4_LIB)
     260  TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS += -F$(VBOX_PATH_QT4_FRAMEWORKS)
    252261  TEMPLATE_VBOXQT4GUIEXE_LIBS +=
    253262  TEMPLATE_VBOXQT4GUIEXE_LIBPATH +=
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxProblemReporter.h

    r8947 r9604  
    302302    static QString formatErrorInfo (const COMBase &aWrapper)
    303303    {
    304         Assert (aWrapper.lastRC() != S_OK);
     304//        Assert (aWrapper.lastRC() != S_OK);
    305305        return formatErrorInfo (aWrapper.errorInfo(), aWrapper.lastRC());
    306306    }
  • trunk/src/VBox/Frontends/VirtualBox4/src/darwin/Info.plist

    r8200 r9604  
    1414    <key>CFBundleIconFile</key>                 <string>virtualbox</string>
    1515    <key>CFBundleInfoDictionaryVersion</key>    <string>6.0</string>
     16    <key>CFBundleHelpBookFolder</key>           <string>VirtualBox-Help</string>
     17    <key>CFBundleHelpBookName</key>             <string>Sun xVM VirtualBox</string>
    1618    <key>LSCanProvideIMVideoDataSource</key>    <true/>
    1719</dict>
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