Changeset 3557 in kBuild
- Timestamp:
- Feb 28, 2022 10:50:32 PM (3 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/units/qt6.kmk
r3556 r3557 1 1 # $Id$ 2 2 ## @file 3 # Qt 5unit.4 # 5 6 # 7 # Copyright (c) 2008-20 17knut st. osmundsen <[email protected]>3 # Qt 6 unit. 4 # 5 6 # 7 # Copyright (c) 2008-2022 knut st. osmundsen <[email protected]> 8 8 # 9 9 # This file is part of kBuild. … … 33 33 34 34 35 ifdef UNIT_qt 536 $(error kBuild: The qt 5unit was included twice!)37 endif 38 UNIT_qt 5 = qt535 ifdef UNIT_qt6 36 $(error kBuild: The qt6 unit was included twice!) 37 endif 38 UNIT_qt6 = qt6 39 39 40 40 … … 51 51 52 52 # 53 # The QT 5SDK.54 # 55 # This is implemented here rather than in sdks/QT 5.kmk to enforce the global USES.53 # The QT6 SDK. 54 # 55 # This is implemented here rather than in sdks/QT6.kmk to enforce the global USES. 56 56 # It also makes things easier to develop, with fewer files I mean. 57 57 # 58 58 ## @todo the SDK might actually not be necessary as it turns out... For now it servers 59 59 # a purpose if the host differs from the target, in theory at least. 60 SDK_QT 5 = Qt560 SDK_QT6 = Qt6 61 61 62 62 # SDK Specific Properties 63 # PATH_SDK_QT 5 - The general Qt5root directory.64 # PATH_SDK_QT 5_INC - The include directory.65 # PATH_SDK_QT 5_LIB.amd64 - The lib directory for AMD64.66 # PATH_SDK_QT 5_LIB.x86 - The lib directory for X86.67 # PATH_SDK_QT 5_LIB - The lib directory for KBUILD_TARGET.68 ifndef PATH_SDK_QT 569 PATH_SDK_QT 5 := $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS_TRG)/qt/v5*)))70 ifeq ($(PATH_SDK_QT 5),)63 # PATH_SDK_QT6 - The general Qt6 root directory. 64 # PATH_SDK_QT6_INC - The include directory. 65 # PATH_SDK_QT6_LIB.amd64 - The lib directory for AMD64. 66 # PATH_SDK_QT6_LIB.x86 - The lib directory for X86. 67 # PATH_SDK_QT6_LIB - The lib directory for KBUILD_TARGET. 68 ifndef PATH_SDK_QT6 69 PATH_SDK_QT6 := $(firstfile $(rversortfiles $(qwildcard ,$(KBUILD_DEVTOOLS_TRG)/qt/v6*))) 70 ifeq ($(PATH_SDK_QT6),) 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_QT 5 := $(patsubst %/Frameworks/QtCore.framework/Versions/5,%,$(firstword $(wildcard /Library/Frameworks/QtCore.framework/Versions/5)))74 PATH_SDK_QT6 := $(patsubst %/Frameworks/QtCore.framework/Versions/6,%,$(firstword $(wildcard /Library/Frameworks/QtCore.framework/Versions/6))) 75 75 else ifeq ($(KBUILD_TARGET),win) 76 76 # No idea here yet... … … 78 78 # No port... 79 79 else 80 # The Unices. Includes and esp. libs are tricky, so override the PATH_SDK_QT5_LIB* stuff if it doesn't work. 81 # Try find the general root of thing by looking for the qt4to5 program, if not found, then look for rcc. 82 PATH_SDK_QT5 := $(patsubst %/bin/qt4to5-qt5,%,$(firstword $(wildcard \ 83 /usr/bin/qt4to5-qt5 \ 84 /usr/local/bin/qt4to5-qt5 \ 85 /usr/qt/5/bin/qt4to5-qt5 \ 86 /usr/share/qt5/bin/qt4to5-qt5 \ 80 # The Unices. Includes and esp. libs are tricky, so override the PATH_SDK_QT6_LIB* stuff if it doesn't work. 81 # Try find the general root of thing by looking for the rcc program, as there seems to be no qt6 specific one to look for. 82 PATH_SDK_QT6 := $(patsubst %/bin/rcc-qt6,%,$(firstword $(wildcard \ 83 /usr/bin/rcc-qt6 \ 84 /usr/local/bin/rcc-qt6 \ 85 /usr/qt/6/bin/rcc-qt6 \ 86 $(if $(intersects $(KBUILD_HOST_ARCH),$(KBUILD_ARCHES_64)),/usr/lib64/qt6/bin/rcc-qt6) \ 87 /usr/lib/qt6/bin/rcc-qt6 \ 88 /usr/share/qt6/bin/rcc-qt6 \ 87 89 ))) 88 ifeq ($(PATH_SDK_QT5),) 89 PATH_SDK_QT5 := $(patsubst %/bin/qt4to5,%,$(firstword $(wildcard \ 90 /usr/bin/qt4to5 \ 91 /usr/local/bin/qt4to5 \ 92 /usr/qt/5/bin/qt4to5 \ 93 /usr/share/qt5/bin/qt4to5 \ 94 ))) 95 endif 96 ifeq ($(PATH_SDK_QT5),) 97 PATH_SDK_QT5 := $(patsubst %/bin/rcc-qt5,%,$(firstword $(wildcard \ 98 /usr/bin/rcc-qt5 \ 99 /usr/local/bin/rcc-qt5 \ 100 /usr/qt/5/bin/rcc-qt5 \ 101 /usr/share/qt5/bin/rcc-qt5 \ 90 ifeq ($(PATH_SDK_QT6),) 91 PATH_SDK_QT6 := $(patsubst %/libexec/rcc-qt6,%,$(firstword $(wildcard \ 92 /usr/libexec/rcc-qt6 \ 93 /usr/local/libexec/rcc-qt6 \ 94 /usr/qt/6/libexec/rcc-qt6 \ 95 $(if $(intersects $(KBUILD_HOST_ARCH),$(KBUILD_ARCHES_64)),/usr/lib64/qt6/libexec/rcc-qt6) \ 96 /usr/lib/qt6/libexec/rcc-qt6 \ 97 /usr/share/qt6/libexec/rcc-qt6 \ 102 98 ))) 103 99 endif 104 ifeq ($(PATH_SDK_QT5),) 105 PATH_SDK_QT5 := $(patsubst %/bin/rcc,%,$(firstword $(wildcard \ 106 /usr/lib/*/qt5/bin/rcc \ 100 ifeq ($(PATH_SDK_QT6),) 101 PATH_SDK_QT6 := $(patsubst %/libexec/rcc,%,$(firstword $(wildcard \ 102 /usr/qt/6/libexec/rcc \ 103 $(if $(intersects $(KBUILD_HOST_ARCH),$(KBUILD_ARCHES_64)),/usr/lib64/qt6/libexec/rcc) \ 104 /usr/lib/qt6/libexec/rcc \ 105 /usr/share/qt6/libexec/rcc \ 106 /usr/libexec/rcc \ 107 /usr/local/libexec/rcc \ 108 ))) 109 endif 110 ifeq ($(PATH_SDK_QT6),) 111 PATH_SDK_QT6 := $(patsubst %/bin/rcc,%,$(firstword $(wildcard \ 112 /usr/qt/6/bin/rcc \ 113 $(if $(intersects $(KBUILD_HOST_ARCH),$(KBUILD_ARCHES_64)),/usr/lib64/qt6/bin/rcc) \ 114 /usr/lib/qt6/bin/rcc \ 115 /usr/share/qt6/bin/rcc \ 107 116 /usr/bin/rcc \ 108 117 /usr/local/bin/rcc \ 109 /usr/qt/5/bin/rcc \110 /usr/share/qt5/bin/rcc \111 118 ))) 112 119 endif 113 ifneq ($(PATH_SDK_QT 5),)114 export PATH_SDK_QT 5115 116 # Locate the include files. Check for qglobalstatic.h (since 5.1) first.117 ifeq ($(PATH_SDK_QT 5_INC),)118 PATH_SDK_QT 5_INC := $(patsubst %/QtCore/qglobalstatic.h,%,$(firstword $(wildcard \119 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET_DOT_ARCH)),/usr/include/$(type)/qt 5/QtCore/qglobalstatic.h) \120 $(PATH_SDK_QT 5)/include/qt5/QtCore/qglobalstatic.h\121 /usr/include/qt 5/QtCore/qtglobalstatic.h\122 /usr/local/include/qt 5/QtCore/qtglobalstatic.h\123 $(PATH_SDK_QT 5)/include/QtCore/qglobalstatic.h\124 /usr/include/qt/QtCore/qglobalstatic.h\125 /usr/local/include/qt/QtCore/qglobalstatic.h\120 ifneq ($(PATH_SDK_QT6),) 121 export PATH_SDK_QT6 122 123 # Locate the include files. Check for QStringConverter (since 6.?) first. 124 ifeq ($(PATH_SDK_QT6_INC),) 125 PATH_SDK_QT6_INC := $(patsubst %/QtCore/QStringConverter,%,$(firstword $(wildcard \ 126 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET_DOT_ARCH)),/usr/include/$(type)/qt6/QtCore/QStringConverter) \ 127 $(PATH_SDK_QT6)/include/qt6/QtCore/QStringConverter \ 128 /usr/include/qt6/QtCore/QStringConverter \ 129 /usr/local/include/qt6/QtCore/QStringConverter \ 130 $(PATH_SDK_QT6)/include/QtCore/QStringConverter \ 131 /usr/include/qt/QtCore/QStringConverter \ 132 /usr/local/include/qt/QtCore/QStringConverter \ 126 133 ))) 127 ifeq ($(PATH_SDK_QT 5_INC),)128 PATH_SDK_QT 5_INC := $(patsubst %/QtCore/qglobal.h,%,$(firstword $(wildcard \129 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET_DOT_ARCH)),/usr/include/$(type)/qt 5/QtCore/qglobal.h) \130 $(PATH_SDK_QT 5)/include/qt5/QtCore/qglobal.h \131 /usr/include/qt 5/QtCore/qtglobal.h \132 /usr/local/include/qt 5/QtCore/qtglobal.h \133 $(PATH_SDK_QT 5)/include/QtCore/qglobal.h \134 ifeq ($(PATH_SDK_QT6_INC),) 135 PATH_SDK_QT6_INC := $(patsubst %/QtCore/qglobal.h,%,$(firstword $(wildcard \ 136 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET_DOT_ARCH)),/usr/include/$(type)/qt6/QtCore/qglobal.h) \ 137 $(PATH_SDK_QT6)/include/qt6/QtCore/qglobal.h \ 138 /usr/include/qt6/QtCore/qglobal.h \ 139 /usr/local/include/qt6/QtCore/qglobal.h \ 140 $(PATH_SDK_QT6)/include/QtCore/qglobal.h \ 134 141 ))) 135 142 endif 136 ifneq ($(PATH_SDK_QT 5_INC),)137 export PATH_SDK_QT 5_INC143 ifneq ($(PATH_SDK_QT6_INC),) 144 export PATH_SDK_QT6_INC 138 145 endif 139 146 endif 140 147 141 148 # Now for the libraries (mostly for helping out finding the KBUILD_TARGET libs). 142 ifeq ($(PATH_SDK_QT 5_LIB.x86),)143 PATH_SDK_QT 5_LIB.x86 := $(patsubst %/libQt5Core$(SUFF_DLL),%,$(firstword $(wildcard \144 $(PATH_SDK_QT 5)/lib32/libQt5Core$(SUFF_DLL) \145 $(PATH_SDK_QT 5)/lib32/qt5/libQt5Core$(SUFF_DLL) \146 /usr/lib32/libQt 5Core$(SUFF_DLL) \147 /usr/lib32/qt 5/libQt5Core$(SUFF_DLL) \148 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET).x86),/usr/lib/$(type)/libQt 5Core$(SUFF_DLL)) \149 /usr/local/lib32/libQt 5Core$(SUFF_DLL) \150 /usr/local/lib32/qt 5/libQt5Core$(SUFF_DLL) \151 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET).x86),/usr/local/lib/$(type)/libQt 5Core$(SUFF_DLL)) \152 $(PATH_SDK_QT 5)/lib/libQt5Core$(SUFF_DLL) \153 $(PATH_SDK_QT 5)/lib/qt5/libQt5Core$(SUFF_DLL) \154 $(PATH_SDK_QT 5)/lib/i386-linux-gnu/libQt5Core$(SUFF_DLL) \149 ifeq ($(PATH_SDK_QT6_LIB.x86),) 150 PATH_SDK_QT6_LIB.x86 := $(patsubst %/libQt6Core$(SUFF_DLL),%,$(firstword $(wildcard \ 151 $(PATH_SDK_QT6)/lib32/libQt6Core$(SUFF_DLL) \ 152 $(PATH_SDK_QT6)/lib32/qt6/libQt6Core$(SUFF_DLL) \ 153 /usr/lib32/libQt6Core$(SUFF_DLL) \ 154 /usr/lib32/qt6/libQt6Core$(SUFF_DLL) \ 155 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET).x86),/usr/lib/$(type)/libQt6Core$(SUFF_DLL)) \ 156 /usr/local/lib32/libQt6Core$(SUFF_DLL) \ 157 /usr/local/lib32/qt6/libQt6Core$(SUFF_DLL) \ 158 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET).x86),/usr/local/lib/$(type)/libQt6Core$(SUFF_DLL)) \ 159 $(PATH_SDK_QT6)/lib/libQt6Core$(SUFF_DLL) \ 160 $(PATH_SDK_QT6)/lib/qt6/libQt6Core$(SUFF_DLL) \ 161 $(PATH_SDK_QT6)/lib/i386-linux-gnu/libQt6Core$(SUFF_DLL) \ 155 162 ))) 156 ifneq ($(PATH_SDK_QT 5_LIB.x86),)157 export PATH_SDK_QT 5_LIB.x86163 ifneq ($(PATH_SDK_QT6_LIB.x86),) 164 export PATH_SDK_QT6_LIB.x86 158 165 endif 159 166 endif 160 ifeq ($(PATH_SDK_QT 5_LIB.amd64),)161 PATH_SDK_QT 5_LIB.amd64 := $(patsubst %/libQt5Core$(SUFF_DLL),%,$(firstword $(wildcard \162 $(PATH_SDK_QT 5)/lib64/libQt5Core$(SUFF_DLL) \163 $(PATH_SDK_QT 5)/lib64/qt5/libQt5Core$(SUFF_DLL) \164 $(PATH_SDK_QT 5)/lib/amd64/libQt5Core$(SUFF_DLL) \165 /usr/lib64/libQt 5Core$(SUFF_DLL) \166 /usr/lib64/qt 5/libQt5Core$(SUFF_DLL) \167 /usr/lib/amd64/libQt 5Core$(SUFF_DLL) \168 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET).amd64),/usr/lib/$(type)/libQt 5Core$(SUFF_DLL)) \169 /usr/local/lib64/libQt 5Core$(SUFF_DLL) \170 /usr/local/lib64/qt 5/libQt5Core$(SUFF_DLL) \171 /usr/local/lib/amd64/libQt 5Core$(SUFF_DLL) \172 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET).amd64),/usr/local/lib/$(type)/libQt 5Core$(SUFF_DLL)) \173 $(PATH_SDK_QT 5)/lib/libQt5Core$(SUFF_DLL) \174 $(PATH_SDK_QT 5)/lib/qt5/libQt5Core$(SUFF_DLL) \175 $(PATH_SDK_QT 5)/lib/x86_64-linux-gnu/libQt5Core$(SUFF_DLL) \167 ifeq ($(PATH_SDK_QT6_LIB.amd64),) 168 PATH_SDK_QT6_LIB.amd64 := $(patsubst %/libQt6Core$(SUFF_DLL),%,$(firstword $(wildcard \ 169 $(PATH_SDK_QT6)/lib64/libQt6Core$(SUFF_DLL) \ 170 $(PATH_SDK_QT6)/lib64/qt6/libQt6Core$(SUFF_DLL) \ 171 $(PATH_SDK_QT6)/lib/amd64/libQt6Core$(SUFF_DLL) \ 172 /usr/lib64/libQt6Core$(SUFF_DLL) \ 173 /usr/lib64/qt6/libQt6Core$(SUFF_DLL) \ 174 /usr/lib/amd64/libQt6Core$(SUFF_DLL) \ 175 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET).amd64),/usr/lib/$(type)/libQt6Core$(SUFF_DLL)) \ 176 /usr/local/lib64/libQt6Core$(SUFF_DLL) \ 177 /usr/local/lib64/qt6/libQt6Core$(SUFF_DLL) \ 178 /usr/local/lib/amd64/libQt6Core$(SUFF_DLL) \ 179 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET).amd64),/usr/local/lib/$(type)/libQt6Core$(SUFF_DLL)) \ 180 $(PATH_SDK_QT6)/lib/libQt6Core$(SUFF_DLL) \ 181 $(PATH_SDK_QT6)/lib/qt6/libQt6Core$(SUFF_DLL) \ 182 $(PATH_SDK_QT6)/lib/x86_64-linux-gnu/libQt6Core$(SUFF_DLL) \ 176 183 ))) 177 ifneq ($(PATH_SDK_QT 5_LIB.amd64),)178 export PATH_SDK_QT 5_LIB.amd64184 ifneq ($(PATH_SDK_QT6_LIB.amd64),) 185 export PATH_SDK_QT6_LIB.amd64 179 186 endif 180 187 endif 188 ifeq ($(PATH_SDK_QT6_LIB.arm64),) 189 PATH_SDK_QT6_LIB.arm64 := $(patsubst %/libQt6Core$(SUFF_DLL),%,$(firstword $(wildcard \ 190 $(PATH_SDK_QT6)/lib64/libQt6Core$(SUFF_DLL) \ 191 $(PATH_SDK_QT6)/lib64/qt6/libQt6Core$(SUFF_DLL) \ 192 $(PATH_SDK_QT6)/lib/arm64/libQt6Core$(SUFF_DLL) \ 193 /usr/lib64/libQt6Core$(SUFF_DLL) \ 194 /usr/lib64/qt6/libQt6Core$(SUFF_DLL) \ 195 /usr/lib/arm64/libQt6Core$(SUFF_DLL) \ 196 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET).arm64),/usr/lib/$(type)/libQt6Core$(SUFF_DLL)) \ 197 /usr/local/lib64/libQt6Core$(SUFF_DLL) \ 198 /usr/local/lib64/qt6/libQt6Core$(SUFF_DLL) \ 199 /usr/local/lib/arm64/libQt6Core$(SUFF_DLL) \ 200 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET).arm64),/usr/local/lib/$(type)/libQt6Core$(SUFF_DLL)) \ 201 $(PATH_SDK_QT6)/lib/libQt6Core$(SUFF_DLL) \ 202 $(PATH_SDK_QT6)/lib/qt6/libQt6Core$(SUFF_DLL) \ 203 $(PATH_SDK_QT6)/lib/x86_64-linux-gnu/libQt6Core$(SUFF_DLL) \ 204 ))) 205 ifneq ($(PATH_SDK_QT6_LIB.arm64),) 206 export PATH_SDK_QT6_LIB.arm64 207 endif 208 endif 181 209 182 210 # And finally, the library path for KBUILD_TARGET. 183 ifeq ($(PATH_SDK_QT 5_LIB),)184 PATH_SDK_QT 5_LIB := $(PATH_SDK_QT5_LIB.$(KBUILD_TARGET_ARCH))185 ifeq ($(PATH_SDK_QT 5_LIB),)186 PATH_SDK_QT 5_LIB := $(patsubst %/libQt5Core$(SUFF_DLL),%,$(firstword $(wildcard \187 $(PATH_SDK_QT 5)/lib/libQt5Core$(SUFF_DLL) \188 $(PATH_SDK_QT 5)/lib/qt5/libQt5Core$(SUFF_DLL) \189 /usr/lib/libQt 5Core$(SUFF_DLL) \190 /usr/lib/qt 5/libQt5Core$(SUFF_DLL) \191 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET_DOT_ARCH)),/usr/lib/$(type)/libQt 5Core$(SUFF_DLL)) \192 /usr/local/lib/libQt 5Core$(SUFF_DLL) \193 /usr/local/lib/qt 5/libQt5Core$(SUFF_DLL) \194 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET_DOT_ARCH)),/usr/local/lib/$(type)/libQt 5Core$(SUFF_DLL)) \211 ifeq ($(PATH_SDK_QT6_LIB),) 212 PATH_SDK_QT6_LIB := $(PATH_SDK_QT6_LIB.$(KBUILD_TARGET_ARCH)) 213 ifeq ($(PATH_SDK_QT6_LIB),) 214 PATH_SDK_QT6_LIB := $(patsubst %/libQt6Core$(SUFF_DLL),%,$(firstword $(wildcard \ 215 $(PATH_SDK_QT6)/lib/libQt6Core$(SUFF_DLL) \ 216 $(PATH_SDK_QT6)/lib/qt6/libQt6Core$(SUFF_DLL) \ 217 /usr/lib/libQt6Core$(SUFF_DLL) \ 218 /usr/lib/qt6/libQt6Core$(SUFF_DLL) \ 219 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET_DOT_ARCH)),/usr/lib/$(type)/libQt6Core$(SUFF_DLL)) \ 220 /usr/local/lib/libQt6Core$(SUFF_DLL) \ 221 /usr/local/lib/qt6/libQt6Core$(SUFF_DLL) \ 222 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_TARGET_DOT_ARCH)),/usr/local/lib/$(type)/libQt6Core$(SUFF_DLL)) \ 195 223 ))) 196 224 endif 197 ifneq ($(PATH_SDK_QT 5_LIB),)198 export PATH_SDK_QT 5_LIB225 ifneq ($(PATH_SDK_QT6_LIB),) 226 export PATH_SDK_QT6_LIB 199 227 endif 200 228 endif … … 204 232 endif 205 233 # Found it? 206 ifeq ($(PATH_SDK_QT 5),)207 $(warning kBuild: Couldn't find the Qt 5headers and libaries...)208 PATH_SDK_QT 5:= $(KBUILD_DEVTOOLS_TRG)/qt/not-found234 ifeq ($(PATH_SDK_QT6),) 235 $(warning kBuild: Couldn't find the Qt6 headers and libaries...) 236 PATH_SDK_QT6 := $(KBUILD_DEVTOOLS_TRG)/qt/not-found 209 237 endif 210 238 endif 211 239 else 212 240 # Resolve any fancy stuff once and for all. 213 PATH_SDK_QT 5 := $(PATH_SDK_QT5)241 PATH_SDK_QT6 := $(PATH_SDK_QT6) 214 242 endif 215 243 … … 217 245 # build it on the mac. The .dmg installs into Frameworks but builds into lib. 218 246 ifeq ($(KBUILD_TARGET),darwin) 219 ifndef PATH_SDK_QT 5_LIB220 ifneq ($(wildcard $(PATH_SDK_QT 5)/Frameworks),)221 PATH_SDK_QT 5_LIB ?= $(PATH_SDK_QT5)/Frameworks247 ifndef PATH_SDK_QT6_LIB 248 ifneq ($(wildcard $(PATH_SDK_QT6)/Frameworks),) 249 PATH_SDK_QT6_LIB ?= $(PATH_SDK_QT6)/Frameworks 222 250 else 223 PATH_SDK_QT 5_LIB ?= $(PATH_SDK_QT5)/lib251 PATH_SDK_QT6_LIB ?= $(PATH_SDK_QT6)/lib 224 252 endif 225 253 endif 226 254 else 227 PATH_SDK_QT 5_LIB ?= $(PATH_SDK_QT5)/lib228 PATH_SDK_QT 5_INC ?= $(PATH_SDK_QT5)/include255 PATH_SDK_QT6_LIB ?= $(PATH_SDK_QT6)/lib 256 PATH_SDK_QT6_INC ?= $(PATH_SDK_QT6)/include 229 257 endif 230 258 … … 234 262 235 263 # 236 # The QT 5tool.237 # 238 # This is implemented here rather than in tools/QT 5.kmk to enforce the global USES.264 # The QT6 tool. 265 # 266 # This is implemented here rather than in tools/QT6.kmk to enforce the global USES. 239 267 # It also makes things easier to develop, with fewer files I mean. 240 268 # 241 TOOL_QT 5 = Qt5269 TOOL_QT6 = Qt6 242 270 243 271 # Tool Specific Properties 244 # PATH_TOOL_QT5 - Obsolete. 245 # PATH_TOOL_QT5_BIN - The 246 # TOOL_QT5_BIN_SUFF - 247 if !defined(PATH_TOOL_QT5_BIN) && defined(PATH_TOOL_QT5) 248 PATH_TOOL_QT5_BIN := $(PATH_TOOL_QT5)/bin 249 endif 250 ifndef PATH_TOOL_QT5_BIN 251 PATH_TOOL_QT5_BIN := $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST)/qt/v5*/bin))) 252 if "$(PATH_TOOL_QT5_BIN)" == "" && "$(KBUILD_DEVTOOLS_HST_ALT)" != "" 253 PATH_TOOL_QT5_BIN := $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/qt/v5*/bin))) 254 endif 255 ifeq ($(PATH_TOOL_QT5_BIN),) 256 ifdef TOOL_QT5_BIN_SUFF 257 TOOL_QT5_BIN_SUFF := $(TOOL_QT5_BIN_SUFF) 272 # PATH_TOOL_QT6 - Obsolete. 273 # PATH_TOOL_QT6_BIN - The path to the lrc and lupdate tools. 274 # PATH_TOOL_QT6_LIBEXEC - The path to the moc, uic & rcc tools. 275 # TOOL_QT6_BIN_SUFF - The binary suffix for PATH_TOOL_QT6_BIN tools. 276 # TOOL_QT6_LIBEXEC_SUFF - The binary suffix for PATH_TOOL_QT6_LIBEXEC tools. 277 if !defined(PATH_TOOL_QT6_BIN) && defined(PATH_TOOL_QT6) 278 PATH_TOOL_QT6_BIN := $(PATH_TOOL_QT6)/bin 279 endif 280 ifndef PATH_TOOL_QT6_BIN 281 PATH_TOOL_QT6_BIN := $(firstfile $(rversortfiles $(qwildcard ,$(KBUILD_DEVTOOLS_HST)/qt/v6*/bin))) 282 if "$(PATH_TOOL_QT6_BIN)" == "" && "$(KBUILD_DEVTOOLS_HST_ALT)" != "" 283 PATH_TOOL_QT6_BIN := $(firstfile $(rversortfiles $(qwildcard ,$(KBUILD_DEVTOOLS_HST_ALT)/qt/v6*/bin))) 284 endif 285 ifeq ($(PATH_TOOL_QT6_BIN),) 286 ifdef TOOL_QT6_BIN_SUFF 287 TOOL_QT6_BIN_SUFF := $(TOOL_QT6_BIN_SUFF) 258 288 endif 259 # Try looking for moc-qt5 / moc-$(suffix) first. 260 ifneq ($(TOOL_QT5_BIN_SUFF),) 261 PATH_TOOL_QT5_BIN := $(patsubst %/moc$(TOOL_QT5_BIN_SUFF),%,$(firstword $(wildcard \ 262 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt5/bin/moc$(TOOL_QT5_BIN_SUFF)) \ 263 /usr/lib/qt5/bin/moc$(TOOL_QT5_BIN_SUFF) \ 264 /usr/qt/5/bin/moc$(TOOL_QT5_BIN_SUFF) \ 265 /usr/share/qt5/bin/moc$(TOOL_QT5_BIN_SUFF) \ 266 /usr/local/bin/moc$(TOOL_QT5_BIN_SUFF) \ 267 /usr/bin/moc$(TOOL_QT5_BIN_SUFF) \ 268 ))) 289 # Try looking for lupdate-qt6 / lupdate-$(suffix) first (this is in bin rather than libexec). 290 ifneq ($(TOOL_QT6_BIN_SUFF),) 291 PATH_TOOL_QT6_BIN := $(patsubst %/lupdate$(TOOL_QT6_BIN_SUFF),%,$(firstword $(wildcard \ 292 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt6/bin/lupdate$(TOOL_QT6_BIN_SUFF)) \ 293 $(if $(intersects $(KBUILD_HOST_ARCH),$(KBUILD_ARCHES_64)),/usr/lib64/qt6/bin/lupdate$(TOOL_QT6_BIN_SUFF)) \ 294 /usr/lib/qt6/bin/lupdate$(TOOL_QT6_BIN_SUFF) \ 295 /usr/qt/6/bin/lupdate$(TOOL_QT6_BIN_SUFF) \ 296 /usr/share/qt6/bin/lupdate$(TOOL_QT6_BIN_SUFF) \ 297 /usr/local/bin/lupdate$(TOOL_QT6_BIN_SUFF) \ 298 /usr/bin/lupdate$(TOOL_QT6_BIN_SUFF) \ 299 ))) 269 300 else 270 # No suffix given, so before we check out -qt 5 look at qt5specific locations to avoid choosers and symlinks.271 PATH_TOOL_QT 5_BIN := $(patsubst %/moc,%,$(firstword $(wildcard \272 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt 5/bin/moc) \273 $(if $(intersects $(KBUILD_HOST_ARCH), $(KBUILD_ARCHES_64)),/usr/lib64/qt 5/bin/moc,) \274 /usr/lib/qt 5/bin/moc\275 /usr/local/lib/qt 5/bin/moc\276 /usr/qt/ 5/bin/moc\277 /usr/local/qt/ 5/bin/moc\278 /usr/share/qt 5/bin/moc\279 /usr/local/share/qt 5/bin/moc\301 # No suffix given, so before we check out -qt6 look at qt6 specific locations to avoid choosers and symlinks. 302 PATH_TOOL_QT6_BIN := $(patsubst %/lupdate,%,$(firstword $(wildcard \ 303 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt6/bin/lupdate) \ 304 $(if $(intersects $(KBUILD_HOST_ARCH), $(KBUILD_ARCHES_64)),/usr/lib64/qt6/bin/lupdate,) \ 305 /usr/lib/qt6/bin/lupdate \ 306 /usr/local/lib/qt6/bin/lupdate \ 307 /usr/qt/6/bin/lupdate \ 308 /usr/local/qt/6/bin/lupdate \ 309 /usr/share/qt6/bin/lupdate \ 310 /usr/local/share/qt6/bin/lupdate \ 280 311 ))) 281 ifeq ($(PATH_TOOL_QT5_BIN),) 282 PATH_TOOL_QT5_BIN := $(patsubst %/moc-qt5,%,$(firstword $(wildcard \ 283 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt5/bin/moc-qt5) \ 284 /usr/lib/qt5/bin/moc-qt5 \ 285 /usr/qt/5/bin/moc-qt5 \ 286 /usr/share/qt5/bin/moc-qt5 \ 287 /usr/local/bin/moc-qt5 \ 288 /usr/bin/moc-qt5 \ 312 ifeq ($(PATH_TOOL_QT6_BIN),) 313 PATH_TOOL_QT6_BIN := $(patsubst %/lupdate-qt6,%,$(firstword $(wildcard \ 314 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt6/bin/lupdate-qt6) \ 315 $(if $(intersects $(KBUILD_HOST_ARCH), $(KBUILD_ARCHES_64)),/usr/lib64/qt6/bin/lupdate-qt6,) \ 316 /usr/lib/qt6/bin/lupdate-qt6 \ 317 /usr/qt/6/bin/lupdate-qt6 \ 318 /usr/share/qt6/bin/lupdate-qt6 \ 319 /usr/local/bin/lupdate-qt6 \ 320 /usr/bin/lupdate-qt6 \ 289 321 ))) 290 ifneq ($(PATH_TOOL_QT 5_BIN),)291 TOOL_QT 5_BIN_SUFF := -qt5322 ifneq ($(PATH_TOOL_QT6_BIN),) 323 TOOL_QT6_BIN_SUFF := -qt6 292 324 endif 293 325 endif 294 326 endif 295 # If still no go, try looking for qt4to5 and rcc. 296 ifeq ($(PATH_TOOL_QT5_BIN),) 297 PATH_TOOL_QT5_BIN := $(patsubst %/qt4to5,%,$(firstword $(wildcard \ 298 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt5/bin/qt4to5) \ 299 /usr/lib/qt5/bin/qt4to5 \ 300 /usr/qt/5/bin/qt4to5 \ 301 /usr/share/qt5/bin/qt4to5 \ 302 /usr/local/bin/qt4to5 \ 303 /usr/bin/qt4to5 \ 327 # If still no go, try looking for qmake. 328 ifeq ($(PATH_TOOL_QT6_BIN),) 329 PATH_TOOL_QT6_BIN := $(patsubst %/qmake,%,$(firstword $(wildcard \ 330 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt6/bin/qmake) \ 331 $(if $(intersects $(KBUILD_HOST_ARCH), $(KBUILD_ARCHES_64)),/usr/lib64/qt6/bin/qmake,) \ 332 /usr/lib/qt6/bin/qmake \ 333 /usr/qt/6/bin/qmake \ 334 /usr/share/qt6/bin/qmake \ 335 /usr/local/bin/qmake \ 336 /usr/bin/qmake \ 304 337 ))) 305 338 endif 306 ifeq ($(PATH_TOOL_QT5_BIN),) 307 PATH_TOOL_QT5_BIN := $(patsubst %/rcc$(TOOL_QT5_BIN_SUFF),%,$(firstword $(wildcard \ 308 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt5/bin/rcc$(TOOL_QT5_BIN_SUFF)) \ 309 /usr/lib/qt5/bin/rcc$(TOOL_QT5_BIN_SUFF) \ 310 /usr/qt/5/bin/rcc$(TOOL_QT5_BIN_SUFF) \ 311 /usr/share/qt5/bin/rcc$(TOOL_QT5_BIN_SUFF) \ 312 /usr/local/bin/rcc$(TOOL_QT5_BIN_SUFF) \ 313 /usr/bin/rcc$(TOOL_QT5_BIN_SUFF) \ 314 ))) 339 ifneq ($(PATH_TOOL_QT6_BIN),) 340 export PATH_TOOL_QT6_BIN 315 341 endif 316 if "$(PATH_TOOL_QT5_BIN)" == "" && "$(TOOL_QT5_BIN_SUFF)" != "" 317 PATH_TOOL_QT5_BIN := $(patsubst %/rcc,%,$(firstword $(wildcard \ 318 $(foreach type,$(KBUILD_OSARCH_2_GNU_SYSTEM_TYPES.$(KBUILD_HOST_DOT_ARCH)),/usr/lib/$(type)/qt5/bin/rcc) \ 319 /usr/lib/qt5/bin/rcc \ 320 /usr/qt/5/bin/rcc \ 321 /usr/share/qt5/bin/rcc \ 322 /usr/local/bin/rcc \ 323 /usr/bin/rcc \ 324 ))) 342 endif 343 # If not found, we'll enter the 'pathless' mode. 344 else 345 # Resolve any fancy stuff once and for all. 346 PATH_TOOL_QT6_BIN := $(PATH_TOOL_QT6_BIN) 347 endif 348 349 # Unixes have moc, rcc, uic in a libexec dir rather than the bin dir, so try 350 # find that directory or alias the LIBEXEC stuff onto BIN. 351 ifndef PATH_TOOL_QT6_LIBEXEC 352 ifneq ($(PATH_TOOL_QT6_BIN),) 353 ifneq ($(qwildcard ,$(PATH_TOOL_QT6_BIN)/../libexec/moc*),) 354 PATH_TOOL_QT6_LIBEXEC := $(qabspath ,$(PATH_TOOL_QT6_BIN)/../libexec) 355 else 356 PATH_TOOL_QT6_LIBEXEC := $(PATH_TOOL_QT6_BIN) 325 357 endif 326 ifneq ($(PATH_TOOL_QT5_BIN),) 327 export PATH_TOOL_QT5_BIN 328 endif 329 endif 330 # If not found, we'll enter the 'pathless' mode. 331 else 332 # Resolve any fancy stuff once and for all. 333 PATH_TOOL_QT5_BIN := $(PATH_TOOL_QT5_BIN) 334 endif 335 ifneq ($(PATH_TOOL_QT5_BIN),) 336 TOOL_QT5_MOC ?= $(PATH_TOOL_QT5_BIN)/moc$(TOOL_QT5_BIN_SUFF)$(HOSTSUFF_EXE) 337 TOOL_QT5_UIC ?= $(PATH_TOOL_QT5_BIN)/uic$(TOOL_QT5_BIN_SUFF)$(HOSTSUFF_EXE) 338 ifndef TOOL_QT5_RCC 339 TOOL_QT5_RCC := $(PATH_TOOL_QT5_BIN)/rcc$(HOSTSUFF_EXE) 340 ifeq ($(wildcard $(TOOL_QT5_RCC)),) 341 TOOL_QT5_RCC := $(PATH_TOOL_QT5_BIN)/rcc$(TOOL_QT5_BIN_SUFF)$(HOSTSUFF_EXE) 342 endif 343 endif 344 TOOL_QT5_LRC ?= $(PATH_TOOL_QT5_BIN)/lrelease$(TOOL_QT5_BIN_SUFF)$(HOSTSUFF_EXE) 345 TOOL_QT5_LUPDATE ?= $(PATH_TOOL_QT5_BIN)/lupdate$(TOOL_QT5_BIN_SUFF)$(HOSTSUFF_EXE) 358 endif 359 else 360 PATH_TOOL_QT6_LIBEXEC := $(PATH_TOOL_QT6_LIBEXEC) 361 endif 362 if !defined(TOOL_QT6_LIBEXEC_SUFF) && defined(PATH_TOOL_QT6_LIBEXEC) 363 ifneq ($(qwildcard ,$(PATH_TOOL_QT6_LIBEXEC)/moc-qt6$(HOSTSUFF_EXE)),) 364 TOOL_QT6_LIBEXEC_SUFF := -qt6 365 endif 366 endif 367 368 ifneq ($(PATH_TOOL_QT6_BIN),) 369 TOOL_QT6_MOC ?= $(PATH_TOOL_QT6_LIBEXEC)/moc$(TOOL_QT6_LIBEXEC_SUFF)$(HOSTSUFF_EXE) 370 TOOL_QT6_UIC ?= $(PATH_TOOL_QT6_LIBEXEC)/uic$(TOOL_QT6_LIBEXEC_SUFF)$(HOSTSUFF_EXE) 371 TOOL_QT6_RCC ?= $(PATH_TOOL_QT6_LIBEXEC)/rcc$(TOOL_QT6_LIBEXEC_SUFF)$(HOSTSUFF_EXE) 372 TOOL_QT6_LRC ?= $(PATH_TOOL_QT6_BIN)/lrelease$(TOOL_QT6_BIN_SUFF)$(HOSTSUFF_EXE) 373 TOOL_QT6_LUPDATE ?= $(PATH_TOOL_QT6_BIN)/lupdate$(TOOL_QT6_BIN_SUFF)$(HOSTSUFF_EXE) 346 374 else 347 375 # Pathless, relies on the environment. 348 TOOL_QT 5_MOC ?= moc$(TOOL_QT5_BIN_SUFF)$(HOSTSUFF_EXE)349 TOOL_QT 5_UIC ?= uic$(TOOL_QT5_BIN_SUFF)$(HOSTSUFF_EXE)350 TOOL_QT 5_RCC ?= rcc$(TOOL_QT5_BIN_SUFF)$(HOSTSUFF_EXE)351 TOOL_QT 5_LRC ?= lrelease$(TOOL_QT5_BIN_SUFF)$(HOSTSUFF_EXE)352 TOOL_QT 5_LUPDATE ?= lupdate$(TOOL_QT5_BIN_SUFF)$(HOSTSUFF_EXE)353 endif 354 ifdef TOOL_QT 5_USE_KSUBMIT376 TOOL_QT6_MOC ?= moc$(TOOL_QT6_LIBEXEC_SUFF)$(HOSTSUFF_EXE) 377 TOOL_QT6_UIC ?= uic$(TOOL_QT6_LIBEXEC_SUFF)$(HOSTSUFF_EXE) 378 TOOL_QT6_RCC ?= rcc$(TOOL_QT6_LIBEXEC_SUFF)$(HOSTSUFF_EXE) 379 TOOL_QT6_LRC ?= lrelease$(TOOL_QT6_BIN_SUFF)$(HOSTSUFF_EXE) 380 TOOL_QT6_LUPDATE ?= lupdate$(TOOL_QT6_BIN_SUFF)$(HOSTSUFF_EXE) 381 endif 382 ifdef TOOL_QT6_USE_KSUBMIT 355 383 ifeq ($(KBUILD_HOST),win) 356 TOOL_QT 5_MOC_KSUBMIT ?= kmk_builtin_kSubmit --$(SP)384 TOOL_QT6_MOC_KSUBMIT ?= kmk_builtin_kSubmit --$(SP) 357 385 endif 358 386 endif 359 387 360 388 # General Properties used by kBuild and/or units/qt.kmk 361 TOOL_QT 5_MOCFLAGS ?=362 TOOL_QT 5_MOCINCS ?=363 TOOL_QT 5_MOCDEFS ?=364 TOOL_QT 5_MOCDEFS.darwin ?= __APPLE__ __GNUC__365 TOOL_QT 5_MOCDEFS.solaris ?= __sun366 TOOL_QT 5_MOCDEFS.win.amd64 ?= WIN64367 TOOL_QT 5_MOCDEFS.win.x86 ?= WIN32389 TOOL_QT6_MOCFLAGS ?= 390 TOOL_QT6_MOCINCS ?= 391 TOOL_QT6_MOCDEFS ?= 392 TOOL_QT6_MOCDEFS.darwin ?= __APPLE__ __GNUC__ 393 TOOL_QT6_MOCDEFS.solaris ?= __sun 394 TOOL_QT6_MOCDEFS.win.amd64 ?= WIN64 395 TOOL_QT6_MOCDEFS.win.x86 ?= WIN32 368 396 369 397 … … 378 406 # @param $(outbase) Output basename (full). Use this for list files and such. 379 407 # 380 TOOL_QT 5_MOC_CPP_DEPEND =381 TOOL_QT 5_MOC_CPP_DEPORD =382 TOOL_QT 5_MOC_CPP_OUTPUT =383 TOOL_QT 5_MOC_CPP_OUTPUT_MAYBE =408 TOOL_QT6_MOC_CPP_DEPEND = 409 TOOL_QT6_MOC_CPP_DEPORD = 410 TOOL_QT6_MOC_CPP_OUTPUT = 411 TOOL_QT6_MOC_CPP_OUTPUT_MAYBE = 384 412 ifdef KMK_WITH_QUOTING 385 define TOOL_QT 5_MOC_CPP_CMDS386 $(QUIET)$(TOOL_QT 5_MOC_KSUBMIT)$(TOOL_QT5_MOC)\413 define TOOL_QT6_MOC_CPP_CMDS 414 $(QUIET)$(TOOL_QT6_MOC_KSUBMIT)$(TOOL_QT6_MOC)\ 387 415 $(flags)\ 388 416 $(qaddprefix sh,-I, $(incs))\ … … 392 420 endef 393 421 else 394 define TOOL_QT 5_MOC_CPP_CMDS395 $(QUIET)$(TOOL_QT 5_MOC_KSUBMIT)$(TOOL_QT5_MOC)\422 define TOOL_QT6_MOC_CPP_CMDS 423 $(QUIET)$(TOOL_QT6_MOC_KSUBMIT)$(TOOL_QT6_MOC)\ 396 424 $(flags)\ 397 425 $(addprefix -I, $(incs))\ … … 412 440 # @param $(outbase) Output basename (full). Use this for list files and such. 413 441 # 414 TOOL_QT 5_MOC_HPP_DEPEND =415 TOOL_QT 5_MOC_HPP_DEPORD =416 TOOL_QT 5_MOC_HPP_OUTPUT =417 TOOL_QT 5_MOC_HPP_OUTPUT_MAYBE =442 TOOL_QT6_MOC_HPP_DEPEND = 443 TOOL_QT6_MOC_HPP_DEPORD = 444 TOOL_QT6_MOC_HPP_OUTPUT = 445 TOOL_QT6_MOC_HPP_OUTPUT_MAYBE = 418 446 ifdef KMK_WITH_QUOTING 419 define TOOL_QT 5_MOC_HPP_CMDS420 $(QUIET)$(TOOL_QT 5_MOC_KSUBMIT)$(TOOL_QT5_MOC)\447 define TOOL_QT6_MOC_HPP_CMDS 448 $(QUIET)$(TOOL_QT6_MOC_KSUBMIT)$(TOOL_QT6_MOC)\ 421 449 $(flags)\ 422 450 $(qaddprefix sh,-I, $(incs))\ … … 426 454 endef 427 455 else 428 define TOOL_QT 5_MOC_HPP_CMDS429 $(QUIET)$(TOOL_QT 5_MOC_KSUBMIT)$(TOOL_QT5_MOC)\456 define TOOL_QT6_MOC_HPP_CMDS 457 $(QUIET)$(TOOL_QT6_MOC_KSUBMIT)$(TOOL_QT6_MOC)\ 430 458 $(flags)\ 431 459 $(addprefix -I, $(incs))\ … … 446 474 # @param $(outbase) Output basename (full). Use this for list files and such. 447 475 # 448 TOOL_QT 5_UIC_UI_DEPEND =449 TOOL_QT 5_UIC_UI_DEPORD =450 TOOL_QT 5_UIC_UI_OUTPUT =451 TOOL_QT 5_UIC_UI_OUTPUT_MAYBE =452 define TOOL_QT 5_UIC_UI_CMDS453 $(QUIET)$(TOOL_QT 5_UIC)\476 TOOL_QT6_UIC_UI_DEPEND = 477 TOOL_QT6_UIC_UI_DEPORD = 478 TOOL_QT6_UIC_UI_OUTPUT = 479 TOOL_QT6_UIC_UI_OUTPUT_MAYBE = 480 define TOOL_QT6_UIC_UI_CMDS 481 $(QUIET)$(TOOL_QT6_UIC)\ 454 482 $(flags)\ 455 483 -o $(out)\ … … 468 496 # 469 497 # @remarks The sed script generating the dependency file is a bit naive. 470 TOOL_QT 5_RCC_QRC_DEPEND =471 TOOL_QT 5_RCC_QRC_DEPORD =472 TOOL_QT 5_RCC_QRC_OUTPUT =473 TOOL_QT 5_RCC_QRC_OUTPUT_MAYBE =474 define TOOL_QT 5_RCC_QRC_CMDS475 $(QUIET)$(TOOL_QT 5_RCC)\498 TOOL_QT6_RCC_QRC_DEPEND = 499 TOOL_QT6_RCC_QRC_DEPORD = 500 TOOL_QT6_RCC_QRC_OUTPUT = 501 TOOL_QT6_RCC_QRC_OUTPUT_MAYBE = 502 define TOOL_QT6_RCC_QRC_CMDS 503 $(QUIET)$(TOOL_QT6_RCC)\ 476 504 $(flags)\ 477 505 -o $(out)\ … … 508 536 # @param $(outbase) Output basename (full). Use this for list files and such. 509 537 # 510 TOOL_QT 5_LRC_TS_DEPEND =511 TOOL_QT 5_LRC_TS_DEPORD =512 TOOL_QT 5_LRC_TS_OUTPUT =513 TOOL_QT 5_LRC_TS_OUTPUT_MAYBE =514 define TOOL_QT 5_LRC_TS_CMDS515 $(QUIET)$(TOOL_QT 5_LRC)\538 TOOL_QT6_LRC_TS_DEPEND = 539 TOOL_QT6_LRC_TS_DEPORD = 540 TOOL_QT6_LRC_TS_OUTPUT = 541 TOOL_QT6_LRC_TS_OUTPUT_MAYBE = 542 define TOOL_QT6_LRC_TS_CMDS 543 $(QUIET)$(TOOL_QT6_LRC)\ 516 544 $(flags)\ 517 545 $(source)\ … … 523 551 # 524 552 # 525 # Back to the Qt 5unit.553 # Back to the Qt6 unit. 526 554 # 527 555 # … … 530 558 ## wrapper for the lrelease (LRC) command dependencies. 531 559 ifndef NO_COMPILE_CMDS_DEPS 532 _UNIT_QT 5_LRC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT5_LRC_CMDS_PREV_),$$(commands $(out)),FORCE)533 else 534 _UNIT_QT 5_LRC_CMDS_DEP =560 _UNIT_QT6_LRC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT6_LRC_CMDS_PREV_),$$(commands $(out)),FORCE) 561 else 562 _UNIT_QT6_LRC_CMDS_DEP = 535 563 endif 536 564 537 565 ## 538 # def_unit_qt 5_target_pre_handle_translation helper that is expanded before evaluation.566 # def_unit_qt6_target_pre_handle_translation helper that is expanded before evaluation. 539 567 # 540 568 # This is necessary to resolve reference to local variables before doing … … 542 570 # later in a different context and the result would be completely wrong. 543 571 # 544 define def_unit_qt 5_target_pre_handle_translation_dx572 define def_unit_qt6_target_pre_handle_translation_dx 545 573 546 574 $(out) + $(more_output) +| $(maybe_output): \ 547 575 $(deps) \ 548 $(value _UNIT_QT 5_LRC_CMDS_DEP) \576 $(value _UNIT_QT6_LRC_CMDS_DEP) \ 549 577 | \ 550 578 $(orderdeps) … … 557 585 ifdef KBUILD_HAVE_OPTIMIZED_APPEND 558 586 %$$(QUIET2)$$(APPEND) -ni '$(dep)' \ 559 'define $(target)_$(subst :,_,$(source))_QT 5_LRC_CMDS_PREV_' \587 'define $(target)_$(subst :,_,$(source))_QT6_LRC_CMDS_PREV_' \ 560 588 '--insert-command=$(out)' \ 561 589 'endef' 562 590 else 563 591 %$$(QUIET2)$$(APPEND) '$(dep)' 564 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT 5_LRC_CMDS_PREV_'592 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT6_LRC_CMDS_PREV_' 565 593 %$$(QUIET2)$$(APPEND) -c '$(dep)' '$(out)' 566 594 %$$(QUIET2)$$(APPEND) '$(dep)' 'endef' … … 571 599 $(target)-inst-nls_SOURCES += $(out) 572 600 573 endef # def_unit_qt 5_target_pre_handle_translation_dx601 endef # def_unit_qt6_target_pre_handle_translation_dx 574 602 575 603 ## … … 580 608 # 581 609 # @remarks Invoked via $(evalvalctx ). 582 define def_unit_qt 5_target_pre_handle_translation610 define def_unit_qt6_target_pre_handle_translation 583 611 local type := LRC 584 612 … … 622 650 $(eval includedep $(dep)) 623 651 endif 624 $(eval $(def_unit_qt 5_target_pre_handle_translation_dx))625 626 endef # def_unit_qt 5_target_pre_handle_translation652 $(eval $(def_unit_qt6_target_pre_handle_translation_dx)) 653 654 endef # def_unit_qt6_target_pre_handle_translation 627 655 628 656 … … 630 658 ## wrapper for the UIC command dependencies. 631 659 ifndef NO_COMPILE_CMDS_DEPS 632 _UNIT_QT 5_RCC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT5_RCC_CMDS_PREV_),$$(commands $(out)),FORCE)633 else 634 _UNIT_QT 5_RCC_CMDS_DEP =660 _UNIT_QT6_RCC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT6_RCC_CMDS_PREV_),$$(commands $(out)),FORCE) 661 else 662 _UNIT_QT6_RCC_CMDS_DEP = 635 663 endif 636 664 637 665 ## 638 # def_unit_qt 5_target_pre_handle_qrc helper that is expanded before evaluation.666 # def_unit_qt6_target_pre_handle_qrc helper that is expanded before evaluation. 639 667 # 640 668 # This is necessary to resolve reference to local variables before doing … … 642 670 # later in a different context and the result would be completely wrong. 643 671 # 644 define def_unit_qt 5_target_pre_handle_rcc_dx672 define def_unit_qt6_target_pre_handle_rcc_dx 645 673 646 674 $(out) +| $(realout) $(more_output) $(maybe_output): \ 647 675 $(deps) \ 648 $(value _UNIT_QT 5_RCC_CMDS_DEP) \676 $(value _UNIT_QT6_RCC_CMDS_DEP) \ 649 677 | \ 650 678 $(orderdeps) … … 658 686 ifdef KBUILD_HAVE_OPTIMIZED_APPEND 659 687 %$$(QUIET2)$$(APPEND) -ni '$(dep)' \ 660 'define $(target)_$(subst :,_,$(source))_QT 5_RCC_CMDS_PREV_' \688 'define $(target)_$(subst :,_,$(source))_QT6_RCC_CMDS_PREV_' \ 661 689 '--insert-command=$(out)' \ 662 690 'endef' 663 691 else 664 692 %$$(QUIET2)$$(APPEND) '$(dep)' 665 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT 5_RCC_CMDS_PREV_'693 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT6_RCC_CMDS_PREV_' 666 694 %$$(QUIET2)$$(APPEND) -c '$(dep)' '$(out)' 667 695 %$$(QUIET2)$$(APPEND) '$(dep)' 'endef' … … 673 701 $(target)_CLEAN += $(out) $(realout) $(more_output) $(maybe_output) $(dep) 674 702 675 endef # def_unit_qt 5_target_pre_handle_rcc_dx703 endef # def_unit_qt6_target_pre_handle_rcc_dx 676 704 677 705 ## … … 679 707 # 680 708 # @remarks $(evalvalctx me). 681 define def_unit_qt 5_src_handler_qrc709 define def_unit_qt6_src_handler_qrc 682 710 local type := RCC 683 711 … … 722 750 $(eval includedep $(dep)) 723 751 endif 724 $(eval $(def_unit_qt 5_target_pre_handle_rcc_dx))725 726 endef # def_unit_qt 5_src_handler_qrc752 $(eval $(def_unit_qt6_target_pre_handle_rcc_dx)) 753 754 endef # def_unit_qt6_src_handler_qrc 727 755 728 756 … … 730 758 ## wrapper for the UIC command dependencies. 731 759 ifndef NO_COMPILE_CMDS_DEPS 732 _UNIT_QT 5_UIC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT5_UIC_CMDS_PREV_),$$(commands $(out)),FORCE)733 else 734 _UNIT_QT 5_UIC_CMDS_DEP =760 _UNIT_QT6_UIC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT6_UIC_CMDS_PREV_),$$(commands $(out)),FORCE) 761 else 762 _UNIT_QT6_UIC_CMDS_DEP = 735 763 endif 736 764 737 765 ## 738 # def_unit_qt 5_src_handler_ui helper that is expanded before evaluation.766 # def_unit_qt6_src_handler_ui helper that is expanded before evaluation. 739 767 # 740 768 # This is necessary to resolve reference to local variables before doing … … 742 770 # later in a different context and the result would be completely wrong. 743 771 # 744 define def_unit_qt 5_target_pre_handle_ui_dx772 define def_unit_qt6_target_pre_handle_ui_dx 745 773 746 774 $(out) +| $(realout) $(more_output) $(maybe_output): \ 747 775 $(deps) \ 748 $(value _UNIT_QT 5_UIC_CMDS_DEP) \776 $(value _UNIT_QT6_UIC_CMDS_DEP) \ 749 777 | \ 750 778 $(orderdeps) … … 758 786 ifdef KBUILD_HAVE_OPTIMIZED_APPEND 759 787 %$$(QUIET2)$$(APPEND) -ni '$(dep)' \ 760 'define $(target)_$(subst :,_,$(source))_QT 5_UIC_CMDS_PREV_' \788 'define $(target)_$(subst :,_,$(source))_QT6_UIC_CMDS_PREV_' \ 761 789 '--insert-command=$(out)' \ 762 790 'endef' 763 791 else 764 792 %$$(QUIET2)$$(APPEND) '$(dep)' 765 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT 5_UIC_CMDS_PREV_'793 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT6_UIC_CMDS_PREV_' 766 794 %$$(QUIET2)$$(APPEND) -c '$(dep)' '$(out)' 767 795 %$$(QUIET2)$$(APPEND) '$(dep)' 'endef' … … 772 800 $(target)_CLEAN += $(out) $(realout) $(more_output) $(maybe_output) $(dep) 773 801 774 endef # def_unit_qt 5_target_pre_handle_ui_dx802 endef # def_unit_qt6_target_pre_handle_ui_dx 775 803 776 804 ## … … 778 806 # 779 807 # @remarks $(evalvalctx me). 780 define def_unit_qt 5_src_handler_ui808 define def_unit_qt6_src_handler_ui 781 809 local type := UIC 782 810 … … 821 849 $(eval includedep $(dep)) 822 850 endif 823 $(eval $(def_unit_qt 5_target_pre_handle_ui_dx))824 825 endef # def_unit_qt 5_src_handler_ui851 $(eval $(def_unit_qt6_target_pre_handle_ui_dx)) 852 853 endef # def_unit_qt6_src_handler_ui 826 854 827 855 … … 829 857 ## wrapper for the MOC command dependencies. 830 858 ifndef NO_COMPILE_CMDS_DEPS 831 _UNIT_QT 5_MOC_HPP_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT5_MOC_HPP_CMDS_PREV_),$$(commands $(out)),FORCE)832 else 833 _UNIT_QT 5_MOC_HPP_CMDS_DEP =859 _UNIT_QT6_MOC_HPP_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT6_MOC_HPP_CMDS_PREV_),$$(commands $(out)),FORCE) 860 else 861 _UNIT_QT6_MOC_HPP_CMDS_DEP = 834 862 endif 835 863 836 864 ## 837 # def_unit_qt 5_target_pre_handle_moc_hdr helper that is expanded before evaluation.865 # def_unit_qt6_target_pre_handle_moc_hdr helper that is expanded before evaluation. 838 866 # 839 867 # This is necessary to resolve reference to local variables before doing … … 841 869 # later in a different context and the result would be completely wrong. 842 870 # 843 define def_unit_qt 5_target_pre_handle_moc_hdr_dx871 define def_unit_qt6_target_pre_handle_moc_hdr_dx 844 872 845 873 $(out) +| $(realout) $(more_output) $(maybe_output): \ 846 874 $(deps) \ 847 $(value _UNIT_QT 5_MOC_HPP_CMDS_DEP) \875 $(value _UNIT_QT6_MOC_HPP_CMDS_DEP) \ 848 876 | \ 849 877 $(orderdeps) $(my_target_intermediate_vars) … … 857 885 ifdef KBUILD_HAVE_OPTIMIZED_APPEND 858 886 %$$(QUIET2)$$(APPEND) -ni '$(dep)' \ 859 'define $(target)_$(subst :,_,$(source))_QT 5_MOC_HPP_CMDS_PREV_' \887 'define $(target)_$(subst :,_,$(source))_QT6_MOC_HPP_CMDS_PREV_' \ 860 888 '--insert-command=$(out)' \ 861 889 'endef' 862 890 else 863 891 %$$(QUIET2)$$(APPEND) '$(dep)' 864 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT 5_MOC_HPP_CMDS_PREV_'892 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT6_MOC_HPP_CMDS_PREV_' 865 893 %$$(QUIET2)$$(APPEND) -c '$(dep)' '$(out)' 866 894 %$$(QUIET2)$$(APPEND) '$(dep)' 'endef' … … 884 912 # 885 913 # @remarks Invoked via $(evalvalctx ). 886 define def_unit_qt 5_target_pre_handle_moc_hdr914 define def_unit_qt6_target_pre_handle_moc_hdr 887 915 local type := MOC 888 916 … … 928 956 $(eval includedep $(dep)) 929 957 endif 930 $(eval $(def_unit_qt 5_target_pre_handle_moc_hdr_dx))931 932 endef # def_unit_qt 5_target_pre_handle_moc_hdr958 $(eval $(def_unit_qt6_target_pre_handle_moc_hdr_dx)) 959 960 endef # def_unit_qt6_target_pre_handle_moc_hdr 933 961 934 962 935 963 ## wrapper for the MOC command dependencies. 936 964 ifndef NO_COMPILE_CMDS_DEPS 937 _UNIT_QT 5_MOC_CPP_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT5_MOC_CPP_CMDS_PREV_),$$(commands $(out)),FORCE)938 else 939 _UNIT_QT 5_MOC_CPP_CMDS_DEP =965 _UNIT_QT6_MOC_CPP_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT6_MOC_CPP_CMDS_PREV_),$$(commands $(out)),FORCE) 966 else 967 _UNIT_QT6_MOC_CPP_CMDS_DEP = 940 968 endif 941 969 942 970 ## 943 # def_unit_qt 5_target_pre_handle_moc_src helper that is expanded before evaluation.971 # def_unit_qt6_target_pre_handle_moc_src helper that is expanded before evaluation. 944 972 # 945 973 # This is necessary to resolve reference to local variables before doing … … 947 975 # later in a different context and the result would be completely wrong. 948 976 # 949 define def_unit_qt 5_target_pre_handle_moc_src_dx977 define def_unit_qt6_target_pre_handle_moc_src_dx 950 978 951 979 $(out) +| $(realout) $(more_output) $(maybe_output): \ 952 980 $(deps) \ 953 $(value _UNIT_QT 5_MOC_CPP_CMDS_DEP) \981 $(value _UNIT_QT6_MOC_CPP_CMDS_DEP) \ 954 982 | \ 955 983 $(orderdeps) $(my_target_intermediate_vars) … … 963 991 ifdef KBUILD_HAVE_OPTIMIZED_APPEND 964 992 %$$(QUIET2)$$(APPEND) -ni '$(dep)' \ 965 'define $(target)_$(subst :,_,$(source))_QT 5_MOC_CPP_CMDS_PREV_' \993 'define $(target)_$(subst :,_,$(source))_QT6_MOC_CPP_CMDS_PREV_' \ 966 994 '--insert-command=$(out)' \ 967 995 'endef' 968 996 else 969 997 %$$(QUIET2)$$(APPEND) '$(dep)' 970 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT 5_MOC_CPP_CMDS_PREV_'998 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT6_MOC_CPP_CMDS_PREV_' 971 999 %$$(QUIET2)$$(APPEND) -c '$(dep)' '$(out)' 972 1000 %$$(QUIET2)$$(APPEND) '$(dep)' 'endef' … … 986 1014 # 987 1015 # @remarks Invoked via $(evalvalctx ). 988 define def_unit_qt 5_target_pre_handle_moc_src1016 define def_unit_qt6_target_pre_handle_moc_src 989 1017 local type := MOC 990 1018 … … 1030 1058 $(eval includedep $(dep)) 1031 1059 endif 1032 $(eval $(def_unit_qt 5_target_pre_handle_moc_src_dx))1033 1034 endef # def_unit_qt 5_target_pre_handle_moc_src1060 $(eval $(def_unit_qt6_target_pre_handle_moc_src_dx)) 1061 1062 endef # def_unit_qt6_target_pre_handle_moc_src 1035 1063 1036 1064 1037 1065 ## 1038 1066 # Adds sources containing Q_OBJECT to QT_MOCSRCS. 1039 define def_unit_qt 5_target_pre_cpp_source1067 define def_unit_qt6_target_pre_cpp_source 1040 1068 ifneq ($(file-size $(source)),-1) 1041 1069 ifneq ($(strip $(shell $(SED) -f $(KBUILD_PATH)/units/qt-Q_OBJECT.sed $(source))),) … … 1043 1071 endif 1044 1072 endif 1045 endef # def_unit_qt 5_target_pre_cpp_source1073 endef # def_unit_qt6_target_pre_cpp_source 1046 1074 1047 1075 ## … … 1054 1082 # a .moc files and generate rules and dependencies fofor these 1055 1083 # 1056 define def_unit_qt 5_target_pre1084 define def_unit_qt6_target_pre 1057 1085 1058 1086 # Make QTTOOL the default for the specific Qt tools instead of TOOL. … … 1096 1124 ifeq ($(bld_trg),darwin) 1097 1125 # Adding -F to CXXFLAGS is necessary to make #include <QtCore/qstring.h> stuff work... 1098 $(eval $(target)_CXXFLAGS += -F$(PATH_SDK_QT 5_LIB) )1099 $(eval $(target)_OBJCXXFLAGS += -F$(PATH_SDK_QT 5_LIB) )1100 $(eval $(target)_LDFLAGS += -F$(PATH_SDK_QT 5_LIB) $(foreach module,$(qt_modules), -framework $(qt_prefix)Qt$(module)$(qt_infix)) )1101 $(eval $(target)_INCS += $(foreach module,$(qt_modules), $(PATH_SDK_QT 5_LIB)/$(qt_prefix)Qt$(module)$(qt_infix).framework/Versions/5/Headers) )1126 $(eval $(target)_CXXFLAGS += -F$(PATH_SDK_QT6_LIB) ) 1127 $(eval $(target)_OBJCXXFLAGS += -F$(PATH_SDK_QT6_LIB) ) 1128 $(eval $(target)_LDFLAGS += -F$(PATH_SDK_QT6_LIB) $(foreach module,$(qt_modules), -framework $(qt_prefix)Qt$(module)$(qt_infix)) ) 1129 $(eval $(target)_INCS += $(foreach module,$(qt_modules), $(PATH_SDK_QT6_LIB)/$(qt_prefix)Qt$(module)$(qt_infix).framework/Versions/6/Headers) ) 1102 1130 else 1103 1131 ifeq ($(bld_trg),win) 1104 $(eval $(target)_LIBS += $(foreach module,$(qt_modules), $(PATH_SDK_QT 5_LIB)/$(qt_prefix)Qt5$(module)$(qt_infix)$(SUFF_LIB)) )1132 $(eval $(target)_LIBS += $(foreach module,$(qt_modules), $(PATH_SDK_QT6_LIB)/$(qt_prefix)Qt6$(module)$(qt_infix)$(SUFF_LIB)) ) 1105 1133 ifeq ($(tool_do),LINK_PROGRAM) 1106 $(eval $(target)_LIBS += $(PATH_SDK_QT 5_LIB)/$(qt_prefix)qtmain$(qt_infix)$(SUFF_LIB) )1134 $(eval $(target)_LIBS += $(PATH_SDK_QT6_LIB)/$(qt_prefix)qtmain$(qt_infix)$(SUFF_LIB) ) 1107 1135 endif 1108 1136 else 1109 $(eval $(target)_LIBS += $(foreach module,$(qt_modules), $(PATH_SDK_QT 5_LIB)/lib$(qt_prefix)Qt5$(module)$(qt_infix)$(SUFF_DLL)) )1110 endif 1111 $(eval $(target)_INCS += $(addprefix $(PATH_SDK_QT 5_INC)/Qt,$(qt_modules)) $(PATH_SDK_QT5_INC) )1137 $(eval $(target)_LIBS += $(foreach module,$(qt_modules), $(PATH_SDK_QT6_LIB)/lib$(qt_prefix)Qt6$(module)$(qt_infix)$(SUFF_DLL)) ) 1138 endif 1139 $(eval $(target)_INCS += $(addprefix $(PATH_SDK_QT6_INC)/Qt,$(qt_modules)) $(PATH_SDK_QT6_INC) ) 1112 1140 endif 1113 1141 $(eval $(target)_DEFS += $(foreach module,$(toupper $(qt_modules)), QT_$(module)_LIB) ) … … 1124 1152 $($(target)_SOURCES.$(bld_type)) \ 1125 1153 $($(target)_SOURCES) \ 1126 ), $(evalval def_unit_qt 5_target_pre_cpp_source))1154 ), $(evalval def_unit_qt6_target_pre_cpp_source)) 1127 1155 endif 1128 1156 1129 1157 # Install source handlers for .ui files. 1130 1158 $(target)_SRC_HANDLERS += \ 1131 .ui:def_unit_qt 5_src_handler_ui \1132 .UI:def_unit_qt 5_src_handler_ui \1133 .qrc:def_unit_qt 5_src_handler_qrc \1134 .qrc:def_unit_qt 5_src_handler_qrc1159 .ui:def_unit_qt6_src_handler_ui \ 1160 .UI:def_unit_qt6_src_handler_ui \ 1161 .qrc:def_unit_qt6_src_handler_qrc \ 1162 .qrc:def_unit_qt6_src_handler_qrc 1135 1163 1136 1164 # Calc the MOC and UI output directories and add them to BLDDIRS and INCS. … … 1154 1182 $($(target)_QT_MOCSRCS.$(bld_type)) \ 1155 1183 $($(target)_QT_MOCSRCS) \ 1156 , $(evalvalctx def_unit_qt 5_target_pre_handle_moc_src))1184 , $(evalvalctx def_unit_qt6_target_pre_handle_moc_src)) 1157 1185 1158 1186 # Deal with QT_MOCHDRS. … … 1164 1192 $($(target)_QT_MOCHDRS.$(bld_type)) \ 1165 1193 $($(target)_QT_MOCHDRS) \ 1166 , $(evalvalctx def_unit_qt 5_target_pre_handle_moc_hdr))1194 , $(evalvalctx def_unit_qt6_target_pre_handle_moc_hdr)) 1167 1195 1168 1196 # Deal with QT_TRANSLATIONS. … … 1188 1216 $(target)-inst-nls_SOURCES := 1189 1217 $(foreach source, $(translations)\ 1190 , $(evalvalctx def_unit_qt 5_target_pre_handle_translation))1191 endif 1192 1193 endef # def_unit_qt 5_target_pre1218 , $(evalvalctx def_unit_qt6_target_pre_handle_translation)) 1219 endif 1220 1221 endef # def_unit_qt6_target_pre 1194 1222 1195 1223 … … 1197 1225 # Rule for debugging. 1198 1226 # 1199 unit-qt5-show-vars: 1200 @$(ECHO) 'The Qt5 SDK variables:' 1201 @$(ECHO) ' PATH_SDK_QT5 = "$(PATH_SDK_QT5)"' 1202 @$(ECHO) ' PATH_SDK_QT5_INC = "$(PATH_SDK_QT5_INC)"' 1203 @$(ECHO) ' PATH_SDK_QT5_LIB = "$(PATH_SDK_QT5_LIB)"' 1204 @$(ECHO) ' PATH_SDK_QT5_LIB.amd64 = "$(PATH_SDK_QT5_LIB.amd64)"' 1205 @$(ECHO) ' PATH_SDK_QT5_LIB.x86 = "$(PATH_SDK_QT5_LIB.x86)"' 1206 @$(ECHO) 'The Qt5 TOOL variables:' 1207 @$(ECHO) ' PATH_TOOL_QT5_BIN = "$(PATH_TOOL_QT5_BIN)"' 1208 @$(ECHO) ' TOOL_QT5_BIN_SUFF = "$(TOOL_QT5_BIN_SUFF)"' 1209 @$(ECHO) ' TOOL_QT5_MOC = "$(TOOL_QT5_MOC)"' 1210 @$(ECHO) ' TOOL_QT5_UIC = "$(TOOL_QT5_UIC)"' 1211 @$(ECHO) ' TOOL_QT5_RCC = "$(TOOL_QT5_RCC)"' 1212 @$(ECHO) ' TOOL_QT5_LRC = "$(TOOL_QT5_LRC)"' 1213 @$(ECHO) ' TOOL_QT5_LUPDATE = "$(TOOL_QT5_LUPDATE)"' 1214 1227 unit-qt6-show-vars: 1228 @$(ECHO) 'The Qt6 SDK variables:' 1229 @$(ECHO) ' PATH_SDK_QT6 = "$(PATH_SDK_QT6)"' 1230 @$(ECHO) ' PATH_SDK_QT6_INC = "$(PATH_SDK_QT6_INC)"' 1231 @$(ECHO) ' PATH_SDK_QT6_LIB = "$(PATH_SDK_QT6_LIB)"' 1232 @$(ECHO) ' PATH_SDK_QT6_LIB.amd64 = "$(PATH_SDK_QT6_LIB.amd64)"' 1233 @$(ECHO) ' PATH_SDK_QT6_LIB.x86 = "$(PATH_SDK_QT6_LIB.x86)"' 1234 @$(ECHO) 'The Qt6 TOOL variables:' 1235 @$(ECHO) ' PATH_TOOL_QT6_BIN = "$(PATH_TOOL_QT6_BIN)"' 1236 @$(ECHO) ' PATH_TOOL_QT6_LIBEXEC = "$(PATH_TOOL_QT6_LIBEXEC)"' 1237 @$(ECHO) ' TOOL_QT6_BIN_SUFF = "$(TOOL_QT6_BIN_SUFF)"' 1238 @$(ECHO) ' TOOL_QT6_LIBEXEC_SUFF = "$(TOOL_QT6_LIBEXEC_SUFF)"' 1239 @$(ECHO) ' TOOL_QT6_MOC = "$(TOOL_QT6_MOC)"' 1240 @$(ECHO) ' TOOL_QT6_UIC = "$(TOOL_QT6_UIC)"' 1241 @$(ECHO) ' TOOL_QT6_RCC = "$(TOOL_QT6_RCC)"' 1242 @$(ECHO) ' TOOL_QT6_LRC = "$(TOOL_QT6_LRC)"' 1243 @$(ECHO) ' TOOL_QT6_LUPDATE = "$(TOOL_QT6_LUPDATE)"' 1244
Note:
See TracChangeset
for help on using the changeset viewer.