summaryrefslogtreecommitdiffstats
path: root/Tools/qmake/projects/qtpng/qtpng.pro
blob: 88b6f9672983df9cce84ff192265fa7e4a771ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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)