Commit 34acd75c authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

add support dynamic build

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63658 954022d7-b5bf-4e40-9824-e11837661b57
parent a948a51a
......@@ -7,13 +7,20 @@ class IRenderer;
class CFontManager;
class CApplicationFonts;
#ifndef PDF_USE_DYNAMIC_LIBRARY
#define PDF_DECL_EXPORT
#else
#include "../DesktopEditor/common/base_export.h"
#define PDF_DECL_EXPORT Q_DECL_EXPORT
#endif
namespace PdfReader
{
class PDFDoc;
class GlobalParams;
class CFontList;
class CPdfReader
class PDF_DECL_EXPORT CPdfReader
{
public:
......
......@@ -6,9 +6,43 @@
QT -= core gui
VERSION = 1.0.0.1
TARGET = PdfReader
TEMPLATE = lib
#CONFIG += staticlib
CONFIG += shared
CONFIG(debug, debug|release) {
DESTDIR = Debug
} else {
DESTDIR = Release
}
staticlib {
message(static)
} else {
DEFINES += PDF_USE_DYNAMIC_LIBRARY
message(dynamic)
win32 {
DEFINES += \
WIN32 \
_WIN32
LIBS += -L../../ASCOfficeUtils/ASCOfficeUtilsLib/Win/x64/Debug -lASCOfficeUtilsLib
LIBS += -L../../DesktopEditor/Qt_build/graphics/Debug/debug -lgraphics
LIBS += -L../../SDK/lib/win_64/DEBUG -llibxml
LIBS += -lgdi32 \
-ladvapi32 \
-luser32 \
-lshell32
TARGET_EXT = .dll
}
}
DEFINES += PDFREADER_LIBRARY
linux-g++ | linux-g++-64 | linux-g++-32 {
......@@ -23,6 +57,25 @@ linux-g++ | linux-g++-64 | linux-g++-32 {
message(linux)
}
DEFINES += \
_QT \
FT2_BUILD_LIBRARY \
EXCLUDE_JPG_SUPPORT \
MNG_SUPPORT_DISPLAY \
MNG_SUPPORT_READ \
MNG_SUPPORT_WRITE \
MNG_ACCESS_CHUNKS \
MNG_STORE_CHUNKS\
MNG_ERROR_TELLTALE
win32 {
DEFINES += \
JAS_WIN_MSVC_BUILD \
WIN32
message(windows)
}
INCLUDEPATH += \
../DesktopEditor/agg-2.4/include \
../DesktopEditor/freetype-2.5.2/include \
......
......@@ -6,8 +6,6 @@
#include "../../DesktopEditor/raster/BgraFrame.h"
#include "../../DesktopEditor/raster/ImageFileFormatChecker.h"
#pragma comment(lib, "graphics.lib")
namespace PdfReader
{
JPXStream::JPXStream(Stream *pStream) :
......@@ -158,4 +156,4 @@ namespace PdfReader
*pBitsPerComponent = 8;
*peModeCS = streamCSDeviceRGB;
}
}
\ No newline at end of file
}
......@@ -3014,7 +3014,7 @@ namespace PdfReader
if (c_nPDFWriter == m_lRendererType)
{
CPdfRenderer* pPdfRenderer = (CPdfRenderer*)m_pRenderer;
pPdfRenderer->CommandDrawTextPdf(wsUnicodeText, &unGid, unGidsCount, wsSrcCodeText, PDFCoordsToMM(0 + dShiftX), PDFCoordsToMM(dShiftY), PDFCoordsToMM(dDx), PDFCoordsToMM(dDy));
//pPdfRenderer->CommandDrawTextPdf(wsUnicodeText, &unGid, unGidsCount, wsSrcCodeText, PDFCoordsToMM(0 + dShiftX), PDFCoordsToMM(dShiftY), PDFCoordsToMM(dDx), PDFCoordsToMM(dDy));
}
else
{
......@@ -3623,4 +3623,4 @@ namespace PdfReader
}
return;
}
}
\ No newline at end of file
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment