summaryrefslogtreecommitdiffstats
path: root/Tools/qmake/projects/qtpng/qtpng.pro
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/qmake/projects/qtpng/qtpng.pro')
-rw-r--r--Tools/qmake/projects/qtpng/qtpng.pro49
1 files changed, 49 insertions, 0 deletions
diff --git a/Tools/qmake/projects/qtpng/qtpng.pro b/Tools/qmake/projects/qtpng/qtpng.pro
new file mode 100644
index 000000000..88b6f9672
--- /dev/null
+++ b/Tools/qmake/projects/qtpng/qtpng.pro
@@ -0,0 +1,49 @@
+# This file was copied from qtbase/src/3rdparty/libpng/libpng.pro
+# in order to build a copy of libqtpng specifically for QtWebKit module
+# Must be kept in sync with qtbase
+
+load(functions)
+
+TARGET = qtpng
+
+CONFIG += \
+ static \
+ hide_symbols \
+ exceptions_off rtti_off warn_off \
+ installed
+
+# Poor man's qt_helper_lib
+TEMPLATE = lib
+CONFIG += staticlib
+CONFIG -= qt
+
+# In debug_and_release build we need only one copy of library, let it be release
+debug_and_release {
+ CONFIG -= debug_and_release debug
+ CONFIG += release
+}
+
+DESTDIR = $$ROOT_BUILD_DIR/lib
+PNGDIR = $$QTBASE_DIR/src/3rdparty/libpng
+
+DEFINES += PNG_ARM_NEON_OPT=0
+SOURCES += \
+ $$PNGDIR/png.c \
+ $$PNGDIR/pngerror.c \
+ $$PNGDIR/pngget.c \
+ $$PNGDIR/pngmem.c \
+ $$PNGDIR/pngpread.c \
+ $$PNGDIR/pngread.c \
+ $$PNGDIR/pngrio.c \
+ $$PNGDIR/pngrtran.c \
+ $$PNGDIR/pngrutil.c \
+ $$PNGDIR/pngset.c \
+ $$PNGDIR/pngtrans.c \
+ $$PNGDIR/pngwio.c \
+ $$PNGDIR/pngwrite.c \
+ $$PNGDIR/pngwtran.c \
+ $$PNGDIR/pngwutil.c
+
+TR_EXCLUDE += $$PWD/*
+
+include($$QTBASE_DIR/src/3rdparty/zlib_dependency.pri)