Changeset 67067 in vbox
- Timestamp:
- May 24, 2017 3:43:59 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 47 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r66918 r67067 599 599 # The Qt GUI. 600 600 VBOX_WITH_QTGUI = 1 601 if1of ($(KBUILD_TARGET), linux win solaris)602 VBOX_WITH_QTGUI_V5 = 1 # r=bird: s/VBOX_WITH_QTGUI_V5/VBOX_WITH_QT5/g - our we released version 5.0 of the VirtualBox GUI last year, remember?603 else if "$(KBUILD_TARGET)" == "darwin" && $(KBUILD_HOST_VERSION_MAJOR) >= 13 # (OS X 10.9 Mavericks)604 VBOX_WITH_QTGUI_V5 = 1605 endif606 601 # Indicates the Qt is Cocoa based on the Mac. 607 602 ifeq ($(KBUILD_TARGET),darwin) … … 5815 5810 ifeq ($(VBOX_PATH_QT),) 5816 5811 ifeq ($(KBUILD_TARGET),darwin) 5817 ifndef VBOX_WITH_QTGUI_V5 5818 VBOX_PATH_QT := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v4*))) 5819 else 5820 VBOX_PATH_QT := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v5*))) 5821 endif 5812 VBOX_PATH_QT := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v5*))) 5822 5813 ifeq ($(VBOX_PATH_QT),) 5823 5814 ifneq ($(wildcard /Library/Frameworks/QtCore.framework),) … … 5828 5819 endif 5829 5820 else if1of ($(KBUILD_TARGET), win) 5830 ifndef VBOX_WITH_QTGUI_V5 5831 VBOX_PATH_QT ?= $(lastword $(filter %-$(tolower $(VBOX_VCC_TOOL_STEM)),$(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v4*)))) 5832 else 5833 VBOX_PATH_QT ?= $(lastword $(filter %-$(tolower $(VBOX_VCC_TOOL_STEM)),$(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v5*)))) 5834 endif 5821 VBOX_PATH_QT ?= $(lastword $(filter %-$(tolower $(VBOX_VCC_TOOL_STEM)),$(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v5*)))) 5835 5822 else if1of ($(KBUILD_TARGET), linux solaris) 5836 ifndef VBOX_WITH_QTGUI_V5 5837 VBOX_PATH_QT ?= $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v4*))) 5838 else 5839 VBOX_PATH_QT ?= $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v5*))) 5840 endif 5823 VBOX_PATH_QT ?= $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v5*))) 5841 5824 ifneq ($(VBOX_PATH_QT),) 5842 5825 VBOX_WITH_ORACLE_QT = 1 … … 5848 5831 # gentoo (64-bit) 5849 5832 VBOX_PATH_QT ?= /usr 5850 ifndef VBOX_WITH_QTGUI_V5 5851 VBOX_PATH_QT_LIB ?= /usr/lib/qt4 5852 else 5853 VBOX_PATH_QT_LIB ?= /usr/lib/qt5 5854 endif 5833 VBOX_PATH_QT_LIB ?= /usr/lib/qt5 5855 5834 endif 5856 5835 endif … … 5862 5841 endif 5863 5842 5864 ifndef VBOX_WITH_QTGUI_V5 5865 VBOX_QT_MOD = QtCore QtGui $(if $(VBOX_GUI_USE_QGL),QtOpenGL,) 5866 else # VBOX_WITH_QTGUI_V5 5867 ifeq ($(KBUILD_TARGET), darwin) 5868 VBOX_QT_MOD = \ 5869 QtCore QtGui QtWidgets QtPrintSupport QtMacExtras \ 5870 $(if $(VBOX_GUI_USE_QGL),QtOpenGL,) 5871 else if1of ($(KBUILD_TARGET), linux freebsd netbsd openbsd solaris win) 5872 VBOX_QT_MOD += \ 5873 Qt5Core Qt5Gui Qt5Widgets Qt5PrintSupport \ 5874 $(if $(VBOX_GUI_USE_QGL),Qt5OpenGL,) 5875 if1of ($(KBUILD_TARGET), linux freebsd netbsd openbsd solaris) 5876 VBOX_QT_MOD += \ 5877 Qt5DBus Qt5XcbQpa Qt5X11Extras 5878 # legacy libraries required to be installed on EL5 5879 VBOX_QT_LEGACY_LIBS = \ 5880 $(if $(VBOX_LD_HAS_LIBXCB),,libxcb.so.1 libX11.so.6 libX11-xcb.so.1) 5881 VBOX_QT_PLUGINS = plugins/platforms/libqxcb.so 5882 else ifeq ($(KBUILD_TARGET), win) 5883 VBOX_QT_MOD += \ 5884 Qt5WinExtras 5885 endif # win 5886 endif # linux freebsd netbsd openbsd solaris win 5887 endif # VBOX_WITH_QTGUI_V5 5843 ifeq ($(KBUILD_TARGET), darwin) 5844 VBOX_QT_MOD = \ 5845 QtCore QtGui QtWidgets QtPrintSupport QtMacExtras \ 5846 $(if $(VBOX_GUI_USE_QGL),QtOpenGL,) 5847 else if1of ($(KBUILD_TARGET), linux freebsd netbsd openbsd solaris win) 5848 VBOX_QT_MOD += \ 5849 Qt5Core Qt5Gui Qt5Widgets Qt5PrintSupport \ 5850 $(if $(VBOX_GUI_USE_QGL),Qt5OpenGL,) 5851 if1of ($(KBUILD_TARGET), linux freebsd netbsd openbsd solaris) 5852 VBOX_QT_MOD += \ 5853 Qt5DBus Qt5XcbQpa Qt5X11Extras 5854 # legacy libraries required to be installed on EL5 5855 VBOX_QT_LEGACY_LIBS = \ 5856 $(if $(VBOX_LD_HAS_LIBXCB),,libxcb.so.1 libX11.so.6 libX11-xcb.so.1) 5857 VBOX_QT_PLUGINS = plugins/platforms/libqxcb.so 5858 else ifeq ($(KBUILD_TARGET), win) 5859 VBOX_QT_MOD += \ 5860 Qt5WinExtras 5861 endif # win 5862 endif # linux freebsd netbsd openbsd solaris win 5888 5863 5889 5864 VBOX_QT_MOD_NAMES = $(foreach qtmod,$(VBOX_QT_MOD),$(qtmod)$(VBOX_QT_INFIX)) … … 5901 5876 # 5902 5877 TEMPLATE_VBOXQTGUIEXE = VBox Qt GUI Executable 5903 ifndef VBOX_WITH_QTGUI_V5 5904 TEMPLATE_VBOXQTGUIEXE_USES = qt4 5905 TEMPLATE_VBOXQTGUIEXE_QTTOOL = QT4 5906 TEMPLATE_VBOXQTGUIEXE_MOCTOOL = QT4 5907 TEMPLATE_VBOXQTGUIEXE_UICTOOL = QT4 5908 TEMPLATE_VBOXQTGUIEXE_RCCTOOL = QT4 5909 TEMPLATE_VBOXQTGUIEXE_LRCTOOL = QT4 5910 TEMPLATE_VBOXQTGUIEXE_SDKS = QT4 5911 else # VBOX_WITH_QTGUI_V5 5912 TEMPLATE_VBOXQTGUIEXE_USES = qt5 5913 TEMPLATE_VBOXQTGUIEXE_QTTOOL = QT5 5914 TEMPLATE_VBOXQTGUIEXE_MOCTOOL = QT5 5915 TEMPLATE_VBOXQTGUIEXE_UICTOOL = QT5 5916 TEMPLATE_VBOXQTGUIEXE_RCCTOOL = QT5 5917 TEMPLATE_VBOXQTGUIEXE_LRCTOOL = QT5 5918 TEMPLATE_VBOXQTGUIEXE_SDKS = QT5 5919 TEMPLATE_VBOXQTGUIEXE_MOCDEFS.darwin += QT_VERSION=0x050602 5920 endif # VBOX_WITH_QTGUI_V5 5878 TEMPLATE_VBOXQTGUIEXE_USES = qt5 5879 TEMPLATE_VBOXQTGUIEXE_QTTOOL = QT5 5880 TEMPLATE_VBOXQTGUIEXE_MOCTOOL = QT5 5881 TEMPLATE_VBOXQTGUIEXE_UICTOOL = QT5 5882 TEMPLATE_VBOXQTGUIEXE_RCCTOOL = QT5 5883 TEMPLATE_VBOXQTGUIEXE_LRCTOOL = QT5 5884 TEMPLATE_VBOXQTGUIEXE_SDKS = QT5 5885 TEMPLATE_VBOXQTGUIEXE_MOCDEFS.darwin += QT_VERSION=0x050602 5921 5886 TEMPLATE_VBOXQTGUIEXE_QT_INFIX = $(VBOX_QT_INFIX) 5922 5887 TEMPLATE_VBOXQTGUIEXE_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS) … … 6012 5977 TEMPLATE_VBOXQTGUIEXE_LIBPATH += \ 6013 5978 $(VBOX_LIBPATH_X11) 6014 if defined(VBOX_WITH_ QTGUI_V5) && defined(VBOX_WITH_ORACLE_QT) && !defined(VBOX_LD_HAS_LIBXCB)5979 if defined(VBOX_WITH_ORACLE_QT) && !defined(VBOX_LD_HAS_LIBXCB) 6015 5980 TEMPLATE_VBOXQTGUIEXE_LIBPATH += $(PATH_SDK_QT5_LIB)/legacy 6016 5981 TEMPLATE_VBOXQTGUIEXE_INCS += $(PATH_SDK_QT5_INC)/legacy … … 6083 6048 endif # COM 6084 6049 6085 ifdef VBOX_WITH_QTGUI_V5 6086 ifn1of ($(KBUILD_TARGET), darwin os2 win) 6087 TEMPLATE_VBOXQTGUIEXE_DEFS += PIC 6088 TEMPLATE_VBOXQTGUIEXE_CFLAGS += -fPIC 6089 TEMPLATE_VBOXQTGUIEXE_CXXFLAGS += -fPIC 6090 TEMPLATE_VBOXQTGUIEXE_LDFLAGS += -fPIC 6091 endif # not darwin, os2 or win 6092 endif # VBOX_WITH_QTGUI_V5 6050 ifn1of ($(KBUILD_TARGET), darwin os2 win) 6051 TEMPLATE_VBOXQTGUIEXE_DEFS += PIC 6052 TEMPLATE_VBOXQTGUIEXE_CFLAGS += -fPIC 6053 TEMPLATE_VBOXQTGUIEXE_CXXFLAGS += -fPIC 6054 TEMPLATE_VBOXQTGUIEXE_LDFLAGS += -fPIC 6055 endif # not darwin, os2 or win 6093 6056 6094 6057 -
trunk/Makefile.kmk
r66918 r67067 149 149 # the Info.plist file goes into Resources. 150 150 # 151 ifndef VBOX_WITH_QTGUI_V5 152 ifeq ($(KBUILD_TARGET),darwin) 153 include $(KBUILD_PATH)/units/qt4.kmk 154 INSTALLS += qt4-bin 155 qt4-bin_MODE = 755 156 qt4-bin_INST = $(INST_VIRTUALBOX)Contents/ 157 qt4-bin_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES) \ 158 ,$(PATH_SDK_QT4_LIB)/$(qtmod).framework/Versions/4/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/4/$(qtmod) \ 159 $(PATH_SDK_QT4_LIB)/$(qtmod).framework/Contents/Info.plist=>Frameworks/$(qtmod).framework/Versions/4/Resources/Info.plist \ 160 ) 161 ifdef VBOX_WITH_COCOA_QT 162 qt4-bin_SOURCES += \ 163 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib=>Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/4/Resources/qt_menu.nib/classes.nib \ 164 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib=>Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/4/Resources/qt_menu.nib/info.nib \ 165 $(PATH_SDK_QT4_LIB)/QtGui$(VBOX_QT_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib=>Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/4/Resources/qt_menu.nib/keyedobjects.nib 166 endif 167 ifneq ($(wildcard $(VBOX_PATH_QT)/plugins/accessible/libqtaccessiblewidgets.dylib),) 168 qt4-bin_SOURCES += \ 169 $(VBOX_PATH_QT)/plugins/accessible/libqtaccessiblewidgets.dylib=>MacOS/accessible/libqtaccessiblewidgets.dylib 170 endif 171 qt4-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT_MOD_NAMES) \ 172 ,Frameworks/$(qtmod).framework/Versions/Current=>4 \ 173 Frameworks/$(qtmod).framework/$(qtmod)=>Versions/4/$(qtmod) \ 174 Frameworks/$(qtmod).framework/Resources=>Versions/4/Resources) 175 else 176 if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD) 177 include $(KBUILD_PATH)/units/qt4.kmk 178 ifeq ($(KBUILD_TARGET),win) 179 INSTALLS += qt4-bin 180 qt4-bin_MODE = 755 181 qt4-bin_INST = $(INST_BIN) 182 qt4-bin_SOURCES = \ 183 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt4-bin,$(VBOX_PATH_QT_LIB)/$(qtmod)4$(SUFF_DLL))) \ 184 $(call VBOX_RE_SIGN_DLL_FN,qt4-bin,$(VBOX_PATH_QT)/plugins/accessible/qtaccessiblewidgets4$(SUFF_DLL))=>accessible/qtaccessiblewidgets4$(SUFF_DLL) 185 ifdef VBOX_WITH_QT_PDBS 186 qt4-bin_SOURCES += \ 187 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(VBOX_PATH_QT_LIB)/$(qtmod)4.pdb) \ 188 $(VBOX_PATH_QT)/plugins/accessible/qtaccessiblewidgets4.pdb=>accessible/qtaccessiblewidgets4.pdb 189 endif 190 else 191 INSTALLS += qt4-bin 192 qt4-bin_MODE = 755 193 qt4-bin_INST = $(INST_BIN) 194 qt4-bin_SOURCES = \ 195 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(VBOX_PATH_QT_LIB)/lib$(qtmod)$(SUFF_DLL).4) \ 196 $(VBOX_PATH_QT)/plugins/accessible/libqtaccessiblewidgets$(SUFF_DLL)=>accessible/libqtaccessiblewidgets$(SUFF_DLL) 197 endif 198 endif # VBOX_WITH_ORACLE_QT 199 endif 200 else # VBOX_WITH_QTGUI_V5 201 ifeq ($(KBUILD_TARGET),darwin) 202 include $(KBUILD_PATH)/units/qt5.kmk 203 INSTALLS += qt5-bin 204 qt5-bin_MODE = 755 205 qt5-bin_INST = $(INST_VIRTUALBOX)Contents/ 206 qt5-bin_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \ 207 $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/5/$(qtmod) \ 208 $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/Resources/Info.plist=>Frameworks/$(qtmod).framework/Versions/5/Resources/Info.plist) 209 qt5-bin_SOURCES += \ 210 $(PATH_SDK_QT5)/plugins/platforms/libqcocoa$(SUFF_DLL)=>plugins/platforms/libqcocoa$(SUFF_DLL) \ 211 $(PATH_SDK_QT5)/plugins/platforms/libqminimal$(SUFF_DLL)=>plugins/platforms/libqminimal$(SUFF_DLL) \ 212 $(PATH_SDK_QT5)/plugins/platforms/libqoffscreen$(SUFF_DLL)=>plugins/platforms/libqoffscreen$(SUFF_DLL) 213 qt5-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \ 214 Frameworks/$(qtmod).framework/Versions/Current=>5 \ 215 Frameworks/$(qtmod).framework/$(qtmod)=>Versions/5/$(qtmod) \ 216 Frameworks/$(qtmod).framework/Resources=>Versions/5/Resources) 217 else # win x11 218 if1of ($(KBUILD_TARGET), linux solaris) 219 ifndef VBOX_ONLY_BUILD 220 ifneq ($(VBOX_GCC_VERSION_CXX),) 221 ifeq ($(int-ge $(VBOX_GCC_VERSION_CXX),40400),) 222 $(error gcc >= 4.4 required when compiling against Qt5!) 223 endif 151 ifeq ($(KBUILD_TARGET),darwin) 152 include $(KBUILD_PATH)/units/qt5.kmk 153 INSTALLS += qt5-bin 154 qt5-bin_MODE = 755 155 qt5-bin_INST = $(INST_VIRTUALBOX)Contents/ 156 qt5-bin_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \ 157 $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/5/$(qtmod) \ 158 $(PATH_SDK_QT5_LIB)/$(qtmod).framework/Versions/5/Resources/Info.plist=>Frameworks/$(qtmod).framework/Versions/5/Resources/Info.plist) 159 qt5-bin_SOURCES += \ 160 $(PATH_SDK_QT5)/plugins/platforms/libqcocoa$(SUFF_DLL)=>plugins/platforms/libqcocoa$(SUFF_DLL) \ 161 $(PATH_SDK_QT5)/plugins/platforms/libqminimal$(SUFF_DLL)=>plugins/platforms/libqminimal$(SUFF_DLL) \ 162 $(PATH_SDK_QT5)/plugins/platforms/libqoffscreen$(SUFF_DLL)=>plugins/platforms/libqoffscreen$(SUFF_DLL) 163 qt5-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \ 164 Frameworks/$(qtmod).framework/Versions/Current=>5 \ 165 Frameworks/$(qtmod).framework/$(qtmod)=>Versions/5/$(qtmod) \ 166 Frameworks/$(qtmod).framework/Resources=>Versions/5/Resources) 167 else # win x11 168 if1of ($(KBUILD_TARGET), linux solaris) 169 ifndef VBOX_ONLY_BUILD 170 ifneq ($(VBOX_GCC_VERSION_CXX),) 171 ifeq ($(int-ge $(VBOX_GCC_VERSION_CXX),40400),) 172 $(error gcc >= 4.4 required when compiling against Qt5!) 224 173 endif 225 174 endif 226 175 endif 227 if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD) 228 include $(KBUILD_PATH)/units/qt5.kmk 229 ifeq ($(KBUILD_TARGET),win) 230 INSTALLS += qt5-bin 231 qt5-bin_MODE = 755 232 qt5-bin_INST = $(INST_BIN) 176 endif 177 if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD) 178 include $(KBUILD_PATH)/units/qt5.kmk 179 ifeq ($(KBUILD_TARGET),win) 180 INSTALLS += qt5-bin 181 qt5-bin_MODE = 755 182 qt5-bin_INST = $(INST_BIN) 183 qt5-bin_SOURCES = \ 184 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/bin/$(qtmod)$(SUFF_DLL))) 185 qt5-bin_SOURCES += \ 186 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qwindows$(SUFF_DLL))=>platforms/qwindows$(SUFF_DLL) \ 187 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qminimal$(SUFF_DLL))=>platforms/qminimal$(SUFF_DLL) \ 188 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qoffscreen$(SUFF_DLL))=>platforms/qoffscreen$(SUFF_DLL) 189 ifdef VBOX_WITH_QT_PDBS 190 qt5-bin_SOURCES += \ 191 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT5)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb)) 192 endif # VBOX_WITH_QT_PDBS 193 else # x11 194 INSTALLS += qt5-bin 195 qt5-bin_MODE = 755 196 qt5-bin_INST = $(INST_BIN) 197 ifdef VBOX_WITH_HARDENING 198 # The wildcards are necessary to install the libs instead of the symlinks 233 199 qt5-bin_SOURCES = \ 234 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/bin/$(qtmod)$(SUFF_DLL))) 235 qt5-bin_SOURCES += \ 236 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qwindows$(SUFF_DLL))=>platforms/qwindows$(SUFF_DLL) \ 237 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qminimal$(SUFF_DLL))=>platforms/qminimal$(SUFF_DLL) \ 238 $(call VBOX_RE_SIGN_DLL_FN,qt5-bin,$(PATH_SDK_QT5)/plugins/platforms/qoffscreen$(SUFF_DLL))=>platforms/qoffscreen$(SUFF_DLL) 239 ifdef VBOX_WITH_QT_PDBS 240 qt5-bin_SOURCES += \ 241 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT5)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb)) 242 endif # VBOX_WITH_QT_PDBS 243 else # x11 244 INSTALLS += qt5-bin 245 qt5-bin_MODE = 755 246 qt5-bin_INST = $(INST_BIN) 247 ifdef VBOX_WITH_HARDENING 248 # The wildcards are necessary to install the libs instead of the symlinks 249 qt5-bin_SOURCES = \ 250 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(VBOX_PATH_QT_LIB)/lib$(qtmod).so.*.*.*)=>lib$(qtmod).so.5) \ 251 $(foreach lib,$(VBOX_QT_PLUGINS),$(VBOX_PATH_QT)/$(lib)=>$(lib)) 252 ifneq ($(KBUILD_TARGET),solaris) 253 qt5-bin_SOURCES += \ 254 $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(wildcard $(VBOX_PATH_QT_LIB)/legacy/$(lib).*.*)=>legacy/$(lib)) 255 endif # solaris 256 else # !VBOX_WITH_HARDENING 257 # For non-hardened builds we need to remove the RUNPATH. This stuff is 258 # ugly but we need to prevent kBuild from hard-linking otherwise we 259 # (indirectly) change the binaries in tools 200 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(VBOX_PATH_QT_LIB)/lib$(qtmod).so.*.*.*)=>lib$(qtmod).so.5) \ 201 $(foreach lib,$(VBOX_QT_PLUGINS),$(VBOX_PATH_QT)/$(lib)=>$(lib)) 260 202 ifneq ($(KBUILD_TARGET),solaris) 261 QT5_VERSION = 5.6.1 262 else 263 QT5_VERSION = 5.5.1 264 endif 265 qt5-bin_SOURCES = \ 266 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)=>lib$(qtmod).so.5) \ 267 $(foreach lib,$(VBOX_QT_PLUGINS),$(qt5-bin_0_OUTDIR)/$(lib)=>$(lib)) 268 ifneq ($(KBUILD_TARGET),solaris) 269 qt5-bin_SOURCES += \ 270 $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(qt5-bin_0_OUTDIR)/$(lib)=>legacy/$(lib)) 271 endif # solaris 203 qt5-bin_SOURCES += \ 204 $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(wildcard $(VBOX_PATH_QT_LIB)/legacy/$(lib).*.*)=>legacy/$(lib)) 205 endif # solaris 206 else # !VBOX_WITH_HARDENING 207 # For non-hardened builds we need to remove the RUNPATH. This stuff is 208 # ugly but we need to prevent kBuild from hard-linking otherwise we 209 # (indirectly) change the binaries in tools 210 ifneq ($(KBUILD_TARGET),solaris) 211 QT5_VERSION = 5.6.1 212 else 213 QT5_VERSION = 5.5.1 214 endif 215 qt5-bin_SOURCES = \ 216 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)=>lib$(qtmod).so.5) \ 217 $(foreach lib,$(VBOX_QT_PLUGINS),$(qt5-bin_0_OUTDIR)/$(lib)=>$(lib)) 218 ifneq ($(KBUILD_TARGET),solaris) 219 qt5-bin_SOURCES += \ 220 $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$(qt5-bin_0_OUTDIR)/$(lib)=>legacy/$(lib)) 221 endif # solaris 272 222 273 223 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$$(qt5-bin_0_OUTDIR)/lib$(qtmod).so.$(QT5_VERSION)): \ 274 275 276 277 278 279 224 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/% | $$(qt5-bin_0_OUTDIR)/ 225 $(call MSG_INST_FILE,$^,$@) 226 $(QUIET)$(CP) $^ $@ 227 $(QUIET)chrpath --delete $@ 228 229 ifneq ($(KBUILD_TARGET),solaris) 280 230 $(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \ 281 282 283 284 285 286 287 288 289 290 231 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/ 232 $(call MSG_INST_FILE,$^,$@) 233 $(QUIET)$(MKDIR) -p $(@D) 234 $(QUIET)$(CP) $^ $@ 235 $(QUIET)chrpath --delete $@ 236 endif # !solaris 237 238 # @todo For solaris dlopen fails to navigate executable rpath to dependent libraries, 239 # so add explicit rpath for libqxcb.so, find better solution later. 240 ifeq ($(KBUILD_TARGET),solaris) 291 241 $(foreach lib,$(VBOX_QT_PLUGINS),$$(qt5-bin_0_OUTDIR)/$(lib)): \ 292 293 294 295 296 297 242 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT)/% | $$(qt5-bin_0_OUTDIR)/ 243 $(call MSG_INST_FILE,$^,$@) 244 $(QUIET)$(MKDIR) -p $(@D) 245 $(QUIET)$(CP) $^ $@ 246 $(QUIET)chrpath --replace "\$$ORIGIN/../../" $@ 247 endif # solaris 298 248 299 249 $(foreach lib,$(VBOX_QT_LEGACY_LIBS),$$(qt5-bin_0_OUTDIR)/$(lib)): \ 300 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/legacy/% | $$(qt5-bin_0_OUTDIR)/ 301 $(call MSG_INST_FILE,$^,$@) 302 $(QUIET)$(CP) $^ $@ 303 $(QUIET)chrpath --delete $@ 304 305 endif # !VBOX_WITH_HARDENING 306 endif # x11 307 endif # VBOX_WITH_ORACLE_QT || VBOX_WITH_QT_PAYLOAD 308 endif # win x11 309 endif # VBOX_WITH_QTGUI_V5 250 $$(qt5-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/legacy/% | $$(qt5-bin_0_OUTDIR)/ 251 $(call MSG_INST_FILE,$^,$@) 252 $(QUIET)$(CP) $^ $@ 253 $(QUIET)chrpath --delete $@ 254 255 endif # !VBOX_WITH_HARDENING 256 endif # x11 257 endif # VBOX_WITH_ORACLE_QT || VBOX_WITH_QT_PAYLOAD 258 endif # win x11 310 259 311 260 -
trunk/configure
r67045 r67067 83 83 WITH_LIBIDL=1 84 84 WITH_GSOAP=0 85 WITH_QT4=086 85 WITH_QT5=1 87 86 WITH_SDL=1 … … 155 154 PKGCONFIG="`which_wrapper pkg-config`" 156 155 PYTHONDIR="/usr /usr/local" 157 QT4DIR="/usr/lib/qt4 /usr/share/qt4 /usr/lib64/qt4 /usr /usr/local"158 QT4DIR_PKGCONFIG=1159 156 QT5DIR="/usr/lib/qt5 /usr/share/qt5 /usr/lib64/qt5 /usr /usr/local" 160 157 QT5DIR_PKGCONFIG=1 … … 1467 1464 [ $PASSIVE_MESA -eq 1 ] && unset DISPLAY 1468 1465 test_execute 1469 fi1470 }1471 1472 1473 #1474 # Check for the Qt4 library, needed by the VirtualBox frontend1475 #1476 # Currently not fatal.1477 #1478 check_qt4()1479 {1480 foundqt4=1481 test_header Qt41482 cat > $ODIR.tmp_src.cc << EOF1483 #include <QtGlobal>1484 extern "C" int main(void)1485 {1486 #if QT_VERSION >= 0x0408001487 return 0;1488 #else1489 return 1;1490 #endif1491 }1492 EOF1493 if [ "$OS" = "darwin" ]; then1494 # First check if there is the internal version of Qt. If yes nothing else1495 # has to be done.1496 QT_INTERNAL=`/bin/ls -rd1 $PWD/tools/$BUILD_TARGET.$BUILD_PLATFORM_ARCH/qt/* 2> /dev/null`1497 for t in $QT_INTERNAL; do1498 if [ -f "$t/Frameworks/QtCoreVBox.framework/QtCoreVBox" ]; then1499 cnf_append "VBOX_WITH_ORACLE_QT" "1"1500 log_success "use internal version"1501 return1502 fi1503 done1504 # Now try the user provided directory and some of the standard directories.1505 QT_TRIES="$QT4DIR /System/Library /Library"1506 for t in $QT_TRIES; do1507 if [ -f "$t/Frameworks/QtCore.framework/QtCore" ]; then1508 PATH_SDK_QT4="$t"1509 break1510 fi1511 done1512 # Add the necessary params for building the test application1513 if [ -n "$PATH_SDK_QT4" ]; then1514 foundqt4=11515 INCQT4=-I$PATH_SDK_QT4/Frameworks/QtCore.framework/Headers1516 LIBQT4=-F$PATH_SDK_QT4/Frameworks1517 FLGQT4="-framework QtCore"1518 else1519 log_failure "Qt4 framework not found (can be disabled using --disable-qt)"1520 fail1521 fi1522 else # !darwin1523 if [ $QT4DIR_PKGCONFIG -eq 1 ]; then1524 # default is to use pkg-config1525 if which_wrapper pkg-config > /dev/null; then1526 qt4_ver=`pkg-config QtCore --modversion 2>> $LOG`1527 if [ $? -eq 0 ]; then1528 FLGQT4=`pkg-config QtCore --cflags`1529 INCQT4=`strip_I "$FLGQT4"`1530 LIBQT4=`PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 pkg-config QtCore --libs`1531 TOOLQT4=`pkg-config QtCore --variable=prefix`1532 TOOLQT4MOC="`pkg-config QtCore --variable=moc_location`"1533 TOOLQT4BIN="`dirname $TOOLQT4MOC`"1534 if test_compile "$LIBQT4 $LIBPTHREAD $FLGQT4" qt4 qt4 nofatal; then1535 test_execute_path "`strip_L "$LIBQT4"`" nofatal && foundqt4=3 # pkg-config1536 fi1537 fi1538 else1539 log_failure "pkg-config not found"1540 fail1541 fi1542 fi1543 if [ -z "$foundqt4" ]; then1544 # do it the old way (e.g. user has specified QT4DIR)1545 for q in $QT4DIR "$PWD/tools/linux.$TARGET_MACHINE"/qt/v4.8.*; do1546 INCQT4="$q/include $q/include/QtCore"1547 FLGQT4="-DQT_SHARED"1548 I_INCQT4=`prefix_I "$INCQT4"`1549 LIBQT4="-L$q/lib -lQtCoreVBox"1550 TOOLQT4="$q"1551 if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal &&1552 test_execute_path "`strip_L "$LIBQT4"`" nofatal; then1553 foundqt4=2 # internal1554 break;1555 fi1556 LIBQT4="-L$q/lib -lQtCore"1557 if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal &&1558 test_execute_path "`strip_L "$LIBQT4"`" nofatal; then1559 foundqt4=1 # no pkg-config, Qt directory1560 break;1561 fi1562 done1563 fi1564 fi1565 if [ -n "$foundqt4" ]; then1566 # we decided which version of Qt to use. Now enforce the version requirement1567 cat > $ODIR.tmp_src.cc << EOF1568 #include <cstdio>1569 #include <QtGlobal>1570 extern "C" int main(void)1571 {1572 printf("found version %s", QT_VERSION_STR);1573 #if QT_VERSION >= 0x0408001574 printf(", OK.\n");1575 return 0;1576 #else1577 printf(", expected version 4.8.0 or higher\n");1578 return 1;1579 #endif1580 }1581 EOF1582 [ -n "$INCQT4" ] && I_INCQT4=`prefix_I "$INCQT4"`1583 if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLGQT4" qt4 qt4 nofatal; then1584 if test_execute_path "`strip_L "$LIBQT4"`"; then1585 if [ "$OS" = "darwin" ]; then1586 # Successful build & run the test application so add the necessary1587 # params to AutoConfig.kmk1588 cnf_append "PATH_SDK_QT4_INC" "$PATH_SDK_QT4/Frameworks"1589 cnf_append "PATH_SDK_QT4_LIB" "$PATH_SDK_QT4/Frameworks"1590 cnf_append "PATH_SDK_QT4" "$PATH_SDK_QT4/Frameworks"1591 # Check for the moc tool in the Qt directory found & some standard1592 # directories.1593 for q in $PATH_SDK_QT4 /usr /Developer/Tools/Qt; do1594 if which_wrapper "$q/bin/moc" > /dev/null; then1595 cnf_append "PATH_TOOL_QT4_BIN" "$q/bin"1596 fi1597 done1598 else1599 # strip .../QtCore as we add components ourself1600 INCQT4=`echo "$INCQT4"|$KBUILD_SED 's|\([^ ]*\)/QtCore|\1|g; s| $||g'`1601 # store only the first path, remove all other pathes1602 # most likely pkg-config gave us -I/usr/include/qt4 -I/usr/include/qt4/QtCore1603 INCQT4=`echo "$INCQT4"|$KBUILD_SED 's|\([^ ]*\) .*|\1|'`1604 cnf_append "VBOX_PATH_QT_LIB" "`strip_L "$LIBQT4"`"1605 cnf_append "PATH_SDK_QT4_INC" "$INCQT4"1606 # this is not quite right since the qt libpath does not have to be first...1607 cnf_append "PATH_SDK_QT4_LIB" '$'"(firstword `strip_L "$LIBQT4"`)"1608 if [ "$foundqt4" = "2" ]; then1609 cnf_append "VBOX_WITH_ORACLE_QT" "1"1610 fi1611 if [ "$foundqt4" != "3" ]; then1612 TOOLQT4BIN="$TOOLQT4/bin"1613 fi1614 test_header "Qt4 devtools"1615 # try it with a suffix, some platforms use that1616 if which_wrapper "$TOOLQT4BIN/moc-qt4" > /dev/null; then1617 QT4BINSUFF="-qt4"1618 else1619 QT4BINSUFF=""1620 fi1621 moc_ver=`$TOOLQT4BIN/moc$QT4BINSUFF -v 2>&1|sed 's+^.*(Qt \(.*\))+\1+'`1622 if [ $? -ne 0 ]; then1623 log_failure "moc$QT4BINSUFF not working"1624 fail1625 else1626 log_success "found version $moc_ver"1627 cnf_append "VBOX_PATH_QT" "$TOOLQT4"1628 cnf_append "PATH_SDK_QT4" "$TOOLQT4"1629 cnf_append "PATH_TOOL_QT4_BIN" "$TOOLQT4BIN"1630 [ -n "$QT4BINSUFF" ] && cnf_append "TOOL_QT4_BIN_SUFF" "$QT4BINSUFF"1631 fi1632 fi1633 fi1634 else1635 log_failure "qt4 not working"1636 fail1637 fi1638 else1639 log_failure "qt4 not found"1640 fail1641 1466 fi 1642 1467 } … … 2496 2321 [ $WITH_VMMRAW -eq 1 ] && echo " --disable-vmmraw disable VMM raw mode (VT-x/AMD-V mandatory!)" 2497 2322 [ $WITH_SDL_TTF -eq 1 ] && echo " --disable-sdl-ttf disable SDL_ttf detection" 2498 [ $WITH_QT4 -eq 1 ] && echo " --disable-qt disable Qt detection"2499 2323 [ $WITH_QT5 -eq 1 ] && echo " --disable-qt disable Qt detection" 2500 2324 [ $WITH_ALSA -eq 1 ] && echo " --disable-alsa disable the ALSA sound backend" … … 2503 2327 [ $WITH_KMODS -eq 1 ] && echo " --disable-kmods don't build Linux kernel modules (host and guest)" 2504 2328 [ $WITH_OPENGL -eq 1 ] && echo " --disable-opengl disable OpenGL support (2D & 3D)" 2505 [ $WITH_QT4 -eq 0 ] && echo " --enable-qt4 enable Qt4 detection"2506 2329 [ $WITH_QT5 -eq 0 ] && echo " --enable-qt5 enable Qt5 detection" 2507 2330 [ $WITH_GSOAP -eq 0 ] && echo " --enable-webservice enable the webservice stuff" … … 2538 2361 [ "$OS" = "darwin" ] && echo " only, ignored for the rest)" 2539 2362 [ "$OS" = "linux" ] && echo " --with-linux=DIR Linux kernel source directory [$LINUX]" 2540 [ $WITH_QT4 -eq 1 ] && echo " --with-qt-dir=DIR directory for Qt headers/libraries [pkgconfig]"2541 2363 [ $WITH_QT5 -eq 1 ] && echo " --with-qt-dir=DIR directory for Qt headers/libraries [pkgconfig]" 2542 2364 [ $WITH_GSOAP -eq 1 ] && echo " --with-gsoap-dir=PATH directory for gSOAP compiler/headers/libraries" … … 2632 2454 ;; 2633 2455 --with-qt-dir=*) 2634 [ $WITH_QT4 -eq 1 ] && QT4DIR=`echo $option | cut -d'=' -f2`2635 [ $WITH_QT4 -eq 1 ] && QT4DIR_PKGCONFIG=02636 2456 [ $WITH_QT5 -eq 1 ] && QT5DIR=`echo $option | cut -d'=' -f2` 2637 2457 [ $WITH_QT5 -eq 1 ] && QT5DIR_PKGCONFIG=0 … … 2692 2512 ;; 2693 2513 --disable-qt) 2694 [ $WITH_QT4 -eq 1 ] && WITH_QT4=02695 [ $WITH_QT5 -eq 1 ] && WITH_QT5=02696 ;;2697 --enable-qt4)2698 [ $WITH_QT4 -eq 0 ] && WITH_QT4=12699 2514 [ $WITH_QT5 -eq 1 ] && WITH_QT5=0 2700 2515 ;; 2701 2516 --enable-qt5) 2702 2517 [ $WITH_QT5 -eq 0 ] && WITH_QT5=1 2703 [ $WITH_QT4 -eq 1 ] && WITH_QT4=02704 2518 ;; 2705 2519 --passive-mesa) … … 2781 2595 WITH_X11=0 2782 2596 WITH_OPENGL=0 2783 WITH_QT4=02784 2597 WITH_QT5=0 2785 2598 ;; … … 2932 2745 fi 2933 2746 [ $WITH_XPCOM -eq 0 ] && cnf_append "VBOX_WITH_MAIN" "" 2934 [ $WITH_QT4 -eq 0 -a $WITH_QT5 -eq 0 ] && cnf_append "VBOX_WITH_QTGUI" "" 2935 [ $WITH_QT5 -eq 1 ] && cnf_append "VBOX_WITH_QTGUI_V5" "1" 2747 [ $WITH_QT5 -eq 0 ] && cnf_append "VBOX_WITH_QTGUI" "" 2936 2748 [ $WITH_SDL_TTF -eq 0 ] && cnf_append "VBOX_WITH_SECURELABEL" "" 2937 2749 [ $WITH_PYTHON -eq 0 ] && cnf_append "VBOX_WITH_PYTHON" "" … … 2985 2797 [ $WITH_X11 -eq 1 ] && check_xrandr 2986 2798 [ $WITH_OPENGL -eq 1 ] && check_opengl 2987 [ $WITH_QT4 -eq 1 ] && check_qt42988 2799 [ $WITH_QT5 -eq 1 ] && check_qt5 2989 2800 [ $WITH_PYTHON -eq 1 ] && check_python -
trunk/configure.vbs
r63334 r67067 2023 2023 2024 2024 '' 2025 ' Checks for any Qt4/5 binaries. 2026 sub CheckForQt(strOptQt4, strOptQt5) 2027 dim strPathQt4 2028 2029 PrintHdr "Qt4" 2030 2031 ' 2032 ' Try to find the Qt4 installation (user specified path with --with-qt4) 2033 ' 2034 strPathQt4 = "" 2035 2036 LogPrint "Checking for user specified path of Qt4 ... " 2037 if (strPathQt4 = "") And (strOptQt4 <> "") then 2038 strOptQt4 = UnixSlashes(strOptQt4) 2039 if CheckForQt4Sub(strOptQt4) then strPathQt4 = strOptQt4 2040 end if 2041 2042 ' Check the dev tools 2043 if (strPathQt4 = "") Then 2044 strPathQt4 = g_strPathDev & "/win." & g_strTargetArch & "/qt/v4.7.3-vcc100" 2045 if CheckForQt4Sub(strPathQt4) = False then strPathQt4 = "" 2046 end if 2047 2048 ' Display the result. 2049 if strPathQt4 = "" then 2050 PrintResultMsg "Qt4", "not found" 2051 else 2052 PrintResult "Qt4", strPathQt4 2053 end if 2025 ' Checks for any Qt5 binaries. 2026 sub CheckForQt(strOptQt5) 2054 2027 2055 2028 PrintHdr "Qt5" … … 2083 2056 CfgPrint "PATH_TOOL_QT5 := $(PATH_SDK_QT5)" 2084 2057 CfgPrint "VBOX_PATH_QT := $(PATH_SDK_QT5)" 2085 if strPathQt4 <> "" then 2086 MsgWarning "Have working path to both Qt4 ad Qt5, ignoring Qt4." 2087 end if 2088 elseif strPathQt4 <> "" then 2089 CfgPrint "PATH_SDK_QT4 := " & strPathQt4 2090 CfgPrint "PATH_TOOL_QT4 := $(PATH_SDK_QT4)" 2091 CfgPrint "VBOX_PATH_QT := $(PATH_SDK_QT4)" 2092 end if 2093 if (strPathQt4 = "") And (strPathQt5 = "") then 2058 end if 2059 if (strPathQt5 = "") then 2094 2060 CfgPrint "VBOX_WITH_QTGUI :=" 2095 2061 end if 2096 if strPathQt5 = "" then 2097 CfgPrint "VBOX_WITH_QTGUI_V5 :=" 2098 end if 2099 end sub 2100 2101 2102 '' 2103 ' Checks if the specified path points to an usable Qt4 library. 2104 function CheckForQt4Sub(strPathQt4) 2105 2106 CheckForQt4Sub = False 2107 LogPrint "trying: strPathQt4=" & strPathQt4 2108 2109 if LogFileExists(strPathQt4, "bin/moc.exe") _ 2110 And LogFileExists(strPathQt4, "bin/uic.exe") _ 2111 And LogFileExists(strPathQt4, "include/Qt/qwidget.h") _ 2112 And LogFileExists(strPathQt4, "include/QtGui/QApplication") _ 2113 And LogFileExists(strPathQt4, "include/QtNetwork/QHostAddress") _ 2114 And ( LogFileExists(strPathQt4, "lib/QtCore4.lib") _ 2115 Or LogFileExists(strPathQt4, "lib/VBoxQtCore4.lib") _ 2116 Or LogFileExists(strPathQt4, "lib/QtCoreVBox4.lib")) _ 2117 And ( LogFileExists(strPathQt4, "lib/QtNetwork4.lib") _ 2118 Or LogFileExists(strPathQt4, "lib/VBoxQtNetwork4.lib") _ 2119 Or LogFileExists(strPathQt4, "lib/QtNetworkVBox4.lib")) _ 2120 then 2121 CheckForQt4Sub = True 2122 end if 2123 2124 end function 2062 end sub 2125 2063 2126 2064 … … 2207 2145 Print " --with-MinGW32=PATH " 2208 2146 Print " --with-MinGW-w64=PATH " 2209 Print " --with-Qt4=PATH "2210 2147 Print " --with-Qt5=PATH " 2211 2148 Print " --with-SDK=PATH " … … 2244 2181 strOptMinGW32 = "" 2245 2182 strOptMinGWw64 = "" 2246 strOptQt4 = ""2247 2183 strOptQt5 = "" 2248 2184 strOptSDK = "" … … 2287 2223 case "--with-mingw-w64" 2288 2224 strOptMinGWw64 = strPath 2289 case "--with-qt4"2290 strOptQt4 = strPath2291 2225 case "--with-qt5" 2292 2226 strOptQt5 = strPath … … 2384 2318 CheckForSsl strOptSsl 2385 2319 CheckForCurl strOptCurl 2386 CheckForQt strOptQt 4, strOptQt52320 CheckForQt strOptQt5 2387 2321 if (strOptPython <> "") then 2388 2322 CheckForPython strOptPython -
trunk/debian/control
r63946 r67067 4 4 Maintainer: Oracle Corporation <[email protected]> 5 5 Standards-Version: 3.2.1 6 Build-Depends: debhelper (>= 5), libz-dev, libssl-dev, libqt4-dev,7 lib qt4-opengl-dev, libsdl1.2-dev, uuid-dev, libxcursor-dev,6 Build-Depends: debhelper (>= 5), libz-dev, libssl-dev, 7 libsdl1.2-dev, uuid-dev, libxcursor-dev, 8 8 libidl-dev, libpam0g-dev, iasl, xsltproc, linux-headers-generic, 9 9 wine, java2-runtime, lsb-release, g++-multilib [amd64], -
trunk/src/VBox/Debugger/Makefile.kmk
r64554 r67067 92 92 if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI) 93 93 # 94 # Debugger GUI component (Qt 4).94 # Debugger GUI component (Qt). 95 95 # 96 ifndef VBOX_WITH_QTGUI_V5 97 USES += qt4 98 else # VBOX_WITH_QTGUI_V5 99 USES += qt5 100 endif # VBOX_WITH_QTGUI_V5 96 USES += qt5 101 97 DLLS += VBoxDbg 102 98 VBoxDbg_TEMPLATE = VBOXQTGUI 103 VBoxDbg_DEFS = IN_DBG_R3 VBOXDBG_USE_QT499 VBoxDbg_DEFS = IN_DBG_R3 104 100 VBoxDbg_INCS = . 105 VBoxDbg_QT_MODULES = Core Gui 106 ifdef VBOX_WITH_QTGUI_V5 107 # Qt5 requires additional modules: 108 VBoxDbg_QT_MODULES += Widgets 109 endif # VBOX_WITH_QTGUI_V5 101 VBoxDbg_QT_MODULES = Core Gui Widgets 110 102 VBoxDbg_QT_MOCHDRS = \ 111 103 VBoxDbgGui.h \ 112 104 VBoxDbgConsole.h \ 113 VBoxDbgStatsQt 4.h105 VBoxDbgStatsQt.h 114 106 VBoxDbg_SOURCES = \ 115 107 VBoxDbg.cpp \ … … 117 109 VBoxDbgBase.cpp \ 118 110 VBoxDbgConsole.cpp \ 119 VBoxDbgStatsQt 4.cpp111 VBoxDbgStatsQt.cpp 120 112 VBoxDbg_LIBS = \ 121 113 $(VBOX_LIB_VMM_LAZY) … … 126 118 ifdef VBOX_WITH_TESTCASES 127 119 # 128 # The VBoxDbg testcase (Qt 4).120 # The VBoxDbg testcase (Qt). 129 121 # 130 122 PROGRAMS += tstVBoxDbg 131 123 tstVBoxDbg_TEMPLATE = VBOXQTGUIEXE 132 ifndef VBOX_WITH_QTGUI_V5 133 tstVBoxDbg_USES = qt4 134 tstVBoxDbg_QTTOOL = QT4 135 else # VBOX_WITH_QTGUI_V5 136 tstVBoxDbg_USES = qt5 137 tstVBoxDbg_QTTOOL = QT5 138 endif # VBOX_WITH_QTGUI_V5 139 tstVBoxDbg_QT_MODULES = Core Gui 140 ifdef VBOX_WITH_QTGUI_V5 141 # Qt5 requires additional modules: 142 tstVBoxDbg_QT_MODULES += Widgets 143 tstVBoxDbg_LIBS.linux += xcb 144 tstVBoxDbg_LIBS.solaris += xcb 145 tstVBoxDbg_LIBS.freebsd += xcb 146 endif # VBOX_WITH_QTGUI_V5 124 tstVBoxDbg_USES = qt5 125 tstVBoxDbg_QTTOOL = QT5 126 tstVBoxDbg_QT_MODULES = Core Gui Widgets 127 tstVBoxDbg_LIBS.linux += xcb 128 tstVBoxDbg_LIBS.solaris += xcb 129 tstVBoxDbg_LIBS.freebsd += xcb 147 130 tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp 148 131 tstVBoxDbg_LIBS = \ … … 158 141 endif 159 142 endif # TESTCASES 160 endif # Qt 4143 endif # Qt 161 144 162 145 -
trunk/src/VBox/Debugger/VBoxDbgGui.h
r62480 r67067 26 26 #endif 27 27 28 #include "VBoxDbgStatsQt 4.h"28 #include "VBoxDbgStatsQt.h" 29 29 #include "VBoxDbgConsole.h" 30 30 -
trunk/src/VBox/Debugger/VBoxDbgStatsQt.cpp
r67066 r67067 21 21 *********************************************************************************************************************************/ 22 22 #define LOG_GROUP LOG_GROUP_DBGG 23 #include "VBoxDbgStatsQt 4.h"23 #include "VBoxDbgStatsQt.h" 24 24 25 25 #include <QLocale> -
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r67060 r67067 92 92 # VirtualBox - The GUI program. 93 93 # 94 ifndef VBOX_WITH_QTGUI_V5 95 USES += qt4 96 else # VBOX_WITH_QTGUI_V5 97 USES += qt5 98 endif # VBOX_WITH_QTGUI_V5 94 USES += qt5 99 95 VirtualBox_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXQTGUI,VBOXQTGUIEXE) 100 96 VirtualBox_NAME = VirtualBox … … 227 223 VirtualBox_LIBS.freebsd += Xinerama 228 224 229 ifdef VBOX_WITH_QTGUI_V5 230 # No Qt5 without Xcb under X11: 231 VirtualBox_LIBS.linux += xcb 232 VirtualBox_LIBS.solaris += xcb 233 VirtualBox_LIBS.freebsd += xcb 234 endif # VBOX_WITH_QTGUI_V5 225 VirtualBox_LIBS.linux += xcb 226 VirtualBox_LIBS.solaris += xcb 227 VirtualBox_LIBS.freebsd += xcb 235 228 236 229 ifneq ($(KBUILD_TARGET),win) … … 852 845 src/platform/win/WinKeyboard.cpp 853 846 854 if defined(VBOX_WITH_ QTGUI_V5) && (defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD))847 if defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD) 855 848 INSTALLS.linux += VirtualBox.qt.conf 856 849 INSTALLS.solaris += VirtualBox.qt.conf … … 906 899 907 900 # The Qt modules we're using. 908 # (The include directory and lib/framework for each module will be added by the Qt4 unit.) 909 VirtualBox_QT_MODULES = Core Gui 910 ifdef VBOX_WITH_QTGUI_V5 911 # Qt5 requires additional modules: 912 VirtualBox_QT_MODULES += Widgets PrintSupport 913 VirtualBox_QT_MODULES.linux += X11Extras 914 VirtualBox_QT_MODULES.solaris += X11Extras 915 VirtualBox_QT_MODULES.freebsd += X11Extras 916 VirtualBox_QT_MODULES.darwin += MacExtras 917 VirtualBox_QT_MODULES.win += WinExtras 918 endif # VBOX_WITH_QTGUI_V5 901 # (The include directory and lib/framework for each module will be added by the Qt unit.) 902 VirtualBox_QT_MODULES = Core Gui Widgets PrintSupport 903 VirtualBox_QT_MODULES.linux += X11Extras 904 VirtualBox_QT_MODULES.solaris += X11Extras 905 VirtualBox_QT_MODULES.freebsd += X11Extras 906 VirtualBox_QT_MODULES.darwin += MacExtras 907 VirtualBox_QT_MODULES.win += WinExtras 919 908 if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_GUI_USE_QGL) 920 909 VirtualBox_QT_MODULES += OpenGL … … 1121 1110 $(PATH_ROOT)/src/VBox/Artwork/darwin/virtualbox-hdd.icns=>Resources/virtualbox-hdd.icns 1122 1111 1123 ifdef VBOX_WITH_QTGUI_V51124 1112 # Qt5 requires qt.conf on Mac OS X: 1125 1113 VirtualBox.app_SOURCES += \ 1126 1114 $(VirtualBox.app_0_OUTDIR)/qt.conf=>Resources/qt.conf 1127 endif # VBOX_WITH_QTGUI_V51128 1115 1129 1116 $$(VirtualBox.app_0_OUTDIR)/Info.plist: $(PATH_SUB_CURRENT)/src/platform/darwin/Info.plist $(VBOX_VERSION_MK) | $$(@D)/ … … 1244 1231 PROGRAMS += tstSSLCertDownloads 1245 1232 tstSSLCertDownloads_TEMPLATE = VBOXQTGUIEXE 1246 ifndef VBOX_WITH_QTGUI_V5 1247 tstSSLCertDownloads_USES = qt4 1248 tstSSLCertDownloads_QTTOOL = QT4 1249 else # VBOX_WITH_QTGUI_V5 1250 tstSSLCertDownloads_USES = qt5 1251 tstSSLCertDownloads_QTTOOL = QT5 1252 endif # VBOX_WITH_QTGUI_V5 1233 tstSSLCertDownloads_USES = qt5 1234 tstSSLCertDownloads_QTTOOL = QT5 1253 1235 tstSSLCertDownloads_QT_MODULES = Core Gui 1254 1236 tstSSLCertDownloads_DEFS = VBOX_GUI_IN_TST_SSL_CERT_DOWNLOADS … … 1383 1365 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES)) 1384 1366 $(call MSG_L1,lupdate all languages (nls/*.ts)) 1385 $(QUIET)$( if $(VBOX_WITH_QTGUI_V5),$(TOOL_QT5_LUPDATE),$(TOOL_QT4_LUPDATE)) \1367 $(QUIET)$(TOOL_QT5_LUPDATE) \ 1386 1368 $^ \ 1387 1369 -ts \ … … 1395 1377 $(filter-out %.qrc,$(VirtualBox_SOURCES) $(VirtualBox_VBOX_EXTRA_NLS_SOURCES)) 1396 1378 $(call MSG_L1,lupdate $@) 1397 $(QUIET)$( if $(VBOX_WITH_QTGUI_V5),$(TOOL_QT5_LUPDATE),$(TOOL_QT4_LUPDATE)) \1379 $(QUIET)$(TOOL_QT5_LUPDATE) \ 1398 1380 $^ \ 1399 1381 -ts \ -
trunk/src/VBox/Frontends/VirtualBox/src/UIVMLogViewer.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSnapshotDetailsDlg.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxTakeSnapshotDlg.ui
r62495 r67067 1 1 <ui version="4.0" > 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxUpdateDlg.ui
r62495 r67067 1 1 <ui version="4.0" > 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.ui
r62495 r67067 1 1 <ui version="4.0" > 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsDisplay.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2012-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.ui
r64305 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2010-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsGeneral.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsInput.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.ui
r66761 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2009-2017 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetworkDetailsNAT.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2009-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2011-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.ui
r62495 r67067 1 1 <ui version="4.0" > 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsParallel.ui
r62495 r67067 1 1 <ui version="4.0" > 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.ui
r66370 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSFDetails.ui
r62495 r67067 1 1 <ui version="4.0" > 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.ui
r62495 r67067 1 1 <ui version="4.0" > 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.ui
r66370 r67067 1 1 <ui version="4.0" > 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2009-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.ui
r62495 r67067 1 1 <ui version="4.0"> 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.ui
r64358 r67067 1 1 <ui version="4.0" > 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSBFilterDetails.ui
r62495 r67067 1 1 <ui version="4.0" > 2 2 <comment> 3 VBox frontends: Qt 4GUI ("VirtualBox"):3 VBox frontends: Qt GUI ("VirtualBox"): 4 4 5 5 Copyright (C) 2008-2016 Oracle Corporation -
trunk/src/VBox/HostServices/SharedOpenGL/Makefile.kmk
r66393 r67067 420 420 ifneq ($(KBUILD_TARGET),darwin) 421 421 ifdef VBOX_WITH_VIDEOHWACCEL 422 ifndef VBOX_WITH_QTGUI_V5 423 USES += qt4 424 else # VBOX_WITH_QTGUI_V5 425 USES += qt5 426 endif # VBOX_WITH_QTGUI_V5 422 USES += qt5 427 423 endif 428 424 PROGRAMS += VBoxTestOGL … … 441 437 $(if $(VBOX_WITH_VIDEOHWACCEL), VBOX_WITH_VIDEOHWACCEL,) 442 438 ifdef VBOX_WITH_VIDEOHWACCEL 443 VBoxTestOGL_QT_MODULES += Core Gui OpenGL 444 ifdef VBOX_WITH_QTGUI_V5 445 # Qt5 requires additional modules: 446 VBoxTestOGL_QT_MODULES += Widgets 447 VBoxTestOGL_LIBS.linux += xcb 448 VBoxTestOGL_LIBS.solaris += xcb 449 VBoxTestOGL_LIBS.freebsd += xcb 450 endif # VBOX_WITH_QTGUI_V5 439 VBoxTestOGL_QT_MODULES += Core Gui OpenGL Widgets 440 VBoxTestOGL_LIBS.linux += xcb 441 VBoxTestOGL_LIBS.solaris += xcb 442 VBoxTestOGL_LIBS.freebsd += xcb 451 443 VBoxTestOGL_LDFLAGS.darwin += -framework OpenGL 452 444 VBoxTestOGL_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib -
trunk/src/VBox/Installer/darwin/Makefile.kmk
r64527 r67067 37 37 VBOX_PATH_DIST_OTHER = $(error VBOX_PATH_DIST_OTHER used in a non-combined package deal) 38 38 39 ifndef VBOX_WITH_QTGUI_V5 40 VBOX_QT_VERSION_MAJOR = 4 41 PATH_SDK_QT = $(PATH_SDK_QT4) 42 else # VBOX_WITH_QTGUI_V5 43 VBOX_QT_VERSION_MAJOR = 5 44 PATH_SDK_QT = $(PATH_SDK_QT5) 45 endif # VBOX_WITH_QTGUI_V5 39 VBOX_QT_VERSION_MAJOR = 5 40 PATH_SDK_QT = $(PATH_SDK_QT5) 46 41 47 42 # Unset this to speed up things during makefile hacking. … … 520 515 MacOS/VBoxEFI64.fd 521 516 endif 522 ifndef VBOX_WITH_QTGUI_V5523 VBOX_DI_VBAPP_MISC_FILES += \524 Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/Resources/qt_menu.nib/classes.nib \525 Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/Resources/qt_menu.nib/info.nib \526 Frameworks/QtGui$(VBOX_QT_INFIX).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/Resources/qt_menu.nib/keyedobjects.nib527 else528 517 VBOX_DI_VBAPP_DYLIBS += \ 529 518 plugins/platforms/libqcocoa$(SUFF_DLL) \ 530 519 plugins/platforms/libqminimal$(SUFF_DLL) \ 531 520 plugins/platforms/libqoffscreen$(SUFF_DLL) 532 endif # VBOX_WITH_QTGUI_V5533 521 VBOX_DI_VBAPP_MISC_FILES += \ 534 522 $(foreach qtmod, $(VBOX_QT_MOD_NAMES), Frameworks/$(qtmod).framework/Versions/$(VBOX_QT_VERSION_MAJOR)/Resources/Info.plist) -
trunk/src/VBox/Installer/freebsd/Makefile.kmk
r62487 r67067 145 145 $(if $(VBOX_WITH_DTRACE),VBoxDTrace,) 146 146 147 # Qt 4GUI147 # Qt GUI 148 148 ifdef VBOX_WITH_QTGUI 149 149 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk -
trunk/src/VBox/Installer/linux/Makefile.kmk
r66049 r67067 270 270 $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm) \ 271 271 icons 272 ifndef VBOX_WITH_QTGUI_V5 273 VBOX_LNX_NO_STRIP += \ 274 $(if $(VBOX_WITH_ORACLE_QT),accessible/libqtaccessiblewidgets.so,) 275 else # VBOX_WITH_QTGUI_V5 276 VBOX_LNX_NO_STRIP += \ 272 VBOX_LNX_NO_STRIP += \ 277 273 $(if $(VBOX_WITH_ORACLE_QT),$(VBOX_QT_PLUGINS)) \ 278 274 $(addprefix legacy/,$(VBOX_QT_LEGACY_LIBS)) 279 endif # VBOX_WITH_QTGUI_V5280 275 endif 281 276 … … 522 517 archive/nls \ 523 518 $(if $(VBOX_WITH_UNATTENDED),archive/unattended_templates,) \ 524 $(if $(VBOX_WITH_ORACLE_QT),$(if $(VBOX_WITH_QTGUI_V5),,\ 525 archive/accessible),) \ 526 $(if $(VBOX_WITH_QTGUI_V5),\ 519 $(if $(VBOX_WITH_ORACLE_QT), \ 527 520 archive/plugins/platforms \ 528 521 archive/legacy,) \ -
trunk/src/VBox/Installer/linux/debian/control
r65949 r67067 4 4 Maintainer: Oracle Corporation <[email protected]> 5 5 Standards-Version: 3.2.1 6 Build-Depends: debhelper (>= 5), libz-dev, libssl-dev, libqt4-dev,7 lib qt4-opengl-dev, libsdl1.2-dev, uuid-dev, libxcursor-dev,6 Build-Depends: debhelper (>= 5), libz-dev, libssl-dev, 7 libsdl1.2-dev, uuid-dev, libxcursor-dev, 8 8 libidl-dev, libpam0g-dev, iasl, xsltproc, linux-headers-generic, 9 9 wine, java2-runtime, lsb-release, g++-multilib [amd64], -
trunk/src/VBox/Installer/linux/debian/rules
r66822 r67067 95 95 endif 96 96 97 # Depend on Qt 5.6 or later otherwise we use Qt 5.3.2 from Debian 8.98 97 cfg_flags := $(if $(NOQT),--disable-qt,) \ 99 $(if $(NOQT),,--with-qt5-major=5 --with-qt5-minor=6) \100 98 $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \ 101 99 $(if $(HEADLESS),--build-headless,) \ -
trunk/src/VBox/Installer/solaris/Makefile.kmk
r64422 r67067 345 345 346 346 ifdef VBOX_WITH_QTGUI 347 ifdef VBOX_WITH_QTGUI_V5348 347 ifdef VBOX_WITH_ORACLE_QT 349 348 SOLARIS_STRIP_BINS += \ … … 358 357 $(if $(VBOX_GUI_USE_QGL),libQt5OpenGLVBox.so.5,) 359 358 endif 360 else # VBOX_WITH_QTGUI_V5361 ifdef VBOX_WITH_ORACLE_QT362 SOLARIS_STRIP_BINS += \363 libQtCoreVBox.so.4 \364 libQtGuiVBox.so.4 \365 $(if $(VBOX_GUI_USE_QGL),libQtOpenGLVBox.so.4,) \366 accessible/libqtaccessiblewidgets.so367 endif # VBOX_WITH_ORACLE_QT368 endif # !VBOX_WITH_QTGUI_V5369 359 endif #VBOX_WITH_QTGUI 370 360 … … 435 425 436 426 437 ## @def SOLARIS_QTLIBS438 # List of Qt shared libs that we need to copy from $(VBOX_PATH_QT)/lib/ to /opt/VirtualBox/$(VBOX_SI_ARCH)/439 # so that we can run VBoxQtConfig.440 ifndef VBOX_WITH_QTGUI_V5441 SOLARIS_FILE_LIST_VARS += SOLARIS_QTLIBS442 SOLARIS_QTLIBS.SUBDIRS := no443 SOLARIS_QTLIBS.STRIP := no444 SOLARIS_QTLIBS.MODE := 0644445 SOLARIS_QTLIBS.SRC := $(VBOX_PATH_QT)/lib446 SOLARIS_QTLIBS.DST := $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)447 SOLARIS_QTLIBS =448 ifdef VBOX_WITH_QTGUI449 ifdef VBOX_WITH_ORACLE_QT450 SOLARIS_QTLIBS += \451 libQtXmlVBox.so.4 \452 libQtSqlVBox.so.4 \453 libQt3SupportVBox.so.4454 SOLARIS_USRBIN_LINKS += \455 VBoxQtconfig456 endif457 458 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk459 SOLARIS_COMMON += $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)460 endif461 endif462 463 427 # Documentation (packed as DOCS as they are arch. neutral) 464 428 ifdef VBOX_WITH_DOCS_PACKING … … 574 538 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \ 575 539 \ 576 $(if-expr defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_ORACLE_QT) && !defined(VBOX_WITH_QTGUI_V5),$(VBOX_PATH_QT)/bin/qtconfig,) \577 540 $(if-expr defined(VBOX_WITH_ADDITIONS_PACKING),$(PATH_STAGE_BIN)/additions/VBoxGuestAdditions.iso,) \ 578 541 $(if-expr !defined(VBOX_OSE) && defined(VBOX_WITH_VBOXSDL), $(PATH_DEVTOOLS_TRG)/libsdl/v1.2.13/lib/libSDL-1.2.so.0.11.2,) \ … … 646 609 647 610 # VirtualBox: Arch specific files. 648 $(if-expr defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_ORACLE_QT) && !defined(VBOX_WITH_QTGUI_V5)\649 ,$(INSTALL) -m 0755 \650 $(VBOX_PATH_QT)/bin/qtconfig $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)/VBoxQtconfig,)651 652 611 $(if-expr defined(VBOX_WITH_QTGUI) \ 653 612 ,$(NLTAB)$(LN_SYMLINK) ../rdesktop-vrdp-keymaps/ $(VBOX_PATH_SI_SCRATCH_PKG)/opt/VirtualBox/$(VBOX_SI_ARCH)/rdesktop-vrdp-keymaps,) -
trunk/src/VBox/Installer/win/Makefile.kmk
r66279 r67067 574 574 -E 'VBOX_WITH_PYTHON=$(if $(VBOX_WITH_PYTHON),yes,no)' \ 575 575 -E 'VBOX_WITH_QTGUI=$(if $(VBOX_WITH_QTGUI),yes,no)' \ 576 -E 'VBOX_WITH_QTGUI_V5=$(if $(VBOX_WITH_QTGUI_V5),yes,no)' \577 576 -E 'VBOX_WITH_SECURELABEL=$(if $(VBOX_WITH_SECURELABEL),yes,no)' \ 578 577 -E 'VBOX_WITH_SERIALNUMBER_INSTALL=$(if $(VBOX_WITH_SERIALNUMBER_INSTALL),yes,no)' \ … … 666 665 -E 'VBOX_WITH_PYTHON=$(if $(VBOX_WITH_PYTHON),yes,no)' \ 667 666 -E 'VBOX_WITH_QTGUI=$(if $(VBOX_WITH_QTGUI),yes,no)' \ 668 -E 'VBOX_WITH_QTGUI_V5=$(if $(VBOX_WITH_QTGUI_V5),yes,no)' \669 667 -E 'VBOX_WITH_SECURELABEL=$(if $(VBOX_WITH_SECURELABEL),yes,no)' \ 670 668 -E 'VBOX_WITH_SERIALNUMBER_INSTALL=$(if $(VBOX_WITH_SERIALNUMBER_INSTALL),yes,no)' \ -
trunk/src/VBox/Installer/win/VBoxMergeApp.wxi
r66279 r67067 304 304 </File> 305 305 <?endif ?> 306 <?if $(env.VBOX_WITH_QTGUI_V5) = "no" ?>307 <File Id="file_QtCore$(var.VBOX_QT_INFIX)4.dll" Name="QtCore$(var.VBOX_QT_INFIX)4.dll"308 Source="$(env.PATH_OUT)\bin\QtCore$(var.VBOX_QT_INFIX)4.dll" />309 <File Id="file_QtGui$(var.VBOX_QT_INFIX)4.dll" Name="QtGui$(var.VBOX_QT_INFIX)4.dll"310 Source="$(env.PATH_OUT)\bin\QtGui$(var.VBOX_QT_INFIX)4.dll" />311 <?else ?>312 306 <File Id="file_Qt5Core$(var.VBOX_QT_INFIX).dll" Name="Qt5Core$(var.VBOX_QT_INFIX).dll" 313 307 Source="$(env.PATH_OUT)\bin\Qt5Core$(var.VBOX_QT_INFIX).dll" /> … … 320 314 <File Id="file_Qt5WinExtras$(var.VBOX_QT_INFIX).dll" Name="Qt5WinExtras$(var.VBOX_QT_INFIX).dll" 321 315 Source="$(env.PATH_OUT)\bin\Qt5WinExtras$(var.VBOX_QT_INFIX).dll" /> 322 <?endif ?>323 316 <?endif ?> 324 317 <?if $(env.VBOX_WITH_DEBUGGER_GUI) = "yes" ?> … … 329 322 <?endif ?> 330 323 <?if $(env.VBOX_GUI_USE_QGL) = "yes" ?> 331 <?if $(env.VBOX_WITH_QTGUI_V5) = "no" ?>332 <File Id="file_QtOpenGL$(var.VBOX_QT_INFIX)4.dll" Name="QtOpenGL$(var.VBOX_QT_INFIX)4.dll"333 Source="$(env.PATH_OUT)\bin\QtOpenGL$(var.VBOX_QT_INFIX)4.dll" />334 <?else ?>335 324 <File Id="file_Qt5OpenGL$(var.VBOX_QT_INFIX).dll" Name="Qt5OpenGL$(var.VBOX_QT_INFIX).dll" 336 325 Source="$(env.PATH_OUT)\bin\Qt5OpenGL$(var.VBOX_QT_INFIX).dll" /> 337 <?endif ?>338 326 <?endif?> 339 327 … … 377 365 378 366 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?> 379 <?if $(env.VBOX_WITH_QTGUI_V5) = "no" ?>380 <!-- Qt accessible plugins -->381 <Directory Id="dir_VBoxAppAccessible" Name="accessible">382 <Component Id="cp_QtAccessible" Guid="12040EF9-D4A8-4FB2-A69C-CA2F5C354A45" Win64="$(var.Property_Win64)">383 <File Id="file_qtaccessiblewidgets4.dll" Name="qtaccessiblewidgets4.dll"384 Source="$(env.PATH_OUT)\bin\accessible\qtaccessiblewidgets4.dll" />385 </Component>386 </Directory>387 <?else ?>388 367 <!-- Qt platforms plugins --> 389 368 <Directory Id="dir_VBoxAppPlatforms" Name="platforms"> … … 397 376 </Component> 398 377 </Directory> 399 <?endif?> 400 <?endif ?> 378 <?endif ?> 401 379 402 380 <?if $(env.VBOX_WITH_CROGL) = "yes" ?> -
trunk/src/VBox/Installer/win/VirtualBox.wxs
r66963 r67067 439 439 <ComponentRef Id="cp_MainBinaries" /> 440 440 <?if $(env.VBOX_WITH_QTGUI) = "yes" ?> 441 <?if $(env.VBOX_WITH_QTGUI_V5) = "no" ?> 442 <ComponentRef Id="cp_QtAccessible" /> 443 <?else ?> 444 <ComponentRef Id="cp_QtPlatforms" /> 445 <?endif?> 441 <ComponentRef Id="cp_QtPlatforms" /> 446 442 <?endif ?> 447 443 <?if $(env.VBOX_WITH_PYTHON) = "yes" ?> -
trunk/src/VBox/Main/Makefile.kmk
r66832 r67067 1118 1118 ifeq ($(KBUILD_TARGET).$(VBOX_VCC_CRT_TYPE),win.d) 1119 1119 LIBRARIES += VBoxCOM-GUI 1120 ifndef VBOX_WITH_QTGUI_V5 1121 USES += qt4 1122 else # VBOX_WITH_QTGUI_V5 1123 USES += qt5 1124 endif # VBOX_WITH_QTGUI_V5 1120 USES += qt5 1125 1121 VBoxCOM-GUI_TEMPLATE = VBOXQTGUI$(if-expr defined(VBOX_WITH_HARDENING),,EXE) 1126 1122 VBoxCOM-GUI_EXTENDS = VBoxCOM -
trunk/src/VBox/VMM/VMMR3/STAM.cpp
r66683 r67067 1333 1333 /* 1334 1334 * Check that the name doesn't screw up sorting order when taking 1335 * slashes into account. The QT 4GUI makes some assumptions.1335 * slashes into account. The QT GUI makes some assumptions. 1336 1336 * Problematic chars are: !"#$%&'()*+,-. 1337 1337 */
Note:
See TracChangeset
for help on using the changeset viewer.