diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2014-12-14 13:01:28 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2014-12-14 13:02:50 +0100 |
commit | afb7c82ba69d68410ccaf0c613ce227692864269 (patch) | |
tree | ec8674ab800d18b16eeef05c728052535049d07a | |
parent | c756df4177fd3666b88312c90b67679fc1200b5f (diff) |
Add stub for JS runtime in order to satisfy link dependencies
-rw-r--r-- | src/qpdf/jsbridge.cpp | 42 | ||||
-rw-r--r-- | src/qpdf/qpdf.pro | 4 |
2 files changed, 46 insertions, 0 deletions
diff --git a/src/qpdf/jsbridge.cpp b/src/qpdf/jsbridge.cpp new file mode 100644 index 0000000..3959c3e --- /dev/null +++ b/src/qpdf/jsbridge.cpp @@ -0,0 +1,42 @@ + +#include <qglobal.h> + +#include "fsdk_mgr.h" +#include "javascript/IJavaScript.h" + +CJS_RuntimeFactory::~CJS_RuntimeFactory() +{ +} + +IFXJS_Runtime* CJS_RuntimeFactory::NewJSRuntime(CPDFDoc_Environment* pApp) +{ + Q_UNUSED(pApp); + return 0; +} + +void CJS_RuntimeFactory::DeleteJSRuntime(IFXJS_Runtime* pRuntime) +{ + Q_UNUSED(pRuntime); +} + +void CJS_RuntimeFactory::AddRef() +{ + m_nRef++; +} + +void CJS_RuntimeFactory::Release() +{ + if (--m_nRef) { + // ### Shutdown + } +} + +CJS_GlobalData* CJS_RuntimeFactory::NewGlobalData(CPDFDoc_Environment* pApp) +{ + Q_UNUSED(pApp); + return 0; +} + +void CJS_RuntimeFactory::ReleaseGlobalData() +{ +} diff --git a/src/qpdf/qpdf.pro b/src/qpdf/qpdf.pro index 653dab6..bc3fe11 100644 --- a/src/qpdf/qpdf.pro +++ b/src/qpdf/qpdf.pro @@ -3,5 +3,9 @@ QT = gui core network TEMPLATE = lib CONFIG += c++11 warn_off VPATH += ../3rdparty/pdfium +INCLUDEPATH += ../3rdparty/pdfium/fpdfsdk/include include(pdfium.pri) load(qt_module) + +SOURCES += \ + jsbridge.cpp |