Update ooo320-m1
[ooovba.git] / bridges / test / java_uno / acquire / makefile.mk
blobd027c067dad75f4eba2aaf39f5c2a99b91c4810f
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.8 $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
32 PRJ := ..$/..$/..
33 PRJNAME := bridges
35 TARGET := test_javauno_acquire
36 PACKAGE := test$/javauno$/acquire
38 ENABLE_EXCEPTIONS := TRUE
40 .INCLUDE: settings.mk
42 DLLPRE = # no leading "lib" on .so files
43 INCPRE += $(MISC)$/$(TARGET)$/inc
45 SLOFILES = $(SLO)$/testacquire.obj
47 SHL1TARGET = testacquire.uno
48 SHL1OBJS = $(SLOFILES)
49 SHL1STDLIBS = $(CPPULIB) $(CPPUHELPERLIB) $(SALLIB)
50 SHL1VERSIONMAP = testacquire.map
51 SHL1IMPLIB = itestacquire
53 JAVAFILES = TestAcquire.java
54 JARFILES = OOoRunner.jar juh.jar jurt.jar ridl.jar
56 .INCLUDE: target.mk
58 ALLTAR: \
59 $(BIN)$/testacquire-java-client$(SCRIPTEXT) \
60 $(BIN)$/testacquire-java-server$(SCRIPTEXT) \
61 $(BIN)$/testacquire-native-client$(SCRIPTEXT) \
62 $(BIN)$/testacquire-native-server$(SCRIPTEXT)
64 .IF "$(GUI)" == "WNT"
65 GIVE_EXEC_RIGHTS = @echo
66 .ELSE # GUI, WNT
67 GIVE_EXEC_RIGHTS = chmod +x
68 .ENDIF # GUI, WNT
70 EXEC_CLASSPATH_TMP = $(foreach,i,$(JARFILES) $(SOLARBINDIR)$/$i)
71 EXEC_CLASSPATH = \
72 $(strip $(subst,!,$(PATH_SEPERATOR) $(EXEC_CLASSPATH_TMP:s/ /!/)))
74 $(BIN)$/$(TARGET).rdb: types.idl
75 - rm $@
76 - $(MKDIR) $(MISC)$/$(TARGET)
77 - $(MKDIR) $(MISC)$/$(TARGET)$/inc
78 $(IDLC) -I$(SOLARIDLDIR) -O$(MISC)$/$(TARGET) $<
79 $(REGMERGE) $@ /UCR $(MISC)$/$(TARGET)$/types.urd
80 $(CPPUMAKER) -BUCR -C -O$(MISC)$/$(TARGET)$/inc $@ -X$(SOLARBINDIR)$/types.rdb
81 $(JAVAMAKER) -BUCR -nD -O$(CLASSDIR) $@ -X$(SOLARBINDIR)$/types.rdb
82 $(REGMERGE) $@ / $(SOLARBINDIR)$/types.rdb
83 $(REGCOMP) -register -r $@ -c acceptor.uno$(DLLPOST) \
84 -c bridgefac.uno$(DLLPOST) -c connector.uno$(DLLPOST) \
85 -c remotebridge.uno$(DLLPOST) -c uuresolver.uno$(DLLPOST)
87 $(SLOFILES) $(JAVACLASSFILES): $(BIN)$/$(TARGET).rdb
89 # Use "127.0.0.1" instead of "localhost", see #i32281#:
90 TEST_JAVAUNO_ACQUIRE_UNO_URL := \
91 \"'uno:socket,host=127.0.0.1,port=2002;urp;test'\"
93 $(BIN)$/testacquire-java-client$(SCRIPTEXT):
94 echo java -classpath \
95 ..$/class$/test$(PATH_SEPERATOR)..$/class$(PATH_SEPERATOR)\
96 ..$/class$/java_uno.jar$(PATH_SEPERATOR)$(EXEC_CLASSPATH) \
97 test.javauno.acquire.TestAcquire client \
98 $(TEST_JAVAUNO_ACQUIRE_UNO_URL) > $@
99 $(GIVE_EXEC_RIGHTS) $@
101 $(BIN)$/testacquire-java-server$(SCRIPTEXT):
102 echo java -classpath \
103 ..$/class$/test$(PATH_SEPERATOR)..$/class$(PATH_SEPERATOR)\
104 ..$/class$/java_uno.jar$(PATH_SEPERATOR)$(EXEC_CLASSPATH) \
105 test.javauno.acquire.TestAcquire server \
106 $(TEST_JAVAUNO_ACQUIRE_UNO_URL) > $@
107 $(GIVE_EXEC_RIGHTS) $@
109 $(BIN)$/testacquire-native-client$(SCRIPTEXT):
110 echo '$(AUGMENT_LIBRARY_PATH)' uno \
111 -c com.sun.star.test.bridges.testacquire.impl \
112 -l ../lib/$(SHL1TARGETN:f) -ro $(TARGET).rdb -- \
113 $(TEST_JAVAUNO_ACQUIRE_UNO_URL) > $@
114 $(GIVE_EXEC_RIGHTS) $@
116 $(BIN)$/testacquire-native-server$(SCRIPTEXT):
117 echo '$(AUGMENT_LIBRARY_PATH)' uno \
118 -c com.sun.star.test.bridges.testacquire.impl \
119 -l ../lib/$(SHL1TARGETN:f) -ro $(TARGET).rdb \
120 -u $(TEST_JAVAUNO_ACQUIRE_UNO_URL) --singleaccept > $@
121 $(GIVE_EXEC_RIGHTS) $@