Other: change how pkg-config includes are handeles

Wrote some own functions to hande pkg-config includes.
now Makefile generation will stop if xmms2-client-cpp.pc is missing
Now, compilation should work, even if xmms2-client-cpp development files
where installed after qmake das called for the first time.
also enabled adding files in the playlistview contextmenu
This commit is contained in:
Thomas Frauendorfer 2008-07-04 00:40:56 +02:00
parent 8221642227
commit a89be5dd9b
4 changed files with 43 additions and 5 deletions

24
features/pkgconfig.prf Normal file
View file

@ -0,0 +1,24 @@
defineTest(pkgconfig_exists) {
packages = $$1
count(packages, 0): return(false)
system(pkg-config --exists $$packages) {
return(true)
} else {
return (false)
}
}
defineReplace(pkgconfig_cflags) {
packages = $$1
count(packages, 0): return(false)
return ($$system(pkg-config --cflags $$packages))
}
defineReplace(pkgconfig_libs) {
packages = $$1
count(packages, 0): return(false)
return ($$system(pkg-config --libs $$packages))
}