VirtualBox

Changeset 1774 in kBuild


Ignore:
Timestamp:
Sep 8, 2008 3:43:37 PM (16 years ago)
Author:
bird
Message:

qt4: More detection fixes. Don't suffix RCC.

File:
1 edited

Legend:

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

    r1773 r1774  
    7979        )))
    8080    ifeq ($(PATH_SDK_QT4),)
    81      PATH_SDK_QT4 := $(patsubst %/bin/qt3to4,%,$(firstword $(wildcard \
     81     PATH_SDK_QT4 := $(patsubst %/bin/rcc,%,$(firstword $(wildcard \
    8282        /usr/bin/rcc \
    8383        /usr/local/bin/rcc \
     
    209209   TOOL_QT4_BIN_SUFF := $(TOOL_QT4_BIN_SUFF)
    210210  endif
    211   # Try looking for qt3to4 first, then try moc-qt4/moc.
    212   PATH_TOOL_QT4_BIN := $(patsubst %/qt3to4,%,$(firstword $(wildcard \
    213         /usr/lib/qt4/bin/qt3to4 \
    214         /usr/qt/4/bin/qt3to4 \
    215         /usr/share/qt4/bin/qt3to4 \
    216         /usr/local/bin/qt3to4 \
    217         /usr/bin/qt3to4\
    218         )))
     211  # Try looking for moc-qt4 / moc-$(suffix) first.
     212  ifneq ($(TOOL_QT4_BIN_SUFF),)
     213   PATH_TOOL_QT4_BIN := $(patsubst %/moc$(TOOL_QT4_BIN_SUFF),%,$(firstword $(wildcard \
     214         /usr/lib/qt4/bin/moc$(TOOL_QT4_BIN_SUFF) \
     215         /usr/qt/4/bin/moc$(TOOL_QT4_BIN_SUFF) \
     216         /usr/share/qt4/bin/moc$(TOOL_QT4_BIN_SUFF) \
     217         /usr/local/bin/moc$(TOOL_QT4_BIN_SUFF) \
     218         /usr/bin/moc$(TOOL_QT4_BIN_SUFF) \
     219         )))
     220  else
     221   PATH_TOOL_QT4_BIN := $(patsubst %/moc-qt4,%,$(firstword $(wildcard \
     222        /usr/lib/qt4/bin/moc-qt4 \
     223        /usr/qt/4/bin/moc-qt4 \
     224        /usr/share/qt4/bin/moc-qt4 \
     225        /usr/local/bin/moc-qt4 \
     226        /usr/bin/moc-qt4 \
     227        )))
     228   ifneq ($(PATH_TOOL_QT4_BIN),)
     229    TOOL_QT4_BIN_SUFF := -qt4
     230   else
     231    # If no luck, try looking for moc in the qt4 specific locations.
     232    PATH_TOOL_QT4_BIN := $(patsubst %/moc,%,$(firstword $(wildcard \
     233        /usr/lib/qt4/bin/moc \
     234        /usr/qt/4/bin/moc \
     235        /usr/share/qt4/bin/moc \
     236        )))
     237   endif
     238  endif
     239  # If still no go, try looking for qt3to4 and rcc.
    219240  ifeq ($(PATH_TOOL_QT4_BIN),)
    220    ifeq ($(TOOL_QT4_BIN_SUFF),)
    221     PATH_TOOL_QT4_BIN := $(patsubst %/moc-qt4,%,$(firstword $(wildcard \
    222         /usr/lib/qt4/bin/moc-qt4 \
    223         /usr/qt/4/bin/moc-qt4 \
    224         /usr/share/qt4/bin/moc-qt4 \
    225         /usr/local/bin/moc-qt4 \
    226         /usr/bin/moc-qt4 \
    227         )))
    228    endif
    229    ifneq ($(PATH_TOOL_QT4_BIN),)
    230     export TOOL_QT4_BIN_SUFF := -qt4
    231    else
    232     PATH_TOOL_QT4_BIN := $(patsubst %/moc$(TOOL_QT4_BIN_SUFF),%,$(firstword $(wildcard \
    233          /usr/lib/qt4/bin/moc$(TOOL_QT4_BIN_SUFF) \
    234          /usr/qt/4/bin/moc$(TOOL_QT4_BIN_SUFF) \
    235          /usr/share/qt4/bin/moc$(TOOL_QT4_BIN_SUFF) \
    236          /usr/local/bin/moc$(TOOL_QT4_BIN_SUFF) \
    237          /usr/bin/moc$(TOOL_QT4_BIN_SUFF) \
    238          )))
    239    endif
     241   PATH_TOOL_QT4_BIN := $(patsubst %/qt3to4,%,$(firstword $(wildcard \
     242        /usr/lib/qt4/bin/qt3to4 \
     243        /usr/qt/4/bin/qt3to4 \
     244        /usr/share/qt4/bin/qt3to4 \
     245        /usr/local/bin/qt3to4 \
     246        /usr/bin/qt3to4 \
     247        )))
     248  endif
     249  ifeq ($(PATH_TOOL_QT4_BIN),)
     250   PATH_TOOL_QT4_BIN := $(patsubst %/rcc$(TOOL_QT4_BIN_SUFF),%,$(firstword $(wildcard \
     251        /usr/lib/qt4/bin/rcc$(TOOL_QT4_BIN_SUFF) \
     252        /usr/qt/4/bin/rcc$(TOOL_QT4_BIN_SUFF) \
     253        /usr/share/qt4/bin/rcc$(TOOL_QT4_BIN_SUFF) \
     254        /usr/local/bin/rcc$(TOOL_QT4_BIN_SUFF) \
     255        /usr/bin/rcc$(TOOL_QT4_BIN_SUFF) \
     256        )))
     257  endif
     258  if "$(PATH_TOOL_QT4_BIN)" == "" && "$(TOOL_QT4_BIN_SUFF)" != ""
     259   PATH_TOOL_QT4_BIN := $(patsubst %/rcc,%,$(firstword $(wildcard \
     260        /usr/lib/qt4/bin/rcc \
     261        /usr/qt/4/bin/rcc \
     262        /usr/share/qt4/bin/rcc \
     263        /usr/local/bin/rcc \
     264        /usr/bin/rcc \
     265        )))
     266  endif
     267  ifneq ($(PATH_TOOL_QT4_BIN),)
     268   export PATH_TOOL_QT4_BIN
    240269  endif
    241270 endif
     
    248277 TOOL_QT4_MOC       ?= $(PATH_TOOL_QT4_BIN)/moc$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
    249278 TOOL_QT4_UIC       ?= $(PATH_TOOL_QT4_BIN)/uic$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
    250  TOOL_QT4_RCC       ?= $(PATH_TOOL_QT4_BIN)/rcc$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
     279 ifndef TOOL_QT4_RCC
     280  TOOL_QT4_RCC      := $(PATH_TOOL_QT4_BIN)/rcc$(HOST_SUFF_EXE)
     281  ifeq ($(wildcard $(TOOL_QT4_RCC)),)
     282   TOOL_QT4_RCC     := $(PATH_TOOL_QT4_BIN)/rcc$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
     283  endif
     284 endif
    251285 TOOL_QT4_LRC       ?= $(PATH_TOOL_QT4_BIN)/lrelease$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
    252286 TOOL_QT4_LUPDATE   ?= $(PATH_TOOL_QT4_BIN)/lupdate$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
     
    255289 TOOL_QT4_MOC       ?= moc$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
    256290 TOOL_QT4_UIC       ?= uic$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
    257  TOOL_QT4_RCC       ?= rcc$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
     291 TOOL_QT4_RCC       ?= rcc$(HOST_SUFF_EXE)
    258292 TOOL_QT4_LRC       ?= lrelease$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
    259293 TOOL_QT4_LUPDATE   ?= lupdate$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
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