1
0
Fork 0
forked from len0rd/rockbox

If available, use the systems libspeex when linking rbspeex(enc|dec) and rbutil dynamically. This is similar to FS#9233 but utilizes pkg-config.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23016 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2009-10-08 21:26:39 +00:00
parent df4f9710ba
commit 21a712cba1
2 changed files with 17 additions and 4 deletions

View file

@ -1,5 +1,4 @@
# ccache
unix:!mac:!noccache {
CCACHE = $$system(which ccache)
@ -28,7 +27,11 @@ RBBASE_DIR = $$replace(RBBASE_DIR,/rbutil/rbutilqt,)
message("Rockbox Base dir: "$$RBBASE_DIR)
# add a custom rule for pre-building librbspeex
# check for system speex. Add a custom rule for pre-building librbspeex if not found.
LIBSPEEX = $$system(pkg-config --libs speex)
!static:!isEmpty(LIBSPEEX) {
LIBS += $$LIBSPEEX
}
!mac {
rbspeex.commands = @$(MAKE) TARGET_DIR=$$OUT_PWD/ -C $$RBBASE_DIR/tools/rbspeex librbspeex.a
}