1a96295755
Add pkg-config to the libpng usages as not all systems have the symlink libpng.so -> libpng<version>.so (affected: NetBSD) that changes with the version of the lib. If no-pkg-config is used, use -lpng as before. Tested with FreeBSD 10.3, NetBSD 7.0.1 using png 1.6.21 Change-Id: I5c87f380c84da3d5c56c94da53adb900791c8caa Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
9 lines
160 B
Prolog
9 lines
160 B
Prolog
SOURCES = libpng.cpp
|
|
CONFIG -= qt dylib
|
|
!contains(QT_CONFIG, no-pkg-config) {
|
|
CONFIG += link_pkgconfig
|
|
PKGCONFIG += libpng
|
|
} else {
|
|
LIBS += -lpng
|
|
}
|