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 .
25 ENABLE_EXCEPTIONS
=TRUE
27 # --- Settings -----------------------------------------------------
29 .INCLUDE
: settings.mk
31 CFLAGSCXX
+= $(CPPUNIT_CFLAGS
)
33 # --- Common ----------------------------------------------------------
35 # BEGIN ----------------------------------------------------------------
36 # auto generated Target:tests by codegen.pl
40 # the following three libs are a bit of a hack: cannot link against
41 # unoxml here, because not yet delivered (and does not export
42 # ~anything). Need the functionality to test, so we're linking it in
43 # statically. Need to keep this in sync with
44 # source/services/makefile.mk
47 $(SLB
)$/xpathimpl.lib \
48 $(SLB
)$/eventsimpl.lib
63 SHL1IMPLIB
= i
$(SHL1TARGET
)
65 DEF1NAME
=$(SHL1TARGET
)
66 SHL1VERSIONMAP
= export.map
68 # END ------------------------------------------------------------------
70 #------------------------------- All object files -------------------------------
71 # do this here, so we get right dependencies
74 # --- Targets ------------------------------------------------------
77 .INCLUDE
: _cppunit.mk
79 # --- Fake uno bootstrap ------------------------
81 $(BIN
)$/unoxml_unittest_test.ini
: makefile.mk
83 @echo UNO_SERVICES
= > $@
84 @echo UNO_TYPES
=$(UNOUCRRDB
:s
/\
/\\/) >> $@
86 # --- Enable testshl2 execution in normal build ------------------------
88 $(MISC
)$/unoxml_unittest_succeeded
: $(SHL1TARGETN
) $(BIN
)$/unoxml_unittest_test.ini
89 @echo
----------------------------------------------------------
90 @echo
- start unit
test on library
$(SHL1TARGETN
)
91 @echo
----------------------------------------------------------
92 $(TESTSHL2
) -forward
$(BIN
)$/ -sf
$(mktmp
) $(SHL1TARGETN
)
95 ALLTAR
: $(MISC
)$/unoxml_unittest_succeeded