1
0
Fork 0
forked from len0rd/rockbox

Let qmake check the Qt version and error out if its too old. Useful if you have Qt3 and Qt4 installed and forget to pick the correct one.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18369 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2008-08-31 12:32:27 +00:00
parent b7219b7e16
commit ca588afe51

View file

@ -12,6 +12,14 @@ UI_DIR = build/ui
MOC_DIR = build/moc
RCC_DIR = build/rcc
# check version of Qt installation
VER = $$find(QT_VERSION, ^4\.[3-9]+.*)
isEmpty(VER) {
!isEmpty(QT_VERSION) error("Qt found:" $$[QT_VERSION])
error("Qt >= 4.3 required!")
}
message("Qt version used:" $$VER)
# add a custom rule for pre-building librbspeex
!mac {
rbspeex.commands = @$(MAKE) -C ../../tools/rbspeex librbspeex.a