1*7871dc3eSAndrew Rist#**************************************************************
2*7871dc3eSAndrew Rist#
3*7871dc3eSAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4*7871dc3eSAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5*7871dc3eSAndrew Rist#  distributed with this work for additional information
6*7871dc3eSAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7*7871dc3eSAndrew Rist#  to you under the Apache License, Version 2.0 (the
8*7871dc3eSAndrew Rist#  "License"); you may not use this file except in compliance
9*7871dc3eSAndrew Rist#  with the License.  You may obtain a copy of the License at
10*7871dc3eSAndrew Rist#
11*7871dc3eSAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12*7871dc3eSAndrew Rist#
13*7871dc3eSAndrew Rist#  Unless required by applicable law or agreed to in writing,
14*7871dc3eSAndrew Rist#  software distributed under the License is distributed on an
15*7871dc3eSAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7871dc3eSAndrew Rist#  KIND, either express or implied.  See the License for the
17*7871dc3eSAndrew Rist#  specific language governing permissions and limitations
18*7871dc3eSAndrew Rist#  under the License.
19*7871dc3eSAndrew Rist#
20*7871dc3eSAndrew Rist#**************************************************************
21*7871dc3eSAndrew Rist
22*7871dc3eSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir.IF "$(OOO_SUBSEQUENT_TESTS)" == ""
25cdf0e10cSrcweirnothing .PHONY:
26cdf0e10cSrcweir.ELSE
27cdf0e10cSrcweir
28cdf0e10cSrcweirPRJ := ../..
29cdf0e10cSrcweirPRJNAME := cppuhelper
30cdf0e10cSrcweir
31cdf0e10cSrcweirTARGET := qa_propertysetmixin
32cdf0e10cSrcweirPACKAGE = test/cppuhelper/propertysetmixin/comp
33cdf0e10cSrcweir
34cdf0e10cSrcweirENABLE_EXCEPTIONS := TRUE
35cdf0e10cSrcweir
36cdf0e10cSrcweirmy_components = $(TARGET).cpp $(TARGET).java
37cdf0e10cSrcweir
38cdf0e10cSrcweir.INCLUDE: settings.mk
39cdf0e10cSrcweir
40cdf0e10cSrcweir.IF "$(OS)" == "WNT"
41cdf0e10cSrcweirmy_file = file:///
42cdf0e10cSrcweir.ELSE
43cdf0e10cSrcweirmy_file = file://
44cdf0e10cSrcweir.END
45cdf0e10cSrcweir
46cdf0e10cSrcweirDLLPRE = # no leading "lib" on .so files
47cdf0e10cSrcweirINCPRE += -I$(MISC)/$(TARGET)/inc
48cdf0e10cSrcweirCFLAGSCXX += $(CPPUNIT_CFLAGS)
49cdf0e10cSrcweir
50cdf0e10cSrcweirSHL1TARGET = $(TARGET)
51cdf0e10cSrcweirSHL1OBJS = $(SLO)/test_propertysetmixin.obj
52cdf0e10cSrcweirSHL1VERSIONMAP = test.map
53cdf0e10cSrcweirSHL1STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(CPPUNITLIB) $(SALLIB)
54cdf0e10cSrcweirSHL1IMPLIB = i$(SHL1TARGET)
55cdf0e10cSrcweirSHL1RPATH = NONE
56cdf0e10cSrcweirDEF1NAME = $(SHL1TARGET)
57cdf0e10cSrcweir
58cdf0e10cSrcweirSHL2TARGET = $(TARGET).uno
59cdf0e10cSrcweirSHL2OBJS = $(SLO)/comp_propertysetmixin.obj
60cdf0e10cSrcweirSHL2VERSIONMAP = $(SOLARENV)/src/component.map
61cdf0e10cSrcweirSHL2STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB)
62cdf0e10cSrcweirSHL2IMPLIB = i$(SHL2TARGET)
63cdf0e10cSrcweirSH21RPATH = NONE
64cdf0e10cSrcweirDEF2NAME = $(SHL2TARGET)
65cdf0e10cSrcweir
66cdf0e10cSrcweirSLOFILES = $(SHL1OBJS) $(SHL2OBJS)
67cdf0e10cSrcweir
68cdf0e10cSrcweirJAVAFILES = JavaSupplier.java
69cdf0e10cSrcweirJARFILES = java_uno.jar juh.jar jurt.jar ridl.jar
70cdf0e10cSrcweir
71cdf0e10cSrcweir.INCLUDE: target.mk
72cdf0e10cSrcweir
73cdf0e10cSrcweirALLTAR: test
74cdf0e10cSrcweir
75cdf0e10cSrcweir$(MISC)/$(TARGET)/types.urd: types.idl
76cdf0e10cSrcweir    $(MKDIRHIER) $(@:d)
77cdf0e10cSrcweir    $(IDLC) -O$(@:d) -I$(SOLARIDLDIR) -cid -we $<
78cdf0e10cSrcweir
79cdf0e10cSrcweir$(MISC)/$(TARGET)/types.rdb: $(MISC)/$(TARGET)/types.urd
80cdf0e10cSrcweir    - $(RM) $@
81cdf0e10cSrcweir    $(REGMERGE) $@ /UCR $<
82cdf0e10cSrcweir
83cdf0e10cSrcweir$(MISC)/$(TARGET)/cppumaker.flag: $(MISC)/$(TARGET)/types.rdb
84cdf0e10cSrcweir    $(CPPUMAKER) -O$(MISC)/$(TARGET)/inc -BUCR -Gc \
85cdf0e10cSrcweir        -X$(SOLARBINDIR)/udkapi.rdb $<
86cdf0e10cSrcweir    $(TOUCH) $@
87cdf0e10cSrcweir
88cdf0e10cSrcweir$(SLOFILES): $(MISC)/$(TARGET)/cppumaker.flag
89cdf0e10cSrcweir
90cdf0e10cSrcweir$(MISC)/$(TARGET)/javamaker.flag: $(MISC)/$(TARGET)/types.rdb
91cdf0e10cSrcweir    $(JAVAMAKER) -O$(CLASSDIR) -BUCR -nD -Gc -X$(SOLARBINDIR)/udkapi.rdb $<
92cdf0e10cSrcweir    $(TOUCH) $@
93cdf0e10cSrcweir
94cdf0e10cSrcweir$(JAVATARGET): $(MISC)/$(TARGET)/javamaker.flag
95cdf0e10cSrcweir
96cdf0e10cSrcweir$(MISC)/$(TARGET)/services.rdb .ERRREMOVE: $(SOLARENV)/bin/packcomponents.xslt \
97cdf0e10cSrcweir        $(MISC)/$(TARGET)/services.input \
98cdf0e10cSrcweir        $(my_components:^"$(MISC)/$(TARGET)/":+".component")
99cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam prefix $(PWD)/$(MISC)/$(TARGET)/ -o $@ \
100cdf0e10cSrcweir        $(SOLARENV)/bin/packcomponents.xslt $(MISC)/$(TARGET)/services.input
101cdf0e10cSrcweir
102cdf0e10cSrcweir$(MISC)/$(TARGET)/services.input:
103cdf0e10cSrcweir    $(MKDIRHIER) $(@:d)
104cdf0e10cSrcweir    echo \
105cdf0e10cSrcweir        '<list>$(my_components:^"<filename>":+".component</filename>")</list>' \
106cdf0e10cSrcweir        > $@
107cdf0e10cSrcweir
108cdf0e10cSrcweir$(MISC)/$(TARGET)/$(TARGET).cpp.component .ERRREMOVE: \
109cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt $(TARGET).cpp.component
110cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
111cdf0e10cSrcweir        '$(COMPONENTPREFIX_INBUILD_NATIVE)$(SHL2TARGETN:f)' -o $@ \
112cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt $(TARGET).cpp.component
113cdf0e10cSrcweir
114cdf0e10cSrcweir$(MISC)/$(TARGET)/$(TARGET).java.component .ERRREMOVE: \
115cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt $(TARGET).java.component
116cdf0e10cSrcweir    $(XSLTPROC) --nonet --stringparam uri \
117cdf0e10cSrcweir        '$(COMPONENTPREFIX_INBUILD_JAVA)$(TARGET).uno.jar' -o $@ \
118cdf0e10cSrcweir        $(SOLARENV)/bin/createcomponent.xslt $(TARGET).java.component
119cdf0e10cSrcweir
120cdf0e10cSrcweir$(MISC)/$(TARGET)/$(TARGET).uno.jar: $(JAVATARGET) \
121cdf0e10cSrcweir        $(MISC)/$(TARGET)/javamaker.flag manifest
122cdf0e10cSrcweir    jar cfm $@ manifest -C $(CLASSDIR) test/cppuhelper/propertysetmixin
123cdf0e10cSrcweir
124cdf0e10cSrcweirtest .PHONY: $(SHL1TARGETN) $(SHL2TARGETN) $(MISC)/$(TARGET)/$(TARGET).uno.jar \
125cdf0e10cSrcweir        $(MISC)/$(TARGET)/types.rdb $(MISC)/$(TARGET)/services.rdb
126cdf0e10cSrcweir    $(CPPUNITTESTER) $(SHL1TARGETN) \
127cdf0e10cSrcweir        '-env:UNO_TYPES=$(my_file)$(SOLARBINDIR)/udkapi.rdb $(my_file)$(PWD)/$(MISC)/$(TARGET)/types.rdb' \
128cdf0e10cSrcweir        '-env:UNO_SERVICES=$(my_file)$(SOLARXMLDIR)/ure/services.rdb $(my_file)$(PWD)/$(MISC)/$(TARGET)/services.rdb'\
129cdf0e10cSrcweir        -env:URE_INTERNAL_LIB_DIR=$(my_file)$(SOLARSHAREDBIN) \
130cdf0e10cSrcweir        -env:URE_INTERNAL_JAVA_DIR=$(my_file)$(SOLARBINDIR) \
131cdf0e10cSrcweir        -env:OOO_INBUILD_SHAREDLIB_DIR=$(my_file)$(PWD)/$(DLLDEST) \
132cdf0e10cSrcweir        -env:OOO_INBUILD_JAR_DIR=$(my_file)$(PWD)/$(MISC)/$(TARGET)
133cdf0e10cSrcweir
134cdf0e10cSrcweir.END
135