Changeset 10593 in vbox for trunk/src/VBox
- Timestamp:
- Jul 14, 2008 12:11:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk
r10590 r10593 115 115 else 116 116 117 ifndef USE_KBUILD_QT_UNIT_PART_2 117 118 VBOX_INCS_QT4 = \ 118 119 $(addprefix $(VBOX_PATH_QT4_INCLUDE)/, $(VBOX_MODULE_QT4) Qt) \ 119 120 $(VBOX_PATH_QT4_INCLUDE) 121 endif 122 VBOX_INCS_QT4 = $(VBOX_PATH_QT4_INCLUDE) ## @todo add this to the qt4 unit. 120 123 ifeq ($(KBUILD_TARGET),win) 121 124 ifeq ($(KBUILD_TARGET_ARCH),amd64) … … 132 135 ifeq ($(KBUILD_TARGET),win) 133 136 VBOX_LIBS_QT4 = $(patsubst %, VBox%4, $(VBOX_MODULE_QT4)) 134 VBOX_QT4_RUNTIME = $(patsubst %, $(VBOX_PATH_QT4_LIB)/VBox%4.dll, $(VBOX_MODULE_QT4))135 137 else ifdef VBOX_WITH_QT4_SUN 136 138 # Qt4 compiled by Sun with altered library names 137 139 VBOX_LIBS_QT4 = $(patsubst %, VBox%, $(VBOX_MODULE_QT4)) 138 VBOX_QT4_RUNTIME = $(patsubst %, $(VBOX_PATH_QT4_LIB)/libVBox%.so.4, $(VBOX_MODULE_QT4))139 140 # Export the ld library path 140 141 export LD_LIBRARY_PATH := $(VBOX_PATH_QT4_LIB):$(LD_LIBRARY_PATH) 141 142 else 142 143 VBOX_LIBS_QT4 = $(VBOX_MODULE_QT4) 143 VBOX_QT4_RUNTIME =144 144 endif 145 145 … … 178 178 endif 179 179 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) 180 ifdef 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 208 186 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 203 endif # VBOX_WITH_QT4_SUN 204 210 205 211 206 # Template copy from the qt3 stuff. Appended a "4" on the … … 388 383 CLEAN += $(PATH_BIN)/vboxkeyboard.tar.gz 389 384 endif 390 INSTALLS += VirtualBox4.nls qt4-bin385 INSTALLS += VirtualBox4.nls 391 386 392 387
Note:
See TracChangeset
for help on using the changeset viewer.