xref: /aoo42x/main/stoc/test/uriproc/makefile.mk (revision 4bd09bdf)
17871dc3eSAndrew Rist#**************************************************************
27871dc3eSAndrew Rist#
37871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
47871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
57871dc3eSAndrew Rist#  distributed with this work for additional information
67871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
77871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
87871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
97871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
107871dc3eSAndrew Rist#
117871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
127871dc3eSAndrew Rist#
137871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
147871dc3eSAndrew Rist#  software distributed under the License is distributed on an
157871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
167871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
177871dc3eSAndrew Rist#  specific language governing permissions and limitations
187871dc3eSAndrew Rist#  under the License.
197871dc3eSAndrew Rist#
207871dc3eSAndrew Rist#**************************************************************
217871dc3eSAndrew Rist
227871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
25cdf0e10cSrcweirnothing .PHONY:
26cdf0e10cSrcweir.ELSE
27cdf0e10cSrcweir
28cdf0e10cSrcweirPRJ := ../..
29cdf0e10cSrcweirPRJNAME := stoc
30cdf0e10cSrcweirTARGET := test_uriproc
31cdf0e10cSrcweir
32cdf0e10cSrcweirENABLE_EXCEPTIONS := TRUE
33cdf0e10cSrcweir
34cdf0e10cSrcweirmy_components = stocservices
35cdf0e10cSrcweir
36cdf0e10cSrcweir.INCLUDE: settings.mk
37cdf0e10cSrcweir
38*4bd09bdfSDamjan Jovanovic.IF "$(ENABLE_UNIT_TESTS)" != "YES"
39*4bd09bdfSDamjan Jovanovicall:
40*4bd09bdfSDamjan Jovanovic	@echo unit tests are disabled. Nothing to do.
41*4bd09bdfSDamjan Jovanovic
42*4bd09bdfSDamjan Jovanovic.ELSE
43*4bd09bdfSDamjan Jovanovic
44cdf0e10cSrcweirDLLPRE = # no leading "lib" on .so files
45cdf0e10cSrcweir
46*4bd09bdfSDamjan JovanovicAPP1TARGET = $(TARGET)
47*4bd09bdfSDamjan JovanovicAPP1OBJS = $(SLO)/test_uriproc.obj
48*4bd09bdfSDamjan JovanovicAPP1STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(GTESTLIB) $(SALLIB)
49*4bd09bdfSDamjan JovanovicAPP1RPATH = NONE
50*4bd09bdfSDamjan Jovanovic# this is a custom test, can't use APP1TARGET_run so disable it here:
51*4bd09bdfSDamjan JovanovicAPP1TEST = disabled
52cdf0e10cSrcweir
53*4bd09bdfSDamjan JovanovicSLOFILES = $(APP1OBJS)
54cdf0e10cSrcweir
55cdf0e10cSrcweir.INCLUDE: target.mk
56cdf0e10cSrcweir
57cdf0e10cSrcweir.IF "$(OS)" == "WNT"
58cdf0e10cSrcweirmy_file = file:///
59cdf0e10cSrcweir.ELSE
60cdf0e10cSrcweirmy_file = file://
61cdf0e10cSrcweir.END
62cdf0e10cSrcweir
63cdf0e10cSrcweirALLTAR: test
64cdf0e10cSrcweir
65cdf0e10cSrcweirtest .PHONY: $(SHL1TARGETN) $(MISC)/$(TARGET)/services.rdb
66*4bd09bdfSDamjan Jovanovic    $(COMMAND_ECHO) $(AUGMENT_LIBRARY_PATH_LOCAL) \
67*4bd09bdfSDamjan Jovanovic    UNO_TYPES=$(my_file)$(SOLARBINDIR)/udkapi.rdb \
68*4bd09bdfSDamjan Jovanovic    UNO_SERVICES=$(my_file)$(PWD)/$(MISC)/$(TARGET)/services.rdb \
69*4bd09bdfSDamjan Jovanovic    URE_INTERNAL_LIB_DIR=$(my_file)$(PWD)/$(DLLDEST) \
70*4bd09bdfSDamjan Jovanovic    $(APP1TARGETN) --gtest_output="xml:$(BIN)/$(APP1TARGET)_result.xml"
71cdf0e10cSrcweir
72cdf0e10cSrcweir$(MISC)/$(TARGET)/services.rdb .ERRREMOVE: $(SOLARENV)/bin/packcomponents.xslt \
73cdf0e10cSrcweir        $(MISC)/$(TARGET)/services.input \
74cdf0e10cSrcweir        $(my_components:^"$(MISC)/":+".component")
75cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam prefix $(PWD)/$(MISC)/ -o $@ \
76cdf0e10cSrcweir        $(SOLARENV)/bin/packcomponents.xslt $(MISC)/$(TARGET)/services.input
77cdf0e10cSrcweir
78cdf0e10cSrcweir$(MISC)/$(TARGET)/services.input:
79cdf0e10cSrcweir    $(MKDIRHIER) $(@:d)
80cdf0e10cSrcweir    echo \
81cdf0e10cSrcweir        '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
82cdf0e10cSrcweir        > $@
83cdf0e10cSrcweir
84*4bd09bdfSDamjan Jovanovic.ENDIF # "$(ENABLE_UNIT_TESTS)" != "YES"
85*4bd09bdfSDamjan Jovanovic
86*4bd09bdfSDamjan Jovanovic.ENDIF # "$(OOO_SUBSEQUENT_TESTS)" == ""
87