Changeset 1774 in kBuild
- Timestamp:
- Sep 8, 2008 3:43:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/units/qt4.kmk
r1773 r1774 79 79 ))) 80 80 ifeq ($(PATH_SDK_QT4),) 81 PATH_SDK_QT4 := $(patsubst %/bin/ qt3to4,%,$(firstword $(wildcard \81 PATH_SDK_QT4 := $(patsubst %/bin/rcc,%,$(firstword $(wildcard \ 82 82 /usr/bin/rcc \ 83 83 /usr/local/bin/rcc \ … … 209 209 TOOL_QT4_BIN_SUFF := $(TOOL_QT4_BIN_SUFF) 210 210 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. 219 240 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 240 269 endif 241 270 endif … … 248 277 TOOL_QT4_MOC ?= $(PATH_TOOL_QT4_BIN)/moc$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE) 249 278 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 251 285 TOOL_QT4_LRC ?= $(PATH_TOOL_QT4_BIN)/lrelease$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE) 252 286 TOOL_QT4_LUPDATE ?= $(PATH_TOOL_QT4_BIN)/lupdate$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE) … … 255 289 TOOL_QT4_MOC ?= moc$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE) 256 290 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) 258 292 TOOL_QT4_LRC ?= lrelease$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE) 259 293 TOOL_QT4_LUPDATE ?= lupdate$(TOOL_QT4_BIN_SUFF)$(HOST_SUFF_EXE)
Note:
See TracChangeset
for help on using the changeset viewer.