OTHER: Redo pkg-config handling once again.
This commit is contained in:
parent
11b7e5e6e7
commit
54cb2086ee
3 changed files with 14 additions and 48 deletions
11
src/src.pro
11
src/src.pro
|
@ -1,8 +1,11 @@
|
|||
TEMPLATE = app
|
||||
|
||||
include (../config.pri)
|
||||
PKGCONFIG += xmms2-client-cpp
|
||||
load (../features/pkgconfig.prf)
|
||||
|
||||
!xmms2-client-cpp:error (Please install the xmms2 c++ client library)
|
||||
|
||||
COMPONENTS+=../lib/liblib.a
|
||||
LIBS += $$COMPONENTS
|
||||
PRE_TARGETDEPS = $$COMPONENTS
|
||||
|
@ -29,13 +32,5 @@ QMAKE_CXXFLAGS += -g
|
|||
;CONFIG += debug warn_on
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
|
||||
|
||||
XMMSCLIENTPKG += xmms2-client-cpp
|
||||
pkgconfig_exists ($$XMMSCLIENTPKG) {
|
||||
QMAKE_CXXFLAGS += $$pkgconfig_cflags($$XMMSCLIENTPKG)
|
||||
LIBS += $$pkgconfig_libs($$XMMSCLIENTPKG)
|
||||
} else {
|
||||
error (Please install the xmms2 c++ client library)
|
||||
}
|
||||
|
||||
;CONFIG += avahi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue