Changeset 2976 in kBuild
- Timestamp:
- Sep 27, 2016 2:29:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/units/qt4.kmk
r2975 r2976 246 246 TOOL_QT4_BIN_SUFF := $(TOOL_QT4_BIN_SUFF) 247 247 endif 248 # Try looking for moc- qt4 / moc-$(suffix) first.248 # Try looking for moc-$(suffix) first, if specified. 249 249 ifneq ($(TOOL_QT4_BIN_SUFF),) 250 250 PATH_TOOL_QT4_BIN := $(patsubst %/moc$(TOOL_QT4_BIN_SUFF),%,$(firstword $(wildcard \ … … 257 257 ))) 258 258 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 \ 260 272 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt4/bin/moc-qt4) \ 261 273 /usr/lib/qt4/bin/moc-qt4 \ … … 265 277 /usr/bin/moc-qt4 \ 266 278 ))) 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 277 282 endif 278 283 endif
Note:
See TracChangeset
for help on using the changeset viewer.