Changeset 9568 in vbox for trunk/src/VBox
- Timestamp:
- Jun 10, 2008 12:46:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk
r9525 r9568 75 75 76 76 ifeq ($(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)) 78 82 VBOX_LIBS_QT4 = 79 83 else … … 137 141 endif 138 142 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 143 ifeq ($(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) 157 else 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 162 endif 143 163 144 164 # Template copy from the qt3 stuff. Appended a "4" on the … … 225 245 $(VBOX_XCURSOR_LIBS) 226 246 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)) \ 228 250 -framework Carbon -framework QuickTime -bind_at_load 251 TEMPLATE_VBOXQT4GUIEXE_CXXFLAGS += -F$(VBOX_PATH_QT4_LIB) 229 252 TEMPLATE_VBOXQT4GUIEXE_LIBS += 230 253 TEMPLATE_VBOXQT4GUIEXE_LIBPATH +=
Note:
See TracChangeset
for help on using the changeset viewer.