1SubDir OBOS_TOP src tools cppunit ; 2 3UseHeaders [ FDirName $(OBOS_TOP) headers tools elfsymbolpatcher ] ; 4 5rule CppUnitLibrary 6{ 7 # CppUnitLibrary <sources> ; 8 local _lib = libcppunit.so ; 9 10 UseCppUnitHeaders ; 11 SetupObjectsDir ; 12 MakeLocateObjects [ FGristFiles $(1) ] ; 13 BuildPlatformMain $(_lib) : $(1) ; 14 MakeLocate $(_lib) : /boot/home/config/lib ; 15 LINKFLAGS on $(_lib) = $(LINKFLAGS) -nostart -Xlinker -soname=\"$(_lib)\" ; 16 17 local defines = BUILDING_CPPUNIT ; 18 19 if $(OS) = BEOS && $(OSPLAT) = PPC { 20 defines += NO_ELF_SYMBOL_PATCHING ; 21 } 22 ObjectsDefines $(1) : $(defines) ; 23} 24 25CppUnitLibrary 26 SemaphoreSyncObject.cpp 27 TestApp.cpp 28 TestCase.cpp 29 TestListener.cpp 30 TestShell.cpp 31 TestSuite.cpp 32 TestUtils.cpp 33 ThreadedTestCase.cpp 34 cppunit/Asserter.cpp 35 cppunit/CompilerOutputter.cpp 36 cppunit/Exception.cpp 37 cppunit/NotEqualException.cpp 38 cppunit/RepeatedTest.cpp 39 cppunit/SourceLine.cpp 40 cppunit/SynchronizedObject.cpp 41 cppunit/TestAssert.cpp 42 cppunit/TestCase.cpp 43 cppunit/TestFactoryRegistry.cpp 44 cppunit/TestFailure.cpp 45 cppunit/TestResult.cpp 46 cppunit/TestResultCollector.cpp 47 cppunit/TestRunner.cpp 48 cppunit/TestSetUp.cpp 49 cppunit/TestSucessListener.cpp 50 cppunit/TestSuite.cpp 51 cppunit/TextOutputter.cpp 52 cppunit/TextTestProgressListener.cpp 53 cppunit/TextTestResult.cpp 54 cppunit/TypeInfoHelper.cpp 55 cppunit/XmlOutputter.cpp 56; 57 58LinkSharedOSLibs libcppunit.so : 59 stdc++.r4 # is called `mslcpp_4_0' on PPC -- just create a symlink 60 be 61; 62 63if $(OS) != BEOS || $(OSPLAT) != PPC { 64 LinkSharedOSLibs libcppunit.so : libelfsymbolpatcher.a ; 65} 66