xref: /haiku/src/tools/cppunit/Jamfile (revision 9642f7705b27e5c270c15fa526d14e1848c2c27d)
1SubDir HAIKU_TOP src tools cppunit ;
2
3SetSubDirSupportedPlatformsBeOSCompatible ;
4AddSubDirSupportedPlatforms libbe_test ;
5
6UseHeaders [ FDirName $(HAIKU_TOP) headers tools elfsymbolpatcher ] : true ;
7UseCppUnitHeaders ;
8
9SEARCH_SOURCE += [ FDirName $(SUBDIR) cppunit ] ;
10
11{
12	DEFINES += BUILDING_CPPUNIT ;
13
14	if ( $(OS) != BEOS && $(OS) != HAIKU ) || $(OSPLAT) = PPC {
15		DEFINES += NO_ELF_SYMBOL_PATCHING ;
16	}
17}
18
19SharedLibrary libcppunit.so :
20	BTestCase.cpp
21	BTestSuite.cpp
22	SemaphoreSyncObject.cpp
23	TestApp.cpp
24	TestListener.cpp
25	TestShell.cpp
26	TestUtils.cpp
27	ThreadedTestCase.cpp
28
29	# cppunit
30	Asserter.cpp
31	CompilerOutputter.cpp
32	Exception.cpp
33	NotEqualException.cpp
34	RepeatedTest.cpp
35	SourceLine.cpp
36	SynchronizedObject.cpp
37	TestAssert.cpp
38	TestCase.cpp
39	TestFactoryRegistry.cpp
40	TestFailure.cpp
41	TestResult.cpp
42	TestResultCollector.cpp
43	TestRunner.cpp
44	TestSetUp.cpp
45	TestSucessListener.cpp
46	TestSuite.cpp
47	TextOutputter.cpp
48	TextTestProgressListener.cpp
49	TextTestResult.cpp
50	TypeInfoHelper.cpp
51	XmlOutputter.cpp
52	: be [ TargetLibstdc++ ]
53;
54
55if  ( $(OS) = BEOS || $(OS) = HAIKU ) && $(OSPLAT) != PPC {
56	LinkAgainst libcppunit.so : libelfsymbolpatcher.a debug ;
57}
58
59# To run the tests we need the cppunit library.
60{
61	local target = <src!tools!cppunit>libcppunit.so ;
62	MakeLocate $(target) : $(TARGET_UNIT_TEST_LIB_DIR) ;
63	RelSymLink $(target) : libcppunit.so ;
64	Depends libcppunit.so : $(target) ;
65}
66