freebsd-skq/lib/googletest/gtest/Makefile
Alex Richardson 2ed3236082 Major improvement to build parallelism for googletest internal tests
Currently the googletest internal tests build after the matching library.
However, each of these is serialized at the top level makefile.
Additionally some of the tests (e.g. the gmock-matches-test) take up to
90 seconds to build with clang -O2. Having to wait for this test to
complete before continuing to the next directory seriously slows down the
parllelism of a -j32 build.
Before this change running `make -C lib/googletest -j32 -s` in buildenv
took 202 seconds, now it's 153 due to improved parallelism.

Reviewed By:	emaste (no objection)
Differential Revision: https://reviews.freebsd.org/D26748
2020-10-19 19:50:57 +00:00

51 lines
1.5 KiB
Makefile

# $FreeBSD$
.include <bsd.init.mk>
.PATH: ${GOOGLETEST_SRCROOT}/include ${GOOGLETEST_SRCROOT}/src
LIB_CXX= gtest
SHLIB_MAJOR= 0
PRIVATELIB= true
CXXFLAGS+= -I${GOOGLETEST_SRCROOT}/include
CXXFLAGS+= -I${GOOGLETEST_SRCROOT}
INCSGROUPS= MAIN_INCS INTERNAL_INCS INTERNAL_CUSTOM_INCS
MAIN_INCSDIR= ${INCLUDEDIR}${PRIVATELIB:D/private/${LIB}}
MAIN_INCS+= gtest/gtest-death-test.h
MAIN_INCS+= gtest/gtest-message.h
MAIN_INCS+= gtest/gtest-param-test.h
MAIN_INCS+= gtest/gtest-printers.h
MAIN_INCS+= gtest/gtest-spi.h
MAIN_INCS+= gtest/gtest-test-part.h
MAIN_INCS+= gtest/gtest-typed-test.h
MAIN_INCS+= gtest/gtest.h
MAIN_INCS+= gtest/gtest_pred_impl.h
MAIN_INCS+= gtest/gtest_prod.h
INTERNAL_INCSDIR= ${MAIN_INCSDIR}/internal
INTERNAL_INCS+= gtest/internal/gtest-death-test-internal.h
INTERNAL_INCS+= gtest/internal/gtest-filepath.h
INTERNAL_INCS+= gtest/internal/gtest-internal.h
INTERNAL_INCS+= gtest/internal/gtest-linked_ptr.h
INTERNAL_INCS+= gtest/internal/gtest-param-util-generated.h
INTERNAL_INCS+= gtest/internal/gtest-param-util.h
INTERNAL_INCS+= gtest/internal/gtest-port-arch.h
INTERNAL_INCS+= gtest/internal/gtest-port.h
INTERNAL_INCS+= gtest/internal/gtest-string.h
INTERNAL_INCS+= gtest/internal/gtest-tuple.h
INTERNAL_INCS+= gtest/internal/gtest-type-util.h
INTERNAL_CUSTOM_INCSDIR= ${INTERNAL_INCSDIR}/custom
INTERNAL_CUSTOM_INCS+= gtest/internal/custom/gtest-port.h
INTERNAL_CUSTOM_INCS+= gtest/internal/custom/gtest-printers.h
INTERNAL_CUSTOM_INCS+= gtest/internal/custom/gtest.h
SRCS+= gtest-all.cc
LIBADD+= pthread regex
.include <bsd.lib.mk>