From 79e5ee5f6949f4b8645ef32dba61705d02473c60 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 29 Nov 2012 11:27:45 +0100 Subject: Isolate PDF Import so it can be made optionally installable ...which can be attractive for installation sets that use --with-system-poppler but do not want the LO core package to depend on a poppler package. See the comment at the top of scp2/source/ooo/module_pdfimport.scp for details. The build-time --disable-pdfimport configure switch is gone, PDF Import is built unconditionally for all platforms but Android and iOS now. (The ENABLE_PDFIMPORT variable now uses TRUE/FALSE rather than YES/NO, to increase consistency across those variables.) Change-Id: I6509d0b2e770b276cd54540408fb1ec5a7dda058 --- sdext/Module_sdext.mk | 2 +- sdext/Package_pdfimport_xcu.mk | 1 + sdext/source/pdfimport/config/pdf_types.xcu | 35 ++++++++++++++++++++++++ sdext/source/pdfimport/test/testdocs/makefile.mk | 2 +- sdext/source/pdfimport/xpdftest/makefile.mk | 2 +- 5 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 sdext/source/pdfimport/config/pdf_types.xcu (limited to 'sdext') diff --git a/sdext/Module_sdext.mk b/sdext/Module_sdext.mk index 2d506bea6049..726b1476e2fb 100644 --- a/sdext/Module_sdext.mk +++ b/sdext/Module_sdext.mk @@ -40,7 +40,7 @@ $(eval $(call gb_Module_add_targets,sdext,\ )) endif -ifeq ($(ENABLE_PDFIMPORT),YES) +ifeq ($(ENABLE_PDFIMPORT),TRUE) $(eval $(call gb_Module_add_targets,sdext,\ Executable_xpdfimport \ Library_pdfimport \ diff --git a/sdext/Package_pdfimport_xcu.mk b/sdext/Package_pdfimport_xcu.mk index 2dcf39cd5b7a..cbc09710be69 100644 --- a/sdext/Package_pdfimport_xcu.mk +++ b/sdext/Package_pdfimport_xcu.mk @@ -10,5 +10,6 @@ $(eval $(call gb_Package_Package,pdfimport_xcu,$(SRCDIR)/sdext)) $(eval $(call gb_Package_add_file,pdfimport_xcu,xml/pdfimport/pdf_import_filter.xcu,source/pdfimport/config/pdf_import_filter.xcu)) +$(eval $(call gb_Package_add_file,pdfimport_xcu,xml/pdfimport/pdf_types.xcu,source/pdfimport/config/pdf_types.xcu)) # vim: set noet sw=4 ts=4: diff --git a/sdext/source/pdfimport/config/pdf_types.xcu b/sdext/source/pdfimport/config/pdf_types.xcu new file mode 100644 index 000000000000..c3d538b9ec67 --- /dev/null +++ b/sdext/source/pdfimport/config/pdf_types.xcu @@ -0,0 +1,35 @@ + + + + + + + org.libreoffice.comp.documents.PDFDetector + + pdf + application/pdf + true + draw_pdf_import + + PDF - Portable Document Format (Draw) + + + + + diff --git a/sdext/source/pdfimport/test/testdocs/makefile.mk b/sdext/source/pdfimport/test/testdocs/makefile.mk index d5c3ac368e72..273ebb670d93 100644 --- a/sdext/source/pdfimport/test/testdocs/makefile.mk +++ b/sdext/source/pdfimport/test/testdocs/makefile.mk @@ -33,7 +33,7 @@ TESTFILES=\ verticaltext.pdf # --- Fake uno bootstrap ------------------------ -.IF "$(ENABLE_PDFIMPORT)" != "NO" +.IF "$(ENABLE_PDFIMPORT)" == "TRUE" $(BIN)$/pdfi_unittest_test.ini : makefile.mk rm -f $@ diff --git a/sdext/source/pdfimport/xpdftest/makefile.mk b/sdext/source/pdfimport/xpdftest/makefile.mk index 985a62094fc2..bb9fed8286c8 100644 --- a/sdext/source/pdfimport/xpdftest/makefile.mk +++ b/sdext/source/pdfimport/xpdftest/makefile.mk @@ -26,7 +26,7 @@ ENABLE_EXCEPTIONS=TRUE .INCLUDE: settings.mk -.IF "$(ENABLE_PDFIMPORT)" == "NO" +.IF "$(ENABLE_PDFIMPORT)" == "FALSE" @all: @echo "PDF Import extension disabled." .ENDIF -- cgit