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