Changeset 106170 in vbox
- Timestamp:
- Sep 27, 2024 4:53:29 PM (4 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r106061 r106170 836 836 VBOX_WITH_COCOA_QT = 1 837 837 endif 838 # Use Qt6 instead of Qt5.839 VBOX_WITH_QT6 := 1840 838 841 839 # VBox Ballooning Control frontend. … … 3954 3952 # but now that is causing issues with Qt 6.x. 3955 3953 # 3956 ifndef VBOX_WITH_QT6 3957 VBOX_VCC_WCHAR_T_VARIANT = -Zc:wchar_t- 3958 else 3959 VBOX_VCC_WCHAR_T_VARIANT = -Zc:wchar_t 3960 endif 3954 VBOX_VCC_WCHAR_T_VARIANT = -Zc:wchar_t 3961 3955 3962 3956 … … 7905 7899 else if1of ($(KBUILD_TARGET), win) 7906 7900 ## @todo kBuild: Use qfilter[-out] here once kmk.exe is updated. 7907 ifndef VBOX_WITH_QT6 7908 VBOX_PATH_QT := $(rversortfiles $(qwildcard ,$(KBUILD_DEVTOOLS_TRG)/qt/v5*)) 7909 VBOX_PATH_QT := $(firstfile $(filter %-$(tolower $(VBOX_VCC_TOOL_STEM)),$(VBOX_PATH_QT)) \ 7910 $(filter-out %-vcc100 %-vcc110 %-vcc120 %-vcc140 %-vcc141 %-vcc142 %-vcc143 %-vcc150, $(VBOX_PATH_QT))) 7911 ifdef VBOX_PATH_QT 7912 PATH_SDK_QT5 := $(VBOX_PATH_QT) 7913 PATH_TOOL_QT5 := $(VBOX_PATH_QT) 7914 endif 7915 else # qt6 7916 VBOX_PATH_QT := $(rversortfiles $(qwildcard ,$(KBUILD_DEVTOOLS_TRG)/qt/v6*)) 7917 VBOX_PATH_QT := $(firstfile $(filter %-$(tolower $(VBOX_VCC_TOOL_STEM)),$(VBOX_PATH_QT)) \ 7918 $(filter-out %-vcc100 %-vcc110 %-vcc120 %-vcc140 %-vcc141 %-vcc142 %-vcc143 %-vcc150, $(VBOX_PATH_QT))) 7919 ifdef VBOX_PATH_QT 7920 PATH_SDK_QT6 := $(VBOX_PATH_QT) 7921 PATH_TOOL_QT6 := $(VBOX_PATH_QT) 7922 endif 7923 endif # qt6 7901 VBOX_PATH_QT := $(rversortfiles $(qwildcard ,$(KBUILD_DEVTOOLS_TRG)/qt/v6*)) 7902 VBOX_PATH_QT := $(firstfile $(filter %-$(tolower $(VBOX_VCC_TOOL_STEM)),$(VBOX_PATH_QT)) \ 7903 $(filter-out %-vcc100 %-vcc110 %-vcc120 %-vcc140 %-vcc141 %-vcc142 %-vcc143 %-vcc150, $(VBOX_PATH_QT))) 7904 ifdef VBOX_PATH_QT 7905 PATH_SDK_QT6 := $(VBOX_PATH_QT) 7906 PATH_TOOL_QT6 := $(VBOX_PATH_QT) 7907 endif 7924 7908 else if1of ($(KBUILD_TARGET), linux solaris) 7925 ifndef VBOX_WITH_QT6 7926 VBOX_PATH_QT ?= $(firstfile $(versortfiles $(qwildcard ,$(KBUILD_DEVTOOLS_TRG)/qt/v5*))) 7927 else 7928 VBOX_PATH_QT ?= $(firstfile $(versortfiles $(qwildcard ,$(KBUILD_DEVTOOLS_TRG)/qt/v6*))) 7929 endif 7909 VBOX_PATH_QT ?= $(firstfile $(versortfiles $(qwildcard ,$(KBUILD_DEVTOOLS_TRG)/qt/v6*))) 7930 7910 ifneq ($(VBOX_PATH_QT),) 7931 7911 VBOX_WITH_ORACLE_QT = 1 … … 7937 7917 7938 7918 ifdef VBOX_WITH_ORACLE_QT 7939 if !defined(VBOX_WITH_QT6) ||"$(KBUILD_TARGET)" != "darwin"7919 if "$(KBUILD_TARGET)" != "darwin" 7940 7920 VBOX_QT_INFIX := VBox$(VBOX_QT_DBG) 7941 7921 endif … … 7952 7932 7953 7933 ifeq ($(KBUILD_TARGET),darwin) 7954 VBOX_QT_MOD := QtCore QtGui QtWidgets QtPrintSupport QtHelp QtNetwork QtSql 7955 ifdef VBOX_WITH_QT6 7956 VBOX_QT_MOD += QtStateMachine 7957 else 7958 VBOX_QT_MOD += QtMacExtras 7959 endif 7934 VBOX_QT_MOD := QtCore QtGui QtWidgets QtPrintSupport QtHelp QtNetwork QtSql QtStateMachine 7960 7935 else if1of ($(KBUILD_TARGET), linux freebsd netbsd openbsd solaris win) 7961 7936 if1of ($(KBUILD_TARGET), linux freebsd netbsd openbsd solaris) 7962 ifndef VBOX_WITH_QT6 7963 VBOX_QT_MOD += Qt5Core Qt5Gui Qt5Widgets Qt5PrintSupport $(if $(VBOX_GUI_USE_QGL),Qt5OpenGL,) 7964 VBOX_QT_MOD += Qt5DBus Qt5Xml Qt5XcbQpa Qt5X11Extras Qt5Help Qt5Network Qt5Sql 7965 VBOX_QT_PLUGINS = \ 7966 plugins/platforms/libqxcb.so \ 7967 plugins/platformthemes/libqgtk2.so \ 7968 plugins/platformthemes/libqgtk3.so \ 7969 plugins/sqldrivers/libqsqlite.so \ 7970 plugins/styles/libqgtk2style.so \ 7971 plugins/xcbglintegrations/libqxcb-glx-integration.so 7972 else # qt6 7973 VBOX_QT_MOD += Qt6Core Qt6Gui Qt6Widgets Qt6PrintSupport Qt6StateMachine 7974 VBOX_QT_MOD += Qt6DBus Qt6Xml Qt6XcbQpa Qt6Help Qt6Network Qt6Sql 7975 VBOX_QT_PLUGINS = \ 7976 plugins/platforms/libqxcbVBox.so \ 7977 plugins/platformthemes/libqgtk2VBox.so \ 7978 plugins/platformthemes/libqgtk3VBox.so \ 7979 plugins/sqldrivers/libqsqliteVBox.so \ 7980 plugins/styles/libqgtk2styleVBox.so 7981 endif # qt6 7937 VBOX_QT_MOD += Qt6Core Qt6Gui Qt6Widgets Qt6PrintSupport Qt6StateMachine 7938 VBOX_QT_MOD += Qt6DBus Qt6Xml Qt6XcbQpa Qt6Help Qt6Network Qt6Sql 7939 VBOX_QT_PLUGINS = \ 7940 plugins/platforms/libqxcbVBox.so \ 7941 plugins/platformthemes/libqgtk2VBox.so \ 7942 plugins/platformthemes/libqgtk3VBox.so \ 7943 plugins/sqldrivers/libqsqliteVBox.so \ 7944 plugins/styles/libqgtk2styleVBox.so 7982 7945 else ifeq ($(KBUILD_TARGET),win) 7983 ifndef VBOX_WITH_QT6 7984 VBOX_QT_MOD += Qt5Core Qt5Gui Qt5Widgets Qt5PrintSupport $(if $(VBOX_GUI_USE_QGL),Qt5OpenGL,) 7985 VBOX_QT_MOD += Qt5WinExtras Qt5Help Qt5Network Qt5Sql 7986 else # qt6 7987 VBOX_QT_MOD += Qt6Core Qt6Gui Qt6Widgets Qt6PrintSupport Qt6StateMachine Qt6Help Qt6Network Qt6Sql 7988 endif # qt6 7946 VBOX_QT_MOD += Qt6Core Qt6Gui Qt6Widgets Qt6PrintSupport Qt6StateMachine Qt6Help Qt6Network Qt6Sql 7989 7947 endif # win 7990 7948 endif # linux freebsd netbsd openbsd solaris win … … 8014 7972 # 8015 7973 TEMPLATE_VBoxQtGuiExe = VBox Qt GUI Executable 8016 ifndef VBOX_WITH_QT6 8017 TEMPLATE_VBoxQtGuiExe_USES := qt5 8018 TEMPLATE_VBoxQtGuiExe_QTTOOL := QT5 8019 TEMPLATE_VBoxQtGuiExe_MOCTOOL := QT5 8020 TEMPLATE_VBoxQtGuiExe_UICTOOL := QT5 8021 TEMPLATE_VBoxQtGuiExe_RCCTOOL := QT5 8022 TEMPLATE_VBoxQtGuiExe_LRCTOOL := QT5 8023 TEMPLATE_VBoxQtGuiExe_SDKS := QT5 8024 else 8025 TEMPLATE_VBoxQtGuiExe_USES := qt6 8026 TEMPLATE_VBoxQtGuiExe_QTTOOL := QT6 8027 TEMPLATE_VBoxQtGuiExe_MOCTOOL := QT6 8028 TEMPLATE_VBoxQtGuiExe_UICTOOL := QT6 8029 TEMPLATE_VBoxQtGuiExe_RCCTOOL := QT6 8030 TEMPLATE_VBoxQtGuiExe_LRCTOOL := QT6 8031 TEMPLATE_VBoxQtGuiExe_SDKS := QT6 8032 endif 7974 TEMPLATE_VBoxQtGuiExe_USES := qt6 7975 TEMPLATE_VBoxQtGuiExe_QTTOOL := QT6 7976 TEMPLATE_VBoxQtGuiExe_MOCTOOL := QT6 7977 TEMPLATE_VBoxQtGuiExe_UICTOOL := QT6 7978 TEMPLATE_VBoxQtGuiExe_RCCTOOL := QT6 7979 TEMPLATE_VBoxQtGuiExe_LRCTOOL := QT6 7980 TEMPLATE_VBoxQtGuiExe_SDKS := QT6 8033 7981 TEMPLATE_VBoxQtGuiExe_QT_INFIX = $(VBOX_QT_INFIX) 8034 7982 TEMPLATE_VBoxQtGuiExe_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS) … … 8156 8104 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += $(VBOX_GCC_Wno-deprecated-declarations) 8157 8105 endif 8158 ifdef VBOX_WITH_QT6 8159 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += -std=gnu++17 8160 endif 8106 TEMPLATE_VBoxQtGuiExe_CXXFLAGS += -std=gnu++17 8161 8107 TEMPLATE_VBoxQtGuiExe_CXXFLAGS.x86 = -m32 8162 8108 TEMPLATE_VBoxQtGuiExe_CXXFLAGS.amd64 = -m64 … … 8177 8123 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS += $(VBOX_GCC_WERR) 8178 8124 endif 8179 ifdef VBOX_WITH_QT6 8180 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS += -std=gnu++17 8181 endif 8125 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS += -std=gnu++17 8182 8126 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS.x86 = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.x86) 8183 8127 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS.amd64 = $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.amd64) … … 8205 8149 TEMPLATE_VBoxQtGuiExe_PCHFLAGS.darwin += $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS.darwin) 8206 8150 TEMPLATE_VBoxQtGuiExe_OBJCFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCFLAGS) 8207 ifdef VBOX_WITH_QT6 8208 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS) 8209 else 8210 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS) $(VBOX_GCC_std) 8211 endif 8151 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS) 8212 8152 TEMPLATE_VBoxQtGuiExe_LDFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -bind_at_load -Wl,-headerpad_max_install_names 8213 8153 TEMPLATE_VBoxQtGuiExe_LIBS += … … 8282 8222 8283 8223 ifeq ($(KBUILD_TARGET),darwin) 8284 ifndef VBOX_WITH_QT6 8285 TEMPLATE_VBoxQtGuiExe_POST_CMDS = $(QUIET)install_name_tool $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \ 8286 $(foreach prefix, @executable_path/../Frameworks/ $(VBOX_PATH_QT)/Frameworks/ $(PATH_SDK_QT5)/, \ 8287 -change "$(prefix)$(qtmod).framework/Versions/5/$(qtmod)" \ 8288 "$(if $(VBOX_WITH_HARDENING),/Applications/VirtualBox.app/Contents/Frameworks,@rpath)/$(qtmod).framework/Versions/5/$(qtmod)" ) ) "$(out)" 8289 else 8290 TEMPLATE_VBoxQtGuiExe_POST_CMDS = $(QUIET)install_name_tool $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \ 8291 $(foreach prefix, @executable_path/../Frameworks/ $(VBOX_PATH_QT)/Frameworks/ $(PATH_SDK_QT6)/, \ 8292 -change "$(prefix)$(qtmod).framework/Versions/A/$(qtmod)" \ 8293 "$(if $(VBOX_WITH_HARDENING),/Applications/VirtualBox.app/Contents/Frameworks,@rpath)/$(qtmod).framework/Versions/A/$(qtmod)" ) ) "$(out)" 8294 endif 8224 TEMPLATE_VBoxQtGuiExe_POST_CMDS = $(QUIET)install_name_tool $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \ 8225 $(foreach prefix, @executable_path/../Frameworks/ $(VBOX_PATH_QT)/Frameworks/ $(PATH_SDK_QT6)/, \ 8226 -change "$(prefix)$(qtmod).framework/Versions/A/$(qtmod)" \ 8227 "$(if $(VBOX_WITH_HARDENING),/Applications/VirtualBox.app/Contents/Frameworks,@rpath)/$(qtmod).framework/Versions/A/$(qtmod)" ) ) "$(out)" 8295 8228 endif 8296 8229 … … 8324 8257 TEMPLATE_VBoxNLS = VBox NLS template for installing translation files 8325 8258 TEMPLATE_VBoxNLS_EXTENDS = VBoxR3Static 8326 ifndef VBOX_WITH_QT6 8327 TEMPLATE_VBoxNLS_USES := qt5 8328 TEMPLATE_VBoxNLS_QTTOOL := QT5 8329 else 8330 TEMPLATE_VBoxNLS_USES := qt6 8331 TEMPLATE_VBoxNLS_QTTOOL := QT6 8332 endif 8259 TEMPLATE_VBoxNLS_USES := qt6 8260 TEMPLATE_VBoxNLS_QTTOOL := QT6 8333 8261 TEMPLATE_VBoxNLS_QT_INFIX = $(VBOX_QT_INFIX) 8334 8262 TEMPLATE_VBoxNLS_INSTTYPE = none -
trunk/Makefile.kmk
r106061 r106170 229 229 # 230 230 if defined(VBOX_WITH_QTGUI) && !defined(VBOX_ONLY_SDK) && "$(KBUILD_TARGET)" == "darwin" 231 ifdef VBOX_WITH_QT6 232 include $(KBUILD_PATH)/units/qt6.kmk 233 VBOX_QT_FWRK_VER := A 234 VBOX_QT_PATH := $(PATH_SDK_QT6) 235 VBOX_QT_PATH_LIB := $(PATH_SDK_QT6_LIB) 236 else 237 include $(KBUILD_PATH)/units/qt5.kmk 238 VBOX_QT_FWRK_VER := 5 239 VBOX_QT_PATH := $(PATH_SDK_QT5) 240 VBOX_QT_PATH_LIB := $(PATH_SDK_QT5_LIB) 241 endif 231 include $(KBUILD_PATH)/units/qt6.kmk 232 VBOX_QT_FWRK_VER := A 233 VBOX_QT_PATH := $(PATH_SDK_QT6) 234 VBOX_QT_PATH_LIB := $(PATH_SDK_QT6_LIB) 242 235 243 236 INSTALLS += qt-bin … … 259 252 $(VBOX_QT_PATH)/plugins/styles/libqmacstyle$(SUFF_DLL)=>plugins/styles/libqmacstyle$(SUFF_DLL) 260 253 ifdef VBOX_WITH_QT_DSYMS 261 ifndef VBOX_WITH_QT6 262 qt-bin_SOURCES += $(foreach qtplat, libqcocoa libqminimal libqoffscreen, \ 263 $(VBOX_QT_PATH)/plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist \ 264 $(VBOX_QT_PATH)/plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat)$(SUFF_DLL)=>plugins/platforms/$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat)$(SUFF_DLL)) 265 qt-bin_SOURCES += $(foreach qtsqldrv, libqsqlite, \ 266 $(VBOX_QT_PATH)/plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist \ 267 $(VBOX_QT_PATH)/plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv)$(SUFF_DLL)=>plugins/sqldrivers/$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv)$(SUFF_DLL)) 268 qt-bin_SOURCES += $(foreach qtstyl, libqmacstyle, \ 269 $(VBOX_QT_PATH)/plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist \ 270 $(VBOX_QT_PATH)/plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl)$(SUFF_DLL)=>plugins/styles/$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl)$(SUFF_DLL)) 271 else # qt6 272 qt-bin_SOURCES += $(foreach qtplat, qcocoa qminimal qoffscreen, \ 273 $(VBOX_QT_PATH)/plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist \ 274 $(VBOX_QT_PATH)/plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat)=>plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat)) 275 qt-bin_SOURCES += $(foreach qtsqldrv, qsqlite, \ 276 $(VBOX_QT_PATH)/plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist \ 277 $(VBOX_QT_PATH)/plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv)=>plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv)) 278 qt-bin_SOURCES += $(foreach qtstyl, qmacstyle, \ 279 $(VBOX_QT_PATH)/plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist \ 280 $(VBOX_QT_PATH)/plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl)=>plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl)) 281 endif # qt6 254 qt-bin_SOURCES += $(foreach qtplat, qcocoa qminimal qoffscreen, \ 255 $(VBOX_QT_PATH)/plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist \ 256 $(VBOX_QT_PATH)/plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat)=>plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat)) 257 qt-bin_SOURCES += $(foreach qtsqldrv, qsqlite, \ 258 $(VBOX_QT_PATH)/plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist \ 259 $(VBOX_QT_PATH)/plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv)=>plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv)) 260 qt-bin_SOURCES += $(foreach qtstyl, qmacstyle, \ 261 $(VBOX_QT_PATH)/plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist \ 262 $(VBOX_QT_PATH)/plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl)=>plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl)) 282 263 endif 283 264 qt-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \ … … 296 277 else if defined(VBOX_WITH_QTGUI) && !defined(VBOX_ONLY_SDK) && (defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD)) 297 278 # win x11 298 ifndef VBOX_WITH_QT6 299 include $(KBUILD_PATH)/units/qt5.kmk 300 else 301 include $(KBUILD_PATH)/units/qt6.kmk 302 endif 279 include $(KBUILD_PATH)/units/qt6.kmk 303 280 304 281 INSTALLS += qt-bin … … 307 284 308 285 ifeq ($(KBUILD_TARGET),win) 309 ifndef VBOX_WITH_QT6 310 qt-bin_SOURCES = \ 311 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT5)/bin/$(qtmod)$(SUFF_DLL))) 312 qt-bin_SOURCES += \ 313 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT5)/plugins/platforms/qwindows$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qwindows$(VBOX_QT_DBG)$(SUFF_DLL) \ 314 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT5)/plugins/platforms/qminimal$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qminimal$(VBOX_QT_DBG)$(SUFF_DLL) \ 315 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT5)/plugins/platforms/qoffscreen$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qoffscreen$(VBOX_QT_DBG)$(SUFF_DLL) \ 316 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT5)/plugins/sqldrivers/qsqlite$(VBOX_QT_DBG)$(SUFF_DLL))=>sqldrivers/qsqlite$(VBOX_QT_DBG)$(SUFF_DLL) \ 317 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT5)/plugins/styles/qwindowsvistastyle$(VBOX_QT_DBG)$(SUFF_DLL))=>styles/qwindowsvistastyle$(VBOX_QT_DBG)$(SUFF_DLL) 318 ifdef VBOX_WITH_QT_PDBS 319 qt-bin_SOURCES += $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT5)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb)) 320 endif 321 else # qt6 322 qt-bin_SOURCES = \ 323 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/bin/$(qtmod)$(SUFF_DLL))) 324 qt-bin_SOURCES += \ 325 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/platforms/qwindows$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qwindows$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \ 326 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/platforms/qminimal$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qminimal$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \ 327 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/platforms/qoffscreen$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qoffscreen$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \ 328 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/sqldrivers/qsqlite$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>sqldrivers/qsqlite$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \ 329 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/styles/qwindowsvistastyle$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>styles/qwindowsvistastyle$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) 330 ifdef VBOX_WITH_QT_PDBS 331 qt-bin_SOURCES += $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT6)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb)) 332 endif 333 endif # qt6 286 qt-bin_SOURCES = \ 287 $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/bin/$(qtmod)$(SUFF_DLL))) 288 qt-bin_SOURCES += \ 289 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/platforms/qwindows$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qwindows$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \ 290 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/platforms/qminimal$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qminimal$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \ 291 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/platforms/qoffscreen$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qoffscreen$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \ 292 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/sqldrivers/qsqlite$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>sqldrivers/qsqlite$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \ 293 $(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/styles/qwindowsvistastyle$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>styles/qwindowsvistastyle$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) 294 ifdef VBOX_WITH_QT_PDBS 295 qt-bin_SOURCES += $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT6)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb)) 296 endif 334 297 335 298 else # x11 336 ifndef VBOX_WITH_QT6 337 VBOX_QT_VERSION := 5.15.2 338 VBOX_QT_VERSION_MAJOR := 5 339 else 340 VBOX_QT_VERSION := 6.5.3 341 VBOX_QT_VERSION_MAJOR := 6 342 endif 299 VBOX_QT_VERSION := 6.5.3 300 VBOX_QT_VERSION_MAJOR := 6 343 301 ifdef VBOX_WITH_HARDENING 344 302 # The wildcards are necessary to install the libs instead of the symlinks -
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r106061 r106170 107 107 VirtualBox_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) 108 108 VirtualBox_DEFS = 109 ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces). 110 VirtualBox_DEFS += VBOX_IS_QT6_OR_LATER 111 endif 109 VirtualBox_DEFS += VBOX_IS_QT6_OR_LATER 112 110 VirtualBox_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT 113 111 VirtualBox_DEFS.linux = VBOX_WS_NIX QT_NO_DEPRECATED_WARNINGS … … 124 122 VirtualBox_DEFS.darwin += VBOX_WITH_VMNET 125 123 endif 126 ifndef VBOX_WITH_QT6 # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now. 127 VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS 128 endif 124 # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now. 125 # VirtualBox_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS 129 126 VirtualBox_DEFS.win += UNICODE QT_DLL 130 127 # Sort alphabetically! … … 178 175 VirtualBoxVM_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) 179 176 VirtualBoxVM_DEFS = VBOX_RUNTIME_UI 180 ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces). 181 VirtualBoxVM_DEFS += VBOX_IS_QT6_OR_LATER 182 endif 177 VirtualBoxVM_DEFS += VBOX_IS_QT6_OR_LATER 183 178 VirtualBoxVM_DEFS.debug = VBOX_CHECK_STATE # QT_FATAL_ASSERT 184 179 VirtualBoxVM_DEFS.linux = VBOX_WS_NIX QT_NO_DEPRECATED_WARNINGS … … 195 190 VirtualBoxVM_DEFS.darwin += VBOX_WITH_VMNET 196 191 endif 197 ifndef VBOX_WITH_QT6 # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now. 198 VirtualBoxVM_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS 199 endif 192 # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now. 193 # VirtualBoxVM_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS 200 194 VirtualBoxVM_DEFS.win += UNICODE QT_DLL 201 195 # Sort alphabetically! … … 243 237 UICommon_NAME = UICommon 244 238 UICommon_DEFS = VBOX_GUI_LIBRARY 245 ifdef VBOX_WITH_QT6 # moc is too stupid to parse #if QT_VERSION > xxx, '#ifdef VBOX_IS_QT6_OR_LATER' works though (no spaces). 246 UICommon_DEFS += VBOX_IS_QT6_OR_LATER 247 endif 239 UICommon_DEFS += VBOX_IS_QT6_OR_LATER 248 240 UICommon_DEFS.darwin = VBOX_WS_MAC 249 241 UICommon_DEFS.freebsd = VBOX_WS_NIX … … 255 247 UICommon_DEFS.darwin += VBOX_WITH_VMNET 256 248 endif 257 ifndef VBOX_WITH_QT6 # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now. 258 UICommon_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS 259 endif 249 # qt6: The UICocoaSpecialControls needs restructuring because QMacCocoaViewContainer is gone. Too lazy for now. 250 # UICommon_DEFS.darwin += VBOX_DARWIN_USE_NATIVE_CONTROLS 260 251 #UICommon_DEFS.win += UNICODE QT_DLL 261 252 # Sort alphabetically!
Note:
See TracChangeset
for help on using the changeset viewer.