summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2015-11-07 00:26:03 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2015-11-13 20:42:12 +0000
commit0f336e85655fd50cf84b67cf9101e92bba1efbfc (patch)
tree17dfe31f33440cfdeb36709e58019be9a120f8c2 /src/3rdparty
parent037b05ac760a50630a009362011c12bcce11644d (diff)
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>
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/png_dependency.pri6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/3rdparty/png_dependency.pri b/src/3rdparty/png_dependency.pri
new file mode 100644
index 0000000000..78da861f77
--- /dev/null
+++ b/src/3rdparty/png_dependency.pri
@@ -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)
+}