VirtualBox

Changeset 2976 in kBuild


Ignore:
Timestamp:
Sep 27, 2016 2:29:14 PM (8 years ago)
Author:
bird
Message:

qt4.kmk: check specific qt4 locations before checking out the -qt4 suffix

File:
1 edited

Legend:

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

    r2975 r2976  
    246246   TOOL_QT4_BIN_SUFF := $(TOOL_QT4_BIN_SUFF)
    247247  endif
    248   # Try looking for moc-qt4 / moc-$(suffix) first.
     248  # Try looking for moc-$(suffix) first, if specified.
    249249  ifneq ($(TOOL_QT4_BIN_SUFF),)
    250250   PATH_TOOL_QT4_BIN := $(patsubst %/moc$(TOOL_QT4_BIN_SUFF),%,$(firstword $(wildcard \
     
    257257         )))
    258258  else
    259    PATH_TOOL_QT4_BIN := $(patsubst %/moc-qt4,%,$(firstword $(wildcard \
     259   # No suffix given, so before we check out -qt4 look at qt4 specific locations to avoid choosers and symlinks.
     260   PATH_TOOL_QT4_BIN := $(patsubst %/moc,%,$(firstword $(wildcard \
     261        $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt4/bin/moc-qt4) \
     262        $(if $(intersects $(KBUILD_HOST_ARCH), $(KBUILD_ARCHES_64)),/usr/lib64/qt4/bin/moc,) \
     263        /usr/lib/qt4/bin/moc \
     264        /usr/local/lib/qt4/bin/moc \
     265        /usr/qt/4/bin/moc \
     266        /usr/local/qt/4/bin/moc \
     267        /usr/share/qt4/bin/moc \
     268        /usr/local/share/qt4/bin/moc \
     269        ))) \
     270   ifeq ($(PATH_TOOL_QT4_BIN),)
     271    PATH_TOOL_QT4_BIN := $(patsubst %/moc-qt4,%,$(firstword $(wildcard \
    260272        $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt4/bin/moc-qt4) \
    261273        /usr/lib/qt4/bin/moc-qt4 \
     
    265277        /usr/bin/moc-qt4 \
    266278        )))
    267    ifneq ($(PATH_TOOL_QT4_BIN),)
    268     TOOL_QT4_BIN_SUFF := -qt4
    269    else
    270     # If no luck, try looking for moc in the qt4 specific locations.
    271     PATH_TOOL_QT4_BIN := $(patsubst %/moc,%,$(firstword $(wildcard \
    272         $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt4/bin/moc) \
    273         /usr/lib/qt4/bin/moc \
    274         /usr/qt/4/bin/moc \
    275         /usr/share/qt4/bin/moc \
    276         )))
     279    ifneq ($(PATH_TOOL_QT4_BIN),)
     280     TOOL_QT4_BIN_SUFF := -qt4
     281    endif
    277282   endif
    278283  endif
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