27 lines
795 B
Diff
27 lines
795 B
Diff
description: build using system openjpeg
|
|
author: Michael Gilbert <mgilbert@debian.org>
|
|
|
|
--- a/third_party/pdfium/core/fpdfapi/render/BUILD.gn
|
|
+++ b/third_party/pdfium/core/fpdfapi/render/BUILD.gn
|
|
@@ -43,6 +43,7 @@ jumbo_source_set("render") {
|
|
]
|
|
configs += [ "../../../:pdfium_core_config" ]
|
|
deps = [
|
|
+ "../../../third_party:libopenjpeg2",
|
|
"../../../constants",
|
|
"../../fxcodec",
|
|
"../../fxcrt",
|
|
--- a/third_party/pdfium/core/fxcodec/jpx/cjpx_decoder.h
|
|
+++ b/third_party/pdfium/core/fxcodec/jpx/cjpx_decoder.h
|
|
@@ -13,8 +13,8 @@
|
|
#include "core/fxcrt/unowned_ptr.h"
|
|
#include "third_party/base/span.h"
|
|
|
|
-#if defined(USE_SYSTEM_LIBOPENJPEG2)
|
|
-#include <openjpeg.h>
|
|
+#if 1
|
|
+#include <openjpeg-2.4/openjpeg.h>
|
|
#else
|
|
#include "third_party/libopenjpeg20/openjpeg.h"
|
|
#endif
|