fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sdext / source / pdfimport / test / testdocs / makefile.mk
blob273ebb670d93ba90c611f8b504eebf42c2336932
2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # This file incorporates work covered by the following license notice:
10 # Licensed to the Apache Software Foundation (ASF) under one or more
11 # contributor license agreements. See the NOTICE file distributed
12 # with this work for additional information regarding copyright
13 # ownership. The ASF licenses this file to you under the Apache
14 # License, Version 2.0 (the "License"); you may not use this file
15 # except in compliance with the License. You may obtain a copy of
16 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 PRJ=..$/..$/..$/..
20 PRJNAME=sdext
21 TARGET=testdocs
23 # --- Settings -----------------------------------------------------
25 .INCLUDE: settings.mk
26 .INCLUDE : target.mk
28 TESTFILES=\
29 graphicformats.pdf \
30 pictxt.pdf \
31 txtpic.pdf \
32 txtpictxt.pdf \
33 verticaltext.pdf
35 # --- Fake uno bootstrap ------------------------
36 .IF "$(ENABLE_PDFIMPORT)" == "TRUE"
38 $(BIN)$/pdfi_unittest_test.ini : makefile.mk
39 rm -f $@
40 @echo UNO_SERVICES= > $@
41 @echo UNO_TYPES=$(UNOUCRRDB:s/\/\\/) >> $@
43 # --- Enable test execution in normal build, diff all test docs ---
45 ALLTAR : $(BIN)$/pdfi_unittest_test.ini \
46 $(foreach,i,$(TESTFILES:s/.pdf/_pdfi_unittest_writer_succeeded/:f) $(MISC)$/$i) \
47 $(foreach,i,$(TESTFILES:s/.pdf/_pdfi_unittest_impress_succeeded/:f) $(MISC)$/$i) \
48 $(foreach,i,$(TESTFILES:s/.pdf/_pdfi_unittest_draw_succeeded/:f) $(MISC)$/$i)
50 $(MISC)$/%_pdfi_unittest_writer_succeeded : $$(@:s/_succeeded/.xml/:f)
51 rm -f $(MISC)$/$(@:s/_succeeded/.xml/:f)
52 $(BIN)$/pdf2xml -writer $(@:s/_pdfi_unittest_writer_succeeded/.pdf/:f) $(MISC)$/$(@:s/_succeeded/.xml/:f) $(BIN)$/pdfi_unittest_test.ini
53 diff $(MISC)$/$(@:s/_succeeded/.xml/:f) $(@:s/_succeeded/.xml/:f)
54 $(TOUCH) $@
55 $(MISC)$/%_pdfi_unittest_impress_succeeded : $$(@:s/_succeeded/.xml/:f)
56 rm -f $(MISC)$/$(@:s/_succeeded/.xml/:f)
57 $(BIN)$/pdf2xml -impress $(@:s/_pdfi_unittest_impress_succeeded/.pdf/:f) $(MISC)$/$(@:s/_succeeded/.xml/:f) $(BIN)$/pdfi_unittest_test.ini
58 diff $(MISC)$/$(@:s/_succeeded/.xml/:f) $(@:s/_succeeded/.xml/:f)
59 $(TOUCH) $@
60 $(MISC)$/%_pdfi_unittest_draw_succeeded : $$(@:s/_succeeded/.xml/:f)
61 rm -f $(MISC)$/$(@:s/_succeeded/.xml/:f)
62 $(BIN)$/pdf2xml -draw $(@:s/_pdfi_unittest_draw_succeeded/.pdf/:f) $(MISC)$/$(@:s/_succeeded/.xml/:f) $(BIN)$/pdfi_unittest_test.ini
63 diff $(MISC)$/$(@:s/_succeeded/.xml/:f) $(@:s/_succeeded/.xml/:f)
64 $(TOUCH) $@
66 # hackaround for dmake's insufficiency to have more than one
67 # prerequisite on template rules
68 $(foreach,i,$(TESTFILES:s/.pdf/_pdfi_unittest_writer_succeeded/:f) $(MISC)$/$i) : $(BIN)$/pdfi_unittest_test.ini $(BIN)$/pdf2xml$(EXECPOST)
69 $(foreach,i,$(TESTFILES:s/.pdf/_pdfi_unittest_impress_succeeded/:f) $(MISC)$/$i) : $(BIN)$/pdfi_unittest_test.ini $(BIN)$/pdf2xml$(EXECPOST)
70 $(foreach,i,$(TESTFILES:s/.pdf/_pdfi_unittest_draw_succeeded/:f) $(MISC)$/$i) : $(BIN)$/pdfi_unittest_test.ini $(BIN)$/pdf2xml$(EXECPOST)
72 .ENDIF