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