1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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 #*************************************************************************
35 TARGET
:= qa_propertysetmixin
36 PACKAGE
= test$/cppuhelper
$/propertysetmixin
$/comp
38 ENABLE_EXCEPTIONS
:= TRUE
43 FILEURLPREFIX
= file
:///
44 MY_URE_INTERNAL_JAVA_DIR
=$(strip $(subst,\
,/ file
:///$(shell @
$(WRAPCMD
) echo
$(SOLARBINDIR
))))
46 FILEURLPREFIX
= file
://
47 MY_URE_INTERNAL_JAVA_DIR
=file
://$(SOLARBINDIR
)
52 DLLPRE
= # no leading "lib" on .so files
53 INCPRE
+= -I
$(MISC
)$/$(TARGET
)$/inc
55 SHL1TARGET
= $(TARGET
)
56 SHL1OBJS
= $(SLO
)$/test_propertysetmixin.obj
57 SHL1STDLIBS
= $(CPPULIB
) $(CPPUHELPERLIB
) $(CPPUNITLIB
) $(SALLIB
)
58 SHL1IMPLIB
= i
$(SHL1TARGET
)
59 DEF1NAME
= $(SHL1TARGET
)
61 .IF
"$(COMNAME)" == "gcc3"
62 SHL1VERSIONMAP
= test.gcc3.map
64 SHL1VERSIONMAP
= test.map
67 SHL2TARGET
= $(TARGET
).uno
68 SHL2OBJS
= $(SLO
)$/comp_propertysetmixin.obj
69 SHL2VERSIONMAP
= comp.map
70 SHL2STDLIBS
= $(CPPULIB
) $(CPPUHELPERLIB
) $(SALLIB
)
71 SHL2IMPLIB
= i
$(SHL2TARGET
)
72 DEF2NAME
= $(SHL2TARGET
)
74 SLOFILES
= $(SHL1OBJS
) $(SHL2OBJS
)
76 JAVAFILES
= JavaSupplier.java
77 JARFILES
= java_uno.jar juh.jar jurt.jar ridl.jar
83 $(MISC
)$/$(TARGET
)$/types.urd
: types.idl
85 $(IDLC
) -O
$(@
:d
) -I
$(SOLARIDLDIR
) -cid
-we
$<
87 $(MISC
)$/$(TARGET
)$/types.rdb .ERRREMOVE
: $(MISC
)$/$(TARGET
)$/types.urd
89 $(REGMERGE
) $@
/UCR
$<
91 $(MISC
)$/$(TARGET
)$/uno.rdb .ERRREMOVE
: $(MISC
)$/$(TARGET
)$/types.rdb \
92 $(DLLDEST
)$/$(SHL2TARGET
)$(DLLPOST
) \
93 $(MISC
)$/$(TARGET
)$/$(TARGET
).uno.jar
$(MISC
)$/$(TARGET
)$/bootstrap.rdb
95 $(COPY
) $(SOLARBINDIR
)$/types.rdb
$@
96 $(REGMERGE
) $@
/ $(MISC
)$/$(TARGET
)$/types.rdb
97 $(REGCOMP
) -register
-r
$@
-c javaloader.uno
$(DLLPOST
) \
98 -c javavm.uno
$(DLLPOST
) -c reflection.uno
$(DLLPOST
) \
99 -c stocservices.uno
$(DLLPOST
)
100 $(REGCOMP
) -register
-r
$@ \
101 -c
$(subst,$/,/ $(DLLDEST
)$/$(SHL2TARGET
)$(DLLPOST
))
102 $(REGCOMP
) -register
-br
$(MISC
)$/$(TARGET
)$/bootstrap.rdb
-r
$@ \
104 $(subst,$/,/ $(FILEURLPREFIX
)$(PWD
)$/$(MISC
)$/$(TARGET
)$/$(TARGET
).uno.jar
) \
105 -classpath
$(CLASSPATH
) \
106 -env
:URE_INTERNAL_JAVA_DIR
=$(MY_URE_INTERNAL_JAVA_DIR
)
108 $(MISC
)$/$(TARGET
)$/bootstrap.rdb .ERRREMOVE
:
110 $(COPY
) $(SOLARBINDIR
)$/types.rdb
$@
111 $(REGCOMP
) -register
-r
$@
-c javaloader.uno
$(DLLPOST
) \
112 -c javavm.uno
$(DLLPOST
) -c stocservices.uno
$(DLLPOST
)
114 $(MISC
)$/$(TARGET
)$/cppumaker.flag
: $(MISC
)$/$(TARGET
)$/types.rdb
115 $(CPPUMAKER
) -O
$(MISC
)$/$(TARGET
)$/inc
-BUCR
-Gc \
116 -X
$(SOLARBINDIR
)$/types.rdb
$<
119 $(SLOFILES
): $(MISC
)$/$(TARGET
)$/cppumaker.flag
121 $(MISC
)$/$(TARGET
)$/javamaker.flag
: $(MISC
)$/$(TARGET
)$/types.rdb
122 $(JAVAMAKER
) -O
$(CLASSDIR
) -BUCR
-nD
-Gc
-X
$(SOLARBINDIR
)$/types.rdb
$<
125 # The following dependency (to execute javac whenever javamaker has run) does
126 # not work reliably, see #i28827#:
127 $(JAVAFILES
) $(JAVACLASSFILES
): $(MISC
)$/$(TARGET
)$/javamaker.flag
129 $(MISC
)$/$(TARGET
)$/$(TARGET
).uno.jar
: $(JAVACLASSFILES
) \
130 $(MISC
)$/$(TARGET
)$/javamaker.flag manifest
131 jar cfm
$@ manifest
-C
$(CLASSDIR
) test/cppuhelper
/propertysetmixin
133 test .PHONY
: $(SHL1TARGETN
) $(MISC
)$/$(TARGET
)$/uno.rdb
134 .IF
"$(USE_SHELL)" == "bash"
135 CLASSPATH
=$(CLASSPATH
) \
136 URE_INTERNAL_JAVA_DIR
=$(MY_URE_INTERNAL_JAVA_DIR
) \
137 testshl2
$(SHL1TARGETN
) -forward
"$(MISC)$/$(TARGET)$/uno.rdb#$(SOLARLIBDIR)"
138 .ELIF
"$(GUI)" == "WNT"
139 set CLASSPATH
=$(CLASSPATH
) && \
140 set URE_INTERNAL_JAVA_DIR
=$(MY_URE_INTERNAL_JAVA_DIR
) && \
141 testshl2
$(SHL1TARGETN
) -forward
"$(MISC)$/$(TARGET)$/uno.rdb#$(SOLARBINDIR)"
143 setenv CLASSPATH
$(CLASSPATH
) && \
144 setenv URE_INTERNAL_JAVA_DIR
$(MY_URE_INTERNAL_JAVA_DIR
) && \
145 testshl2
$(SHL1TARGETN
) -forward
"$(MISC)$/$(TARGET)$/uno.rdb#$(SOLARLIBDIR)"