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
24PRJ=..$/..$/..$/..$/..$/..$/..
25PRJNAME = juhelper
26PACKAGE = com$/sun$/star$/lib$/uno$/helper
27TARGET  = com_sun_star_lib_uno_helper_test
28
29# --- Settings -----------------------------------------------------
30
31.INCLUDE :  settings.mk
32
33# --- Files --------------------------------------------------------
34
35JARFILES = jurt.jar ridl.jar juh.jar
36
37JAVACLASSFILES=	\
38	$(CLASSDIR)$/$(PACKAGE)$/WeakBase_Test.class \
39	$(CLASSDIR)$/$(PACKAGE)$/ComponentBase_Test.class \
40	$(CLASSDIR)$/$(PACKAGE)$/InterfaceContainer_Test.class \
41	$(CLASSDIR)$/$(PACKAGE)$/MultiTypeInterfaceContainer_Test.class \
42	$(CLASSDIR)$/$(PACKAGE)$/ProxyProvider.class \
43	$(CLASSDIR)$/$(PACKAGE)$/AWeakBase.class    \
44        $(CLASSDIR)$/$(PACKAGE)$/PropertySet_Test.class \
45	$(CLASSDIR)$/$(PACKAGE)$/UnoUrlTest.class	\
46	$(CLASSDIR)$/$(PACKAGE)$/Factory_Test.class
47
48# --- Targets ------------------------------------------------------
49
50.INCLUDE :  target.mk
51
52CPATH_JARS = java_uno.jar $(JARFILES)
53CPATH_TMP1 = $(foreach,j,$(CPATH_JARS) $(SOLARBINDIR)$/$j)
54CPATH_TMP2 = $(strip $(subst,!,$(PATH_SEPERATOR) $(CPATH_TMP1:s/ /!/)))
55CPATH = $(CPATH_TMP2)$(PATH_SEPERATOR)$(OUT)$/bin$/factory_test.jar$(PATH_SEPERATOR)$(XCLASSPATH)
56
57$(OUT)$/bin$/factory_test.jar : $(CLASSDIR)$/$(PACKAGE)$/Factory_Test.class
58	-rm -f $@
59	@echo RegistrationClassName: com.sun.star.lib.uno.helper.Factory_Test > $(OUT)$/bin$/manifest.mf
60	-jar cvfm $@ $(OUT)$/bin$/manifest.mf -C $(CLASSDIR) $(PACKAGE)$/Factory_Test.class
61
62run_factory_test : $(OUT)$/bin$/factory_test.jar
63	-$(GNUCOPY) $(SOLARBINDIR)$/udkapi.rdb $(OUT)$/bin$/factory_test.rdb
64	-java -classpath $(CPATH) com.sun.star.lib.uno.helper.Factory_Test $(OUT)$/bin$/factory_test.jar $(OUT)$/bin$/factory_test.rdb
65