Introduce png_dependency.pri
Just like any other x_dependency.pri, it shall be included instead of linking with png lib directly. Change-Id: I698c8a8137f937d2e2c5f5dc9b9188b780c9e49a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
This commit is contained in:
parent
037b05ac76
commit
0f336e8565
6
src/3rdparty/png_dependency.pri
vendored
Normal file
6
src/3rdparty/png_dependency.pri
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
contains(QT_CONFIG, system-png) {
|
||||
unix|mingw: LIBS_PRIVATE += -lpng
|
||||
else: LIBS += libpng.lib
|
||||
} else: contains(QT_CONFIG, png) {
|
||||
include($$PWD/libpng.pri)
|
||||
}
|
@ -1,9 +1,4 @@
|
||||
HEADERS += $$PWD/qpnghandler_p.h
|
||||
SOURCES += $$PWD/qpnghandler.cpp
|
||||
contains(QT_CONFIG, system-png) {
|
||||
if(unix|mingw): LIBS_PRIVATE += -lpng
|
||||
else:win32: LIBS += libpng.lib
|
||||
|
||||
} else {
|
||||
include($$PWD/../../3rdparty/libpng.pri)
|
||||
}
|
||||
include($$PWD/../../3rdparty/png_dependency.pri)
|
||||
|
Loading…
x
Reference in New Issue
Block a user