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:
parent
b7219b7e16
commit
ca588afe51
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue