merge the formfield patch from ooo-build
[ooovba.git] / bridges / test / java_uno / any / makefile.mk
blob1957194f856a662dd52a9bf289793dd712aae769
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.11 $
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
34 TARGET = test_javauno_any
36 PACKAGE = test$/java_uno$/anytest
38 ENABLE_EXCEPTIONS = TRUE
40 .INCLUDE: settings.mk
42 .IF "$(GUI)" == "WNT"
43 GIVE_EXEC_RIGHTS = @echo
44 .ELSE
45 GIVE_EXEC_RIGHTS = chmod +x
46 .ENDIF
48 JAVAFILES = \
49 $(subst,$(CLASSDIR)$/$(PACKAGE)$/, $(subst,.class,.java $(JAVACLASSFILES)))
51 # Make sure TestBed.class is found under $(CLASSDIR)$/test:
52 .IF "$(XCLASSPATH)" == ""
53 XCLASSPATH := $(CLASSDIR)$/test
54 .ELSE
55 XCLASSPATH !:= $(XCLASSPATH)$(PATH_SEPERATOR)$(CLASSDIR)$/test
56 .ENDIF
58 EXEC_CLASSPATH_TMP = \
59 $(foreach,i,$(JARFILES) $(SOLARBINDIR)$/$i)$(PATH_SEPERATOR)$(XCLASSPATH)
60 EXEC_CLASSPATH = \
61 $(strip $(subst,!,$(PATH_SEPERATOR) $(EXEC_CLASSPATH_TMP:s/ /!/)))
63 JARFILES = juh.jar jurt.jar ridl.jar
64 JAVACLASSFILES = \
65 $(CLASSDIR)$/$(PACKAGE)$/TestAny.class \
66 $(CLASSDIR)$/$(PACKAGE)$/TestRemote.class \
67 $(CLASSDIR)$/$(PACKAGE)$/TestJni.class
69 #--------------------------------------------------
71 USE_DEFFILE = TRUE
72 ENABLE_EXCEPTIONS = TRUE
73 INCPRE += $(OUT)$/inc$/test
75 .IF "$(debug)" != ""
76 .IF "$(COM)" == "MSC"
77 CFLAGS += -Ob0
78 .ENDIF
79 .ENDIF
81 SLOFILES= \
82 $(SLO)$/transport.obj
84 SHL1TARGET=$(TARGET)
86 SHL1STDLIBS= \
87 $(CPPUHELPERLIB) \
88 $(SALHELPERLIB) \
89 $(JVMACCESSLIB) \
90 $(CPPULIB) \
91 $(SALLIB)
93 SHL1VERSIONMAP=$(TARGET).map
94 SHL1IMPLIB=i$(TARGET)
95 SHL1LIBS=$(SLB)$/$(TARGET).lib
96 SHL1DEF=$(MISC)$/$(SHL1TARGET).def
97 DEF1NAME=$(SHL1TARGET)
99 .INCLUDE: target.mk
101 #--------------------------------------------------
103 $(SLOFILES) : $(MISC)$/gen_files.flag
104 $(JAVACLASSFILES) : $(MISC)$/gen_files.flag
106 ALLTAR : \
107 $(OUT)$/bin$/TestRemote$(SCRIPTEXT) \
108 $(OUT)$/bin$/TestJni$(SCRIPTEXT)
110 $(OUT)$/bin$/TestRemote$(SCRIPTEXT) : $(JAVACLASSFILES)
111 -rm -f $@
112 echo java -classpath ..$/class$/test$(PATH_SEPERATOR)..$/class$(PATH_SEPERATOR)$(EXEC_CLASSPATH) \
113 test.java_uno.anytest.TestRemote > $@
114 $(GIVE_EXEC_RIGHTS) $@
116 $(OUT)$/bin$/TestJni$(SCRIPTEXT) : $(JAVACLASSFILES)
117 -rm -f $@
118 echo '$(AUGMENT_LIBRARY_PATH)' java -classpath \
119 .$(PATH_SEPERATOR)..$/class$(PATH_SEPERATOR)$(EXEC_CLASSPATH) \
120 -Djava.library.path=..$/lib test.java_uno.anytest.TestJni >> $@
121 $(GIVE_EXEC_RIGHTS) $@
123 $(BIN)$/test_java_uno_anytest.rdb : types.idl
124 $(IDLC) -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $?
125 $(REGMERGE) $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)}
127 $(MISC)$/gen_files.flag : $(BIN)$/test_java_uno_anytest.rdb
128 $(CPPUMAKER) -C -BUCR -O $(OUT)$/inc$/test -X $(SOLARBINDIR)$/udkapi.rdb $?
129 $(CPPUMAKER) -C -BUCR -O $(OUT)$/inc$/test -T com.sun.star.uno.XInterface $(SOLARBINDIR)$/udkapi.rdb
130 $(JAVAMAKER) -nD -BUCR -O $(CLASSDIR) -X $(SOLARBINDIR)$/udkapi.rdb $?
131 $(TOUCH) $@