1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
32 ENABLE_EXCEPTIONS
:= TRUE
36 CFLAGSCXX
+=$(CPPUNIT_CFLAGS
)
39 CFLAGSCXX
+= $(OBJCXXFLAGS
)
42 DLLPRE
=# no leading "lib" on .so files
44 INCPRE
+=$(MISC
)$/$(TARGET
)$/inc
46 SHL1TARGET
= $(TARGET
)_any
47 SHL1OBJS
= $(SLO
)$/test_any.obj
48 SHL1STDLIBS
= $(CPPULIB
) $(CPPUNITLIB
) $(SALLIB
)
49 SHL1VERSIONMAP
= version.map
50 SHL1IMPLIB
= i
$(SHL1TARGET
)
51 DEF1NAME
= $(SHL1TARGET
)
53 SHL2TARGET
= $(TARGET
)_unotype
54 SHL2OBJS
= $(SLO
)$/test_unotype.obj
55 SHL2STDLIBS
= $(CPPULIB
) $(CPPUNITLIB
) $(SALLIB
)
56 SHL2VERSIONMAP
= version.map
57 SHL2IMPLIB
= i
$(SHL2TARGET
)
58 DEF2NAME
= $(SHL2TARGET
)
60 SHL3TARGET
= $(TARGET
)_reference
61 SHL3OBJS
= $(SLO
)$/test_reference.obj
62 SHL3STDLIBS
= $(CPPULIB
) $(CPPUNITLIB
) $(SALLIB
)
63 SHL3VERSIONMAP
= version.map
64 SHL3IMPLIB
= i
$(SHL3TARGET
)
65 DEF3NAME
= $(SHL3TARGET
)
67 SHL4TARGET
= $(TARGET
)_recursion
68 SHL4OBJS
= $(SLO
)$/test_recursion.obj
69 SHL4STDLIBS
= $(CPPULIB
) $(CPPUNITLIB
) $(SALLIB
)
70 SHL4VERSIONMAP
= version.map
71 SHL4IMPLIB
= i
$(SHL4TARGET
)
72 DEF4NAME
= $(SHL4TARGET
)
74 SLOFILES
= $(SHL1OBJS
) $(SHL2OBJS
) $(SHL3OBJS
) $(SHL4OBJS
)
76 .IF
"$(OS)" == "IOS no thanks for now"
77 # Nah, we can't build this here for iOS after all, thanks to having to
78 # use static linking, we would need to link with -lgcc3_uno from
79 # bridges which has not been built yet (and which in fact depends on
80 # cppu...) Seems that any meaningful unit test for iOS actually needs
81 # to be built in the "subsequent" stage.
82 APP5OBJS
= $(OBJ
)/cppu_cppunittester_all.obj
$(SHL1OBJS
) $(SHL2OBJS
) $(SHL3OBJS
) $(SHL4OBJS
)
84 APP5STDLIBS
= $(CPPUNITLIB
) $(CPPULIB
) $(SALLIB
)
85 APP5TARGET
= cppu_cppunittester_all
90 $(SHL1OBJS
): $(MISC
)$/$(TARGET
).cppumaker.flag
92 $(SHL2OBJS
): $(MISC
)$/$(TARGET
).cppumaker.flag
94 $(SHL3OBJS
): $(MISC
)$/$(TARGET
).cppumaker.flag
96 $(SHL4OBJS
): $(MISC
)$/$(TARGET
).cppumaker.flag
98 $(MISC
)$/$(TARGET
).cppumaker.flag
: $(MISC
)$/$(TARGET
).rdb
99 - $(MKDIRHIER
) $(MISC
)$/$(TARGET
)$/inc
100 $(CPPUMAKER
) -O
$(MISC
)$/$(TARGET
)$/inc
-BUCR
-C
$< \
101 $(SOLARBINDIR
)$/udkapi.rdb
104 $(MISC
)$/$(TARGET
).rdb
: $(MISC
)$/$(TARGET
)$/types.urd
106 $(REGMERGE
) $@
/UCR
$<
108 $(MISC
)$/$(TARGET
)$/types.urd
: types.idl
109 - $(MKDIR
) $(MISC
)$/$(TARGET
)
110 $(IDLC
) -O
$(MISC
)$/$(TARGET
) -I
$(SOLARIDLDIR
) -cid
-we
$<
112 .INCLUDE
: _cppunit.mk