mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
97 lines
2.1 KiB
Prolog
97 lines
2.1 KiB
Prolog
QT -= core gui
|
|
|
|
VERSION = 1.0.0.4
|
|
TARGET = PdfReader
|
|
TEMPLATE = lib
|
|
|
|
CONFIG += shared
|
|
CONFIG += plugin
|
|
CONFIG += warn_off
|
|
|
|
CONFIG += core_static_link_libstd
|
|
|
|
CORE_ROOT_DIR = $$PWD/..
|
|
PWD_ROOT_DIR = $$PWD
|
|
include(../Common/base.pri)
|
|
|
|
DEFINES += PDFREADER_USE_DYNAMIC_LIBRARY
|
|
|
|
ADD_DEPENDENCY(graphics, kernel, UnicodeConverter)
|
|
|
|
core_windows {
|
|
LIBS += -lgdi32 \
|
|
-ladvapi32 \
|
|
-luser32 \
|
|
-lshell32
|
|
}
|
|
|
|
INCLUDEPATH += \
|
|
$$PWD/lib/goo \
|
|
$$PWD/lib/fofi \
|
|
$$PWD/lib/splash \
|
|
$$PWD/lib
|
|
|
|
HEADERS += \
|
|
$$PWD/lib/aconf.h \
|
|
$$$files($$PWD/lib/*.h)
|
|
|
|
SOURCES += $$files($$PWD/lib/*.c, true)
|
|
SOURCES += $$files($$PWD/lib/*.cc, true)
|
|
|
|
SOURCES -= \
|
|
$$PWD/lib/xpdf/HTMLGen.cc \
|
|
$$PWD/lib/xpdf/pdftohtml.cc \
|
|
$$PWD/lib/xpdf/pdftopng.cc \
|
|
$$PWD/lib/xpdf/pdftoppm.cc \
|
|
$$PWD/lib/xpdf/pdftops.cc \
|
|
$$PWD/lib/xpdf/pdftotext.cc \
|
|
$$PWD/lib/xpdf/pdfdetach.cc \
|
|
$$PWD/lib/xpdf/pdffonts.cc \
|
|
$$PWD/lib/xpdf/pdfimages.cc \
|
|
$$PWD/lib/xpdf/pdfinfo.cc
|
|
|
|
SOURCES += \
|
|
Src/RendererOutputDev.cpp \
|
|
Src/Adaptors.cpp \
|
|
Src/GfxClip.cpp \
|
|
PdfReader.cpp
|
|
|
|
HEADERS += \
|
|
Src/RendererOutputDev.h \
|
|
Src/Adaptors.h \
|
|
Src/MemoryUtils.h \
|
|
Src/GfxClip.h \
|
|
PdfReader.h
|
|
|
|
# Base fonts
|
|
HEADERS += \
|
|
Resources/Fontd050000l.h \
|
|
Resources/Fontn019003l.h \
|
|
Resources/Fontn019004l.h \
|
|
Resources/Fontn019023l.h \
|
|
Resources/Fontn019024l.h \
|
|
Resources/Fontn021003l.h \
|
|
Resources/Fontn021004l.h \
|
|
Resources/Fontn021023l.h \
|
|
Resources/Fontn021024l.h \
|
|
Resources/Fontn022003l.h \
|
|
Resources/Fontn022004l.h \
|
|
Resources/Fontn022023l.h \
|
|
Resources/Fontn022024l.h \
|
|
Resources/Fonts050000l.h \
|
|
Resources/BaseFonts.h
|
|
|
|
SOURCES += \
|
|
Resources/BaseFonts.cpp
|
|
|
|
core_windows:LIBS += -lOle32
|
|
|
|
#CONFIG += build_viewer_module
|
|
build_viewer_module {
|
|
DEFINES += BUILDING_WASM_MODULE
|
|
DEFINES += TEST_AS_EXECUTABLE
|
|
|
|
HEADERS += $$CORE_ROOT_DIR/HtmlRenderer/include/HTMLRendererText.h
|
|
SOURCES += $$CORE_ROOT_DIR/HtmlRenderer/src/HTMLRendererText.cpp
|
|
}
|