merge the formfield patch from ooo-build
[ooovba.git] / cppu / test / makefile.mk
blob106954a268abfc556da0dddd0618c497aa410403
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.34 $
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 #*************************************************************************
31 PRJ=..
33 PRJNAME=testcppu
34 TARGET= testcppu
35 LIBTARGET=NO
36 ENABLE_EXCEPTIONS=TRUE
37 NO_BSYMBOLIC=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
50 OBJFILES= \
51 $(OBJ)$/testcppu.obj \
52 $(OBJ)$/test_di.obj \
53 $(OBJ)$/test_Cincludes.obj
54 # $(OBJ)$/test_cuno.obj \
55 # $(OBJ)$/test_sec.obj \
57 APP1TARGET= testcppu
58 APP1OBJS= \
59 $(OBJ)$/testcppu.obj \
60 $(OBJ)$/test_di.obj
61 # $(OBJ)$/test_cuno.obj
62 # $(OBJ)$/test_sec.obj
64 APP1STDLIBS+= \
65 $(CPPULIB) \
66 $(CPPUHELPERLIB) \
67 $(SALHELPERLIB) \
68 $(SALLIB)
70 APP1DEF=$(MISC)$/$(APP1TARGET).def
72 ALLIDLFILES:= \
73 cpputest.idl \
74 language_binding.idl \
75 alignment.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 ------------------------------------------------------
94 .IF "$(depend)" == ""
95 ALL : $(BIN)$/testcppu.rdb unoheader ALLTAR
96 .ELSE
97 ALL: ALLDEP
98 .ENDIF
100 .IF "$(COM)" == "MSC"
101 .IF "$(debug)" != ""
102 CFLAGS += /Ob0
103 .ENDIF
104 .ENDIF
106 .IF "$(extra_mapping)" != ""
107 CFLAGS += -DEXTRA_MAPPING
108 .ENDIF
110 .INCLUDE : target.mk
112 CPPUMAKERFLAGS = -L
114 TYPES:= -Ttest.XLanguageBindingTest \
115 -Ttest.XSimpleInterface \
116 -Ttest.Test1 \
117 -Ttest.Test2 \
118 -Ttest.TdTest1 \
119 -Ttest.Test3 \
120 -Ttest.Base \
121 -Ttest.Base1 \
122 -Ttest.Base2 \
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)
152 touch $@
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