1 2.include <bsd.init.mk> 3 4.PATH: ${GOOGLETEST_SRCROOT}/src ${GOOGLETEST_SRCROOT}/test 5 6GTESTS+= gtest_environment_test 7GTESTS+= gtest_no_test_unittest 8GTESTS+= googletest-param-test-test 9GTESTS+= gtest_premature_exit_test 10GTESTS+= gtest_repeat_test 11GTESTS+= gtest_stress_test 12GTESTS+= gtest_throw_on_failure_ex_test 13GTESTS+= gtest-unittest-api_test 14 15CXXFLAGS+= -I${GOOGLETEST_SRCROOT}/include 16CXXFLAGS+= -I${GOOGLETEST_SRCROOT} 17 18.for death_test in gtest-death-test_ex_catch_test gtest-death-test_ex_nocatch_test 19# XXX: copying source files in order to tweak CXXFLAGS seems hacky. 20${death_test}.cc: googletest-death-test_ex_test.cc 21 ${CP} ${.ALLSRC} ${.TARGET} 22CLEANFILES+= ${death_test}.cc 23CXXFLAGS.${death_test}+= -fexception 24.endfor 25 26CXXFLAGS.gtest-death-test_ex_catch_test+= \ 27 -DGTEST_ENABLE_CATCH_EXCEPTIONS_=1 28 29CXXFLAGS.gtest-death-test_ex_nocatch_test+= \ 30 -DGTEST_ENABLE_CATCH_EXCEPTIONS_=0 31 32SRCS.googletest-param-test-test= \ 33 googletest-param-test-test.cc \ 34 googletest-param-test2-test.cc 35 36LIBADD+= gtest 37 38CXXFLAGS.clang+= -Wno-error=missing-variable-declarations 39 40# XXX: explicitly listing -lpthread is incorrect. src.libnames.mk should be 41# handling this. 42LIBADD.gtest_stress_test+= pthread 43 44.include <bsd.test.mk> 45