Merge pull request #1265 from laanwj/2012_05_fixredundantbuild
Speed up build in Qt creator in common case
This commit is contained in:
commit
4830ff923e
@ -84,8 +84,8 @@ contains(BITCOIN_NEED_QT_PLUGINS, 1) {
|
|||||||
!windows || contains(USE_BUILD_INFO, 1) {
|
!windows || contains(USE_BUILD_INFO, 1) {
|
||||||
genbuild.depends = FORCE
|
genbuild.depends = FORCE
|
||||||
genbuild.commands = cd $$PWD; share/genbuild.sh $$OUT_PWD/build/build.h
|
genbuild.commands = cd $$PWD; share/genbuild.sh $$OUT_PWD/build/build.h
|
||||||
genbuild.target = genbuildhook
|
genbuild.target = $$OUT_PWD/build/build.h
|
||||||
PRE_TARGETDEPS += genbuildhook
|
PRE_TARGETDEPS += $$OUT_PWD/build/build.h
|
||||||
QMAKE_EXTRA_TARGETS += genbuild
|
QMAKE_EXTRA_TARGETS += genbuild
|
||||||
DEFINES += HAVE_BUILD_INFO
|
DEFINES += HAVE_BUILD_INFO
|
||||||
}
|
}
|
||||||
@ -259,15 +259,14 @@ isEmpty(QMAKE_LRELEASE) {
|
|||||||
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
|
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
|
||||||
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
||||||
}
|
}
|
||||||
isEmpty(TS_DIR):TS_DIR = src/qt/locale
|
isEmpty(QM_DIR):QM_DIR = $$PWD/src/qt/locale
|
||||||
# automatically build translations, so they can be included in resource file
|
# automatically build translations, so they can be included in resource file
|
||||||
TSQM.name = lrelease ${QMAKE_FILE_IN}
|
TSQM.name = lrelease ${QMAKE_FILE_IN}
|
||||||
TSQM.input = TRANSLATIONS
|
TSQM.input = TRANSLATIONS
|
||||||
TSQM.output = $$TS_DIR/${QMAKE_FILE_BASE}.qm
|
TSQM.output = $$QM_DIR/${QMAKE_FILE_BASE}.qm
|
||||||
TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN}
|
TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
|
||||||
TSQM.CONFIG = no_link
|
TSQM.CONFIG = no_link
|
||||||
QMAKE_EXTRA_COMPILERS += TSQM
|
QMAKE_EXTRA_COMPILERS += TSQM
|
||||||
PRE_TARGETDEPS += compiler_TSQM_make_all
|
|
||||||
|
|
||||||
# "Other files" to show in Qt Creator
|
# "Other files" to show in Qt Creator
|
||||||
OTHER_FILES += \
|
OTHER_FILES += \
|
||||||
|
Loading…
Reference in New Issue
Block a user