1CONFIG -= qt 2 3TEMPLATE = lib 4CONFIG += c++11 5 6# The following define makes your compiler emit warnings if you use 7# any Qt feature that has been marked deprecated (the exact warnings 8# depend on your compiler). Please consult the documentation of the 9# deprecated API in order to know how to port your code away from it. 10DEFINES += QT_DEPRECATED_WARNINGS 11 12# You can also make your code fail to compile if it uses deprecated APIs. 13# In order to do so, uncomment the following line. 14# You can also select to disable deprecated APIs only up to a certain version of Qt. 15#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 16 17DESTDIR = ../../libs 18 19LIBPNG_PATH = ../../../../../../../../third_party/libpng 20LIBPNG_SOURCE_PATH = ../../../../../../../../third_party/libpng/libpng-1.6.38 21system("tar -zxf $${LIBPNG_PATH}\\libpng-1.6.38.tar.gz -C $${LIBPNG_PATH}") 22 23SOURCES += \ 24 $${LIBPNG_SOURCE_PATH}/png.c \ 25 $${LIBPNG_SOURCE_PATH}/pngerror.c \ 26 $${LIBPNG_SOURCE_PATH}/pngget.c \ 27 $${LIBPNG_SOURCE_PATH}/pngmem.c \ 28 $${LIBPNG_SOURCE_PATH}/pngpread.c \ 29 $${LIBPNG_SOURCE_PATH}/pngread.c \ 30 $${LIBPNG_SOURCE_PATH}/pngrio.c \ 31 $${LIBPNG_SOURCE_PATH}/pngrtran.c \ 32 $${LIBPNG_SOURCE_PATH}/pngrutil.c \ 33 $${LIBPNG_SOURCE_PATH}/pngset.c \ 34 $${LIBPNG_SOURCE_PATH}/pngtrans.c \ 35 $${LIBPNG_SOURCE_PATH}/pngwio.c \ 36 $${LIBPNG_SOURCE_PATH}/pngwrite.c \ 37 $${LIBPNG_SOURCE_PATH}/pngwtran.c \ 38 $${LIBPNG_SOURCE_PATH}/pngwutil.c 39 40INCLUDEPATH += \ 41 ../../../../../../../../third_party/libpng \ 42 ../../../../../../../../third_party/zlib 43 44LIBS += $${DESTDIR}/zlib.dll 45