diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-11-29 11:27:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-11-29 11:36:58 +0100 |
commit | 79e5ee5f6949f4b8645ef32dba61705d02473c60 (patch) | |
tree | 2042e4b002d19e7d828b838537278ca9f10da629 /sdext/source | |
parent | 053108588dd634838457ba81e7dc70e82aa50e02 (diff) |
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
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/pdfimport/config/pdf_types.xcu | 35 | ||||
-rw-r--r-- | sdext/source/pdfimport/test/testdocs/makefile.mk | 2 | ||||
-rw-r--r-- | sdext/source/pdfimport/xpdftest/makefile.mk | 2 |
3 files changed, 37 insertions, 2 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd"> +<!-- + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + --> +<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:package="org.openoffice.TypeDetection" oor:name="Types"> + <node oor:name="Types"> + <node oor:name="pdf_Portable_Document_Format" oor:op="replace" > + <prop oor:name="DetectService"><value>org.libreoffice.comp.documents.PDFDetector</value></prop> + <prop oor:name="URLPattern"/> + <prop oor:name="Extensions"><value>pdf</value></prop> + <prop oor:name="MediaType"><value>application/pdf</value></prop> + <prop oor:name="Preferred"><value>true</value></prop> + <prop oor:name="PreferredFilter"><value>draw_pdf_import</value></prop> + <prop oor:name="UIName"> + <value>PDF - Portable Document Format (Draw)</value> + </prop> + <prop oor:name="ClipboardFormat"/> + </node> + </node> +</oor:component-data> 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 |