Changeset 1684 for trunk/kBuild
- Timestamp:
- Jul 15, 2008, 4:26:07 AM (17 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/units/qt3.kmk
r1681 r1684 1 1 # $Id$ 2 2 ## @file 3 # Qt 4unit.3 # Qt 3 unit. 4 4 # 5 5 … … 25 25 # 26 26 27 UNIT_qt4 = qt4 28 29 # Add our target properties. 30 PROPS_SINGLE += QTTOOL MOCTOOL UICTOOL RCCTOOL LRCTOOL QT_TRANSLATIONS_INST QT_TRANSLATIONS_TEMPLATE QT_PREFIX 31 PROPS_ACCUMULATE_R += MOCDEFS MOCFLAGS UICFLAGS RCCFLAGS LRCFLAGS QT_TRANSLATIONS QT_MOCSRCS QT_MOCHDRS QT_MODULES 32 33 34 # 35 # The QT4 SDK. 27 ifdef UNIT_qt3 28 $(error kBuild: The qt3 unit was included twice!) 29 endif 30 UNIT_qt3 = qt3 31 32 33 ifndef UNIT_qt4 34 # Add our target properties (same as qt4). 35 PROPS_SINGLE += QTTOOL MOCTOOL UICTOOL LRCTOOL QT_TRANSLATIONS_INST QT_TRANSLATIONS_TEMPLATE QT_PREFIX 36 PROPS_ACCUMULATE_R += MOCDEFS MOCFLAGS UICFLAGS LRCFLAGS QT_TRANSLATIONS QT_MOCSRCS QT_MOCHDRS 37 endif 38 PROPS_SINGLE += 39 PROPS_ACCUMULATE_R += 40 41 42 # 43 # The QT3 SDK. 36 44 # 37 45 # This is implemented here rather than in sdks/QT4.kmk to enforce the global USES. … … 40 48 ## @todo the SDK might actually not be necessary as it turns out... For now it servers 41 49 # a purpose if the host differs from the target, in theory at least. 42 SDK_QT 4 = Qt450 SDK_QT3 = Qt3 43 51 44 52 # SDK Specific Properties 45 ifndef PATH_SDK_QT 446 PATH_SDK_QT 4 := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v4*)))47 ifeq ($(PATH_SDK_QT 4),)53 ifndef PATH_SDK_QT3 54 PATH_SDK_QT3 := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_TRG)/qt/v3*))) 55 ifeq ($(PATH_SDK_QT3),) 48 56 # If target == host, try look for Qt in the various platform specific places. 49 57 ifeq ($(KBUILD_TARGET),$(KBUILD_HOST)) 50 58 ifeq ($(KBUILD_TARGET),darwin) 51 PATH_SDK_QT4 := $(patsubst %/Frameworks/QtCore.framework/Versions/4,%,$(firstword $(wildcard /Library/Frameworks/QtCore.framework/Versions/4))) 59 # No idea here yet... 60 else ifeq ($(KBUILD_TARGET),os2) 61 # No idea here yet... 52 62 else ifeq ($(KBUILD_TARGET),win) 53 63 # No idea here yet... 54 64 else 55 # The Unices. Includes and esp. libs are tricky, so override the PATH_SDK_QT 4_LIB* stuff if it doesn't work.56 PATH_SDK_QT 4 := $(patsubst %/bin/qt3to4,%,$(firstword $(wildcard /usr/bin/qt3to4 /usr/local/bin/qt3to4 /usr/qt/4/bin/qt3to4)))57 ifneq ($(PATH_SDK_QT 4),)58 ifeq ($(PATH_SDK_QT 4_INC),)59 PATH_SDK_QT 4_INC := $(patsubst %/QtCore/qglobal.h,%,$(firstword $(wildcard $(PATH_SDK_QT4)/include/QtCore/qglobal.h $(PATH_SDK_QT4)/include/qt4/QtCore/qglobal.h)))65 # The Unices. Includes and esp. libs are tricky, so override the PATH_SDK_QT3_LIB* stuff if it doesn't work. 66 PATH_SDK_QT3 := $(patsubst %/bin/qm2ts,%,$(firstword $(wildcard /usr/bin/qm2ts /usr/local/bin/qm2ts /usr/qt/3/bin/qm2ts))) 67 ifneq ($(PATH_SDK_QT3),) 68 ifeq ($(PATH_SDK_QT3_INC),) 69 PATH_SDK_QT3_INC := $(patsubst %/private/qfiledefs_p.h,%,$(firstword $(wildcard $(PATH_SDK_QT3)/include/private/qfiledefs_p.h $(PATH_SDK_QT3)/include/qt3/private/qfiledefs_p.h))) 60 70 endif 61 ifeq ($(PATH_SDK_QT 4_LIB.x86),)62 PATH_SDK_QT 4_LIB.x86 := $(patsubst %/libQtCore$(SUFF_DLL),%,$(firstword $(wildcard \63 $(PATH_SDK_QT 4)/lib32/libQtCore$(SUFF_DLL) \64 $(PATH_SDK_QT 4)/lib32/qt4/libQtCore$(SUFF_DLL) \65 $(PATH_SDK_QT 4)/lib/libQtCore$(SUFF_DLL) \66 $(PATH_SDK_QT 4)/lib/qt4/libQtCore$(SUFF_DLL) \71 ifeq ($(PATH_SDK_QT3_LIB.x86),) 72 PATH_SDK_QT3_LIB.x86 := $(patsubst %/libqt-mt$(SUFF_DLL),%,$(firstword $(wildcard \ 73 $(PATH_SDK_QT3)/lib32/libqt-mt$(SUFF_DLL) \ 74 $(PATH_SDK_QT3)/lib32/qt3/libqt-mt$(SUFF_DLL) \ 75 $(PATH_SDK_QT3)/lib/libqt-mt$(SUFF_DLL) \ 76 $(PATH_SDK_QT3)/lib/qt3/libqt-mt$(SUFF_DLL) \ 67 77 ))) 68 78 endif 69 ifeq ($(PATH_SDK_QT 4_LIB.amd64),)70 PATH_SDK_QT 4_LIB.amd64 := $(patsubst %/libQtCore$(SUFF_DLL),%,$(firstword $(wildcard \71 $(PATH_SDK_QT 4)/lib64/libQtCore$(SUFF_DLL) \72 $(PATH_SDK_QT 4)/lib64/qt4/libQtCore$(SUFF_DLL) \73 $(PATH_SDK_QT 4)/lib/amd64/libQtCore$(SUFF_DLL) \74 $(PATH_SDK_QT 4)/lib/libQtCore$(SUFF_DLL) \75 $(PATH_SDK_QT 4)/lib/qt4/libQtCore$(SUFF_DLL) \79 ifeq ($(PATH_SDK_QT3_LIB.amd64),) 80 PATH_SDK_QT3_LIB.amd64 := $(patsubst %/libqt-mt$(SUFF_DLL),%,$(firstword $(wildcard \ 81 $(PATH_SDK_QT3)/lib64/libqt-mt$(SUFF_DLL) \ 82 $(PATH_SDK_QT3)/lib64/qt3/libqt-mt$(SUFF_DLL) \ 83 $(PATH_SDK_QT3)/lib/amd64/libqt-mt$(SUFF_DLL) \ 84 $(PATH_SDK_QT3)/lib/libqt-mt$(SUFF_DLL) \ 85 $(PATH_SDK_QT3)/lib/qt3/libqt-mt$(SUFF_DLL) \ 76 86 ))) 77 87 endif 78 ifeq ($(PATH_SDK_QT 4_LIB),)79 PATH_SDK_QT 4_LIB := $(PATH_SDK_QT4_LIB.$(KBUILD_TARGET))80 ifeq ($(PATH_SDK_QT 4_LIB),)81 PATH_SDK_QT 4_LIB := $(patsubst %/libQtCore$(SUFF_DLL),%,$(firstword $(wildcard \82 $(PATH_SDK_QT 4)/lib/libQtCore$(SUFF_DLL) \83 $(PATH_SDK_QT 4)/lib/qt4/libQtCore$(SUFF_DLL) \88 ifeq ($(PATH_SDK_QT3_LIB),) 89 PATH_SDK_QT3_LIB := $(PATH_SDK_QT3_LIB.$(KBUILD_TARGET)) 90 ifeq ($(PATH_SDK_QT3_LIB),) 91 PATH_SDK_QT3_LIB := $(patsubst %/libqt-mt$(SUFF_DLL),%,$(firstword $(wildcard \ 92 $(PATH_SDK_QT3)/lib/libqt-mt$(SUFF_DLL) \ 93 $(PATH_SDK_QT3)/lib/qt3/libqt-mt$(SUFF_DLL) \ 84 94 ))) 85 95 endif … … 89 99 endif 90 100 # Found it? 91 ifeq ($(PATH_SDK_QT 4),)101 ifeq ($(PATH_SDK_QT3),) 92 102 $(warning kBuild: Couldn't find the Qt4 headers and libaries...) 93 PATH_SDK_QT 4:= $(PATH_DEVTOOLS_TRG)/qt/not-found103 PATH_SDK_QT3 := $(PATH_DEVTOOLS_TRG)/qt/not-found 94 104 endif 95 105 endif 96 106 else 97 107 # Resolve any fancy stuff once and for all. 98 PATH_SDK_QT 4 := $(PATH_SDK_QT4)108 PATH_SDK_QT3 := $(PATH_SDK_QT3) 99 109 endif 100 110 101 111 # Libraries can be in either Frameworks or lib depending on how you 102 112 # build it on the mac. The .dmg installs into Frameworks but builds into lib. 103 ifeq ($(KBUILD_TARGET),darwin) 104 ifndef PATH_SDK_QT4_LIB 105 ifneq ($(wildcard $(PATH_SDK_QT4)/Frameworks),) 106 PATH_SDK_QT4_LIB ?= $(PATH_SDK_QT4)/Frameworks 107 else 108 PATH_SDK_QT4_LIB ?= $(PATH_SDK_QT4)/lib 109 endif 110 endif 111 else 112 PATH_SDK_QT4_LIB ?= $(PATH_SDK_QT4)/lib 113 PATH_SDK_QT4_INC ?= $(PATH_SDK_QT4)/include 114 endif 113 PATH_SDK_QT3_LIB ?= $(PATH_SDK_QT3)/lib 114 PATH_SDK_QT3_INC ?= $(PATH_SDK_QT3)/include 115 115 116 116 # The bits that kBuild picks up. … … 119 119 120 120 # 121 # The QT 4tool.122 # 123 # This is implemented here rather than in tools/QT 4.kmk to enforce the global USES.121 # The QT3 tool. 122 # 123 # This is implemented here rather than in tools/QT3.kmk to enforce the global USES. 124 124 # It also makes things easier to develop, with fewer files I mean. 125 125 # 126 TOOL_QT 4 = Qt4126 TOOL_QT3 = Qt3 127 127 128 128 # Tool Specific Properties 129 ifndef PATH_TOOL_QT4 130 PATH_TOOL_QT4 := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_BLD)/qt/v4*))) 129 ifndef PATH_TOOL_QT3 130 PATH_TOOL_QT3 := $(firstword $(rsort $(wildcard $(PATH_DEVTOOLS_BLD)/qt/v3*))) 131 ifeq ($(PATH_TOOL_QT3),) 132 PATH_TOOL_QT3 := $(patsubst %/bin/qm2ts,%,$(firstword $(wildcard /usr/bin/qm2ts /usr/local/bin/qm2ts /usr/qt/3/bin/qm2ts))) 133 endif 131 134 # If not found, we'll enter the 'pathless' mode. 132 135 else 133 136 # Resolve any fancy stuff once and for all. 134 PATH_TOOL_QT4 := $(PATH_TOOL_QT4) 135 endif 136 ifneq ($(PATH_TOOL_QT4),) 137 PATH_TOOL_QT4_BIN ?= $(PATH_TOOL_QT4)/bin 138 TOOL_QT4_MOC ?= $(PATH_TOOL_QT4_BIN)/moc$(HOST_SUFF_EXE) 139 TOOL_QT4_UIC ?= $(PATH_TOOL_QT4_BIN)/uic$(HOST_SUFF_EXE) 140 TOOL_QT4_RCC ?= $(PATH_TOOL_QT4_BIN)/rcc$(HOST_SUFF_EXE) 141 TOOL_QT4_LRC ?= $(PATH_TOOL_QT4_BIN)/lrelease$(HOST_SUFF_EXE) 142 TOOL_QT4_LUPDATE ?= $(PATH_TOOL_QT4_BIN)/lupdate$(HOST_SUFF_EXE) 137 PATH_TOOL_QT3 := $(PATH_TOOL_QT3) 138 endif 139 ifneq ($(PATH_TOOL_QT3),) 140 PATH_TOOL_QT3_BIN ?= $(PATH_TOOL_QT3)/bin 141 TOOL_QT3_MOC ?= $(PATH_TOOL_QT3_BIN)/moc$(HOST_SUFF_EXE) 142 TOOL_QT3_UIC ?= $(PATH_TOOL_QT3_BIN)/uic$(HOST_SUFF_EXE) 143 TOOL_QT3_LRC ?= $(PATH_TOOL_QT3_BIN)/lrelease$(HOST_SUFF_EXE) 144 TOOL_QT3_LUPDATE ?= $(PATH_TOOL_QT3_BIN)/lupdate$(HOST_SUFF_EXE) 143 145 else 144 146 # Pathless, relies on the environment. 145 TOOL_QT4_MOC ?= moc$(HOST_SUFF_EXE) 146 TOOL_QT4_UIC ?= uic$(HOST_SUFF_EXE) 147 TOOL_QT4_RCC ?= rcc$(HOST_SUFF_EXE) 148 TOOL_QT4_LRC ?= lrelease$(HOST_SUFF_EXE) 149 TOOL_QT4_LUPDATE ?= lupdate$(HOST_SUFF_EXE) 147 TOOL_QT3_MOC ?= moc$(HOST_SUFF_EXE) 148 TOOL_QT3_UIC ?= uic$(HOST_SUFF_EXE) 149 TOOL_QT3_LRC ?= lrelease$(HOST_SUFF_EXE) 150 TOOL_QT3_LUPDATE ?= lupdate$(HOST_SUFF_EXE) 150 151 endif 151 152 152 153 # General Properties used by kBuild and/or units/qt.kmk 153 TOOL_QT4_MOCFLAGS ?= 154 TOOL_QT4_MOCINCS ?= 155 TOOL_QT4_MOCDEFS ?= 156 TOOL_QT4_MOCDEFS.darwin ?= __APPLE__ __GNUC__ 157 TOOL_QT4_MOCDEFS.solaris ?= __sun 158 TOOL_QT4_MOCDEFS.win.amd64 ?= WIN64 159 TOOL_QT4_MOCDEFS.win.x86 ?= WIN32 154 TOOL_QT3_MOCFLAGS ?= 155 TOOL_QT3_UICFLAGS ?= 156 TOOL_QT3_LRCFLAGS ?= 160 157 161 158 … … 166 163 # @param $(dep) Dependcy file. This may be (re)created by the compilation. 167 164 # @param $(flags) Flags. 168 # @param $(defs) Definitions.169 # @param $(incs) Includes.170 165 # @param $(outbase) Output basename (full). Use this for list files and such. 171 166 # 172 TOOL_QT 4_MOC_CPP_DEPEND =173 TOOL_QT 4_MOC_CPP_DEPORD =174 TOOL_QT 4_MOC_CPP_OUTPUT =175 TOOL_QT 4_MOC_CPP_OUTPUT_MAYBE =176 define TOOL_QT 4_MOC_CPP_CMDS177 $(QUIET)$(TOOL_QT 4_MOC)\167 TOOL_QT3_MOC_CPP_DEPEND = 168 TOOL_QT3_MOC_CPP_DEPORD = 169 TOOL_QT3_MOC_CPP_OUTPUT = 170 TOOL_QT3_MOC_CPP_OUTPUT_MAYBE = 171 define TOOL_QT3_MOC_CPP_CMDS 172 $(QUIET)$(TOOL_QT3_MOC)\ 178 173 $(flags)\ 179 $(addprefix -I, $(incs))\180 $(addprefix -D, $(defs))\181 174 -o $(out)\ 175 -i \ 182 176 $(source) 183 177 endef … … 189 183 # @param $(dep) Dependcy file. This may be (re)created by the compilation. 190 184 # @param $(flags) Flags. 191 # @param $(defs) Definitions.192 # @param $(incs) Includes.193 185 # @param $(outbase) Output basename (full). Use this for list files and such. 194 186 # 195 TOOL_QT4_MOC_HPP_DEPEND = 196 TOOL_QT4_MOC_HPP_DEPORD = 197 TOOL_QT4_MOC_HPP_OUTPUT = 198 TOOL_QT4_MOC_HPP_OUTPUT_MAYBE = 199 define TOOL_QT4_MOC_HPP_CMDS 200 $(QUIET)$(TOOL_QT4_MOC)\ 201 $(flags)\ 202 $(addprefix -I, $(incs))\ 203 $(addprefix -D, $(defs))\ 204 -o $(out)\ 205 $(source) 206 endef 207 208 ## Compile a Qt user interface file (.ui). 209 # @param $(target) Normalized main target name. 210 # @param $(source) Source filename (relative). 211 # @param $(out) Object file name. This shall be (re)created by the compilation. 212 # @param $(dep) Dependcy file. This may be (re)created by the compilation. 213 # @param $(flags) Flags. 214 # @param $(defs) Definitions. 215 # @param $(incs) Includes. 216 # @param $(outbase) Output basename (full). Use this for list files and such. 217 # 218 TOOL_QT4_UIC_UI_DEPEND = 219 TOOL_QT4_UIC_UI_DEPORD = 220 TOOL_QT4_UIC_UI_OUTPUT = 221 TOOL_QT4_UIC_UI_OUTPUT_MAYBE = 222 define TOOL_QT4_UIC_UI_CMDS 223 $(QUIET)$(TOOL_QT4_UIC)\ 187 TOOL_QT3_MOC_HPP_DEPEND = 188 TOOL_QT3_MOC_HPP_DEPORD = 189 TOOL_QT3_MOC_HPP_OUTPUT = 190 TOOL_QT3_MOC_HPP_OUTPUT_MAYBE = 191 define TOOL_QT3_MOC_HPP_CMDS 192 $(QUIET)$(TOOL_QT3_MOC)\ 224 193 $(flags)\ 225 194 -o $(out)\ … … 227 196 endef 228 197 229 ## Compile a Qt resource file (.qrc).198 ## Compile a Qt user interface file (.ui). 230 199 # @param $(target) Normalized main target name. 231 200 # @param $(source) Source filename (relative). 232 # @param $(out) Object file name. This shall be (re)created by the compilation. 201 # @param $(out.cpp) The C++ source file to be generated. 202 # @param $(out.h) The C++ header file to be generated. 233 203 # @param $(dep) Dependcy file. This may be (re)created by the compilation. 234 204 # @param $(flags) Flags. 235 # @param $(defs) Definitions.236 # @param $(incs) Includes.237 205 # @param $(outbase) Output basename (full). Use this for list files and such. 238 206 # 239 # @remarks The sed script generating the dependency file is a bit naive. 240 TOOL_QT4_RCC_QRC_DEPEND = 241 TOOL_QT4_RCC_QRC_DEPORD = 242 TOOL_QT4_RCC_QRC_OUTPUT = 243 TOOL_QT4_RCC_QRC_OUTPUT_MAYBE = 244 define TOOL_QT4_RCC_QRC_CMDS 245 $(QUIET)$(TOOL_QT4_RCC)\ 207 TOOL_QT3_UIC_UI_DEPEND = 208 TOOL_QT3_UIC_UI_DEPORD = 209 TOOL_QT3_UIC_UI_OUTPUT = 210 TOOL_QT3_UIC_UI_OUTPUT_MAYBE = 211 define TOOL_QT3_UIC_UI_CMDS 212 $(QUIET)$(TOOL_QT3_UIC)\ 246 213 $(flags)\ 247 -o $(out )\214 -o $(out.h)\ 248 215 $(source) 249 $(APPEND) $(dep) '$(source): \' 250 $(SED) \ 251 -e '/^[[:blank:]]*<file[[:blank:]][^>]*>/!d' \ 252 -e 's/^.*<file[[:blank:]][^>]*>\([^<]*\)<\/file>.*$$$$/\1/' \ 253 -e 's|^[^/]|$(abspathex $(dir $(source)),$(defpath))/&|' \ 254 -e 's|$$$$| \\|' \ 255 --append $(dep) \ 216 $(QUIET)$(TOOL_QT3_UIC)\ 217 $(flags)\ 218 -i $(out.h) \ 219 -o $(out.cpp)\ 256 220 $(source) 257 $(APPEND) $(dep)258 $(SED) \259 -e '/^[[:blank:]]*<file[[:blank:]][^>]*>/!d' \260 -e 's/^.*<file[[:blank:]][^>]*>\([^<]*\)<\/file>.*$$$$/\1/' \261 -e 's|^[^/]|$(abspathex $(dir $(source)),$(defpath))/&|' \262 -e 's|$$$$|:\n|' \263 --append $(dep) \264 $(source)265 $(APPEND) $(dep)266 221 endef 267 222 … … 276 231 # @param $(outbase) Output basename (full). Use this for list files and such. 277 232 # 278 TOOL_QT 4_LRC_TS_DEPEND =279 TOOL_QT 4_LRC_TS_DEPORD =280 TOOL_QT 4_LRC_TS_OUTPUT =281 TOOL_QT 4_LRC_TS_OUTPUT_MAYBE =282 define TOOL_QT 4_LRC_TS_CMDS283 $(QUIET)$(TOOL_QT 4_LRC)\233 TOOL_QT3_LRC_TS_DEPEND = 234 TOOL_QT3_LRC_TS_DEPORD = 235 TOOL_QT3_LRC_TS_OUTPUT = 236 TOOL_QT3_LRC_TS_OUTPUT_MAYBE = 237 define TOOL_QT3_LRC_TS_CMDS 238 $(QUIET)$(TOOL_QT3_LRC)\ 284 239 $(flags)\ 285 240 $(source)\ … … 298 253 ## wrapper for the lrelease (LRC) command dependencies. 299 254 ifndef NO_COMPILE_CMDS_DEPS 300 _UNIT_QT _LRC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT_LRC_CMDS_PREV_),$$(commands $(out)),FORCE)301 else 302 _UNIT_QT _LRC_CMDS_DEP =303 endif 304 305 ## 306 # def_unit_qt 4_target_pre_handle_translation helper that is expanded before evaluation.255 _UNIT_QT3_LRC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT3_LRC_CMDS_PREV_),$$(commands $(out)),FORCE) 256 else 257 _UNIT_QT3_LRC_CMDS_DEP = 258 endif 259 260 ## 261 # def_unit_qt3_target_pre_handle_translation helper that is expanded before evaluation. 307 262 # 308 263 # This is necessary to resolve reference to local variables before doing … … 310 265 # later in a different context and the result would be completely wrong. 311 266 # 312 define def_unit_qt 4_target_pre_handle_translation_dx267 define def_unit_qt3_target_pre_handle_translation_dx 313 268 314 269 $(out) + $(more_output) +| $(maybe_output): \ 315 270 $(deps) \ 316 $(value _UNIT_QT _LRC_CMDS_DEP) \271 $(value _UNIT_QT3_LRC_CMDS_DEP) \ 317 272 | \ 318 273 $(orderdeps) … … 324 279 ifndef NO_COMPILE_CMDS_DEPS 325 280 %$$(QUIET2)$$(APPEND) '$(dep)' 326 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT _LRC_CMDS_PREV_'281 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT3_LRC_CMDS_PREV_' 327 282 %$$(QUIET2)$$(APPEND) -c '$(dep)' '$(out)' 328 283 %$$(QUIET2)$$(APPEND) '$(dep)' 'endef' … … 332 287 $(target)-inst-nls_SOURCES += $(out) 333 288 334 endef # def_unit_qt 4_target_pre_handle_translation_dx289 endef # def_unit_qt3_target_pre_handle_translation_dx 335 290 336 291 ## … … 341 296 # 342 297 # @remarks Invoked via $(evalvalctx ). 343 define def_unit_qt 4_target_pre_handle_translation298 define def_unit_qt3_target_pre_handle_translation 344 299 local type := LRC 345 300 … … 376 331 $(eval includedep $(dep)) 377 332 endif 378 $(eval $(def_unit_qt 4_target_pre_handle_translation_dx))379 380 endef # def_unit_qt 4_target_pre_handle_translation333 $(eval $(def_unit_qt3_target_pre_handle_translation_dx)) 334 335 endef # def_unit_qt3_target_pre_handle_translation 381 336 382 337 … … 384 339 ## wrapper for the UIC command dependencies. 385 340 ifndef NO_COMPILE_CMDS_DEPS 386 _UNIT_QT _RCC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT_RCC_CMDS_PREV_),$$(commands $(out)),FORCE)387 else 388 _UNIT_QT _RCC_CMDS_DEP =389 endif 390 391 ## 392 # def_unit_qt 4_target_pre_handle_qrchelper that is expanded before evaluation.341 _UNIT_QT3_UIC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT3_UIC_CMDS_PREV_),$$(commands $(out.h)),FORCE) 342 else 343 _UNIT_QT3_UIC_CMDS_DEP = 344 endif 345 346 ## 347 # def_unit_qt3_src_handler_ui helper that is expanded before evaluation. 393 348 # 394 349 # This is necessary to resolve reference to local variables before doing … … 396 351 # later in a different context and the result would be completely wrong. 397 352 # 398 define def_unit_qt 4_target_pre_handle_rcc_dx399 400 $(out ) +| $(realout) $(more_output) $(maybe_output): \353 define def_unit_qt3_target_pre_handle_ui_dx 354 355 $(out.h) + $(out.cpp) +| $(realout.h) $(realout.cpp) $(more_output) $(maybe_output): \ 401 356 $(deps) \ 402 $(value _UNIT_QT _RCC_CMDS_DEP) \357 $(value _UNIT_QT3_UIC_CMDS_DEP) \ 403 358 | \ 404 359 $(orderdeps) 405 %$$(call MSG_TOOL, rcc,$(target),$(source),$$@)406 $(QUIET2)$(RM) -f $(out ) $(more_output) $(maybe_output) $(dep)360 %$$(call MSG_TOOL,uic,$(target),$(source),$(out.h) $(out.cpp)) 361 $(QUIET2)$(RM) -f $(out.h) $(out.cpp) $(more_output) $(maybe_output) $(dep) 407 362 408 363 $(cmds) 409 364 410 $(QUIET)$(CP) --changed -f $(out) $(realout) 365 $(QUIET)$(CP) --changed -f $(out.h) $(realout.h) 366 $(QUIET)$(CP) --changed -f $(out.cpp) $(realout.cpp) 411 367 ifndef NO_COMPILE_CMDS_DEPS 412 368 %$$(QUIET2)$$(APPEND) '$(dep)' 413 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT _RCC_CMDS_PREV_'414 %$$(QUIET2)$$(APPEND) -c '$(dep)' '$(out )'369 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT3_UIC_CMDS_PREV_' 370 %$$(QUIET2)$$(APPEND) -c '$(dep)' '$(out.h)' 415 371 %$$(QUIET2)$$(APPEND) '$(dep)' 'endef' 416 372 endif 417 373 418 $(target)_INTERMEDIATES += $(realout )419 $(target)_GEN_SOURCES_ += $(realout )420 $(target)_OUT_FILES += $(out ) $(realout) $(more_output) $(maybe_output)421 422 endef # def_unit_qt 4_target_pre_handle_rcc_dx423 424 ## 425 # Source handler for . qrc sources (Qt resource files).374 $(target)_INTERMEDIATES += $(realout.h) 375 $(target)_GEN_SOURCES_ += $(realout.cpp) 376 $(target)_OUT_FILES += $(out.h) $(out.cpp) $(realout.h) $(realout.cpp) $(more_output) $(maybe_output) 377 378 endef # def_unit_qt3_target_pre_handle_ui_dx 379 380 ## 381 # Source handler for .ui sources. 426 382 # 427 383 # @remarks $(evalvalctx me). 428 define def_unit_qt4_src_handler_qrc 429 local type := RCC 430 431 # fetch the properties. 432 local tool := $(kb-src-tool dummy_var) 433 local qtrccdir := $(PATH_$(target))/qtrcc 434 local outbase := $(qtrccdir)/$(notdir $(basename $(source))) 435 local out := $(outbase).tmp.gen.cpp 436 local realout := $(outbase).gen.cpp 437 local dep := $(realout).dep 438 local flags := $(kb-src-prop FLAGS,dummy_var,right-to-left) 439 local deps := $(kb-src-prop DEPS,dummy_var,left-to-right) 440 local orderdeps := $(call DIRDEP,$(dir $(outbase))) $(kb-src-prop ORDERDEPS,dummy_var,left-to-right) 441 442 # default path + source dep. 443 ifneq ($(defpath),) 444 local deps := $(abspathex $(deps) $(source),$($(target)_PATH)) 445 local incs := $(abspathex $(incs),$($(target)_PATH)) 446 else 447 local deps += $(source) 448 endif 449 450 # call the tool 451 ifndef TOOL_$(tool)_RCC_QRC_CMDS 452 $(error kBuild: qt rcc tool not found: TOOL_$(tool)_RCC_QRC_CMDS) 453 endif 454 local cmds := $(TOOL_$(tool)_RCC_QRC_CMDS) 455 local more_output := $(TOOL_$(tool)_RCC_QRC_OUTPUT) 456 local maybe_output := $(TOOL_$(tool)_RCC_QRC_OUTPUT_MAYBE) 457 local deps += $(TOOL_$(tool)_RCC_QRC_DEPEND) 458 local orderdeps += $(TOOL_$(tool)_RCC_QRC_DEPORD) 459 460 # generate the link rule and update some source and target variables. 461 ifndef NO_COMPILE_CMDS_DEPS 462 $(eval includedep $(dep)) 463 endif 464 $(eval $(def_unit_qt4_target_pre_handle_rcc_dx)) 465 466 endef # def_unit_qt4_src_handler_qrc 467 468 469 470 ## wrapper for the UIC command dependencies. 471 ifndef NO_COMPILE_CMDS_DEPS 472 _UNIT_QT_UIC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT_UIC_CMDS_PREV_),$$(commands $(out)),FORCE) 473 else 474 _UNIT_QT_UIC_CMDS_DEP = 475 endif 476 477 ## 478 # def_unit_qt4_src_handler_ui helper that is expanded before evaluation. 479 # 480 # This is necessary to resolve reference to local variables before doing 481 # assignments and setting up commands. They would otherwise be resolved 482 # later in a different context and the result would be completely wrong. 483 # 484 define def_unit_qt4_target_pre_handle_ui_dx 485 486 $(out) +| $(realout) $(more_output) $(maybe_output): \ 487 $(deps) \ 488 $(value _UNIT_QT_UIC_CMDS_DEP) \ 489 | \ 490 $(orderdeps) 491 %$$(call MSG_TOOL,uic,$(target),$(source),$$@) 492 $(QUIET2)$(RM) -f $(out) $(more_output) $(maybe_output) $(dep) 493 494 $(cmds) 495 496 $(QUIET)$(CP) --changed -f $(out) $(realout) 497 ifndef NO_COMPILE_CMDS_DEPS 498 %$$(QUIET2)$$(APPEND) '$(dep)' 499 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT_UIC_CMDS_PREV_' 500 %$$(QUIET2)$$(APPEND) -c '$(dep)' '$(out)' 501 %$$(QUIET2)$$(APPEND) '$(dep)' 'endef' 502 endif 503 504 $(target)_INTERMEDIATES += $(realout) 505 $(target)_OUT_FILES += $(out) $(realout) $(more_output) $(maybe_output) 506 507 endef # def_unit_qt4_target_pre_handle_ui_dx 508 509 ## 510 # Source handler for .ui sources. 511 # 512 # @remarks $(evalvalctx me). 513 define def_unit_qt4_src_handler_ui 384 define def_unit_qt3_src_handler_ui 514 385 local type := UIC 515 386 … … 518 389 local qtuicdir := $(PATH_$(target))/qtuic 519 390 local outbase := $(qtuicdir)/$(notdir $(basename $(source))) 520 local out := $(outbase).tmp.gen.h 521 local realout := $(outbase).gen.h 522 local dep := $(realout).dep 391 local out.h := $(outbase).tmp.h 392 local out.cpp := $(outbase).tmp.cpp 393 local realout.h := $(outbase).h 394 local realout.cpp:=$(outbase).cpp 395 local dep := $(realout.h).dep 523 396 local flags := $(kb-src-prop FLAGS,dummy_var,right-to-left) 524 397 local deps := $(kb-src-prop DEPS,dummy_var,left-to-right) … … 547 420 $(eval includedep $(dep)) 548 421 endif 549 $(eval $(def_unit_qt 4_target_pre_handle_ui_dx))550 551 endef # def_unit_qt 4_src_handler_ui422 $(eval $(def_unit_qt3_target_pre_handle_ui_dx)) 423 424 endef # def_unit_qt3_src_handler_ui 552 425 553 426 … … 555 428 ## wrapper for the MOC command dependencies. 556 429 ifndef NO_COMPILE_CMDS_DEPS 557 _UNIT_QT _MOC_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT_MOC_CMDS_PREV_),$$(commands $(out)),FORCE)558 else 559 _UNIT_QT _MOC_CMDS_DEP =560 endif 561 562 ## 563 # def_unit_qt 4_target_pre_handle_moc_hdr helper that is expanded before evaluation.430 _UNIT_QT3_MOC_HPP_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT3_MOC_HPP_CMDS_PREV_),$$(commands $(out)),FORCE) 431 else 432 _UNIT_QT3_MOC_HPP_CMDS_DEP = 433 endif 434 435 ## 436 # def_unit_qt3_target_pre_handle_moc_hdr helper that is expanded before evaluation. 564 437 # 565 438 # This is necessary to resolve reference to local variables before doing … … 567 440 # later in a different context and the result would be completely wrong. 568 441 # 569 define def_unit_qt 4_target_pre_handle_moc_hdr_dx442 define def_unit_qt3_target_pre_handle_moc_hdr_dx 570 443 571 444 $(out) +| $(realout) $(more_output) $(maybe_output): \ 572 445 $(deps) \ 573 $(value _UNIT_QT _MOC_CMDS_DEP) \446 $(value _UNIT_QT3_MOC_HPP_CMDS_DEP) \ 574 447 | \ 575 448 $(orderdeps) 576 %$$(call MSG_TOOL,moc,$(target),$(source),$ $@)449 %$$(call MSG_TOOL,moc,$(target),$(source),$(realout)) 577 450 $(QUIET2)$(RM) -f $(out) $(more_output) $(maybe_output) $(dep) 578 451 … … 582 455 ifndef NO_COMPILE_CMDS_DEPS 583 456 %$$(QUIET2)$$(APPEND) '$(dep)' 584 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT _MOC_CMDS_PREV_'457 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT3_MOC_HPP_CMDS_PREV_' 585 458 %$$(QUIET2)$$(APPEND) -c '$(dep)' '$(out)' 586 459 %$$(QUIET2)$$(APPEND) '$(dep)' 'endef' … … 594 467 595 468 ## 596 # Handle a source file listed in QT_MOCHDRS S.469 # Handle a source file listed in QT_MOCHDRS. 597 470 # 598 471 # The files listed in QT_MOCHDRS uses the Q_OBJECT macro and we will … … 603 476 # 604 477 # @remarks Invoked via $(evalvalctx ). 605 define def_unit_qt 4_target_pre_handle_moc_hdr478 define def_unit_qt3_target_pre_handle_moc_hdr 606 479 local type := MOC 607 480 … … 612 485 local realout := $(outbase).cpp 613 486 local dep := $(realout).dep 614 local defs := $(kb-src-prop DEFS,dummy_var,left-to-right)615 local incs := $(kb-src-prop INCS,dummy_var,right-to-left)616 487 local flags := $(kb-src-prop FLAGS,dummy_var,right-to-left) 617 488 local deps := $(kb-src-prop DEPS,dummy_var,left-to-right) … … 621 492 ifneq ($(defpath),) 622 493 local deps := $(abspathex $(deps) $(source),$($(target)_PATH)) 623 local incs := $(abspathex $(incs),$($(target)_PATH))624 494 else 625 495 local deps += $(source) … … 640 510 $(eval includedep $(dep)) 641 511 endif 642 $(eval $(def_unit_qt4_target_pre_handle_moc_hdr_dx)) 643 644 endef # def_unit_qt4_target_pre_handle_moc_hdr 645 646 647 ## 648 # def_unit_qt4_target_pre_handle_moc_src helper that is expanded before evaluation. 512 $(eval $(def_unit_qt3_target_pre_handle_moc_hdr_dx)) 513 514 endef # def_unit_qt3_target_pre_handle_moc_hdr 515 516 517 518 ## wrapper for the MOC command dependencies. 519 ifndef NO_COMPILE_CMDS_DEPS 520 _UNIT_QT3_MOC_CPP_CMDS_DEP = $$(comp-cmds-ex $$($(target)_$(subst :,_,$(source))_QT3_MOC_CPP_CMDS_PREV_),$$(commands $(out)),FORCE) 521 else 522 _UNIT_QT3_MOC_CPP_CMDS_DEP = 523 endif 524 525 ## 526 # def_unit_qt3_target_pre_handle_moc_src helper that is expanded before evaluation. 649 527 # 650 528 # This is necessary to resolve reference to local variables before doing … … 652 530 # later in a different context and the result would be completely wrong. 653 531 # 654 define def_unit_qt 4_target_pre_handle_moc_src_dx532 define def_unit_qt3_target_pre_handle_moc_src_dx 655 533 656 534 $(out) +| $(realout) $(more_output) $(maybe_output): \ 657 535 $(deps) \ 658 $(value _UNIT_QT _MOC_CMDS_DEP) \536 $(value _UNIT_QT3_MOC_CPP_CMDS_DEP) \ 659 537 | \ 660 538 $(orderdeps) 661 %$$(call MSG_TOOL,moc,$(target),$(source),$ $@)539 %$$(call MSG_TOOL,moc,$(target),$(source),$(realout)) 662 540 $(QUIET2)$(RM) -f $(out) $(more_output) $(maybe_output) $(dep) 663 541 … … 667 545 ifndef NO_COMPILE_CMDS_DEPS 668 546 %$$(QUIET2)$$(APPEND) '$(dep)' 669 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT _MOC_CMDS_PREV_'547 %$$(QUIET2)$$(APPEND) '$(dep)' 'define $(target)_$(subst :,_,$(source))_QT3_MOC_CPP_CMDS_PREV_' 670 548 %$$(QUIET2)$$(APPEND) -c '$(dep)' '$(out)' 671 549 %$$(QUIET2)$$(APPEND) '$(dep)' 'endef' … … 684 562 # 685 563 # @remarks Invoked via $(evalvalctx ). 686 define def_unit_qt 4_target_pre_handle_moc_src564 define def_unit_qt3_target_pre_handle_moc_src 687 565 local type := MOC 688 566 … … 693 571 local realout := $(outbase).moc 694 572 local dep := $(realout).dep 695 local defs := $(kb-src-prop DEFS,dummy_var,left-to-right)696 local incs := $(kb-src-prop INCS,dummy_var,right-to-left)697 573 local flags := $(kb-src-prop FLAGS,dummy_var,right-to-left) 698 574 local deps := $(kb-src-prop DEPS,dummy_var,left-to-right) … … 721 597 $(eval includedep $(dep)) 722 598 endif 723 $(eval $(def_unit_qt 4_target_pre_handle_moc_src_dx))724 725 endef # def_unit_qt 4_target_pre_handle_moc_src599 $(eval $(def_unit_qt3_target_pre_handle_moc_src_dx)) 600 601 endef # def_unit_qt3_target_pre_handle_moc_src 726 602 727 603 728 604 ## 729 605 # Adds sources containing Q_OBJECT to QT_MOCSRCS. 730 define def_unit_qt 4_target_pre_cpp_source606 define def_unit_qt3_target_pre_cpp_source 731 607 ifneq ($(file-size $(source)),-1) 732 608 ifneq ($(strip $(shell $(SED) -f $(KBUILD_PATH)/units/qt-Q_OBJECT.sed $(source))),) … … 734 610 endif 735 611 endif 736 endef # def_unit_qt4_target_pre_cpp_source 612 endef # def_unit_qt3_target_pre_cpp_source 613 737 614 738 615 ## … … 745 622 # a .moc files and generate rules and dependencies fofor these 746 623 # 747 define def_unit_qt 4_target_pre624 define def_unit_qt3_target_pre 748 625 749 626 # Make QTTOOL the default for the specific Qt tools instead of TOOL. 750 627 ifneq ($($(target)_QTTOOL),) 751 628 ifeq ($($(target)_MOCTOOL),) 752 $( $(target)_MOCTOOL := $($(target)_QTTOOL)629 $(target)_MOCTOOL := $($(target)_QTTOOL) 753 630 endif 754 631 ifeq ($($(target)_UICTOOL),) 755 $($(target)_UICTOOL := $($(target)_QTTOOL) 756 endif 757 ifeq ($($(target)_RCCTOOL),) 758 $($(target)_RCCTOOL := $($(target)_QTTOOL) 632 $(target)_UICTOOL := $($(target)_QTTOOL) 759 633 endif 760 634 ifeq ($($(target)_LRCTOOL),) 761 $( $(target)_LRCTOOL := $($(target)_QTTOOL)635 $(target)_LRCTOOL := $($(target)_QTTOOL) 762 636 endif 763 637 endif 764 638 765 639 # Deal with QT_MODULES and QT_PREFIX. 766 local qt_modules := \767 $($(target)_QT_MODULES.$(_bld_trg)) \768 $($(target)_QT_MODULES.$(_bld_trg_arch)) \769 $($(target)_QT_MODULES.$(_bld_trg).$(_bld_trg_arch)) \770 $($(target)_QT_MODULES.$(_bld_trg_cpu)) \771 $($(target)_QT_MODULES.$(_bld_type)) \772 $($(target)_QT_MODULES)773 640 local qt_prefix := $(firstword \ 774 641 $($(target)_QT_PREFIX.$(_bld_trg)) \ … … 778 645 $($(target)_QT_PREFIX.$(_bld_type)) \ 779 646 $($(target)_QT_PREFIX)) 780 ifeq ($(bld_trg),darwin) 781 # Adding -F to CXXFLAGS is necessary to make #include <QtCore/qstring.h> stuff work... 782 $(eval $(target)_CXXFLAGS += -F$(PATH_SDK_QT4_LIB) ) 783 $(eval $(target)_LDFLAGS += -F$(PATH_SDK_QT4_LIB) $(addprefix -framework Qt$(qt_prefix),$(qt_modules)) ) 784 $(eval $(target)_INCS += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/$(qt_prefix)Qt$(module).framework/Versions/4/Headers) ) 785 else 786 ifeq ($(bld_trg),win) 787 $(eval $(target)_LIBS += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/$(qt_prefix)Qt$(module)4$(SUFF_LIB)) ) 788 ifeq ($(tool_do),LINK_PROGRAM) 789 $(eval $(target)_LIBS += $(PATH_SDK_QT4_LIB)/$(qt_prefix)qtmain$(SUFF_LIB) ) 790 endif 791 else 792 $(eval $(target)_LIBS += $(foreach module,$(qt_modules), $(PATH_SDK_QT4_LIB)/lib$(qt_prefix)Qt$(module)$(SUFF_DLL)) ) 793 endif 794 $(eval $(target)_INCS += $(addprefix $(PATH_SDK_QT4_INC)/Qt,$(qt_modules)) $(PATH_SDK_QT4_INC) ) 795 endif 796 $(eval $(target)_DEFS += $(foreach module,$(toupper $(qt_modules)), QT_$(module)_LIB) ) 797 647 ifeq ($(bld_trg),win) 648 $(eval $(target)_LIBS += $(PATH_SDK_QT3_LIB)/$(qt_prefix)qt-mt$(SUFF_LIB)) ) 649 ifeq ($(tool_do),LINK_PROGRAM) 650 $(eval $(target)_LIBS += $(PATH_SDK_QT3_LIB)/$(qt_prefix)qtmain$(SUFF_LIB) ) 651 endif 652 else 653 $(eval $(target)_LIBS += $(PATH_SDK_QT3_LIB)/lib$(qt_prefix)qt-mt$(SUFF_DLL) ) 654 endif 655 $(eval $(target)_INCS += $(PATH_SDK_QT3_INC) ) 798 656 799 657 # Autodetect source files with Q_OBJECT references if QT_MOCSRCS is undefined. (slow) … … 807 665 $($(target)_SOURCES.$(_bld_type)) \ 808 666 $($(target)_SOURCES) \ 809 ), $(evalval def_unit_qt 4_target_pre_cpp_source))667 ), $(evalval def_unit_qt3_target_pre_cpp_source)) 810 668 endif 811 669 812 670 # Install source handlers for .ui files. 813 671 $(target)_SRC_HANDLERS += \ 814 .ui:def_unit_qt4_src_handler_ui \ 815 .UI:def_unit_qt4_src_handler_ui \ 816 .qrc:def_unit_qt4_src_handler_qrc \ 817 .qrc:def_unit_qt4_src_handler_qrc 672 .ui:def_unit_qt3_src_handler_ui \ 673 .UI:def_unit_qt3_src_handler_ui 818 674 819 675 # Calc the MOC and UI output directories and add them to BLDDIRS and INCS. 820 676 local qtmocdir := $(PATH_$(target))/qtmoc 821 677 local qtuicdir := $(PATH_$(target))/qtuic 822 local qtrccdir := $(PATH_$(target))/qtrcc823 678 local qtnlsdir := $(PATH_$(target))/qtnls 824 $(eval $(target)_BLDDIRS += $(qtmocdir) $(qtuicdir) $(qtrccdir) $(qtnlsdir)) 825 $(eval $(target)_INCS += $(qtmocdir) $(qtuicdir)) 679 $(eval $(target)_BLDDIRS += $(qtmocdir) $(qtuicdir) $(qtnlsdir) ) 680 $(eval $(target)_INCS += $(qtmocdir) $(qtuicdir) ) 681 682 # Calc .ui sources so we can add them to the QT_MOCSRCS and QT_MOCHDRS. 683 local ui_sources := $(notdir $(basename $(filter %.ui %.UI, \ 684 $($(target)_SOURCES.$(_bld_trg)) \ 685 $($(target)_SOURCES.$(_bld_trg_arch)) \ 686 $($(target)_SOURCES.$(_bld_trg).$(_bld_trg_arch)) \ 687 $($(target)_SOURCES.$(_bld_trg_cpu)) \ 688 $($(target)_SOURCES.$(_bld_type)) \ 689 $($(target)_SOURCES) \ 690 ))) 691 #$(error ui_sources:=$(ui_sources)) 826 692 827 693 # Deal with QT_MOCSRCS. … … 833 699 $($(target)_QT_MOCSRCS.$(_bld_type)) \ 834 700 $($(target)_QT_MOCSRCS) \ 835 , $(evalvalctx def_unit_qt4_target_pre_handle_moc_src)) 701 $(addsuffix .h,$(addprefix $(qtuicdir)/,$(notdir $(basename $(ui_sources))))) \ 702 , $(evalvalctx def_unit_qt3_target_pre_handle_moc_src)) 836 703 837 704 # Deal with QT_MOCHDRS. … … 843 710 $($(target)_QT_MOCHDRS.$(_bld_type)) \ 844 711 $($(target)_QT_MOCHDRS) \ 845 , $(evalvalctx def_unit_qt4_target_pre_handle_moc_hdr)) 712 $(addsuffix .h,$(addprefix $(qtuicdir)/,$(notdir $(basename $(ui_sources))))) \ 713 , $(evalvalctx def_unit_qt3_target_pre_handle_moc_hdr)) 846 714 847 715 # Deal with QT_TRANSLATIONS. … … 865 733 $(target)-inst-nls_SOURCES := 866 734 $(foreach source, $(translations)\ 867 , $(evalvalctx def_unit_qt 4_target_pre_handle_translation))868 endif 869 870 endef # def_unit_qt 4_target_pre871 735 , $(evalvalctx def_unit_qt3_target_pre_handle_translation)) 736 endif 737 738 endef # def_unit_qt3_target_pre 739
Note:
See TracChangeset
for help on using the changeset viewer.