Changeset 2806 for trunk/kBuild
- Timestamp:
- Jan 28, 2016, 12:29:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/units/qt5.kmk
r2805 r2806 67 67 # PATH_SDK_QT5_LIB - The lib directory for KBUILD_TARGET. 68 68 ifndef PATH_SDK_QT5 69 PATH_SDK_QT5 := $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v 4*)))69 PATH_SDK_QT5 := $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v5*))) 70 70 ifeq ($(PATH_SDK_QT5),) 71 71 # If target == host, try look for Qt in the various platform specific places. 72 72 ifeq ($(KBUILD_TARGET),$(KBUILD_HOST)) 73 73 ifeq ($(KBUILD_TARGET),darwin) 74 PATH_SDK_QT5 := $(patsubst %/Frameworks/QtCore.framework/Versions/ 4,%,$(firstword $(wildcard /Library/Frameworks/QtCore.framework/Versions/4)))74 PATH_SDK_QT5 := $(patsubst %/Frameworks/QtCore.framework/Versions/5,%,$(firstword $(wildcard /Library/Frameworks/QtCore.framework/Versions/5))) 75 75 else ifeq ($(KBUILD_TARGET),win) 76 76 # No idea here yet... … … 83 83 /usr/bin/qt4to5-qt5 \ 84 84 /usr/local/bin/qt4to5-qt5 \ 85 /usr/qt/ 4/bin/qt4to5-qt5 \85 /usr/qt/5/bin/qt4to5-qt5 \ 86 86 /usr/share/qt5/bin/qt4to5-qt5 \ 87 87 ))) … … 90 90 /usr/bin/qt4to5 \ 91 91 /usr/local/bin/qt4to5 \ 92 /usr/qt/ 4/bin/qt4to5 \92 /usr/qt/5/bin/qt4to5 \ 93 93 /usr/share/qt5/bin/qt4to5 \ 94 94 ))) … … 98 98 /usr/bin/rcc-qt5 \ 99 99 /usr/local/bin/rcc-qt5 \ 100 /usr/qt/ 4/bin/rcc-qt5 \100 /usr/qt/5/bin/rcc-qt5 \ 101 101 /usr/share/qt5/bin/rcc-qt5 \ 102 102 ))) … … 106 106 /usr/bin/rcc \ 107 107 /usr/local/bin/rcc \ 108 /usr/qt/ 4/bin/rcc \108 /usr/qt/5/bin/rcc \ 109 109 /usr/share/qt5/bin/rcc \ 110 110 ))) … … 234 234 endif 235 235 ifndef PATH_TOOL_QT5_BIN 236 PATH_TOOL_QT5_BIN := $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST)/qt/v 4*/bin)))236 PATH_TOOL_QT5_BIN := $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST)/qt/v5*/bin))) 237 237 if "$(PATH_TOOL_QT5_BIN)" == "" && "$(KBUILD_DEVTOOLS_HST_ALT)" != "" 238 PATH_TOOL_QT5_BIN := $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/qt/v 4*/bin)))238 PATH_TOOL_QT5_BIN := $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/qt/v5*/bin))) 239 239 endif 240 240 ifeq ($(PATH_TOOL_QT5_BIN),) … … 246 246 PATH_TOOL_QT5_BIN := $(patsubst %/moc$(TOOL_QT5_BIN_SUFF),%,$(firstword $(wildcard \ 247 247 /usr/lib/qt5/bin/moc$(TOOL_QT5_BIN_SUFF) \ 248 /usr/qt/ 4/bin/moc$(TOOL_QT5_BIN_SUFF) \248 /usr/qt/5/bin/moc$(TOOL_QT5_BIN_SUFF) \ 249 249 /usr/share/qt5/bin/moc$(TOOL_QT5_BIN_SUFF) \ 250 250 /usr/local/bin/moc$(TOOL_QT5_BIN_SUFF) \ … … 254 254 PATH_TOOL_QT5_BIN := $(patsubst %/moc-qt5,%,$(firstword $(wildcard \ 255 255 /usr/lib/qt5/bin/moc-qt5 \ 256 /usr/qt/ 4/bin/moc-qt5 \256 /usr/qt/5/bin/moc-qt5 \ 257 257 /usr/share/qt5/bin/moc-qt5 \ 258 258 /usr/local/bin/moc-qt5 \ … … 265 265 PATH_TOOL_QT5_BIN := $(patsubst %/moc,%,$(firstword $(wildcard \ 266 266 /usr/lib/qt5/bin/moc \ 267 /usr/qt/ 4/bin/moc \267 /usr/qt/5/bin/moc \ 268 268 /usr/share/qt5/bin/moc \ 269 269 ))) … … 274 274 PATH_TOOL_QT5_BIN := $(patsubst %/qt4to5,%,$(firstword $(wildcard \ 275 275 /usr/lib/qt5/bin/qt4to5 \ 276 /usr/qt/ 4/bin/qt4to5 \276 /usr/qt/5/bin/qt4to5 \ 277 277 /usr/share/qt5/bin/qt4to5 \ 278 278 /usr/local/bin/qt4to5 \ … … 283 283 PATH_TOOL_QT5_BIN := $(patsubst %/rcc$(TOOL_QT5_BIN_SUFF),%,$(firstword $(wildcard \ 284 284 /usr/lib/qt5/bin/rcc$(TOOL_QT5_BIN_SUFF) \ 285 /usr/qt/ 4/bin/rcc$(TOOL_QT5_BIN_SUFF) \285 /usr/qt/5/bin/rcc$(TOOL_QT5_BIN_SUFF) \ 286 286 /usr/share/qt5/bin/rcc$(TOOL_QT5_BIN_SUFF) \ 287 287 /usr/local/bin/rcc$(TOOL_QT5_BIN_SUFF) \ … … 292 292 PATH_TOOL_QT5_BIN := $(patsubst %/rcc,%,$(firstword $(wildcard \ 293 293 /usr/lib/qt5/bin/rcc \ 294 /usr/qt/ 4/bin/rcc \294 /usr/qt/5/bin/rcc \ 295 295 /usr/share/qt5/bin/rcc \ 296 296 /usr/local/bin/rcc \ … … 981 981 $(eval $(target)_OBJCXXFLAGS += -F$(PATH_SDK_QT5_LIB) ) 982 982 $(eval $(target)_LDFLAGS += -F$(PATH_SDK_QT5_LIB) $(foreach module,$(qt_modules), -framework $(qt_prefix)Qt$(module)$(qt_infix)) ) 983 $(eval $(target)_INCS += $(foreach module,$(qt_modules), $(PATH_SDK_QT5_LIB)/$(qt_prefix)Qt$(module)$(qt_infix).framework/Versions/ 4/Headers) )983 $(eval $(target)_INCS += $(foreach module,$(qt_modules), $(PATH_SDK_QT5_LIB)/$(qt_prefix)Qt$(module)$(qt_infix).framework/Versions/5/Headers) ) 984 984 else 985 985 ifeq ($(bld_trg),win)
Note:
See TracChangeset
for help on using the changeset viewer.