forked from ports/contrib
65 lines
2.8 KiB
Diff
65 lines
2.8 KiB
Diff
diff --git a/external/pdfium/Library_pdfium.mk b/external/pdfium/Library_pdfium.mk
|
|
index f08ff51a31a3..5536bde5e4f7 100644
|
|
--- a/external/pdfium/Library_pdfium.mk
|
|
+++ b/external/pdfium/Library_pdfium.mk
|
|
@@ -19,6 +19,8 @@ $(eval $(call gb_Library_set_include,pdfium,\
|
|
-I$(call gb_UnpackedTarball_get_dir,pdfium) \
|
|
-I$(call gb_UnpackedTarball_get_dir,pdfium)/third_party \
|
|
-I$(call gb_UnpackedTarball_get_dir,pdfium)/third_party/agg23 \
|
|
+ -isystem/usr/include/openjpeg-2.3 \
|
|
+ -isystem/usr/include/openjpeg-2.4 \
|
|
$$(INCLUDE) \
|
|
))
|
|
|
|
@@ -26,6 +28,7 @@ $(eval $(call gb_Library_add_defs,pdfium,\
|
|
-DFPDF_IMPLEMENTATION \
|
|
-DUSE_SYSTEM_LCMS2 \
|
|
-DUSE_SYSTEM_LIBJPEG \
|
|
+ -DUSE_SYSTEM_LIBOPENJPEG2 \
|
|
-DUSE_SYSTEM_ZLIB \
|
|
-DUSE_SYSTEM_ICUUC \
|
|
-DMEMORY_TOOL_REPLACES_ALLOCATOR \
|
|
@@ -520,34 +523,6 @@ $(eval $(call gb_Library_add_generated_exception_objects,pdfium,\
|
|
UnpackedTarball/pdfium/third_party/agg23/agg_vcgen_stroke \
|
|
))
|
|
|
|
-# third_party/fx_libopenjpeg
|
|
-$(eval $(call gb_Library_add_generated_cobjects,pdfium,\
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/bio \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/cio \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/dwt \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/event \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/function_list \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/image \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/invert \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/j2k \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/jp2 \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/mct \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/mqc \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/openjpeg \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/opj_clock \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/pi \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/thread \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/t1 \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/t2 \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/tcd \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/tgt \
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/sparse_array \
|
|
-))
|
|
-
|
|
-$(eval $(call gb_Library_add_generated_exception_objects,pdfium,\
|
|
- UnpackedTarball/pdfium/third_party/libopenjpeg20/opj_malloc \
|
|
-))
|
|
-
|
|
# pdfium_base
|
|
$(eval $(call gb_Library_add_generated_exception_objects,pdfium,\
|
|
UnpackedTarball/pdfium/third_party/base/allocator/partition_allocator/address_space_randomization \
|
|
@@ -581,6 +556,7 @@ ifneq (,$(filter LINUX ANDROID,$(OS)))
|
|
$(eval $(call gb_Library_add_libs,pdfium,\
|
|
-ldl \
|
|
-lrt \
|
|
+ -lopenjp2 \
|
|
))
|
|
|
|
$(eval $(call gb_Library_use_external,pdfium,freetype))
|