840e4928f7
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
23 lines
433 B
Makefile
23 lines
433 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
.PATH: ${GOOGLEMOCK_SRCROOT}/include ${GOOGLEMOCK_SRCROOT}/src
|
|
|
|
LIB_CXX= gmock_main
|
|
SHLIB_MAJOR= 0
|
|
PRIVATELIB= true
|
|
|
|
CXXFLAGS+= -I${GOOGLEMOCK_SRCROOT}/include
|
|
CXXFLAGS+= -I${GOOGLEMOCK_SRCROOT}
|
|
CXXFLAGS+= -I${GOOGLETEST_SRCROOT}/include
|
|
|
|
LIBADD+= gmock
|
|
# NB: LDFLAGS added for buildworld builds
|
|
LDFLAGS+= -L${LIBGTESTDIR}
|
|
LDFLAGS+= -L${LIBGMOCKDIR}
|
|
|
|
SRCS+= gmock_main.cc
|
|
|
|
.include <bsd.lib.mk>
|