VirtualBox

Changeset 2807 in kBuild for trunk


Ignore:
Timestamp:
Jan 28, 2016 1:21:41 PM (9 years ago)
Author:
bird
Message:

units/qt5.kmk: Looks like 'Qt5' is used as module prefix instead of 'Qt' for both windows and most (all?) linux distros. Darwin does not infix the version in the module or frameworke name, probably because frameworks are designed with versioning built in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/units/qt5.kmk

    r2806 r2807  
    128128     # Now for the libraries (mostly for helping out finding the KBUILD_TARGET libs).
    129129     ifeq ($(PATH_SDK_QT5_LIB.x86),)
    130       PATH_SDK_QT5_LIB.x86   := $(patsubst %/libQtCore$(SUFF_DLL),%,$(firstword $(wildcard \
    131         $(PATH_SDK_QT5)/lib32/libQtCore$(SUFF_DLL) \
    132         $(PATH_SDK_QT5)/lib32/qt5/libQtCore$(SUFF_DLL) \
    133         /usr/lib32/libQtCore$(SUFF_DLL) \
    134         /usr/lib32/qt5/libQtCore$(SUFF_DLL) \
    135         /usr/lib/i386-linux-gnu/libQtCore$(SUFF_DLL) \
    136         /usr/local/lib32/libQtCore$(SUFF_DLL) \
    137         /usr/local/lib32/qt5/libQtCore$(SUFF_DLL) \
    138         /usr/local/lib/i386-linux-gnu/libQtCore$(SUFF_DLL) \
    139         $(PATH_SDK_QT5)/lib/libQtCore$(SUFF_DLL) \
    140         $(PATH_SDK_QT5)/lib/qt5/libQtCore$(SUFF_DLL) \
    141         $(PATH_SDK_QT5)/lib/i386-linux-gnu/libQtCore$(SUFF_DLL) \
     130      PATH_SDK_QT5_LIB.x86   := $(patsubst %/libQt5Core$(SUFF_DLL),%,$(firstword $(wildcard \
     131        $(PATH_SDK_QT5)/lib32/libQt5Core$(SUFF_DLL) \
     132        $(PATH_SDK_QT5)/lib32/qt5/libQt5Core$(SUFF_DLL) \
     133        /usr/lib32/libQt5Core$(SUFF_DLL) \
     134        /usr/lib32/qt5/libQt5Core$(SUFF_DLL) \
     135        /usr/lib/i386-linux-gnu/libQt5Core$(SUFF_DLL) \
     136        /usr/local/lib32/libQt5Core$(SUFF_DLL) \
     137        /usr/local/lib32/qt5/libQt5Core$(SUFF_DLL) \
     138        /usr/local/lib/i386-linux-gnu/libQt5Core$(SUFF_DLL) \
     139        $(PATH_SDK_QT5)/lib/libQt5Core$(SUFF_DLL) \
     140        $(PATH_SDK_QT5)/lib/qt5/libQt5Core$(SUFF_DLL) \
     141        $(PATH_SDK_QT5)/lib/i386-linux-gnu/libQt5Core$(SUFF_DLL) \
    142142        )))
    143143      ifneq ($(PATH_SDK_QT5_LIB.x86),)
     
    146146     endif
    147147     ifeq ($(PATH_SDK_QT5_LIB.amd64),)
    148       PATH_SDK_QT5_LIB.amd64 := $(patsubst %/libQtCore$(SUFF_DLL),%,$(firstword $(wildcard \
    149         $(PATH_SDK_QT5)/lib64/libQtCore$(SUFF_DLL) \
    150         $(PATH_SDK_QT5)/lib64/qt5/libQtCore$(SUFF_DLL) \
    151         $(PATH_SDK_QT5)/lib/amd64/libQtCore$(SUFF_DLL) \
    152         /usr/lib64/libQtCore$(SUFF_DLL) \
    153         /usr/lib64/qt5/libQtCore$(SUFF_DLL) \
    154         /usr/lib/amd64/libQtCore$(SUFF_DLL) \
    155         /usr/lib/x86_64-linux-gnu/libQtCore$(SUFF_DLL) \
    156         /usr/local/lib64/libQtCore$(SUFF_DLL) \
    157         /usr/local/lib64/qt5/libQtCore$(SUFF_DLL) \
    158         /usr/local/lib/amd64/libQtCore$(SUFF_DLL) \
    159         /usr/local/lib/x86_64-linux-gnu/libQtCore$(SUFF_DLL) \
    160         $(PATH_SDK_QT5)/lib/libQtCore$(SUFF_DLL) \
    161         $(PATH_SDK_QT5)/lib/qt5/libQtCore$(SUFF_DLL) \
    162         $(PATH_SDK_QT5)/lib/x86_64-linux-gnu/libQtCore$(SUFF_DLL) \
     148      PATH_SDK_QT5_LIB.amd64 := $(patsubst %/libQt5Core$(SUFF_DLL),%,$(firstword $(wildcard \
     149        $(PATH_SDK_QT5)/lib64/libQt5Core$(SUFF_DLL) \
     150        $(PATH_SDK_QT5)/lib64/qt5/libQt5Core$(SUFF_DLL) \
     151        $(PATH_SDK_QT5)/lib/amd64/libQt5Core$(SUFF_DLL) \
     152        /usr/lib64/libQt5Core$(SUFF_DLL) \
     153        /usr/lib64/qt5/libQt5Core$(SUFF_DLL) \
     154        /usr/lib/amd64/libQt5Core$(SUFF_DLL) \
     155        /usr/lib/x86_64-linux-gnu/libQt5Core$(SUFF_DLL) \
     156        /usr/local/lib64/libQt5Core$(SUFF_DLL) \
     157        /usr/local/lib64/qt5/libQt5Core$(SUFF_DLL) \
     158        /usr/local/lib/amd64/libQt5Core$(SUFF_DLL) \
     159        /usr/local/lib/x86_64-linux-gnu/libQt5Core$(SUFF_DLL) \
     160        $(PATH_SDK_QT5)/lib/libQt5Core$(SUFF_DLL) \
     161        $(PATH_SDK_QT5)/lib/qt5/libQt5Core$(SUFF_DLL) \
     162        $(PATH_SDK_QT5)/lib/x86_64-linux-gnu/libQt5Core$(SUFF_DLL) \
    163163        )))
    164164      ifneq ($(PATH_SDK_QT5_LIB.amd64),)
     
    171171      PATH_SDK_QT5_LIB := $(PATH_SDK_QT5_LIB.$(KBUILD_TARGET_ARCH))
    172172      ifeq ($(PATH_SDK_QT5_LIB),)
    173        PATH_SDK_QT5_LIB := $(patsubst %/libQtCore$(SUFF_DLL),%,$(firstword $(wildcard \
    174         $(PATH_SDK_QT5)/lib/libQtCore$(SUFF_DLL) \
    175         $(PATH_SDK_QT5)/lib/qt5/libQtCore$(SUFF_DLL) \
    176         /usr/lib/libQtCore$(SUFF_DLL) \
    177         /usr/lib/qt5/libQtCore$(SUFF_DLL) \
    178         /usr/local/lib/libQtCore$(SUFF_DLL) \
    179         /usr/local/lib/qt5/libQtCore$(SUFF_DLL) \
     173       PATH_SDK_QT5_LIB := $(patsubst %/libQt5Core$(SUFF_DLL),%,$(firstword $(wildcard \
     174        $(PATH_SDK_QT5)/lib/libQt5Core$(SUFF_DLL) \
     175        $(PATH_SDK_QT5)/lib/qt5/libQt5Core$(SUFF_DLL) \
     176        /usr/lib/libQt5Core$(SUFF_DLL) \
     177        /usr/lib/qt5/libQt5Core$(SUFF_DLL) \
     178        /usr/local/lib/libQt5Core$(SUFF_DLL) \
     179        /usr/local/lib/qt5/libQt5Core$(SUFF_DLL) \
    180180        )))
    181181      endif
     
    984984else
    985985 ifeq ($(bld_trg),win)
    986   $(eval $(target)_LIBS    += $(foreach module,$(qt_modules), $(PATH_SDK_QT5_LIB)/$(qt_prefix)Qt$(module)$(qt_infix)4$(SUFF_LIB)) )
     986  $(eval $(target)_LIBS    += $(foreach module,$(qt_modules), $(PATH_SDK_QT5_LIB)/$(qt_prefix)Qt5$(module)$(qt_infix)$(SUFF_LIB)) )
    987987  ifeq ($(tool_do),LINK_PROGRAM)
    988988   $(eval $(target)_LIBS   += $(PATH_SDK_QT5_LIB)/$(qt_prefix)qtmain$(qt_infix)$(SUFF_LIB) )
    989989  endif
    990990 else
    991   $(eval $(target)_LIBS    += $(foreach module,$(qt_modules), $(PATH_SDK_QT5_LIB)/lib$(qt_prefix)Qt$(module)$(qt_infix)$(SUFF_DLL)) )
     991  $(eval $(target)_LIBS    += $(foreach module,$(qt_modules), $(PATH_SDK_QT5_LIB)/lib$(qt_prefix)Qt5$(module)$(qt_infix)$(SUFF_DLL)) )
    992992 endif
    993993 $(eval $(target)_INCS     += $(addprefix $(PATH_SDK_QT5_INC)/Qt,$(qt_modules)) $(PATH_SDK_QT5_INC) )
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