1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ = ..$/..$/..
29PRJNAME = bridges
30
31TARGET = test_javauno_equals
32PACKAGE = test$/java_uno$/equals
33
34ENABLE_EXCEPTIONS = TRUE
35
36.INCLUDE: settings.mk
37
38# Make sure TestBed.class is found under $(CLASSDIR)$/test:
39.IF "$(XCLASSPATH)" == ""
40XCLASSPATH := $(CLASSDIR)$/test
41.ELSE
42XCLASSPATH !:= $(XCLASSPATH)$(PATH_SEPERATOR)$(CLASSDIR)$/test
43.ENDIF
44
45DLLPRE = # no leading "lib" on .so files
46INCPRE += $(MISC)$/$(TARGET)$/inc
47
48SLOFILES = $(SLO)$/testequals.obj
49
50SHL1TARGET = testequals.uno
51SHL1OBJS = $(SLOFILES)
52SHL1STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB)
53SHL1VERSIONMAP = $(SOLARENV)/src/component.map
54SHL1IMPLIB = itestequals
55
56JAVAFILES = TestEquals.java
57JARFILES = juh.jar jurt.jar ridl.jar
58
59.INCLUDE: target.mk
60
61ALLTAR: $(BIN)$/testequals
62
63.IF "$(GUI)" == "WNT"
64GIVE_EXEC_RIGHTS = @echo
65.ELSE # GUI, WNT
66GIVE_EXEC_RIGHTS = chmod +x
67.ENDIF # GUI, WNT
68
69EXEC_CLASSPATH_TMP = $(foreach,i,$(JARFILES) $(SOLARBINDIR)$/$i)
70EXEC_CLASSPATH = \
71    $(strip $(subst,!,$(PATH_SEPERATOR) $(EXEC_CLASSPATH_TMP:s/ /!/)))
72
73$(MISC)$/$(TARGET).rdb: types.idl
74    - rm $@
75    - $(MKDIR) $(MISC)$/$(TARGET)
76    - $(MKDIR) $(MISC)$/$(TARGET)$/inc
77    $(IDLC) -I$(SOLARIDLDIR) -O$(MISC)$/$(TARGET) $<
78    $(REGMERGE) $(MISC)$/$(TARGET).rdb /UCR $(MISC)$/$(TARGET)$/types.urd
79    $(CPPUMAKER) -BUCR -C -O$(MISC)$/$(TARGET)$/inc $@ -X$(SOLARBINDIR)$/types.rdb
80    $(JAVAMAKER) -BUCR -nD -O$(CLASSDIR) $@ -X$(SOLARBINDIR)$/types.rdb
81
82$(SLOFILES) $(JAVACLASSFILES): $(MISC)$/$(TARGET).rdb
83
84$(BIN)$/testequals: $(BIN)$/testequals_services.rdb
85    echo '$(AUGMENT_LIBRARY_PATH)' java -classpath \
86        ..$/class$/test$(PATH_SEPERATOR)..$/class$(PATH_SEPERATOR)\
87..$/class$/java_uno.jar$(PATH_SEPERATOR)$(EXEC_CLASSPATH) \
88        test.java_uno.equals.TestEquals $(SOLARBINDIR)$/types.rdb \
89        testequals_services.rdb > $@
90    $(GIVE_EXEC_RIGHTS) $@
91
92$(BIN)$/testequals_services.rdb:
93    - rm $@
94    $(REGCOMP) -register -r $@ -c bridgefac.uno
95    $(REGCOMP) -register -r $@ -c connector.uno
96    $(REGCOMP) -register -r $@ -c remotebridge.uno
97