mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-19 12:24:53 -04:00
Use PKGCONFIG instead of manually specifying LIBS for Linux
- The advantage is that this method automatically includes additional dependencies of LIBS (e.g. libupnp needs -lixml). - Also if some distribution moves headers to non default locations the correct locations get added by PKGCONFIG
This commit is contained in:
parent
b8e3a434cf
commit
66b9557833
8 changed files with 34 additions and 38 deletions
|
@ -21,10 +21,11 @@ INCLUDEPATH += ../../retroshare-gui/src/temp/ui ../../libretroshare/src
|
|||
linux-* {
|
||||
CONFIG += link_pkgconfig
|
||||
|
||||
# Necessary for openSUSE
|
||||
PKGCONFIG += libavcodec libavutil
|
||||
|
||||
PKGCONFIG += speex speexdsp
|
||||
PKGCONFIG += opencv
|
||||
} else {
|
||||
LIBS += -lspeex -lspeexdsp -lavcodec -lavutil
|
||||
}
|
||||
|
||||
win32 {
|
||||
|
@ -103,5 +104,3 @@ TRANSLATIONS += \
|
|||
lang/VOIP_sv.ts \
|
||||
lang/VOIP_tr.ts \
|
||||
lang/VOIP_zh_CN.ts
|
||||
|
||||
LIBS += -lspeex -lspeexdsp -lavcodec -lavutil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue