Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / stoc / test / uriproc / makefile.mk
blob68ebd3d67fa2b60306100330f095e672e18d420a
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
28 .IF "$(OOO_SUBSEQUENT_TESTS)" == ""
29 nothing .PHONY:
30 .ELSE
32 PRJ := ../..
33 PRJNAME := stoc
34 TARGET := test_uriproc
36 ENABLE_EXCEPTIONS := TRUE
37 VISIBILITY_HIDDEN := TRUE
39 my_components = stocservices
41 .INCLUDE: settings.mk
43 CFLAGSCXX += $(CPPUNIT_CFLAGS)
44 DLLPRE = # no leading "lib" on .so files
46 SHL1TARGET = $(TARGET)
47 SHL1OBJS = $(SLO)/test_uriproc.obj
48 SHL1STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(CPPUNITLIB) $(SALLIB)
49 SHL1USE_EXPORTS = name
50 SHL1RPATH = NONE
51 SHL1IMPLIB = i$(SHL1TARGET)
52 DEF1NAME = $(SHL1TARGET)
54 SLOFILES = $(SHL1OBJS)
56 .INCLUDE: target.mk
58 .IF "$(OS)" == "WNT"
59 my_file = file:///
60 .ELSE
61 my_file = file://
62 .END
64 ALLTAR: test
66 test .PHONY: $(SHL1TARGETN) $(MISC)/$(TARGET)/services.rdb
67 $(CPPUNITTESTER) $(SHL1TARGETN) \
68 -env:UNO_TYPES=$(my_file)$(SOLARBINDIR)/udkapi.rdb \
69 -env:UNO_SERVICES=$(my_file)$(PWD)/$(MISC)/$(TARGET)/services.rdb \
70 -env:URE_INTERNAL_LIB_DIR=$(my_file)$(PWD)/$(DLLDEST)
72 $(MISC)/$(TARGET)/services.rdb .ERRREMOVE: $(SOLARENV)/bin/packcomponents.xslt \
73 $(MISC)/$(TARGET)/services.input \
74 $(my_components:^"$(MISC)/":+".component")
75 $(XSLTPROC) --nonet --stringparam prefix $(PWD)/$(MISC)/ -o $@ \
76 $(SOLARENV)/bin/packcomponents.xslt $(MISC)/$(TARGET)/services.input
78 $(MISC)/$(TARGET)/services.input:
79 $(MKDIRHIER) $(@:d)
80 echo \
81 '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
82 > $@
84 .END