2016-07-21 23:21:32 +02:00
|
|
|
diff --git BUILD.gn BUILD.gn
|
2018-03-20 21:15:08 +01:00
|
|
|
index d7c8640a2..7f508fdae 100644
|
2016-07-21 23:21:32 +02:00
|
|
|
--- BUILD.gn
|
|
|
|
+++ BUILD.gn
|
2018-03-20 21:15:08 +01:00
|
|
|
@@ -231,6 +231,10 @@ jumbo_static_library("pdfium") {
|
2017-04-20 21:28:17 +02:00
|
|
|
if (pdf_is_complete_lib) {
|
|
|
|
complete_static_lib = true
|
2016-07-21 23:21:32 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ include_dirs = [
|
|
|
|
+ "//v8/include",
|
|
|
|
+ ]
|
|
|
|
}
|
|
|
|
|
2018-02-15 01:12:09 +01:00
|
|
|
jumbo_static_library("test_support") {
|
2016-03-16 03:55:59 +01:00
|
|
|
diff --git fpdfsdk/fpdfview.cpp fpdfsdk/fpdfview.cpp
|
2018-03-20 21:15:08 +01:00
|
|
|
index e890aa009..cabb73bb6 100644
|
2016-03-16 03:55:59 +01:00
|
|
|
--- fpdfsdk/fpdfview.cpp
|
|
|
|
+++ fpdfsdk/fpdfview.cpp
|
2017-12-07 22:44:24 +01:00
|
|
|
@@ -36,6 +36,7 @@
|
|
|
|
#include "fpdfsdk/cpdfsdk_pageview.h"
|
2016-10-21 21:52:29 +02:00
|
|
|
#include "fpdfsdk/fsdk_define.h"
|
|
|
|
#include "fpdfsdk/fsdk_pauseadapter.h"
|
2018-03-20 21:15:08 +01:00
|
|
|
+#include "fxjs/cfxjs_engine.h"
|
2017-12-07 22:44:24 +01:00
|
|
|
#include "fxjs/ijs_runtime.h"
|
2017-07-27 01:19:27 +02:00
|
|
|
#include "public/fpdf_edit.h"
|
2015-12-09 17:10:16 +01:00
|
|
|
#include "public/fpdf_ext.h"
|
2018-02-15 01:12:09 +01:00
|
|
|
@@ -495,6 +496,7 @@ FPDF_EXPORT void FPDF_CALLCONV FPDF_DestroyLibrary() {
|
2016-11-23 21:54:29 +01:00
|
|
|
|
2015-11-10 21:18:16 +01:00
|
|
|
CPDF_ModuleMgr::Destroy();
|
|
|
|
CFX_GEModule::Destroy();
|
|
|
|
+ FXJS_Release();
|
|
|
|
|
2017-05-31 17:33:30 +02:00
|
|
|
IJS_Runtime::Destroy();
|
|
|
|
|