VirtualBox

Changeset 106331 in vbox for trunk/Makefile.kmk


Ignore:
Timestamp:
Oct 15, 2024 8:15:09 PM (6 weeks ago)
Author:
vboxsync
Message:

Makefile.kmk: bugref:10450: Allow building VBox with side-load Qt6 binaries even without branding postfix and even of different version than ours; This requires a bunch of flags to be overridden, such as VBOX_WITH_QT_PAYLOAD, PATH_SDK_QT6 and PATH_TOOL_QT6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.kmk

    r106260 r106331  
    291291        $(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)
    292292   ifdef VBOX_WITH_QT_PDBS
    293     qt-bin_SOURCES += $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT6)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb))
     293    qt-bin_SOURCES += $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT6)/qt*/$(PATH_SDK_QT6_LIB)/$(qtmod).pdb))
    294294   endif
    295295
    296296  else # x11
    297    VBOX_QT_VERSION       := 6.5.3
    298297   VBOX_QT_VERSION_MAJOR := 6
    299298   ifdef VBOX_WITH_HARDENING
    300299    # The wildcards are necessary to install the libs instead of the symlinks
    301300    qt-bin_SOURCES = \
    302         $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(VBOX_PATH_QT_LIB)/lib$(qtmod).so.*.*.*[0-9])=>lib$(qtmod).so.$(VBOX_QT_VERSION_MAJOR)) \
    303         $(foreach lib,$(VBOX_QT_PLUGINS),$(VBOX_PATH_QT)/$(lib)=>$(lib))
     301        $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT6_LIB)/lib$(qtmod).so.*.*.*[0-9])=>lib$(qtmod).so.$(VBOX_QT_VERSION_MAJOR)) \
     302        $(foreach lib,$(VBOX_QT_PLUGINS),$(PATH_SDK_QT6)/$(lib)=>$(lib))
    304303   else # !VBOX_WITH_HARDENING
    305304    # For non-hardened builds we need to remove the RUNPATH. This stuff is
     
    307306    # (indirectly) change the binaries in tools
    308307    qt-bin_SOURCES = \
    309         $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(qt-bin_0_OUTDIR)/lib$(qtmod).so.$(VBOX_QT_VERSION)=>lib$(qtmod).so.$(VBOX_QT_VERSION_MAJOR)) \
     308        $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(qt-bin_0_OUTDIR)/lib$(qtmod).so.$(VBOX_QT_VERSION_MAJOR)=>lib$(qtmod).so.$(VBOX_QT_VERSION_MAJOR)) \
    310309        $(foreach lib,$(VBOX_QT_PLUGINS),$(qt-bin_0_OUTDIR)/$(lib)=>$(lib))
    311310
    312     $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$$(qt-bin_0_OUTDIR)/lib$(qtmod).so.$(VBOX_QT_VERSION)): \
    313                 $$(qt-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/% | $$(qt-bin_0_OUTDIR)/
     311    $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$$(qt-bin_0_OUTDIR)/lib$(qtmod).so.$(VBOX_QT_VERSION_MAJOR)): \
     312                $$(qt-bin_0_OUTDIR)/% : $(PATH_SDK_QT6_LIB)/% | $$(qt-bin_0_OUTDIR)/
    314313        $(call MSG_INST_FILE,$^,$@)
    315314        $(QUIET)$(CP) $^ $@
     
    318317    ifn1of ($(KBUILD_TARGET), solaris linux)
    319318     $(foreach lib,$(VBOX_QT_PLUGINS),$$(qt-bin_0_OUTDIR)/$(lib)): $$(qt-bin_0_OUTDIR)/% : \
    320                 $(VBOX_PATH_QT)/% | $$(qt-bin_0_OUTDIR)/
     319                $(PATH_SDK_QT6)/% | $$(qt-bin_0_OUTDIR)/
    321320        $(call MSG_INST_FILE,$^,$@)
    322321        $(QUIET)$(MKDIR) -p $(@D)
     
    329328    if1of ($(KBUILD_TARGET), solaris linux)
    330329     $(foreach lib,$(VBOX_QT_PLUGINS),$$(qt-bin_0_OUTDIR)/$(lib)): $$(qt-bin_0_OUTDIR)/% : \
    331                 $(VBOX_PATH_QT)/% | $$(qt-bin_0_OUTDIR)/
     330                $(PATH_SDK_QT6)/% | $$(qt-bin_0_OUTDIR)/
    332331        $(call MSG_INST_FILE,$^,$@)
    333332        $(QUIET)$(MKDIR) -p $(@D)
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