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 #*************************************************************************
36 ENABLE_EXCEPTIONS
=TRUE
39 # --- Settings -----------------------------------------------------
41 .INCLUDE
: settings.mk
43 # --- Files --------------------------------------------------------
45 UNOUCRDEP
=$(SOLARBINDIR
)$/udkapi.rdb
46 UNOUCRRDB
=$(SOLARBINDIR
)$/udkapi.rdb
47 UNOUCROUT
=$(OUT
)$/inc
$/test
48 INCPRE
+=$(OUT
)$/inc
$/test
51 $(OBJ
)$/testcppu.obj \
53 $(OBJ
)$/test_Cincludes.obj
54 # $(OBJ)$/test_cuno.obj \
55 # $(OBJ)$/test_sec.obj \
59 $(OBJ
)$/testcppu.obj \
61 # $(OBJ)$/test_cuno.obj
62 # $(OBJ)$/test_sec.obj
70 APP1DEF
=$(MISC
)$/$(APP1TARGET
).def
74 language_binding.idl \
78 APP2TARGET
:= Mapping.
test
79 APP2OBJS
:= $(OBJ
)$/Mapping.
test.obj
80 APP2STDLIBS
:= $(CPPULIB
) $(SALLIB
)
82 APP3TARGET
:= Environment.
test
83 APP3OBJS
:= $(OBJ
)$/Environment.
test.obj
84 APP3STDLIBS
:= $(CPPULIB
) $(SALLIB
)
86 APP4TARGET
:= IdentityMapping.
test
87 APP4OBJS
:= $(OBJ
)$/IdentityMapping.
test.obj
88 APP4STDLIBS
:= $(CPPULIB
) $(SALLIB
)
92 # --- Targets ------------------------------------------------------
95 ALL
: $(BIN
)$/testcppu.rdb unoheader ALLTAR
100 .IF
"$(COM)" == "MSC"
106 .IF
"$(extra_mapping)" != ""
107 CFLAGS
+= -DEXTRA_MAPPING
114 TYPES
:= -Ttest.XLanguageBindingTest \
115 -Ttest.XSimpleInterface \
123 -Tcom.sun.star.lang.XMultiServiceFactory \
124 -Tcom.sun.star.lang.XSingleServiceFactory \
125 -Tcom.sun.star.lang.XInitialization \
126 -Tcom.sun.star.lang.XServiceInfo \
127 -Tcom.sun.star.lang.XEventListener \
128 -Tcom.sun.star.lang.XTypeProvider \
129 -Tcom.sun.star.lang.DisposedException \
130 -Tcom.sun.star.registry.XSimpleRegistry \
131 -Tcom.sun.star.registry.XRegistryKey \
132 -Tcom.sun.star.loader.XImplementationLoader \
133 -Tcom.sun.star.registry.XImplementationRegistration \
134 -Tcom.sun.star.lang.XComponent \
135 -Tcom.sun.star.uno.XComponentContext \
136 -Tcom.sun.star.container.XSet \
137 -Tcom.sun.star.container.XNameContainer \
138 -Tcom.sun.star.uno.TypeClass \
139 -Tcom.sun.star.uno.XReference \
140 -Tcom.sun.star.uno.XAdapter \
141 -Tcom.sun.star.uno.XAggregation \
142 -Tcom.sun.star.uno.XWeak \
143 -Tcom.sun.star.beans.XPropertySet \
144 -Tcom.sun.star.reflection.XIdlClassProvider \
145 -Tcom.sun.star.container.XHierarchicalNameAccess \
146 -Tcom.sun.star.uno.XCurrentContext
148 $(BIN
)$/testcppu.rdb
: $(ALLIDLFILES
)
149 idlc
-I
$(PRJ
) -I
$(SOLARIDLDIR
) -O
$(BIN
) $?
150 regmerge
$@
/UCR
$(BIN
)$/{$(?
:f
:s
/.idl
/.urd
/)}
151 regmerge
$@
/ $(UNOUCRRDB
)
154 # regcomp -register -r $@ -c javaloader.dll
155 # regcomp -register -r $@ -c jen.dll
157 unoheader
: $(BIN
)$/testcppu.rdb
158 cppumaker
$(CPPUMAKERFLAGS
) -BUCR
-O
$(UNOUCROUT
) $(TYPES
) $(BIN
)$/testcppu.rdb
159 # cunomaker -BUCR -O$(UNOUCROUT) $(TYPES) $(BIN)$/testcppu.rdb