PDF4QT/PdfForQtLib/PdfForQtLib.pro

115 lines
3.6 KiB
Prolog
Raw Normal View History

2018-11-17 16:48:30 +01:00
# Copyright (C) 2018 Jakub Melka
#
# This file is part of PdfForQt.
#
# PdfForQt is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PdfForQt is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PDFForQt. If not, see <https://www.gnu.org/licenses/>.
2019-01-27 17:55:22 +01:00
QT += gui widgets
2018-11-17 16:48:30 +01:00
TARGET = PdfForQtLib
TEMPLATE = lib
DEFINES += PDFFORQTLIB_LIBRARY
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
DESTDIR = $$OUT_PWD/..
SOURCES += \
sources/pdfobject.cpp \
sources/pdfparser.cpp \
sources/pdfdocument.cpp \
2018-11-21 19:30:15 +01:00
sources/pdfdocumentreader.cpp \
2018-12-01 11:36:07 +01:00
sources/pdfxreftable.cpp \
2018-12-02 17:53:19 +01:00
sources/pdfvisitor.cpp \
2018-12-14 19:41:12 +01:00
sources/pdfencoding.cpp \
2018-12-26 18:00:17 +01:00
sources/pdfcatalog.cpp \
2018-12-29 18:22:13 +01:00
sources/pdfpage.cpp \
2019-01-20 17:55:06 +01:00
sources/pdfstreamfilters.cpp \
2019-01-27 17:55:22 +01:00
sources/pdfdrawspacecontroller.cpp \
2019-02-09 18:40:56 +01:00
sources/pdfdrawwidget.cpp \
sources/pdfcolorspaces.cpp \
2019-02-24 17:48:37 +01:00
sources/pdfrenderer.cpp \
sources/pdfpagecontentprocessor.cpp \
2019-02-24 19:42:00 +01:00
sources/pdfpainter.cpp \
2019-03-03 16:14:38 +01:00
sources/pdfrenderingerrorswidget.cpp \
2019-03-25 18:44:45 +01:00
sources/pdffunction.cpp \
sources/pdfnametounicode.cpp \
sources/pdffont.cpp
2018-11-17 16:48:30 +01:00
HEADERS += \
sources/pdfobject.h \
sources/pdfparser.h \
sources/pdfglobal.h \
sources/pdfconstants.h \
sources/pdfdocument.h \
2018-11-21 19:30:15 +01:00
sources/pdfdocumentreader.h \
sources/pdfxreftable.h \
2018-12-01 11:36:07 +01:00
sources/pdfflatmap.h \
2018-12-02 17:53:19 +01:00
sources/pdfvisitor.h \
2018-12-14 19:41:12 +01:00
sources/pdfencoding.h \
2018-12-24 17:09:23 +01:00
sources/pdfcatalog.h \
2018-12-26 18:00:17 +01:00
sources/pdfnumbertreeloader.h \
2018-12-29 18:22:13 +01:00
sources/pdfpage.h \
2019-01-20 17:55:06 +01:00
sources/pdfstreamfilters.h \
2019-01-27 17:55:22 +01:00
sources/pdfdrawspacecontroller.h \
2019-02-09 18:40:56 +01:00
sources/pdfdrawwidget.h \
sources/pdfflatarray.h \
sources/pdfcolorspaces.h \
2019-02-14 19:45:07 +01:00
sources/pdfrenderer.h \
2019-02-24 17:48:37 +01:00
sources/pdfpagecontentprocessor.h \
sources/pdfpainter.h \
2019-02-24 19:42:00 +01:00
sources/pdfutils.h \
2019-03-03 16:14:38 +01:00
sources/pdfrenderingerrorswidget.h \
2019-03-25 18:44:45 +01:00
sources/pdffunction.h \
sources/pdfnametounicode.h \
sources/pdffont.h
2018-11-17 16:48:30 +01:00
unix {
target.path = /usr/lib
INSTALLS += target
}
2018-11-25 14:48:08 +01:00
2019-04-07 19:39:29 +02:00
# Link to freetype library
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../FreeType/ -lfreetype
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../FreeType/ -lfreetype
else:unix: LIBS += -L$$PWD/FreeType/ -lfreetype
INCLUDEPATH += $$PWD/../FreeType/include
DEPENDPATH += $$PWD/../FreeType/include
freetype_lib.files = $$PWD/../FreeType/freetype.dll
freetype_lib.path = $$OUT_PWD
INSTALLS += freetype_lib
2018-11-25 14:48:08 +01:00
CONFIG += force_debug_info
2018-12-02 17:53:19 +01:00
QMAKE_CXXFLAGS += /std:c++latest /utf-8
2019-02-24 19:42:00 +01:00
FORMS += \
sources/pdfrenderingerrorswidget.ui