Build on Windows Embedded when -qtlibinfix is used
The resource file that needs to be included is hardcoded whereas qmake generates one that is based on the target name (which includes the libinfix). So to ensure the right one is available, a copy of the generated rc file is done to the name it expects. [ChangeLog][Platform Specific Changes][Windows Embedded] Fixed building issue when configuring Qt with -qtlibinfix Change-Id: I46ddbc5d22424bf63c54423618385e4268790eeb Reviewed-by: Björn Breitmeyer <bjoern.breitmeyer@kdab.com>
This commit is contained in:
parent
fed63d4394
commit
8cf666e10c
@ -1,4 +1,5 @@
|
||||
TARGET = QtWidgets
|
||||
wince*:ORIG_TARGET = $$TARGET
|
||||
QT = core-private gui-private
|
||||
MODULE_CONFIG = uic
|
||||
|
||||
|
@ -160,4 +160,13 @@ wince*: {
|
||||
HEADERS += widgets/qmenu_wince_resource_p.h
|
||||
RC_FILE = widgets/qmenu_wince.rc
|
||||
!static: QMAKE_WRITE_DEFAULT_RC = 1
|
||||
!isEmpty(QT_LIBINFIX) {
|
||||
ORIG_RCFILE = $${TARGET}_resource.rc
|
||||
copyrcc.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
|
||||
copyrcc.input = ORIG_RCFILE
|
||||
CONFIG(debug, debug|release):copyrcc.output = $${ORIG_TARGET}d_resource.rc
|
||||
else:copyrcc.output = $${ORIG_TARGET}_resource.rc
|
||||
copyrcc.CONFIG = target_predeps no_link
|
||||
QMAKE_EXTRA_COMPILERS += copyrcc
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user