1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24PRJ=..$/..$/.. 25PRJNAME=sdext 26TARGET=xpdftest 27TARGETTYPE=CUI 28ENABLE_EXCEPTIONS=TRUE 29 30# --- Settings ----------------------------------------------------- 31 32.INCLUDE: settings.mk 33 34.IF "$(ENABLE_PDFIMPORT)" == "NO" 35@all: 36 @echo "PDF Import extension disabled." 37.ENDIF 38 39# --- Targets ------------------------------------------------------ 40 41.INCLUDE : target.mk 42 43#ALLTAR : $(MISC)$/test_0_succeeded 44 45$(MISC)$/test_0_succeeded: $(BIN)$/xpdfimport$(EXECPOST) binary_0_out.def text_0_out.def testinput.pdf 46 $(BIN)$/xpdfimport -f $(MISC)$/binary_0_out testinput.pdf > $(MISC)$/text_0_out 47 diff --strip-trailing-cr $(MISC)$/binary_0_out binary_0_out.def 48 diff --strip-trailing-cr $(MISC)$/text_0_out text_0_out.def 49 $(TOUCH) $@ 50 51# This test is disabled because 52# - the PDF import extension is not part of the AOO build #i118592# 53# - the test files are too huge (75MB + 5MB + 500kB) to remain in the tree 54# The test files are still available at 55# http://svn.apache.org/repos/asf/!svn/bc/1500000/openoffice/tags/AOO341/main/sdext/source/pdfimport/xpdftest/binary_1_out.def 56# http://svn.apache.org/repos/asf/!svn/bc/1500000/openoffice/tags/AOO341/main/sdext/source/pdfimport/xpdftest/text_1_out.def 57# http://svn.apache.org/repos/asf/!svn/bc/1500000/openoffice/tags/AOO341/main/sdext/source/pdfimport/xpdftest/book.pdf 58# if you download them you can enable the test below: 59 60#$(MISC)$/test_1_succeeded: $(BIN)$/xpdfimport$(EXECPOST) binary_1_out.def text_1_out.def book.pdf 61# $(BIN)$/xpdfimport -f $(MISC)$/binary_1_out book.pdf > $(MISC)$/text_1_out 62# diff --strip-trailing-cr $(MISC)$/binary_1_out binary_1_out.def 63# diff --strip-trailing-cr $(MISC)$/text_1_out text_1_out.def 64# $(TOUCH) $@ 65 66