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 = bridges
26
27TARGET = test_javauno_equals
28PACKAGE = test$/java_uno$/equals
29
30ENABLE_EXCEPTIONS = TRUE
31
32.INCLUDE: settings.mk
33
34# Make sure TestBed.class is found under $(CLASSDIR)$/test:
35.IF "$(XCLASSPATH)" == ""
36XCLASSPATH := $(CLASSDIR)$/test
37.ELSE
38XCLASSPATH !:= $(XCLASSPATH)$(PATH_SEPERATOR)$(CLASSDIR)$/test
39.ENDIF
40
41DLLPRE = # no leading "lib" on .so files
42INCPRE += $(MISC)$/$(TARGET)$/inc
43
44SLOFILES = $(SLO)$/testequals.obj
45
46SHL1TARGET = testequals.uno
47SHL1OBJS = $(SLOFILES)
48SHL1STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB)
49SHL1VERSIONMAP = $(SOLARENV)/src/component.map
50SHL1IMPLIB = itestequals
51
52JAVAFILES = TestEquals.java
53JARFILES = juh.jar jurt.jar ridl.jar
54
55.INCLUDE: target.mk
56
57ALLTAR: $(BIN)$/testequals
58
59.IF "$(GUI)" == "WNT"
60GIVE_EXEC_RIGHTS = @echo
61.ELSE # GUI, WNT
62GIVE_EXEC_RIGHTS = chmod +x
63.ENDIF # GUI, WNT
64
65EXEC_CLASSPATH_TMP = $(foreach,i,$(JARFILES) $(SOLARBINDIR)$/$i)
66EXEC_CLASSPATH = \
67    $(strip $(subst,!,$(PATH_SEPERATOR) $(EXEC_CLASSPATH_TMP:s/ /!/)))
68
69$(MISC)$/$(TARGET).rdb: types.idl
70    - rm $@
71    - $(MKDIR) $(MISC)$/$(TARGET)
72    - $(MKDIR) $(MISC)$/$(TARGET)$/inc
73    $(IDLC) -I$(SOLARIDLDIR) -O$(MISC)$/$(TARGET) $<
74    $(REGMERGE) $(MISC)$/$(TARGET).rdb /UCR $(MISC)$/$(TARGET)$/types.urd
75    $(CPPUMAKER) -BUCR -C -O$(MISC)$/$(TARGET)$/inc $@ -X$(SOLARBINDIR)$/types.rdb
76    $(JAVAMAKER) -BUCR -nD -O$(CLASSDIR) $@ -X$(SOLARBINDIR)$/types.rdb
77
78$(SLOFILES) $(JAVACLASSFILES): $(MISC)$/$(TARGET).rdb
79
80$(BIN)$/testequals: $(BIN)$/testequals_services.rdb
81    echo '$(AUGMENT_LIBRARY_PATH)' java -classpath \
82        ..$/class$/test$(PATH_SEPERATOR)..$/class$(PATH_SEPERATOR)\
83..$/class$/java_uno.jar$(PATH_SEPERATOR)$(EXEC_CLASSPATH) \
84        test.java_uno.equals.TestEquals $(SOLARBINDIR)$/types.rdb \
85        testequals_services.rdb > $@
86    $(GIVE_EXEC_RIGHTS) $@
87
88$(BIN)$/testequals_services.rdb:
89    - rm $@
90    $(REGCOMP) -register -r $@ -c bridgefac.uno
91    $(REGCOMP) -register -r $@ -c connector.uno
92    $(REGCOMP) -register -r $@ -c remotebridge.uno
93