xref: /aoo4110/main/stoc/test/uriproc/makefile.mk (revision b1cdbd2c)
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
24.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
25nothing .PHONY:
26.ELSE
27
28PRJ := ../..
29PRJNAME := stoc
30TARGET := test_uriproc
31
32ENABLE_EXCEPTIONS := TRUE
33
34my_components = stocservices
35
36.INCLUDE: settings.mk
37
38CFLAGSCXX += $(CPPUNIT_CFLAGS)
39DLLPRE = # no leading "lib" on .so files
40
41SHL1TARGET = $(TARGET)
42SHL1OBJS = $(SLO)/test_uriproc.obj
43SHL1STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(CPPUNITLIB) $(SALLIB)
44SHL1VERSIONMAP = version.map
45SHL1RPATH = NONE
46SHL1IMPLIB = i$(SHL1TARGET)
47DEF1NAME = $(SHL1TARGET)
48
49SLOFILES = $(SHL1OBJS)
50
51.INCLUDE: target.mk
52
53.IF "$(OS)" == "WNT"
54my_file = file:///
55.ELSE
56my_file = file://
57.END
58
59ALLTAR: test
60
61test .PHONY: $(SHL1TARGETN) $(MISC)/$(TARGET)/services.rdb
62    $(CPPUNITTESTER) $(SHL1TARGETN) \
63        -env:UNO_TYPES=$(my_file)$(SOLARBINDIR)/udkapi.rdb \
64        -env:UNO_SERVICES=$(my_file)$(PWD)/$(MISC)/$(TARGET)/services.rdb \
65        -env:URE_INTERNAL_LIB_DIR=$(my_file)$(PWD)/$(DLLDEST)
66
67$(MISC)/$(TARGET)/services.rdb .ERRREMOVE: $(SOLARENV)/bin/packcomponents.xslt \
68        $(MISC)/$(TARGET)/services.input \
69        $(my_components:^"$(MISC)/":+".component")
70    $(XSLTPROC) --nonet --stringparam prefix $(PWD)/$(MISC)/ -o $@ \
71        $(SOLARENV)/bin/packcomponents.xslt $(MISC)/$(TARGET)/services.input
72
73$(MISC)/$(TARGET)/services.input:
74    $(MKDIRHIER) $(@:d)
75    echo \
76        '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
77        > $@
78
79.END
80